@nebula.js/sn-bar-chart 1.35.20 → 1.35.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
1
  /*
2
- * @nebula.js/sn-bar-chart v1.35.20
2
+ * @nebula.js/sn-bar-chart v1.35.21
3
3
  * Copyright (c) 2024 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,c,u,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,c=e.storage,u=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(Hd,{generateClassName:t},b.createElement(If,{theme:Dm},e))}(e,Am),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&&xe.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}function n(e){return e.isDimension&&xe.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:c,onChangeToAlternative:u,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?Fs:_s,k=s?Bs:Hs,T=Boolean(c&&c.colorSupport&&c.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,c,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:Om(y),model:c,onChange:u,skipAttributeExpressions:m,translator:h,allowChangeOfAlternatives:T}):void 0;return b.createElement(b.Fragment,{key:t.cId},b.createElement(Nm,{chartId:null!==(o=null==c?void 0:c.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:S,titleData:a,model:c,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(Fw),e.renderer("react-qcm",qw),e.component("box-sliced-hat",zw),e.component("box-out-of-bounds",Dw),e.component("disclaimer",Mw),e.component("scrollbar",dy),e.component("scroll-hint",ta),e.component("reference-line-labels",os),e.component("axis-overlay",wg.picassoComponents.axisOverlay),e.component("time-axis",wg.picassoComponents.timeAxis),e.scale("q-time-axis",wg.picassoScales.time),e}();return{qae:bk(e),ext:FL(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(xk).forEach((t=>{e.add(xk[t])}))}}(e.translator);const i=L(),a=N(),[s,l]=O(),c=D(),u=A(),{qLocaleInfo:d}=u;return I((()=>{l({translator:o,theme:a,embed:i,deviceType:c,localeInfo:d,isUnsupportedFeature:r,flags:n})}),[d,r,o.language(),a.name(),c]),s}({env:e}),{viewState:n,viewCache:r}=function(){const[e]=O((()=>l())),[t]=O((()=>c({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:e,viewState:t}}(),u=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(),c=B(),u=_(),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,c]=O(!1),[u,d]=O({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),f=e=>{c("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:IT,hidden:!a||!o||i,active:l,action:f})),[o,i,l,a,r.language()]),{get:()=>u,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=>RT(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=_T({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:jT,experimental:{filter:C.isEnabled("IM_1579_HIDE_DIM_MEA")}});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,flags:n,options:r}){const o={};return o.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),o.selectionDimensionIdx=HT(e.getHyperCube()),o.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,o.selectionDimensionProp=e=>void 0===o.selectionDimensionIdx||void 0!==e&&o.selectionDimensionIdx!==e?{}:{selectionDimension:{field:o.selectionDimensionIdx}},o.animations={enabled:()=>!1!==r.chartAnimations&&(!!n.isEnabled("IM_1355_ANIMATIONS_BAR")&&(!(o.animations.isPartialUpdating||o.animations.isSizeChanging||o.animations.hasSlicedHats)&&!ss.propertiesHaveChanged({viewCache:t,layout:e.getLayout()}))),isPartialUpdating:!1,isSizeChanging:!1,hasSlicedHats:!1},o}({layoutService:q,viewCache:i,flags:C,options:p}),O=h({chart:t,layoutService:q,config:{logicalSize:L,rtl:"rtl"===T},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),D=UT({layoutService:q}),A=g({theme:f,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),I=function({layoutService:e,themeService:t}){const n=t.getStyles(),r=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,o,i,a,s;return{fontFamily:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.axis.title.fontFamily,fontSize:null!==(o=null===(i=r("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==o?o:n.axis.title.fontSize,color:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.axis.title.color}}},label:{getStyle:()=>{var e,t,o,i,a,s;return{fill:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.axis.label.name.color,fontSize:null!==(o=null===(i=r("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.fontSize)&&void 0!==o?o:n.axis.label.name.fontSize,fontFamily:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:n.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,o,i,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.title.fontFamily,fontSize:null!==(o=null===(i=r("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==o?o:n.legend.title.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.title.color}}},label:{getStyle:()=>{var e,t,o,i,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.label.fontFamily,fontSize:null!==(o=null===(i=r("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.label)||void 0===i?void 0:i.fontSize)&&void 0!==o?o:n.legend.label.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.label.color}}}},label:{getStyle:()=>{var e,t,o,i,a,s,l,c;return{fill:null!==(e=null===(t=r("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.label.value.color,useContrastColor:null===(o=null===(i=r("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.useContrastColor)||void 0===o||o,fontSize:null!==(a=null===(s=r("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontSize)&&void 0!==a?a:n.label.value.fontSize,fontFamily:null!==(l=null===(c=r("label"))||void 0===c||null===(c=c.label)||void 0===c||null===(c=c.value)||void 0===c?void 0:c.fontFamily)&&void 0!==l?l:n.label.value.fontFamily}}}}}({layoutService:q,themeService:A}),R=wg.model({model:c,layoutService:q,viewCache:i,viewState:r}),P=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(Te).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),o=t.getHyperCubeValue("qDimensionInfo"),i="K"===r&&o.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=i?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:o.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:i?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,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),c=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}),u={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:()=>u,update(e){var r;c.should(e)&&c(e),u.mode=de(u.mode,t.meta),u.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,u.mode.isStackedByDimension=u.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),u.mode.isStackedByMeasure=u.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),u.fields={major:u.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:u.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},u.scales={major:zT.SCALE.REDUCED.MAJOR,minor:zT.SCALE.REDUCED.MINOR},u.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=de(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=u.cube}}}({enigma:c,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 z=VT({picasso:e,model:c,app:u,translator:v,localeInfo:S,theme:f,continuousDataModel:R,layoutService:q,legendLayoutService:E,reducedDataModel:P}),j=hT({layoutService:q,viewState:r,colorModel:{settings:()=>z.getMain().getSettings(),resolveUIColor:e=>z.getMain().getPaletteColor(e)},chart:t,env:n,keys:{colorScale:zT.SCALE.MAIN.COLOR},isEnabled:()=>!q.meta.isGroupedByDimension&&(!q.meta.isStackedByDimension||C.isEnabled("TRENDLINES_STACKED_DIM"))&&!q.meta.isDimensionless});lk.attrExpr.updateProperties(c,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:ek,miniChartToken:{},embed:s}}({layout:a,app:u,model:c,picasso:e,chart:t,translator:v,localeInfo:S,embed:w,extractDimsAndNode:FT.extractDimsAndNode});let B;q.meta.isDiscrete&&(B=function({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:a,trendLineModel:c,itemWidths:u,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 Ek;case"K":return Lk;case"T":return Nk}}({qMode:i.getHyperCubeValue("qMode")}),S=function({state:e,contains:t}){return e.set(Ok,[]),{add:t=>{const n=e.get(Ok);n.length=0,n.push(t)},getCurrent:()=>e.get(Ok)[0],getAll:()=>e.get(Ok),contains:n=>t(e.get(Ok)[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=jk,definitionPath:i,processDataPage:a}){const{slicer:l,cacheWarden:c,request:u}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:o,process:i,connectionless:a,processDataPage:s}){const l=(l,{onProcessing:c}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const o=n.release(r.qArea,l),s=i.isProcessing();if(!o&&s&&i.cancel(),!o||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());i.isProcessing()&&c&&c();const u=r(l);return i(o(u)).then((n=>(s(n),e.add(n),t(n,l))))};return l}({dataStore:e,slice:l,warden:c({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:Pk({layoutService:r}),request:u({definitionPath:i}),process:zk(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!==Sk)throw e}))}),kk);return function(e,{onProcessing:t=Mk,onDataPage:n=Mk}={}){f(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),o.command.update(),n(e)}})}}({dataStore:S,composition:x,enigmaModel:r,layoutService:i,trendLineModel:c,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:c,renderer:u,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:c}){const{inTotal:u,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;if(t)return Fk;if(!n)return Bk;return r?Vk:Gk}({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=u({layoutService:r});return{inTotal:l,inView:Yk({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(Ck/(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&&c?function(e){return[1-e[1],1-e[0]]}(i):i},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=h(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*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:c,renderer:u,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}),c=g({pixelOffset:a,items:i});f.preventSet("viewRange",m.getViewRange({pixelOffset:c.start.pixel,items:i}));const u=m.getArea({itemOffset:c.start.item,items:i});return new Promise((e=>{o(u,{onDataPage:()=>{n.set("scaleRange",m.getScaleRange({offsets:c.start,items:i})),f.preventSet("scrollOffset",{start:c.start.item,end:c.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:u,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:[Ik({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:Rk({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:zT.COMPONENT.BAR,enigmaModel:c,layoutService:q,dockService:O,trendLineModel:j,itemWidths:PT,viewState:r,rtl:"rtl"===T,options:{axisKey:zT.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=we.dimensionless(i),l=za.getMeasureRefLines(i),c=za.getDimensionRefLines(i,s),u=za.getMeasureRefLineLabels(i),d=za.getDimensionRefLineLabels(i,s);let f={},p={};const m=t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:o}=n;return za.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 za.isOutOfDataPages({label:n,dataPages:o})}return!0},g=()=>!(!c||!c.length)&&!c.every((t=>{const n=za.getInputValue({refLineLayout:t,layoutService:e});return m(n)||h(n)})),y={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:p,dimensionValuesInfo:f,query:{getRefLines:e=>za.getRefLines(i,e),getRefLineLabels:e=>za.getRefLineLabels(i,e)},update:()=>{p=y.dimensionRefLineInfo,g()&&(f=za.getDimensionValuesInfo({layout:i,canBeContinuous:r,discreteModel:t,layoutService:e}),y.dimensionValuesInfo=f,c.forEach((t=>{const n=za.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:zT.SCALE.MAIN.MINOR,MAJOR:zT.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:zT.COMPONENT.BAR,BAR_AXIS:zT.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:zT.COLLECTION.MAIN}}};return t}(q),$=y({picassoInstance:e,plugins:d||[],pluginArgs:H});k.setContext({discrete:B,layoutService:q}),b({discrete:B,continuous:wg,legendLayoutService:E,layoutService:q,viewModel:N,dockService:O,themeService:A,styleService:I,continuousDataModel:R,reducedDataModel:P,colorService:z,trendLineModel:j,refLineModel:_,pluginService:$,customTooltipModel:F,selectionService:M,logicalSize:L,disclaimerService:D})}),[M,p,n,a]),v}({picasso:i,chart:u,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=de(!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=de(!0,{},e),l=de(!0,{},t);return a.exclude=!hL(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=!hL(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{flags:n}=e,{layoutService:a}=t,{isSnapshot:s,isStacked:l,isContinuous:c}=a.meta,u=[];return s||u.push(o.getEffectiveProperties()),Promise.all(u).then((async e=>{const t=e[0]||void 0;if(n.isEnabled("IM_1579_HIDE_DIM_MEA")&&null!=t&&t.qHyperCubeDef){const e=a.getLayout(),n=de(!0,{},t);if(gL({properties:t,layout:e,isStacked:l,isContinuous:c,model:o,layoutService:a}))return i.pending(),xs(e)?o.setProperties(t).then((()=>{r.clearUndoBuffer()})):void await bs(o,n,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:c}=W(),u=B(),d=$(),f=P(),[p,m]=O(),[h,g]=O(),[y,v]=O(),[b,x]=O(),S=_();function M(s={}){const{selectionService:l,refLineModel:c,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:u,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:c,pluginService:v,styleService:q,disclaimerService:E,...s};return dL(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,l;if(!(e&&t&&n&&r&&o&&i&&s))return Promise.resolve();const{layoutService:c,selectionService:u,refLineModel:d,discrete:f,continuous:p,reducedDataModel:m,continuousDataModel:h,trendLineModel:g,legendLayoutService:y,colorService:v,pluginService:b,viewModel:S,customTooltipModel:M,disclaimerService:C}=n;if(null==u||null===(a=u.custom)||void 0===a||!a.getActions())return Promise.resolve();const{flags:w}=r;if(null!=w&&null!==(l=w.isEnabled)&&void 0!==l&&l.call(w,"IM_1579_HIDE_DIM_MEA")){const{properties:e}=s,t=null==e?void 0:e.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}));t&&(M.useCustomTooltip=!1)}const k=()=>{x(Date.now()),S.animations.isPartialUpdating=!0},T=()=>{y&&y.setDataPages([f.query.getCurrentDataPage()]),d&&d.update(),k()};o.onChanged("scrollOffset",T),o.onChanged("legendScrollOffset",k),o.intercept("zoom",p.event.onZoomIntercept({viewCache:i})),o.onChanged("zoom",p.event.onZoomChange({layoutService:c,continuousDataModel:h},k)),u.setLayout(c.getLayout());const q=[];c.meta.isContinuous&&(h.update(c.getLayout()),q.push(h.initialFetch())),g.command.update(),q.push(m.fetch().then((({reducedCube:e})=>{m.update(e)}))),C.initialize(),q.push(Promise.resolve({properties:s.properties}));const E=()=>[b.initialize(),v.initialize(),pq({reducedDataModel:m,layoutService:c,continuousDataModel:h,trendLineModel:g})];return Promise.all(q).then((e=>Promise.all(E()).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:c,colorService:u,viewModel:d}=n;i.set("minorMinMax",k);const f=()=>!t.meta.isContinuous&&(a.model().mode.isReduced||t.meta.isStacked)&&c,p=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():a.model().cube,{field:y}=u.getMain().getSettings(),v=f(),b=v?c.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=[],c=[];const u=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:u}}),prepPicassoData(o){const i=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:u}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:u}},...o];return n&&i.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:u}}),a.query.hasTrendLines()&&i.push({key:"trend",data:a.query.getData()}),i},extractDataPages(){l=e[s],c=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=c}}}({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(),ss.cacheProperties({viewCache:i,layout:e.getLayout()})}))}),[y]),I((()=>{if(!(l&&c&&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:c}),i.setTheme(r.theme),C().then((()=>{t.update&&t.update()}))}),[l,c]),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:u,services:d,environment:t,viewState:n,viewCache:r,bootstrapped:f}),fL({environment:t,services:d,chart:u,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=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=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(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function 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=Object.prototype.hasOwnProperty,re=Object.prototype.toString,oe=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ae=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===re.call(e)},se=function(e){if(!e||"[object Object]"!==re.call(e))return!1;var t,n=ne.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ne.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ne.call(e,t)},le=function(e,t){oe&&"__proto__"===t.name?oe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ce=function(e,t){if("__proto__"===t){if(!ne.call(e,t))return;if(ie)return ie(e,t).value}return e[t]},ue=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ce(s,n),s!==(o=ce(t,n))&&(u&&o&&(se(o)||(i=ae(o)))?(i?(i=!1,a=r&&ae(r)?r:[]):a=r&&se(r)?r:{},le(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&le(s,{name:n,newValue:o}));return s},de=ee(ue);const fe=[["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}]],pe={};fe.forEach((([e,{width:t,height:n}])=>{pe[e]={width:t,height:n}}));const me={getLayoutModes:()=>pe,getLayoutMode(e,t){let n;for(n=0;n<fe.length;++n)if(e>=fe[n][1].width&&t>=fe[n][1].height)return fe[n][0];return"SPARK"}};function he(e,t){return{layoutModes:me.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 ge=["$date","$timestamp","$time"],ye=["D","TS","T"],ve={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>ge.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&ye.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(ve.hasTimeTag(t)&&ve.hasUnknownFormat(t)||ve.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&ve.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&ve.canBeContinuousDimension(r[0])},maxNumberOfLines:12},be=/^[A-Z][A-z0-9_]*$/i,xe={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},getValue:(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||be.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},Se=e=>xe.getValue(e,"qHyperCube.qDimensionInfo",[]),Me=e=>xe.getValue(e,"qHyperCube.qMeasureInfo",[]),Ce=e=>xe.getValue(e,"barGrouping.grouping"),we={continuous:(e,t=!1)=>!!ve.canBeContinuous(e)&&(xe.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!Se(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===Ce(e)&&(Se(e).length>1||Me(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&Se(e).length>1&&1===Me(e).length},groupedByMeasure(e){return this.grouped(e)&&1===Se(e).length&&Me(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==Ce(e)||this.continuous(e))&&(Se(e).length>1||Me(e).length>1)},stackedByDimension(e){return this.stacked(e)&&Se(e).length>1&&1===Me(e).length},stackedByMeasure(e){return this.stacked(e)&&1===Se(e).length&&Me(e).length>1},simple:e=>0===Se(e).length||1===Se(e).length&&1===Me(e).length,snapshot:e=>!!xe.getValue(e,"snapshotData")};function ke(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Te=e=>{throw e.isHandled=!0,e};const qe={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?qe.getVerticalDock(t):n?qe.getOppositeDock(qe.getHorizontalDock(t)):qe.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 Ee=(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 Le={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=Le.getCharacterRatios(e[n]),r.latin+=o.latin,r.cjk+=o.cjk})):e.forEach((e=>{o=Le.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=Le.getTotalCharacterRatios(t,n,r),i=o.latinRatio*e,a=o.cjkRatio*e;return Math.ceil(Le.stringWidthOverMWidth(i)+1.0909090909090908*a)}},Ne="#la-vie-tooltip";function Oe(){if(!document.querySelector(Ne)){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 De({key:e="tooltip",rtl:t}){return{show:!0,key:e,type:"tooltip",layout:{displayOrder:3},beforeMount(){Oe()},beforeUpdate(){Oe()},destroyed(){!function(){const e=document.querySelector(Ne);e&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)}()},settings:{appendTo:()=>document.querySelector(Ne),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 Ae=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Ie=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),Re=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Pe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Ae.test(e),isRtlChar:e=>Ie.test(e)||Re.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Pe.isLtrChar(r))return"ltr";if(Pe.isRtlChar(r))return"rtl"}return"ltr"}},ze={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?ze.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=Pe.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=Pe.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:Pe.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=Pe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=Pe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,ze.getColorSymbol(e,t)]:[ze.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=Pe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Pe.detectTextDirection(e.value);let l;return l=o?r?[e.value,ze.getColorSymbol(t,n)]:[ze.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 je(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Fe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Be(){}var _e=.7,He=1/_e,$e="\\s*([+-]?\\d+)\\s*",Ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",We="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ue=/^#([0-9a-f]{3,8})$/,Ke=new RegExp(`^rgb\\(${$e},${$e},${$e}\\)$`),Ge=new RegExp(`^rgb\\(${We},${We},${We}\\)$`),Ye=new RegExp(`^rgba\\(${$e},${$e},${$e},${Ve}\\)$`),Xe=new RegExp(`^rgba\\(${We},${We},${We},${Ve}\\)$`),Je=new RegExp(`^hsl\\(${Ve},${We},${We}\\)$`),Ze=new RegExp(`^hsla\\(${Ve},${We},${We},${Ve}\\)$`),Qe={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 et(){return this.rgb().formatHex()}function tt(){return this.rgb().formatRgb()}function nt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?rt(t):3===n?new at(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ot(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ot(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=Ke.exec(e))?new at(t[1],t[2],t[3],1):(t=Ge.exec(e))?new at(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ye.exec(e))?ot(t[1],t[2],t[3],t[4]):(t=Xe.exec(e))?ot(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Je.exec(e))?ft(t[1],t[2]/100,t[3]/100,1):(t=Ze.exec(e))?ft(t[1],t[2]/100,t[3]/100,t[4]):Qe.hasOwnProperty(e)?rt(Qe[e]):"transparent"===e?new at(NaN,NaN,NaN,0):null}function rt(e){return new at(e>>16&255,e>>8&255,255&e,1)}function ot(e,t,n,r){return r<=0&&(e=t=n=NaN),new at(e,t,n,r)}function it(e){return e instanceof Be||(e=nt(e)),e?new at((e=e.rgb()).r,e.g,e.b,e.opacity):new at}function at(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function st(){return`#${dt(this.r)}${dt(this.g)}${dt(this.b)}`}function lt(){const e=ct(this.opacity);return`${1===e?"rgb(":"rgba("}${ut(this.r)}, ${ut(this.g)}, ${ut(this.b)}${1===e?")":`, ${e})`}`}function ct(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ut(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dt(e){return((e=ut(e))<16?"0":"")+e.toString(16)}function ft(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new mt(e,t,n,r)}function pt(e){if(e instanceof mt)return new mt(e.h,e.s,e.l,e.opacity);if(e instanceof Be||(e=nt(e)),!e)return new mt;if(e instanceof mt)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 mt(a,s,l,e.opacity)}function mt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ht(e){return(e=(e||0)%360)<0?e+360:e}function gt(e){return Math.max(0,Math.min(1,e||0))}function yt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}je(Be,nt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:et,formatHex:et,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return pt(this).formatHsl()},formatRgb:tt,toString:tt}),je(at,(function(e,t,n,r){return 1===arguments.length?it(e):new at(e,t,n,null==r?1:r)}),Fe(Be,{brighter(e){return e=null==e?He:Math.pow(He,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?_e:Math.pow(_e,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new at(ut(this.r),ut(this.g),ut(this.b),ct(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:st,formatHex:st,formatHex8:function(){return`#${dt(this.r)}${dt(this.g)}${dt(this.b)}${dt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lt,toString:lt})),je(mt,(function(e,t,n,r){return 1===arguments.length?pt(e):new mt(e,t,n,null==r?1:r)}),Fe(Be,{brighter(e){return e=null==e?He:Math.pow(He,e),new mt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?_e:Math.pow(_e,e),new mt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new at(yt(e>=240?e-240:e+120,o,r),yt(e,o,r),yt(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new mt(ht(this.h),gt(this.s),gt(this.l),ct(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ct(this.opacity);return`${1===e?"hsl(":"hsla("}${ht(this.h)}, ${100*gt(this.s)}%, ${100*gt(this.l)}%${1===e?")":`, ${e})`}`}}));const vt=Math.PI/180,bt=180/Math.PI,xt=.96422,St=1,Mt=.82521,Ct=4/29,wt=6/29,kt=3*wt*wt,Tt=wt*wt*wt;function qt(e){if(e instanceof Et)return new Et(e.l,e.a,e.b,e.opacity);if(e instanceof It)return Rt(e);e instanceof at||(e=it(e));var t,n,r=Dt(e.r),o=Dt(e.g),i=Dt(e.b),a=Lt((.2225045*r+.7168786*o+.0606169*i)/St);return r===o&&o===i?t=n=a:(t=Lt((.4360747*r+.3850649*o+.1430804*i)/xt),n=Lt((.0139322*r+.0971045*o+.7141733*i)/Mt)),new Et(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Et(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Lt(e){return e>Tt?Math.pow(e,1/3):e/kt+Ct}function Nt(e){return e>wt?e*e*e:kt*(e-Ct)}function Ot(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function At(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof It)return new It(e.h,e.c,e.l,e.opacity);if(e instanceof Et||(e=qt(e)),0===e.a&&0===e.b)return new It(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*bt;return new It(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new It(e,t,n,null==r?1:r)}function It(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Rt(e){if(isNaN(e.h))return new Et(e.l,0,0,e.opacity);var t=e.h*vt;return new Et(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}je(Et,(function(e,t,n,r){return 1===arguments.length?qt(e):new Et(e,t,n,null==r?1:r)}),Fe(Be,{brighter(e){return new Et(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Et(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new at(Ot(3.1338561*(t=xt*Nt(t))-1.6168667*(e=St*Nt(e))-.4906146*(n=Mt*Nt(n))),Ot(-.9787684*t+1.9161415*e+.033454*n),Ot(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),je(It,At,Fe(Be,{brighter(e){return new It(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new It(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Rt(this).rgb()}}));var Pt={isDark:function(e){return At(e).l<70}};function zt(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function jt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ft(e){return 1===e.length&&(e=function(e){return function(t,n){return jt(e(t),n)}}(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}var Bt=Ft(jt).right,_t=Math.sqrt(50),Ht=Math.sqrt(10),$t=Math.sqrt(2);function Vt(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>=_t?10:i>=Ht?5:i>=$t?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=_t?10:i>=Ht?5:i>=$t?2:1)}function Wt(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>=_t?o*=10:i>=Ht?o*=5:i>=$t&&(o*=2),t<e?-o:o}function Ut(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Kt="$";function Gt(){}function Yt(e,t){var n=new Gt;if(e instanceof Gt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Xt(){}Gt.prototype=Yt.prototype={constructor:Gt,has:function(e){return Kt+e in this},get:function(e){return this[Kt+e]},set:function(e,t){return this[Kt+e]=t,this},remove:function(e){var t=Kt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Kt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Kt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Kt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Kt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Kt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Kt)return!1;return!0},each:function(e){for(var t in this)t[0]===Kt&&e(this[t],t.slice(1),this)}};var Jt=Yt.prototype;Xt.prototype={constructor:Xt,has:Jt.has,add:function(e){return this[Kt+(e+="")]=e,this},remove:Jt.remove,clear:Jt.clear,values:Jt.keys,size:Jt.size,empty:Jt.empty,each:Jt.each};var Zt=Array.prototype,Qt=Zt.map,en=Zt.slice;function tn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function nn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function rn(){}var on=.7,an=1/on,sn="\\s*([+-]?\\d+)\\s*",ln="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",cn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",un=/^#([0-9a-f]{3})$/,dn=/^#([0-9a-f]{6})$/,fn=new RegExp("^rgb\\("+[sn,sn,sn]+"\\)$"),pn=new RegExp("^rgb\\("+[cn,cn,cn]+"\\)$"),mn=new RegExp("^rgba\\("+[sn,sn,sn,ln]+"\\)$"),hn=new RegExp("^rgba\\("+[cn,cn,cn,ln]+"\\)$"),gn=new RegExp("^hsl\\("+[ln,cn,cn]+"\\)$"),yn=new RegExp("^hsla\\("+[ln,cn,cn,ln]+"\\)$"),vn={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 bn(e){var t;return e=(e+"").trim().toLowerCase(),(t=un.exec(e))?new wn((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=dn.exec(e))?xn(parseInt(t[1],16)):(t=fn.exec(e))?new wn(t[1],t[2],t[3],1):(t=pn.exec(e))?new wn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=mn.exec(e))?Sn(t[1],t[2],t[3],t[4]):(t=hn.exec(e))?Sn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=gn.exec(e))?Tn(t[1],t[2]/100,t[3]/100,1):(t=yn.exec(e))?Tn(t[1],t[2]/100,t[3]/100,t[4]):vn.hasOwnProperty(e)?xn(vn[e]):"transparent"===e?new wn(NaN,NaN,NaN,0):null}function xn(e){return new wn(e>>16&255,e>>8&255,255&e,1)}function Sn(e,t,n,r){return r<=0&&(e=t=n=NaN),new wn(e,t,n,r)}function Mn(e){return e instanceof rn||(e=bn(e)),e?new wn((e=e.rgb()).r,e.g,e.b,e.opacity):new wn}function Cn(e,t,n,r){return 1===arguments.length?Mn(e):new wn(e,t,n,null==r?1:r)}function wn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function kn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Tn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qn(e,t,n,r)}function qn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function En(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}tn(rn,bn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),tn(wn,Cn,nn(rn,{brighter:function(e){return e=null==e?an:Math.pow(an,e),new wn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?on:Math.pow(on,e),new wn(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"#"+kn(this.r)+kn(this.g)+kn(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+")")}})),tn(qn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof qn)return new qn(e.h,e.s,e.l,e.opacity);if(e instanceof rn||(e=bn(e)),!e)return new qn;if(e instanceof qn)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 qn(a,s,l,e.opacity)}(e):new qn(e,t,n,null==r?1:r)}),nn(rn,{brighter:function(e){return e=null==e?an:Math.pow(an,e),new qn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?on:Math.pow(on,e),new qn(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 wn(En(e>=240?e-240:e+120,o,r),En(e,o,r),En(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 Ln=Math.PI/180,Nn=180/Math.PI,On=.96422,Dn=1,An=.82521,In=4/29,Rn=6/29,Pn=3*Rn*Rn,zn=Rn*Rn*Rn;function jn(e){if(e instanceof Fn)return new Fn(e.l,e.a,e.b,e.opacity);if(e instanceof Vn){if(isNaN(e.h))return new Fn(e.l,0,0,e.opacity);var t=e.h*Ln;return new Fn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof wn||(e=Mn(e));var n,r,o=$n(e.r),i=$n(e.g),a=$n(e.b),s=Bn((.2225045*o+.7168786*i+.0606169*a)/Dn);return o===i&&i===a?n=r=s:(n=Bn((.4360747*o+.3850649*i+.1430804*a)/On),r=Bn((.0139322*o+.0971045*i+.7141733*a)/An)),new Fn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function Fn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Bn(e){return e>zn?Math.pow(e,1/3):e/Pn+In}function _n(e){return e>Rn?e*e*e:Pn*(e-In)}function Hn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function $n(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Vn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}tn(Fn,(function(e,t,n,r){return 1===arguments.length?jn(e):new Fn(e,t,n,null==r?1:r)}),nn(rn,{brighter:function(e){return new Fn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Fn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new wn(Hn(3.1338561*(t=On*_n(t))-1.6168667*(e=Dn*_n(e))-.4906146*(n=An*_n(n))),Hn(-.9787684*t+1.9161415*e+.033454*n),Hn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),tn(Vn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Vn)return new Vn(e.h,e.c,e.l,e.opacity);if(e instanceof Fn||(e=jn(e)),0===e.a&&0===e.b)return new Vn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Nn;return new Vn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Vn(e,t,n,null==r?1:r)}),nn(rn,{brighter:function(e){return new Vn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Vn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return jn(this).rgb()}}));var Wn=-.14861,Un=1.78277,Kn=-.29227,Gn=-.90649,Yn=1.97294,Xn=Yn*Gn,Jn=Yn*Un,Zn=Un*Kn-Gn*Wn;function Qn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof er)return new er(e.h,e.s,e.l,e.opacity);e instanceof wn||(e=Mn(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Zn*r+Xn*t-Jn*n)/(Zn+Xn-Jn),i=r-o,a=(Yn*(n-o)-Kn*i)/Gn,s=Math.sqrt(a*a+i*i)/(Yn*o*(1-o)),l=s?Math.atan2(a,i)*Nn-120:NaN;return new er(l<0?l+360:l,s,o,e.opacity)}(e):new er(e,t,n,null==r?1:r)}function er(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tr(e){return function(){return e}}function nr(e,t){return function(n){return e+n*t}}function rr(e){return 1==(e=+e)?or: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):tr(isNaN(t)?n:t)}}function or(e,t){var n=t-e;return n?nr(e,n):tr(isNaN(e)?t:e)}tn(er,Qn,nn(rn,{brighter:function(e){return e=null==e?an:Math.pow(an,e),new er(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?on:Math.pow(on,e),new er(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Ln,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new wn(255*(t+n*(Wn*r+Un*o)),255*(t+n*(Kn*r+Gn*o)),255*(t+n*(Yn*r)),this.opacity)}}));var ir=function e(t){var n=rr(t);function r(e,t){var r=n((e=Cn(e)).r,(t=Cn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=or(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 ar(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]=pr(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 sr(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function lr(e,t){return t-=e=+e,function(n){return e+t*n}}function cr(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]=pr(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var ur=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dr=new RegExp(ur.source,"g");function fr(e,t){var n,r,o,i=ur.lastIndex=dr.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=ur.exec(e))&&(r=dr.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:lr(n,r)})),i=dr.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 pr(e,t){var n,r=typeof t;return null==t||"boolean"===r?tr(t):("number"===r?lr:"string"===r?(n=bn(t))?(t=n,ir):fr:t instanceof bn?ir:t instanceof Date?sr:Array.isArray(t)?ar:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?cr:lr)(e,t)}function mr(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function hr(e){return function t(n){function r(t,r){var o=e((t=Qn(t)).h,(r=Qn(r)).h),i=or(t.s,r.s),a=or(t.l,r.l),s=or(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 gr(e){return+e}hr((function(e,t){var n=t-e;return n?nr(e,n>180||n<-180?n-360*Math.round(n/360):n):tr(isNaN(e)?t:e)})),hr(or);var yr=[0,1];function vr(e){return e}function br(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function xr(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 Sr(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=br(o,r),i=n(a,i)):(r=br(r,o),i=n(i,a)),function(e){return i(r(e))}}function Mr(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]=br(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Bt(e,t,1,r)-1;return i[n](o[n](t))}}function Cr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function wr(e,t){return function(){var e,t,n,r,o,i,a=yr,s=yr,l=pr,c=vr;function u(){return r=Math.min(a.length,s.length)>2?Mr:Sr,o=i=null,d}function d(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(s,a.map(e),lr)))(n)))},d.domain=function(e){return arguments.length?(a=Qt.call(e,gr),c===vr||(c=xr(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=en.call(e),u()):s.slice()},d.rangeRound=function(e){return s=en.call(e),l=mr,u()},d.clamp=function(e){return arguments.length?(c=e?xr(a):vr,d):c!==vr},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function kr(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Tr(e){return(e=kr(Math.abs(e)))?e[1]:NaN}var qr,Er=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Lr(e){return new Nr(e)}function Nr(e){if(!(t=Er.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 Or(e,t){var n=kr(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")}Lr.prototype=Nr.prototype,Nr.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 Dr={"%":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 Or(100*e,t)},r:Or,s:function(e,t){var n=kr(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(qr=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")+kr(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 Ar(e){return e}var Ir,Rr,Pr,zr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function jr(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)}):Ar,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):Ar,s=e.percent||"%";function l(e){var t=(e=Lr(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,f=e.comma,p=e.precision,m=e.trim,h=e.type;"n"===h?(f=!0,h="g"):Dr[h]||(null==p&&(p=12),m=!0,h="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?o[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",y="$"===c?o[1]:/[%p]/.test(h)?s:"",v=Dr[h],b=/[defgprs%]/.test(h);function x(e){var o,s,c,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?zr[8+qr/3]:"")+S+(M&&"("===l?")":""),b)for(o=-1,s=e.length;++o<s;)if(48>(c=e.charCodeAt(o))||c>57){S=(46===c?i+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}f&&!u&&(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&&u&&(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=Lr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Tr(t)/3))),o=Math.pow(10,-r),i=zr[8+r/3];return function(e){return n(o*e)+i}}}}function Fr(e,t,n,r){var o,i=Wt(e,t,n);switch((r=Lr(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Tr(t)/3)))-Tr(Math.abs(e)))}(i,a))||(r.precision=o),Pr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Tr(t)-Tr(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-Tr(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Rr(r)}function Br(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=Vt(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 Fr(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=Vt(s,l,n))>0?r=Vt(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Vt(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 _r(){var e=wr(vr,vr);return e.copy=function(){return Cr(e,_r())},Ut.apply(e,arguments),Br(e)}Ir=jr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Rr=Ir.format,Pr=Ir.formatPrefix;var Hr=new Date,$r=new Date;function Vr(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 Vr((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 Hr.setTime(+t),$r.setTime(+r),e(Hr),e($r),Math.floor(n(Hr,$r))},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 Wr=Vr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Wr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Vr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Wr:null},Wr.range;var Ur=1e3,Kr=6e4,Gr=36e5,Yr=864e5,Xr=6048e5,Jr=Vr((function(e){e.setTime(Math.floor(e/Ur)*Ur)}),(function(e,t){e.setTime(+e+t*Ur)}),(function(e,t){return(t-e)/Ur}),(function(e){return e.getUTCSeconds()}));Jr.range;var Zr=Vr((function(e){e.setTime(Math.floor(e/Kr)*Kr)}),(function(e,t){e.setTime(+e+t*Kr)}),(function(e,t){return(t-e)/Kr}),(function(e){return e.getMinutes()}));Zr.range;var Qr=Vr((function(e){var t=e.getTimezoneOffset()*Kr%Gr;t<0&&(t+=Gr),e.setTime(Math.floor((+e-t)/Gr)*Gr+t)}),(function(e,t){e.setTime(+e+t*Gr)}),(function(e,t){return(t-e)/Gr}),(function(e){return e.getHours()}));Qr.range;var eo=Vr((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())*Kr)/Yr}),(function(e){return e.getDate()-1}));function to(e){return Vr((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())*Kr)/Xr}))}eo.range;var no=to(0),ro=to(1),oo=to(2),io=to(3),ao=to(4),so=to(5),lo=to(6);no.range,ro.range,oo.range,io.range,ao.range,so.range,lo.range;var co=Vr((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()}));co.range;var uo=Vr((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()}));uo.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Vr((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},uo.range;var fo=Vr((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Kr)}),(function(e,t){return(t-e)/Kr}),(function(e){return e.getUTCMinutes()}));fo.range;var po=Vr((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Gr)}),(function(e,t){return(t-e)/Gr}),(function(e){return e.getUTCHours()}));po.range;var mo=Vr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Yr}),(function(e){return e.getUTCDate()-1}));function ho(e){return Vr((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)/Xr}))}mo.range;var go=ho(0),yo=ho(1),vo=ho(2),bo=ho(3),xo=ho(4),So=ho(5),Mo=ho(6);go.range,yo.range,vo.range,bo.range,xo.range,So.range,Mo.range;var Co=Vr((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()}));Co.range;var wo=Vr((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 ko(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 To(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 qo(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}wo.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Vr((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},wo.range;var Eo,Lo,No,Oo={"-":"",_:" ",0:"0"},Do=/^\s*\d+/,Ao=/^%/,Io=/[\\^$*+?|[\]().{}]/g;function Ro(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 Po(e){return e.replace(Io,"\\$&")}function zo(e){return new RegExp("^(?:"+e.map(Po).join("|")+")","i")}function jo(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Fo(e,t,n){var r=Do.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Bo(e,t,n){var r=Do.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _o(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ho(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $o(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Vo(e,t,n){var r=Do.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Wo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Uo(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 Ko(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Go(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Yo(e,t,n){var r=Do.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Xo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Jo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Zo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Qo(e,t,n){var r=Do.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ei(e,t,n){var r=Do.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ti(e,t,n){var r=Ao.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ni(e,t,n){var r=Do.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ri(e,t,n){var r=Do.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function oi(e,t){return Ro(e.getDate(),t,2)}function ii(e,t){return Ro(e.getHours(),t,2)}function ai(e,t){return Ro(e.getHours()%12||12,t,2)}function si(e,t){return Ro(1+eo.count(uo(e),e),t,3)}function li(e,t){return Ro(e.getMilliseconds(),t,3)}function ci(e,t){return li(e,t)+"000"}function ui(e,t){return Ro(e.getMonth()+1,t,2)}function di(e,t){return Ro(e.getMinutes(),t,2)}function fi(e,t){return Ro(e.getSeconds(),t,2)}function pi(e){var t=e.getDay();return 0===t?7:t}function mi(e,t){return Ro(no.count(uo(e),e),t,2)}function hi(e,t){var n=e.getDay();return e=n>=4||0===n?ao(e):ao.ceil(e),Ro(ao.count(uo(e),e)+(4===uo(e).getDay()),t,2)}function gi(e){return e.getDay()}function yi(e,t){return Ro(ro.count(uo(e),e),t,2)}function vi(e,t){return Ro(e.getFullYear()%100,t,2)}function bi(e,t){return Ro(e.getFullYear()%1e4,t,4)}function xi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ro(t/60|0,"0",2)+Ro(t%60,"0",2)}function Si(e,t){return Ro(e.getUTCDate(),t,2)}function Mi(e,t){return Ro(e.getUTCHours(),t,2)}function Ci(e,t){return Ro(e.getUTCHours()%12||12,t,2)}function wi(e,t){return Ro(1+mo.count(wo(e),e),t,3)}function ki(e,t){return Ro(e.getUTCMilliseconds(),t,3)}function Ti(e,t){return ki(e,t)+"000"}function qi(e,t){return Ro(e.getUTCMonth()+1,t,2)}function Ei(e,t){return Ro(e.getUTCMinutes(),t,2)}function Li(e,t){return Ro(e.getUTCSeconds(),t,2)}function Ni(e){var t=e.getUTCDay();return 0===t?7:t}function Oi(e,t){return Ro(go.count(wo(e),e),t,2)}function Di(e,t){var n=e.getUTCDay();return e=n>=4||0===n?xo(e):xo.ceil(e),Ro(xo.count(wo(e),e)+(4===wo(e).getUTCDay()),t,2)}function Ai(e){return e.getUTCDay()}function Ii(e,t){return Ro(yo.count(wo(e),e),t,2)}function Ri(e,t){return Ro(e.getUTCFullYear()%100,t,2)}function Pi(e,t){return Ro(e.getUTCFullYear()%1e4,t,4)}function zi(){return"+0000"}function ji(){return"%"}function Fi(e){return+e}function Bi(e){return Math.floor(+e/1e3)}!function(e){Eo=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=zo(o),u=jo(o),d=zo(i),f=jo(i),p=zo(a),m=jo(a),h=zo(s),g=jo(s),y=zo(l),v=jo(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:oi,e:oi,f:ci,H:ii,I:ai,j:si,L:li,m:ui,M:di,p:function(e){return o[+(e.getHours()>=12)]},Q:Fi,s:Bi,S:fi,u:pi,U:mi,V:hi,w:gi,W:yi,x:null,X:null,y:vi,Y:bi,Z:xi,"%":ji},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:Si,e:Si,f:Ti,H:Mi,I:Ci,j:wi,L:ki,m:qi,M:Ei,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Fi,s:Bi,S:Li,u:Ni,U:Oi,V:Di,w:Ai,W:Ii,x:null,X:null,y:Ri,Y:Pi,Z:zi,"%":ji},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:Go,e:Go,f:ei,H:Xo,I:Xo,j:Yo,L:Qo,m:Ko,M:Jo,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:ni,s:ri,S:Zo,u:Bo,U:_o,V:Ho,w:Fo,W:$o,x:function(e,t,r){return w(e,n,t,r)},X:function(e,t,n){return w(e,r,t,n)},y:Wo,Y:Vo,Z:Uo,"%":ti};function M(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=Oo[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=qo(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=To(qo(i.y))).getUTCDay(),r=o>4||0===o?yo.ceil(r):yo(r),r=mo.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(qo(i.y))).getDay(),r=o>4||0===o?ro.ceil(r):ro(r),r=eo.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?To(qo(i.y)).getUTCDay():t(qo(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,To(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 Oo?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+="",ko);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,To);return t.toString=function(){return e},t}}}(e),Eo.format,Eo.parse,Lo=Eo.utcFormat,No=Eo.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 _i="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Lo(_i),+new Date("2000-01-01T00:00:00.000Z")||No(_i);var Hi=1e3,$i=60*Hi,Vi=60*$i,Wi=24*Vi,Ui=7*Wi,Ki=30*Wi,Gi=365*Wi;function Yi(e){return new Date(e)}function Xi(e){return e instanceof Date?+e:+new Date(+e)}function Ji(e,t,n,r,o,i,a,s,l){var c=wr(vr,vr),u=c.invert,d=c.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,Hi],[a,5,5*Hi],[a,15,15*Hi],[a,30,30*Hi],[i,1,$i],[i,5,5*$i],[i,15,15*$i],[i,30,30*$i],[o,1,Vi],[o,3,3*Vi],[o,6,6*Vi],[o,12,12*Vi],[r,1,Wi],[r,2,2*Wi],[n,1,Ui],[t,1,Ki],[t,3,3*Ki],[e,1,Gi]];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=Ft((function(e){return e[2]})).right(x,i);a===x.length?(o=Wt(n/Gi,r/Gi,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(Wt(n,r,t),1),t=s)}return null==o?t:t.every(o)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(Qt.call(e,Xi)):d().map(Yi)},c.ticks=function(e,t){var n,r=d(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=M(e,o,i,t))?n.range(o,i+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?S:l(t)},c.nice=function(e,t){var n=d();return(e=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)):c},c.copy=function(){return Cr(c,Ji(e,t,n,r,o,i,a,s,l))},c}function Zi(){return Ut.apply(Ji(wo,Co,go,mo,po,fo,Jr,Wr,Lo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Qi={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"}}},ea=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var ta={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=Qi[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:ea(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:ea(t.shadow.endOffset)}}})(n),c="horizontal"===n&&r,u=[];return a||u.push(e("div",{style:{...l.base,...c?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||u.push(e("div",{style:{...l.base,...c?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),u}};function na({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 ra;function oa(){ra=ra||document.createElement("canvas").getContext("2d")}const ia={measureTextWidth(e){oa();const{width:t}=ra.measureText(e);return t},lineWrap(e,t,n,r){let o,i;oa();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,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&&(ra.font=n),i=0;i<a.length;i++){for(d=a[i]||"",f=d.split(/\s+/),[p]=f,u="",o=1;o<f.length;o++)if(l=`${p} ${f[o]}`,c=ia.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(p),p=f[o]):p=l,"number"==typeof r&&s.length>=r){u=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} ${u}`}return s},wordWrap(e,t,n,r,o){if(oa(),!e||!e.length)return[];n&&(ra.font=n);let i=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c&&(c.length<=1||ia.measureTextWidth(c)<=t?i.push(c):(s=ia.splitWord(c,t,void 0,r-i.length),s.length<=1?i.push(s[0]):(l=s.pop(),i=i.concat(s),a[u+1]?ia.measureTextWidth(`${l} ${a[u+1]}`)>t&&i.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return i.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),i.length>r?(i=i.splice(0,r),i[i.length-1]=ia.truncate(i[i.length-1],t,n,o).text):(c=i[i.length-1],c&&c.length>1&&ia.measureTextWidth(c)>t&&(i[i.length-1]=ia.truncate(c,t,n,o).text)),i},truncate(e,t,n,r="…"){oa();let o,i,a,s,l=e;const c=ia.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(ra.font=n),e&&t){if(ia.measureTextWidth(l)>t){for(o=Math.min(u,l.length);o>0;o--)if(i=l.substring(0,o-1),a=i.trim()+r,ia.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;oa();let i,a=e,s="",l=[];if(ia.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(o=Math.min(e.length,c);o>0&&(a=e.substring(0,o),i=e.substring(o-1,o)," "===i?a=e.substring(0,o-1):a+="-",s=e.substring(o),!(ia.measureTextWidth(a)<=t));o--);return(!o&&!a||ia.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(ia.measureTextWidth(s)>t?(s=ia.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(oa(),e&&t?(n&&(ra.font=n),ia.explodeWord(e,t,r,Math.max(1,ia.measureTextWidth("i")))):[]),wrapText(e,t,n,r,o){let i;return Number.isNaN(t)?[e]:(i=r>1?ia.lineWrap(e,t,n,r):[e],i=ia.wordWrap(i,t,n,r,o),i)},getFontHeight:e=>(oa(),e&&(ra.font=e),1.5*ia.measureTextWidth("m")),tokenize(e,t,n,r,o,i,a=1){oa(),t&&(ra.font=t);const s=ia.getFontHeight(),l=a*s;let c=[],u=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=>{u+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{c.push(Number.isNaN(e)||e<=0?f-u:e)}))):c=[Number.isNaN(r)||r<=0?f:Math.min(f,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<f&&(d=d.concat(ia.wrapText(e,o,t,c[n])))})):d=ia.wrapText(e,o,t,c[0],n),d}},aa={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(de({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},sa=de.bind(null,!0),la={},{isArray:ca}=Array;function ua(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function da(e){return void 0===e}function fa(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function pa(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]=da(e[r||t])?i:e[t],e=e[r||t]})),e}function ma(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function ha(e,t,n){let r=!0;if(ua(e)&&ua(t))return ma(e,n)===ma(t,n)&&(Object.keys(e).forEach((o=>{ha(e[o],t[o],n)||(r=!1)})),r);if(ca(e)&&ca(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!ha(e[r],t[r],n))return!1;return!0}return e===t}la.compare=ha,la.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?sa({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;ha(i,a)||fa(t,o)||(da(a)?r.push({op:"add",path:s,value:i}):ua(i)&&ua(a)?r=r.concat(la.generate(a,i,s)):ca(i)&&ca(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]&&da(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(ha(t,o))return r;if(!da(t[0])&&da(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(la.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=>{da(t[o])&&!fa(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},la.apply=function(e,t){t.forEach((t=>{let n=pa(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(ca(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(ca(o)&&ca(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(ua(o)&&ua(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!fa(a,e)&&delete a[e]})),sa(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=pa(e,t.from);ca(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(ca(n)?n.splice(+r,1):delete n[r]);var a}))},la.clone=function(e){return sa({},e)},la.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},la.updateObject=function(e,t){Object.keys(e).length?la.apply(e,la.generate(e,t)):sa(e,t)};const ga=Math.log(10);function ya(e){return 10**e}const va={pow10:ya,log:(e,t)=>e<=0||t<=0?NaN:Math.log(e)/Math.log(t),log10:e=>e<=0?NaN:Math.log(e)/ga,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))/ga),r=e/ya(n);return t=r<=1?1:r<=2?2:r<=5?5:10,t*ya(n)*(e<0?-1:1)},getSmallNiceNumber(e){let t,n;if(0===e)return 0;t=Math.floor(Math.log(Math.abs(e))/ga);const r=e/ya(t);return r<1?(n=5,t--):n=r<2?1:r<5?2:5,n*ya(t)*(e<0?-1:1)},getMagnitude(e){if(0===e)return 0;return ya(Math.floor(Math.log(Math.abs(e))/ga))},getFraction(e){if(0===e)return 0;return e/ya(Math.floor(Math.log(Math.abs(e))/ga))},getGoodNumber(e){let t;if(0===e)return 0;const n=Math.floor(Math.log(Math.abs(e))/ga),r=e/ya(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*ya(n)*(e<0?-1:1)},getValueWithOffset:(e,t=0)=>e+Math.abs(e)*t,isNumber:e=>"number"==typeof e&&!Number.isNaN(e)},ba=[[2,4,6],[2,4],[3]],xa=[,[,,[[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 Sa(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 Ma(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Sa(e[r],t,n)}!function(){let e,t;for(Ma(ba,1,10),e=0;e<xa.length;e++)if(xa[e])for(t=0;t<xa[e].length;t++)Array.isArray(xa[e][t])&&Ma(xa[e][t])}();const Ca={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=Ca.findSegmentPositionMeetMin(e,t);return Ca.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=Ca.findSegmentPositionMeetMax(e,n);return Ca.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=Ca.findSegmentPositionMeetMaxThenMin(i,s,(i.center+a.center-r)/2),s=i.position+i.radius+r/2;a.position=Ca.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const o=e.length-1;let i,a,s;const l=Math.max(0,e[o].position+e[o].radius-n);if(0===l)return;let c,u=0;for(i=o;i>0&&(a=e[i],s=e[i-1],c=Math.max(0,Ca.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));i--);for(u<l&&(c=Math.max(0,s.position-s.radius-t),c-=Math.max(0,u+c-l),u+=c,s.move=c),u=0,i=0;i<=o;i++)a=e[i],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const o=e.length-1;if(!(o<0))if(0!==o)Ca.layoutPositionFromMin(e,t,n,r),Ca.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=Ca.findSegmentPositionMeetMaxThenMin(r,t,n)}}},wa=(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},ka=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,Ta=e=>e.filter(ka),qa=(e,t)=>Ta(xe.getValue(e,t,[])),Ea=e=>ka(e)&&(!1!==e.showValue||!1!==e.showLabel),La=e=>e.filter(Ea),Na=(e,t)=>La(xe.getValue(e,t,[])),Oa=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,Da=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},Aa=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},Ia=({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},Ra=({value:e,qMin:t})=>"NaN"!==t&&e<t,Pa=({value:e,qMax:t})=>"NaN"!==t&&e>t,za={isRefLineVisible:ka,getVisibleRefLines:Ta,getRefLines:qa,getMeasureRefLines:e=>qa(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:qa(e,"refLine.dimRefLines"),isRefLineLabelVisible:Ea,getVisibleRefLineLabels:La,getRefLineLabels:Na,getMeasureRefLineLabels:e=>Na(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:Na(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=wa(s,o,i,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=wa(s,o,i,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:o})=>{const i=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-i*(s-o)}})({pxScale:s,value:n,innerValues:e,invert:i,minOrder:a})),(void 0===c?s(n):c)+l}return l=wa(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=xe.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():xe.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=xe.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),f=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+f,r=t[d];i[r]||(i[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})():o?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],o=t+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:u[t]},0===t?0===o&&(i[a].isMinOrderOk=!0):a!==e&&(i[a].isMinOrderOk=!0,i[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+f,r=t[d];i[r]||(i[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})(),i},getInputValue:Oa,extractInfoFromInputValue:Da,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Oa({refLineLayout:e,layoutService:n});return Da(r,t,"id")},isDiscreteMinOutOfBounds:Aa,isDiscreteMaxOutOfBounds:Ia,isContinuousMinOutOfBounds:Ra,isContinuousMaxOutOfBounds:Pa,isOutOfRange:({value:e,qMin:t,qMax:n})=>Ra({value:e,qMin:t})||Pa({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&Ia({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&Aa({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},ja=({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(" "),Fa="…";function Ba(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=ja({label:o,labelStyle:t});o.lines=ia.tokenize(o.title,i,`${Fa} ${o.valueString}`,3,n),o.maxNumLines=o.lines.length}}function _a({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=ia.tokenize(e,t,n,r,o),a=i.length;let s="";if(a){[s]=i;for(let e=1;e<a;e++)s=`${s}\n${i[e]}`}return s}function Ha({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=e.map((e=>_a({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 $a(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const Va=3,Wa=2;function Ua({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 Ka=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(za.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(za.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return za.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:za.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},Ga={hasEngineFormat:Ua,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:o,rtl:i,isContinuous:a,isDimension:s}){const l=za.getInvert({orientation:o,rtl:i,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let 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:c,valueInfo:d}=i,m=Ka({label:i,dataPages:u,qMin:f,qMax:p});i.scaledValue=1===m?l?-.1:1.1:-1===m?l?1.1:-.1:za.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),i.center=i.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:o}){let i;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;i=Ua({inputValue:s,inputValueLabel:l,localeInfo:o})?l:t?t(a):a,r.valueString=`${Pe.lrm}(${i})${Pe.lrm}`,r.title=Ga.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=Ua({inputValue:a,inputValueLabel:s,localeInfo:o})?s:r,n.valueString=`${Pe.lrm}(${i})${Pe.lrm}`,n.title=Ga.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];i=n.valueText,n.valueString=`${Pe.lrm}(${i})${Pe.lrm}`,n.title=Ga.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=Ga.getTotalNumLines(e)-r;if(t<=0)return;Ga.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,Ga.measureLabelMaxLineWidth(i,r)),i.height=i.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:o}=r,i=r[t],a=i/2;r.segment={center:o,range:i,min:o-a,max:o+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:o,gap:i,labelStyle:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:f,layoutService:p,isContinuous:m,isDimension:h}){const g=e.map((e=>e)),y=n;Ga.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:u,rtl:f,isContinuous:m,isDimension:h}),$a(e,"center"),Ga.addLabelsNeighborInfo(e,r,o,i),Ba(e,a,s),Ga.reduceTotalMaxNumLines(g,l,o-(g.length-1)*i),"vertical"===u&&(Ga.reduceMaxNumLines(e,l,.05*i),function(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=ja({label:o,labelStyle:t});o.lines.length>o.maxNumLines&&(o.lines=ia.tokenize(o.title,i,`${Fa} ${o.valueString}`,o.maxNumLines,n))}}(e,a,s)),Ga.addLabelsSize(e,s,l,d),Ga.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:o,lineHeight:i=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=o,{fontSize:d,fontFamily: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:_a({title:e.title,font:a,ellipsis:`… ${e.valueString}`}),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:c};return g[l]=u,g[s]=e.segment.position,g.y+=(o-(r-1)/2)*i,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:o,lineHeight:i,background:a}){const{lines:s}=o,{borderRadius:l=Va,padding:c={}}=a,{top:u=Wa,bottom:d=Wa,left:f=Wa,right:p=Wa}=c,m=s.length,h={type:"rect",rx:l,ry:l,fill:o.background.fill,width:o.width+(f+p),height:o.height+(u+d),value:o.value,dock:r};return h[n]=e,h[t]=o.segment.position,h.x-=o.width/2+f,h.y-=m*i/2+u,h}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:i,background:g})),y=y.concat(o)})),y}};function Ya(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 Xa(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 Ga.getMaxTextWidth(e)>i&&(Ba(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,Ga.getMaxTextWidth(e))+n+r}(t,n)}function Ja(e,t){return t?e.domain():[0,1]}function Za(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 Qa(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 es(e,t){return e>9?t[1]:t[0]}function ts({alignment:e,dockValue:t,oobs:n,style:r,rect:o,symbol:i,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:f,minorAxis:p,minorDimension:m,dock:h}=s,g=o[m],y=aa.createOob({oob:aa.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:u>9?"9+":u,title:Ha({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:h};return S[p]=g/2,S[f]=a,[y,x,S]}const ns=e=>{const t=ja({labelStyle:e}),n=ia.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}},rs=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 os={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=rs(this.settings.labels),s=Ya(this.chart,this.settings.formatter,e);Ga.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:i,localeInfo:o});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:o})=>{if(n){const[r,o]=Ja(t,n);return Za(e,r,o)}if(r){const t=o.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return Za(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:i,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:o,fontWeight:i}=n||{};return this.renderer.measureText({text:e,fontWeight:i||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:o||t.label.fontFamily})},u&&u.length){const e=ns(t.label),{dock:n}=this.settings.layout;return Ga.measureLabelsWidth(u,this.measureText),d=Xa(n,u,e),d}const f=Qa(this.measureText),p=l?es(l,f):0,m=c?es(c,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,c=rs(this.settings.labels),{dock:u,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)}(u),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=ns(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:M}=v,C=Ya(this.chart,this.settings.formatter,e),w=y;Ga.addLabelTitles({labels:c,formatter:C,isContinuous:i,canBeContinuous:l,localeInfo:s}),Ga.calculateLabelPositions({labels:c,scale:e,size:w,layoutService:r,orientation:h,rtl:d,isContinuous:i,isDimension:a});const[k,T]=Ja(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:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:f}=Za(e,t,n,c),p="scaledValue"!==c&&za.getInvert({orientation:r,rtl:o,isContinuous:i}),m=function(e,t,n){return n?t:e}(d,u,p),h=function(e,t,n){return n?e:t}(d,u,p),g=m.length,y=h.length,v=Qa(l),b=es(g,v),x=es(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:c,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;$a(E),$a(L);const P=ts({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=ts({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});Ga.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}),Ca.layout(q.map((e=>e.segment)),I,R,n.label.gap);const j=q.filter((e=>Ca.isInside(e.segment,I,R,i)));return Ga.createLabels({labels:j,style:n.label,maxLabelWidth:M,areaProps:p,area:m,lineHeight:x,font:b,theme:o}).concat([...P,...z])}};var is={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 as(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...c}=t,u=de(!0,{},{...n,qHyperCube:{...c,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=is;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(u,e)&&i(u,e,null);else{const e=t[0],n=t[1].split("].")[1];o(u,e,[]).forEach((e=>{void 0!==o(e,n)&&i(e,n,null)}))}})),u}var ss={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return o=>{if(e||t||n){var i;if("line"===o.type)return null!==(i=o.tickValue)&&void 0!==i?i:"axis";if("text"===o.type)return`${o.tickValue} ${o.text}`;if("container"===o.type){const e=o.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${o.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===o.type&&void 0===o.tickValue)return"axis";const e=o.transform&&o.transform.match(/rotate/gi)?"rotated":"horizontal";return`${o.data.group?`${o.data.group.value} `:""}${o.data.value} ${o.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:o}){return({currentNodes:i,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==o&&"bottom"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?i.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?i.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=o):e.transform=`translate(${-r}, ${-o})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=r):(e.x-=r,e.y-=o)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=o,e.y2-=o):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:o/e.major.size,n="y"===e.minor.p?o/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=o;break;case"rect":e.x-=r,e.y-=o;break;case"path":e.transform=`translate(${-r}, ${-o})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.cx-=r,e.cy-=o}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y,i=t.width-n.width,a=t.height-n.height;let s=-r,l=-o;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":i<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":o>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=as(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=as(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:ls,extractInfoFromInputValue:cs,resolveValue:us}=za;var ds={resolveValue:us,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=ls({refLineLayout:e,layoutService:n});return cs(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=ls({refLineLayout:e,layoutService:n});return cs(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:o}=n.meta,i=ls({refLineLayout:e,layoutService:n});return r[i]&&o?r[i].qText:i},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=ls({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:o}=t;return o[r]}};const fs=({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:o,dockService:i,chart:a,scale:s,axis:l,invert:c,component:u,isContinuous:d})=>{var 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=ds.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),m.value=()=>{var e;const o=za.getScaledPosition({scale:a.scale(s),value:ds.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:m.valueInfo,size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===i.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(o)?void 0:o}),m};function ps({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:o,animationsEnabled:i,chart:a,scale:s,axis:l,rtl:c,key:u,mainComponentKey:d,path:f,minimumLayoutMode:p}){const m=e?t.dimensionRefLines:f?t.query.getRefLines(f):t.measureRefLines;if(!m.length)return!1;const h={key:u,type:"ref-line",layout:{minimumLayoutMode:p},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:i,trackBy:ss.lines.trackBy,compensateForLayoutChanges:ss.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==o.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return m.forEach((i=>{h.lines[l].push(fs({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 ms={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},hs=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:o,scale:i,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:f})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:o,formatter:a,scale:i,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:f,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,fontStyle:r.referenceLine.label.name.fontStyle,fontWeight:r.referenceLine.label.name.fontWeight,textDecoration:r.referenceLine.label.name.textDecoration,padding:{top:2,bottom:2,left:c?2:4,right:c?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:ss.refLineLabels.trackBy,compensateForLayoutChanges:ss.refLineLabels.compensateForLayoutChanges}}),gs=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:o,theme:i,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),{align:l,style:c}=e,{fontSize:u,fontFamily:d,fontStyle:f,fontWeight:p,textDecoration:m}=c||{},h={align:l,text:e.label,fill:e.coloredBackground?i.getContrastingColorTo(s):s,fontSize:u,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=()=>ds.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueText=()=>ds.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueInfo=()=>ds.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),h};function ys({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:o,dock:i,scale:a,style:s,formatter:l,theme:c,localeInfo:u,rtl:d,key: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=>gs({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push(hs({isDimension:e,rtl:d,style:de(!0,ms,s),dock:i,key:f,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:o,theme:c,isContinuous:g,localeInfo:u})),h}const vs={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}}},bs=(e,t,n)=>{if(!e)return Promise.resolve();let r=la.generate(t,n);return de(!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()},xs=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))};function Ss(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 Ms={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=xe.getValue(e,`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0`),o=xe.getValue(e,"color");r&&(r.id="colorByExpression",o&&(o.colorExpression=r.qExpression))}},Cs={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"},ws={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"},ks={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"},Ts={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"},qs={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"},Es={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"},Ls={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"},Ns={single:"N",drillDown:"H",cyclic:"C"},Os={N:void 0,H:Cs,C:ks},Ds=(e,t)=>{switch(e.qGrouping){case Ns.single:return;case Ns.drillDown:return{path:Cs,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case Ns.cyclic:return{path:t?ws:ks,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 As(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=la.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 Is(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=de(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),As(e,a,c)}))}function Rs(e){return e.qGrouping===Ns.single?e.qFallbackTitle||"":e.title||""}const Ps=async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case Ns.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:Cs,groupItem:!0,title:e.title,selected:!1,children:n}}case Ns.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:ks,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:Rs(e)}}},zs=(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))},js=async(e,t,n,r,o)=>{const i=await zs(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===Ns.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=Os[s],c=s!==Ns.single;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){Is(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function Fs({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===Ns.single;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await Ps(l,o,a,e),n=c?await js(a,o,r,i,s):[];return(u||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function Bs(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Ns.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:Ds(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===Ns.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:Rs(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function _s({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await zs(n,t),u=t.filter((e=>!o.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){Is(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function Hs(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function $s(){return $s=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},$s.apply(null,arguments)}var Vs={exports:{}};function Ws(){}function Us(){}Us.resetWarningCache=Ws;Vs.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Us,resetWarningCache:Ws};return n.PropTypes=n,n}();var Ks=ee(Vs.exports),Gs={black:"#000",white:"#fff"},Ys={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"},Xs={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"},Js={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"},Zs={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"},Qs={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"},el={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"},tl={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 nl(){return nl=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},nl.apply(this,arguments)}function rl(e){return rl="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},rl(e)}function ol(e){return e&&"object"===rl(e)&&e.constructor===Object}function il(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?nl({},e):e;return ol(e)&&ol(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(ol(t[o])&&o in e?r[o]=il(e[o],t[o],n):r[o]=t[o])})),r}function al(e){var t=function(e,t){if("object"!=rl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rl(t)?t:t+""}function sl(e,t,n){return(t=al(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ll(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 cl(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 ul(e){if(e.type)return e;if("#"===e.charAt(0))return ul(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(ll(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 dl(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 fl(e){var t="hsl"===(e=ul(e)).type?ul(function(e){var t=(e=ul(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])),dl({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 pl(e,t){return e=ul(e),t=cl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,dl(e)}function ml(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 hl(e,t){if(null==e)return{};var n,r,o=ml(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 gl=["xs","sm","md","lg","xl"];function yl(e,t,n){var r;return nl({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")),nl({paddingLeft:t(2),paddingRight:t(2)},n,sl({},e.up("sm"),nl({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},sl(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),sl(r,e.up("sm"),{minHeight:64}),r)},n)}var vl={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:Gs.white,default:tl[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}},bl={text:{primary:Gs.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:tl[800],default:"#303030"},action:{active:Gs.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 xl(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=ul(e),t=cl(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 dl(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=ul(e),t=cl(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 dl(e)}(e.main,i)))}function Sl(e){var t=e.primary,n=void 0===t?{light:Js[300],main:Js[500],dark:Js[700]}:t,r=e.secondary,o=void 0===r?{light:Xs.A200,main:Xs.A400,dark:Xs.A700}:r,i=e.error,a=void 0===i?{light:Ys[300],main:Ys[500],dark:Ys[700]}:i,s=e.warning,l=void 0===s?{light:el[300],main:el[500],dark:el[700]}:s,c=e.info,u=void 0===c?{light:Zs[300],main:Zs[500],dark:Zs[700]}:c,d=e.success,f=void 0===d?{light:Qs[300],main:Qs[500],dark:Qs[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=hl(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=fl(e),r=fl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,bl.text.primary)>=g?bl.text.primary:vl.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=nl({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(ll(4,t));if("string"!=typeof e.main)throw new Error(ll(5,JSON.stringify(e.main)));return xl(e,"light",n,v),xl(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},M={dark:bl,light:vl};return il(nl({common:Gs,type:m,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(f),grey:tl,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},M[m]),b)}function Ml(e){return Math.round(1e5*e)/1e5}function Cl(e){return Ml(e)}var wl={textTransform:"uppercase"},kl='"Roboto", "Helvetica", "Arial", sans-serif';function Tl(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?kl:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,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=hl(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 nl({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===kl?{letterSpacing:"".concat(Ml(r/t),"em")}:{},i,y)},C={h1:M(l,96,1.167,-1.5),h2:M(l,60,1.2,-.5),h3:M(u,48,1.167,0),h4:M(u,34,1.235,.25),h5:M(u,24,1.334,0),h6:M(f,20,1.6,.15),subtitle1:M(u,16,1.75,.15),subtitle2:M(f,14,1.57,.1),body1:M(u,16,1.5,.15),body2:M(u,14,1.43,.15),button:M(f,14,1.75,.4,wl),caption:M(u,12,1.66,.4),overline:M(u,12,2.66,1,wl)};return il(nl({htmlFontSize:g,pxToRem:S,round:Cl,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:f,fontWeightBold:m},C),b,{clone:!1})}function ql(){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 El=["none",ql(0,2,1,-1,0,1,1,0,0,1,3,0),ql(0,3,1,-2,0,2,2,0,0,1,5,0),ql(0,3,3,-2,0,3,4,0,0,1,8,0),ql(0,2,4,-1,0,4,5,0,0,1,10,0),ql(0,3,5,-1,0,5,8,0,0,1,14,0),ql(0,3,5,-1,0,6,10,0,0,1,18,0),ql(0,4,5,-2,0,7,10,1,0,2,16,1),ql(0,5,5,-3,0,8,10,1,0,3,14,2),ql(0,5,6,-3,0,9,12,1,0,3,16,2),ql(0,6,6,-3,0,10,14,1,0,4,18,3),ql(0,6,7,-4,0,11,15,1,0,4,20,3),ql(0,7,8,-4,0,12,17,2,0,5,22,4),ql(0,7,8,-4,0,13,19,2,0,5,24,4),ql(0,7,9,-4,0,14,21,2,0,5,26,4),ql(0,8,9,-5,0,15,22,2,0,6,28,5),ql(0,8,10,-5,0,16,24,2,0,6,30,5),ql(0,8,11,-5,0,17,26,2,0,6,32,5),ql(0,9,11,-5,0,18,28,2,0,7,34,6),ql(0,9,12,-6,0,19,29,2,0,7,36,6),ql(0,10,13,-6,0,20,31,3,0,8,38,7),ql(0,10,13,-6,0,21,33,3,0,8,40,7),ql(0,10,14,-6,0,22,35,3,0,8,42,7),ql(0,11,14,-7,0,23,36,3,0,9,44,8),ql(0,11,15,-7,0,24,38,3,0,9,46,8)],Ll={borderRadius:4};function Nl(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 Ol(e,t){if(e){if("string"==typeof e)return Nl(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)?Nl(e,t):void 0}}function Dl(e){return function(e){if(Array.isArray(e))return Nl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ol(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 Al(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){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){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Ol(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 Il(){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 Rl={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)"},Pl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zl(e){return"".concat(Math.round(e),"ms")}var jl={easing:Rl,duration:Pl,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?Pl.standard:n,o=t.easing,i=void 0===o?Rl.easeInOut:o,a=t.delay,s=void 0===a?0:a;return hl(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:zl(r)," ").concat(i," ").concat("string"==typeof s?s:zl(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))}},Fl={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Bl(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=hl(e,["breakpoints","mixins","palette","spacing","typography"]),d=Sl(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=hl(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=gl.indexOf(t);return r===gl.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[gl[r+1]]?n[gl[r+1]]:t)-a/100).concat(o,")")}return nl({keys:gl,values:n,up:l,down:function(e){var t=gl.indexOf(e)+1,r=n[gl[t]];return t===gl.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),p=Il(s),m=il({breakpoints:f,direction:"ltr",mixins:yl(f,p,o),overrides:{},palette:d,props:{},shadows:El,typography:Tl(d,c),spacing:p,shape:Ll,transitions:jl,zIndex:Fl},u),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 il(e,t)}),m)}var _l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Hl=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function $l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Hl.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(c()):i}return"".concat(s).concat(o).concat(c())}}function Vl(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 Wl="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},Ul="object"===("undefined"==typeof window?"undefined":Wl(window))&&"object"===("undefined"==typeof document?"undefined":Wl(document))&&9===document.nodeType;function Kl(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,al(r.key),r)}}function Gl(e,t,n){return t&&Kl(e.prototype,t),n&&Kl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yl(e,t){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yl(e,t)}function Xl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yl(e,t)}function Jl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Zl={}.constructor;function Ql(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Ql);if(e.constructor!==Zl)return e;var t={};for(var n in e)t[n]=Ql(e[n]);return t}function ec(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=Ql(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var tc=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},nc=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+=tc(e[n]," ");else t=tc(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function rc(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function oc(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function ic(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=rc(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=oc(f+":"+c+nc(p)+";",i))}}else for(var m in a){var h=a[m];null!=h&&(r&&(r+=l),r+=oc(m+":"+c+nc(h)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=oc(g+":"+c+nc(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),oc(""+e+c+"{"+r,--i)+oc("}",i)):r}var ac=/([[\].#*$><+~=|^:(),"'`\s])/g,sc="undefined"!=typeof CSS&&CSS.escape,lc=function(e){return sc?sc(e):e.replace(ac,"\\$1")},cc=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}(),uc=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(Jl(Jl(o)),s),o.selectorText="."+lc(o.id)),o}Xl(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]=nc(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?nl({},e,{allowEmpty:!0}):e;return ic(this.selectorText,this.style,n)},Gl(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}(cc),dc={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new uc(e,t,n)}},fc={indent:1,children:!0},pc=/@([\w-]+)/,mc=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(pc);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new jc(nl({},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=fc);var t=rc(e).linebreak;if(null==e.indent&&(e.indent=fc.indent),null==e.children&&(e.children=fc.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),hc=/@container|@media|@supports\s+/,gc={onCreateRule:function(e,t,n){return hc.test(e)?new mc(e,t,n):null}},yc={indent:1,children:!0},vc=/@keyframes\s+([\w-]+)/,bc=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(vc);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:lc(a(this,i)),this.rules=new jc(nl({},n,{parent:this})),t)this.rules.add(s,t[s],nl({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=yc);var t=rc(e).linebreak;if(null==e.indent&&(e.indent=yc.indent),null==e.children&&(e.children=yc.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}(),xc=/@keyframes\s+/,Sc=/\$([\w-]+)/g,Mc=function(e,t){return"string"==typeof e?e.replace(Sc,(function(e,n){return n in t?t[n]:e})):e},Cc=function(e,t,n){var r=e[t],o=Mc(r,n);o!==r&&(e[t]=o)},wc={onCreateRule:function(e,t,n){return"string"==typeof e&&xc.test(e)?new bc(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Cc(e,"animation-name",n.keyframes),"animation"in e&&Cc(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 Mc(e,r.keyframes);default:return e}}},kc=function(e){function t(){return e.apply(this,arguments)||this}return Xl(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?nl({},e,{allowEmpty:!0}):e;return ic(this.key,this.style,n)},t}(cc),Tc={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new kc(e,t,n):null}},qc=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=rc(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=ic(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return ic(this.at,this.style,e)},e}(),Ec=/@font-face/,Lc={onCreateRule:function(e,t,n){return Ec.test(e)?new qc(e,t,n):null}},Nc=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 ic(this.key,this.style,e)},e}(),Oc={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Nc(e,t,n):null}},Dc=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}(),Ac={"@charset":!0,"@import":!0,"@namespace":!0},Ic={onCreateRule:function(e,t,n){return e in Ac?new Dc(e,t,n):null}},Rc=[dc,gc,wc,Tc,Lc,Oc,Ic],Pc={process:!0},zc={force:!0,process:!0},jc=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=nl({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+lc(this.classes[d]));var f=ec(d,t,u);if(!f)return null;this.register(f);var p=void 0===u.index?this.index.length:u.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=nl({},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 uc?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof bc&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof uc?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof bc&&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=Pc);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,zc)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,zc)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=rc(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}(),Fc=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=nl({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new jc(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}(),Bc=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}(),_c=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=ml(t,["attached"]),o=rc(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},Gl(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Hc=new _c,$c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Vc="2f1acc6c3a606b082e5eef5e54414ffb";null==$c[Vc]&&($c[Vc]=0);var Wc=$c[Vc]++,Uc=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")+Wc+o+t:i+n.key+"-"+Wc+(o?"-"+o:"")+"-"+t}},Kc=function(e){var t;return function(){return t||(t=e()),t}},Gc=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Yc=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=nc(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},Xc=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Jc=function(e,t){return e.selectorText=t,e.selectorText===t},Zc=Kc((function(){return document.querySelector("head")}));function Qc(e){var t=Hc.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=Zc(),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 eu=Kc((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),tu=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]},nu=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ru=function(){function e(e){this.getPropertyValue=Gc,this.setProperty=Yc,this.removeProperty=Xc,this.setSelector=Jc,this.hasInsertedRules=!1,this.cssRules=[],e&&Hc.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=eu();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=Qc(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 Zc().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=nu(n,t);if(!1===(o=tu(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=nu(n,t),l=tu(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 Fc&&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}(),ou=0,iu=function(){function e(e){this.id=ou++,this.version="10.10.0",this.plugins=new Bc,this.options={id:{minify:!1},createGenerateId:Uc,Renderer:Ul?ru:null,plugins:[]},this.generateId=Uc({minify:!1});for(var t=0;t<Rc.length;t++)this.plugins.use(Rc[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=nl({},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===Hc.index?0:Hc.index+1);var r=new Fc(e,nl({},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(),Hc.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=nl({},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=ec(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}(),au=function(e){return new iu(e)},su="object"==typeof CSS&&null!=CSS&&"number"in CSS;function lu(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=lu(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,c,u,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,c=e.storage,u=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(Hd,{generateClassName:t},b.createElement(If,{theme:Dm},e))}(e,Am),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&&xe.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}function n(e){return e.isDimension&&xe.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:c,onChangeToAlternative:u,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?Fs:_s,k=s?Bs:Hs,T=Boolean(c&&c.colorSupport&&c.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,c,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:Om(y),model:c,onChange:u,skipAttributeExpressions:m,translator:h,allowChangeOfAlternatives:T}):void 0;return b.createElement(b.Fragment,{key:t.cId},b.createElement(Nm,{chartId:null!==(o=null==c?void 0:c.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:S,titleData:a,model:c,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(Fw),e.renderer("react-qcm",qw),e.component("box-sliced-hat",zw),e.component("box-out-of-bounds",Dw),e.component("disclaimer",Mw),e.component("scrollbar",dy),e.component("scroll-hint",ta),e.component("reference-line-labels",os),e.component("axis-overlay",wg.picassoComponents.axisOverlay),e.component("time-axis",wg.picassoComponents.timeAxis),e.scale("q-time-axis",wg.picassoScales.time),e}();return{qae:bk(e),ext:FL(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(xk).forEach((t=>{e.add(xk[t])}))}}(e.translator);const i=L(),a=N(),[s,l]=O(),c=D(),u=A(),{qLocaleInfo:d}=u;return I((()=>{l({translator:o,theme:a,embed:i,deviceType:c,localeInfo:d,isUnsupportedFeature:r,flags:n})}),[d,r,o.language(),a.name(),c]),s}({env:e}),{viewState:n,viewCache:r}=function(){const[e]=O((()=>l())),[t]=O((()=>c({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:e,viewState:t}}(),u=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(),c=B(),u=_(),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,c]=O(!1),[u,d]=O({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),f=e=>{c("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:IT,hidden:!a||!o||i,active:l,action:f})),[o,i,l,a,r.language()]),{get:()=>u,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=>RT(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=_T({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:jT,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=HT(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)&&!ss.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=UT({layoutService:q}),A=g({theme:f,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),I=function({layoutService:e,themeService:t}){const n=t.getStyles(),r=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,o,i,a,s;return{fontFamily:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.axis.title.fontFamily,fontSize:null!==(o=null===(i=r("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==o?o:n.axis.title.fontSize,color:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.axis.title.color}}},label:{getStyle:()=>{var e,t,o,i,a,s;return{fill:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.axis.label.name.color,fontSize:null!==(o=null===(i=r("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.fontSize)&&void 0!==o?o:n.axis.label.name.fontSize,fontFamily:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:n.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,o,i,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.title.fontFamily,fontSize:null!==(o=null===(i=r("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==o?o:n.legend.title.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.title.color}}},label:{getStyle:()=>{var e,t,o,i,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.label.fontFamily,fontSize:null!==(o=null===(i=r("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.label)||void 0===i?void 0:i.fontSize)&&void 0!==o?o:n.legend.label.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.label.color}}}},label:{getStyle:()=>{var e,t,o,i,a,s,l,c;return{fill:null!==(e=null===(t=r("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.label.value.color,useContrastColor:null===(o=null===(i=r("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.useContrastColor)||void 0===o||o,fontSize:null!==(a=null===(s=r("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontSize)&&void 0!==a?a:n.label.value.fontSize,fontFamily:null!==(l=null===(c=r("label"))||void 0===c||null===(c=c.label)||void 0===c||null===(c=c.value)||void 0===c?void 0:c.fontFamily)&&void 0!==l?l:n.label.value.fontFamily}}}}}({layoutService:q,themeService:A}),R=wg.model({model:c,layoutService:q,viewCache:i,viewState:r}),P=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(Te).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),o=t.getHyperCubeValue("qDimensionInfo"),i="K"===r&&o.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=i?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:o.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:i?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,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),c=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}),u={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:()=>u,update(e){var r;c.should(e)&&c(e),u.mode=de(u.mode,t.meta),u.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,u.mode.isStackedByDimension=u.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),u.mode.isStackedByMeasure=u.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),u.fields={major:u.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:u.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},u.scales={major:zT.SCALE.REDUCED.MAJOR,minor:zT.SCALE.REDUCED.MINOR},u.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=de(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=u.cube}}}({enigma:c,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 z=VT({picasso:e,model:c,app:u,translator:v,localeInfo:S,theme:f,continuousDataModel:R,layoutService:q,legendLayoutService:E,reducedDataModel:P}),j=hT({layoutService:q,viewState:r,colorModel:{settings:()=>z.getMain().getSettings(),resolveUIColor:e=>z.getMain().getPaletteColor(e)},chart:t,env:n,keys:{colorScale:zT.SCALE.MAIN.COLOR},isEnabled:()=>!q.meta.isGroupedByDimension&&(!q.meta.isStackedByDimension||C.isEnabled("TRENDLINES_STACKED_DIM"))&&!q.meta.isDimensionless});lk.attrExpr.updateProperties(c,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:ek,miniChartToken:{},embed:s}}({layout:a,app:u,model:c,picasso:e,chart:t,translator:v,localeInfo:S,embed:w,extractDimsAndNode:FT.extractDimsAndNode});let B;q.meta.isDiscrete&&(B=function({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:a,trendLineModel:c,itemWidths:u,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 Ek;case"K":return Lk;case"T":return Nk}}({qMode:i.getHyperCubeValue("qMode")}),S=function({state:e,contains:t}){return e.set(Ok,[]),{add:t=>{const n=e.get(Ok);n.length=0,n.push(t)},getCurrent:()=>e.get(Ok)[0],getAll:()=>e.get(Ok),contains:n=>t(e.get(Ok)[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=jk,definitionPath:i,processDataPage:a}){const{slicer:l,cacheWarden:c,request:u}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:o,process:i,connectionless:a,processDataPage:s}){const l=(l,{onProcessing:c}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const o=n.release(r.qArea,l),s=i.isProcessing();if(!o&&s&&i.cancel(),!o||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());i.isProcessing()&&c&&c();const u=r(l);return i(o(u)).then((n=>(s(n),e.add(n),t(n,l))))};return l}({dataStore:e,slice:l,warden:c({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:Pk({layoutService:r}),request:u({definitionPath:i}),process:zk(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!==Sk)throw e}))}),kk);return function(e,{onProcessing:t=Mk,onDataPage:n=Mk}={}){f(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),o.command.update(),n(e)}})}}({dataStore:S,composition:x,enigmaModel:r,layoutService:i,trendLineModel:c,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:c,renderer:u,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:c}){const{inTotal:u,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;if(t)return Fk;if(!n)return Bk;return r?Vk:Gk}({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=u({layoutService:r});return{inTotal:l,inView:Yk({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(Ck/(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&&c?function(e){return[1-e[1],1-e[0]]}(i):i},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=h(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*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:c,renderer:u,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}),c=g({pixelOffset:a,items:i});f.preventSet("viewRange",m.getViewRange({pixelOffset:c.start.pixel,items:i}));const u=m.getArea({itemOffset:c.start.item,items:i});return new Promise((e=>{o(u,{onDataPage:()=>{n.set("scaleRange",m.getScaleRange({offsets:c.start,items:i})),f.preventSet("scrollOffset",{start:c.start.item,end:c.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:u,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:[Ik({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:Rk({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:zT.COMPONENT.BAR,enigmaModel:c,layoutService:q,dockService:O,trendLineModel:j,itemWidths:PT,viewState:r,rtl:"rtl"===T,options:{axisKey:zT.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=we.dimensionless(i),l=za.getMeasureRefLines(i),c=za.getDimensionRefLines(i,s),u=za.getMeasureRefLineLabels(i),d=za.getDimensionRefLineLabels(i,s);let f={},p={};const m=t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:o}=n;return za.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 za.isOutOfDataPages({label:n,dataPages:o})}return!0},g=()=>!(!c||!c.length)&&!c.every((t=>{const n=za.getInputValue({refLineLayout:t,layoutService:e});return m(n)||h(n)})),y={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:p,dimensionValuesInfo:f,query:{getRefLines:e=>za.getRefLines(i,e),getRefLineLabels:e=>za.getRefLineLabels(i,e)},update:()=>{p=y.dimensionRefLineInfo,g()&&(f=za.getDimensionValuesInfo({layout:i,canBeContinuous:r,discreteModel:t,layoutService:e}),y.dimensionValuesInfo=f,c.forEach((t=>{const n=za.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:zT.SCALE.MAIN.MINOR,MAJOR:zT.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:zT.COMPONENT.BAR,BAR_AXIS:zT.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:zT.COLLECTION.MAIN}}};return t}(q),$=y({picassoInstance:e,plugins:d||[],pluginArgs:H});k.setContext({discrete:B,layoutService:q}),b({discrete:B,continuous:wg,legendLayoutService:E,layoutService:q,viewModel:N,dockService:O,themeService:A,styleService:I,continuousDataModel:R,reducedDataModel:P,colorService:z,trendLineModel:j,refLineModel:_,pluginService:$,customTooltipModel:F,selectionService:M,logicalSize:L,disclaimerService:D})}),[M,p,n,a]),v}({picasso:i,chart:u,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=de(!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=de(!0,{},e),l=de(!0,{},t);return a.exclude=!hL(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=!hL(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,c=[];return a||c.push(o.getEffectiveProperties()),Promise.all(c).then((async e=>{const t=e[0]||void 0;if(null!=t&&t.qHyperCubeDef){const e=n.getLayout(),a=de(!0,{},t);if(gL({properties:t,layout:e,isStacked:s,isContinuous:l,model:o,layoutService:n}))return i.pending(),xs(e)?o.setProperties(t).then((()=>{r.clearUndoBuffer()})):void await bs(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:c}=W(),u=B(),d=$(),f=P(),[p,m]=O(),[h,g]=O(),[y,v]=O(),[b,x]=O(),S=_();function M(s={}){const{selectionService:l,refLineModel:c,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:u,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:c,pluginService:v,styleService:q,disclaimerService:E,...s};return dL(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:c,refLineModel:u,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==c||null===(a=c.custom)||void 0===a||!a.getActions())return Promise.resolve();const{properties:C}=s,w=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}));w&&(S.useCustomTooltip=!1);const k=()=>{x(Date.now()),b.animations.isPartialUpdating=!0},T=()=>{g&&g.setDataPages([d.query.getCurrentDataPage()]),u&&u.update(),k()};o.onChanged("scrollOffset",T),o.onChanged("legendScrollOffset",k),o.intercept("zoom",f.event.onZoomIntercept({viewCache:i})),o.onChanged("zoom",f.event.onZoomChange({layoutService:l,continuousDataModel:m},k)),c.setLayout(l.getLayout());const q=[];l.meta.isContinuous&&(m.update(l.getLayout()),q.push(m.initialFetch())),h.command.update(),q.push(p.fetch().then((({reducedCube:e})=>{p.update(e)}))),M.initialize(),q.push(Promise.resolve({properties:s.properties}));const E=()=>[v.initialize(),y.initialize(),pq({reducedDataModel:p,layoutService:l,continuousDataModel:m,trendLineModel:h})];return Promise.all(q).then((e=>Promise.all(E()).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:c,colorService:u,viewModel:d}=n;i.set("minorMinMax",k);const f=()=>!t.meta.isContinuous&&(a.model().mode.isReduced||t.meta.isStacked)&&c,p=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():a.model().cube,{field:y}=u.getMain().getSettings(),v=f(),b=v?c.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=[],c=[];const u=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:u}}),prepPicassoData(o){const i=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:u}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:u}},...o];return n&&i.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:u}}),a.query.hasTrendLines()&&i.push({key:"trend",data:a.query.getData()}),i},extractDataPages(){l=e[s],c=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=c}}}({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(),ss.cacheProperties({viewCache:i,layout:e.getLayout()})}))}),[y]),I((()=>{if(!(l&&c&&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:c}),i.setTheme(r.theme),C().then((()=>{t.update&&t.update()}))}),[l,c]),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:u,services:d,environment:t,viewState:n,viewCache:r,bootstrapped:f}),fL({environment:t,services:d,chart:u,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=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=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(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function 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=Object.prototype.hasOwnProperty,re=Object.prototype.toString,oe=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ae=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===re.call(e)},se=function(e){if(!e||"[object Object]"!==re.call(e))return!1;var t,n=ne.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ne.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ne.call(e,t)},le=function(e,t){oe&&"__proto__"===t.name?oe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ce=function(e,t){if("__proto__"===t){if(!ne.call(e,t))return;if(ie)return ie(e,t).value}return e[t]},ue=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ce(s,n),s!==(o=ce(t,n))&&(u&&o&&(se(o)||(i=ae(o)))?(i?(i=!1,a=r&&ae(r)?r:[]):a=r&&se(r)?r:{},le(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&le(s,{name:n,newValue:o}));return s},de=ee(ue);const fe=[["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}]],pe={};fe.forEach((([e,{width:t,height:n}])=>{pe[e]={width:t,height:n}}));const me={getLayoutModes:()=>pe,getLayoutMode(e,t){let n;for(n=0;n<fe.length;++n)if(e>=fe[n][1].width&&t>=fe[n][1].height)return fe[n][0];return"SPARK"}};function he(e,t){return{layoutModes:me.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 ge=["$date","$timestamp","$time"],ye=["D","TS","T"],ve={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>ge.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&ye.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(ve.hasTimeTag(t)&&ve.hasUnknownFormat(t)||ve.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&ve.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&ve.canBeContinuousDimension(r[0])},maxNumberOfLines:12},be=/^[A-Z][A-z0-9_]*$/i,xe={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},getValue:(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||be.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},Se=e=>xe.getValue(e,"qHyperCube.qDimensionInfo",[]),Me=e=>xe.getValue(e,"qHyperCube.qMeasureInfo",[]),Ce=e=>xe.getValue(e,"barGrouping.grouping"),we={continuous:(e,t=!1)=>!!ve.canBeContinuous(e)&&(xe.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!Se(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===Ce(e)&&(Se(e).length>1||Me(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&Se(e).length>1&&1===Me(e).length},groupedByMeasure(e){return this.grouped(e)&&1===Se(e).length&&Me(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==Ce(e)||this.continuous(e))&&(Se(e).length>1||Me(e).length>1)},stackedByDimension(e){return this.stacked(e)&&Se(e).length>1&&1===Me(e).length},stackedByMeasure(e){return this.stacked(e)&&1===Se(e).length&&Me(e).length>1},simple:e=>0===Se(e).length||1===Se(e).length&&1===Me(e).length,snapshot:e=>!!xe.getValue(e,"snapshotData")};function ke(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Te=e=>{throw e.isHandled=!0,e};const qe={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?qe.getVerticalDock(t):n?qe.getOppositeDock(qe.getHorizontalDock(t)):qe.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 Ee=(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 Le={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=Le.getCharacterRatios(e[n]),r.latin+=o.latin,r.cjk+=o.cjk})):e.forEach((e=>{o=Le.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=Le.getTotalCharacterRatios(t,n,r),i=o.latinRatio*e,a=o.cjkRatio*e;return Math.ceil(Le.stringWidthOverMWidth(i)+1.0909090909090908*a)}},Ne="#la-vie-tooltip";function Oe(){if(!document.querySelector(Ne)){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 De({key:e="tooltip",rtl:t}){return{show:!0,key:e,type:"tooltip",layout:{displayOrder:3},beforeMount(){Oe()},beforeUpdate(){Oe()},destroyed(){!function(){const e=document.querySelector(Ne);e&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)}()},settings:{appendTo:()=>document.querySelector(Ne),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 Ae=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Ie=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),Re=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Pe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Ae.test(e),isRtlChar:e=>Ie.test(e)||Re.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Pe.isLtrChar(r))return"ltr";if(Pe.isRtlChar(r))return"rtl"}return"ltr"}},ze={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?ze.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=Pe.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=Pe.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:Pe.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=Pe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=Pe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,ze.getColorSymbol(e,t)]:[ze.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=Pe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Pe.detectTextDirection(e.value);let l;return l=o?r?[e.value,ze.getColorSymbol(t,n)]:[ze.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 je(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Fe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Be(){}var _e=.7,He=1/_e,$e="\\s*([+-]?\\d+)\\s*",Ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",We="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ue=/^#([0-9a-f]{3,8})$/,Ke=new RegExp(`^rgb\\(${$e},${$e},${$e}\\)$`),Ge=new RegExp(`^rgb\\(${We},${We},${We}\\)$`),Ye=new RegExp(`^rgba\\(${$e},${$e},${$e},${Ve}\\)$`),Xe=new RegExp(`^rgba\\(${We},${We},${We},${Ve}\\)$`),Je=new RegExp(`^hsl\\(${Ve},${We},${We}\\)$`),Ze=new RegExp(`^hsla\\(${Ve},${We},${We},${Ve}\\)$`),Qe={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 et(){return this.rgb().formatHex()}function tt(){return this.rgb().formatRgb()}function nt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?rt(t):3===n?new at(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ot(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ot(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=Ke.exec(e))?new at(t[1],t[2],t[3],1):(t=Ge.exec(e))?new at(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ye.exec(e))?ot(t[1],t[2],t[3],t[4]):(t=Xe.exec(e))?ot(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Je.exec(e))?ft(t[1],t[2]/100,t[3]/100,1):(t=Ze.exec(e))?ft(t[1],t[2]/100,t[3]/100,t[4]):Qe.hasOwnProperty(e)?rt(Qe[e]):"transparent"===e?new at(NaN,NaN,NaN,0):null}function rt(e){return new at(e>>16&255,e>>8&255,255&e,1)}function ot(e,t,n,r){return r<=0&&(e=t=n=NaN),new at(e,t,n,r)}function it(e){return e instanceof Be||(e=nt(e)),e?new at((e=e.rgb()).r,e.g,e.b,e.opacity):new at}function at(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function st(){return`#${dt(this.r)}${dt(this.g)}${dt(this.b)}`}function lt(){const e=ct(this.opacity);return`${1===e?"rgb(":"rgba("}${ut(this.r)}, ${ut(this.g)}, ${ut(this.b)}${1===e?")":`, ${e})`}`}function ct(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ut(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dt(e){return((e=ut(e))<16?"0":"")+e.toString(16)}function ft(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new mt(e,t,n,r)}function pt(e){if(e instanceof mt)return new mt(e.h,e.s,e.l,e.opacity);if(e instanceof Be||(e=nt(e)),!e)return new mt;if(e instanceof mt)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 mt(a,s,l,e.opacity)}function mt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ht(e){return(e=(e||0)%360)<0?e+360:e}function gt(e){return Math.max(0,Math.min(1,e||0))}function yt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}je(Be,nt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:et,formatHex:et,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return pt(this).formatHsl()},formatRgb:tt,toString:tt}),je(at,(function(e,t,n,r){return 1===arguments.length?it(e):new at(e,t,n,null==r?1:r)}),Fe(Be,{brighter(e){return e=null==e?He:Math.pow(He,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?_e:Math.pow(_e,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new at(ut(this.r),ut(this.g),ut(this.b),ct(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:st,formatHex:st,formatHex8:function(){return`#${dt(this.r)}${dt(this.g)}${dt(this.b)}${dt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lt,toString:lt})),je(mt,(function(e,t,n,r){return 1===arguments.length?pt(e):new mt(e,t,n,null==r?1:r)}),Fe(Be,{brighter(e){return e=null==e?He:Math.pow(He,e),new mt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?_e:Math.pow(_e,e),new mt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new at(yt(e>=240?e-240:e+120,o,r),yt(e,o,r),yt(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new mt(ht(this.h),gt(this.s),gt(this.l),ct(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ct(this.opacity);return`${1===e?"hsl(":"hsla("}${ht(this.h)}, ${100*gt(this.s)}%, ${100*gt(this.l)}%${1===e?")":`, ${e})`}`}}));const vt=Math.PI/180,bt=180/Math.PI,xt=.96422,St=1,Mt=.82521,Ct=4/29,wt=6/29,kt=3*wt*wt,Tt=wt*wt*wt;function qt(e){if(e instanceof Et)return new Et(e.l,e.a,e.b,e.opacity);if(e instanceof It)return Rt(e);e instanceof at||(e=it(e));var t,n,r=Dt(e.r),o=Dt(e.g),i=Dt(e.b),a=Lt((.2225045*r+.7168786*o+.0606169*i)/St);return r===o&&o===i?t=n=a:(t=Lt((.4360747*r+.3850649*o+.1430804*i)/xt),n=Lt((.0139322*r+.0971045*o+.7141733*i)/Mt)),new Et(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Et(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Lt(e){return e>Tt?Math.pow(e,1/3):e/kt+Ct}function Nt(e){return e>wt?e*e*e:kt*(e-Ct)}function Ot(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function At(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof It)return new It(e.h,e.c,e.l,e.opacity);if(e instanceof Et||(e=qt(e)),0===e.a&&0===e.b)return new It(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*bt;return new It(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new It(e,t,n,null==r?1:r)}function It(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Rt(e){if(isNaN(e.h))return new Et(e.l,0,0,e.opacity);var t=e.h*vt;return new Et(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}je(Et,(function(e,t,n,r){return 1===arguments.length?qt(e):new Et(e,t,n,null==r?1:r)}),Fe(Be,{brighter(e){return new Et(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Et(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new at(Ot(3.1338561*(t=xt*Nt(t))-1.6168667*(e=St*Nt(e))-.4906146*(n=Mt*Nt(n))),Ot(-.9787684*t+1.9161415*e+.033454*n),Ot(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),je(It,At,Fe(Be,{brighter(e){return new It(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new It(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Rt(this).rgb()}}));var Pt={isDark:function(e){return At(e).l<70}};function zt(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function jt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ft(e){return 1===e.length&&(e=function(e){return function(t,n){return jt(e(t),n)}}(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}var Bt=Ft(jt).right,_t=Math.sqrt(50),Ht=Math.sqrt(10),$t=Math.sqrt(2);function Vt(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>=_t?10:i>=Ht?5:i>=$t?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=_t?10:i>=Ht?5:i>=$t?2:1)}function Wt(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>=_t?o*=10:i>=Ht?o*=5:i>=$t&&(o*=2),t<e?-o:o}function Ut(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Kt="$";function Gt(){}function Yt(e,t){var n=new Gt;if(e instanceof Gt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Xt(){}Gt.prototype=Yt.prototype={constructor:Gt,has:function(e){return Kt+e in this},get:function(e){return this[Kt+e]},set:function(e,t){return this[Kt+e]=t,this},remove:function(e){var t=Kt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Kt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Kt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Kt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Kt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Kt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Kt)return!1;return!0},each:function(e){for(var t in this)t[0]===Kt&&e(this[t],t.slice(1),this)}};var Jt=Yt.prototype;Xt.prototype={constructor:Xt,has:Jt.has,add:function(e){return this[Kt+(e+="")]=e,this},remove:Jt.remove,clear:Jt.clear,values:Jt.keys,size:Jt.size,empty:Jt.empty,each:Jt.each};var Zt=Array.prototype,Qt=Zt.map,en=Zt.slice;function tn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function nn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function rn(){}var on=.7,an=1/on,sn="\\s*([+-]?\\d+)\\s*",ln="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",cn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",un=/^#([0-9a-f]{3})$/,dn=/^#([0-9a-f]{6})$/,fn=new RegExp("^rgb\\("+[sn,sn,sn]+"\\)$"),pn=new RegExp("^rgb\\("+[cn,cn,cn]+"\\)$"),mn=new RegExp("^rgba\\("+[sn,sn,sn,ln]+"\\)$"),hn=new RegExp("^rgba\\("+[cn,cn,cn,ln]+"\\)$"),gn=new RegExp("^hsl\\("+[ln,cn,cn]+"\\)$"),yn=new RegExp("^hsla\\("+[ln,cn,cn,ln]+"\\)$"),vn={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 bn(e){var t;return e=(e+"").trim().toLowerCase(),(t=un.exec(e))?new wn((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=dn.exec(e))?xn(parseInt(t[1],16)):(t=fn.exec(e))?new wn(t[1],t[2],t[3],1):(t=pn.exec(e))?new wn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=mn.exec(e))?Sn(t[1],t[2],t[3],t[4]):(t=hn.exec(e))?Sn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=gn.exec(e))?Tn(t[1],t[2]/100,t[3]/100,1):(t=yn.exec(e))?Tn(t[1],t[2]/100,t[3]/100,t[4]):vn.hasOwnProperty(e)?xn(vn[e]):"transparent"===e?new wn(NaN,NaN,NaN,0):null}function xn(e){return new wn(e>>16&255,e>>8&255,255&e,1)}function Sn(e,t,n,r){return r<=0&&(e=t=n=NaN),new wn(e,t,n,r)}function Mn(e){return e instanceof rn||(e=bn(e)),e?new wn((e=e.rgb()).r,e.g,e.b,e.opacity):new wn}function Cn(e,t,n,r){return 1===arguments.length?Mn(e):new wn(e,t,n,null==r?1:r)}function wn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function kn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Tn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qn(e,t,n,r)}function qn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function En(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}tn(rn,bn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),tn(wn,Cn,nn(rn,{brighter:function(e){return e=null==e?an:Math.pow(an,e),new wn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?on:Math.pow(on,e),new wn(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"#"+kn(this.r)+kn(this.g)+kn(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+")")}})),tn(qn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof qn)return new qn(e.h,e.s,e.l,e.opacity);if(e instanceof rn||(e=bn(e)),!e)return new qn;if(e instanceof qn)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 qn(a,s,l,e.opacity)}(e):new qn(e,t,n,null==r?1:r)}),nn(rn,{brighter:function(e){return e=null==e?an:Math.pow(an,e),new qn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?on:Math.pow(on,e),new qn(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 wn(En(e>=240?e-240:e+120,o,r),En(e,o,r),En(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 Ln=Math.PI/180,Nn=180/Math.PI,On=.96422,Dn=1,An=.82521,In=4/29,Rn=6/29,Pn=3*Rn*Rn,zn=Rn*Rn*Rn;function jn(e){if(e instanceof Fn)return new Fn(e.l,e.a,e.b,e.opacity);if(e instanceof Vn){if(isNaN(e.h))return new Fn(e.l,0,0,e.opacity);var t=e.h*Ln;return new Fn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof wn||(e=Mn(e));var n,r,o=$n(e.r),i=$n(e.g),a=$n(e.b),s=Bn((.2225045*o+.7168786*i+.0606169*a)/Dn);return o===i&&i===a?n=r=s:(n=Bn((.4360747*o+.3850649*i+.1430804*a)/On),r=Bn((.0139322*o+.0971045*i+.7141733*a)/An)),new Fn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function Fn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Bn(e){return e>zn?Math.pow(e,1/3):e/Pn+In}function _n(e){return e>Rn?e*e*e:Pn*(e-In)}function Hn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function $n(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Vn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}tn(Fn,(function(e,t,n,r){return 1===arguments.length?jn(e):new Fn(e,t,n,null==r?1:r)}),nn(rn,{brighter:function(e){return new Fn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Fn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new wn(Hn(3.1338561*(t=On*_n(t))-1.6168667*(e=Dn*_n(e))-.4906146*(n=An*_n(n))),Hn(-.9787684*t+1.9161415*e+.033454*n),Hn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),tn(Vn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Vn)return new Vn(e.h,e.c,e.l,e.opacity);if(e instanceof Fn||(e=jn(e)),0===e.a&&0===e.b)return new Vn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Nn;return new Vn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Vn(e,t,n,null==r?1:r)}),nn(rn,{brighter:function(e){return new Vn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Vn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return jn(this).rgb()}}));var Wn=-.14861,Un=1.78277,Kn=-.29227,Gn=-.90649,Yn=1.97294,Xn=Yn*Gn,Jn=Yn*Un,Zn=Un*Kn-Gn*Wn;function Qn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof er)return new er(e.h,e.s,e.l,e.opacity);e instanceof wn||(e=Mn(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Zn*r+Xn*t-Jn*n)/(Zn+Xn-Jn),i=r-o,a=(Yn*(n-o)-Kn*i)/Gn,s=Math.sqrt(a*a+i*i)/(Yn*o*(1-o)),l=s?Math.atan2(a,i)*Nn-120:NaN;return new er(l<0?l+360:l,s,o,e.opacity)}(e):new er(e,t,n,null==r?1:r)}function er(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function tr(e){return function(){return e}}function nr(e,t){return function(n){return e+n*t}}function rr(e){return 1==(e=+e)?or: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):tr(isNaN(t)?n:t)}}function or(e,t){var n=t-e;return n?nr(e,n):tr(isNaN(e)?t:e)}tn(er,Qn,nn(rn,{brighter:function(e){return e=null==e?an:Math.pow(an,e),new er(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?on:Math.pow(on,e),new er(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Ln,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new wn(255*(t+n*(Wn*r+Un*o)),255*(t+n*(Kn*r+Gn*o)),255*(t+n*(Yn*r)),this.opacity)}}));var ir=function e(t){var n=rr(t);function r(e,t){var r=n((e=Cn(e)).r,(t=Cn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=or(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 ar(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]=pr(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 sr(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function lr(e,t){return t-=e=+e,function(n){return e+t*n}}function cr(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]=pr(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var ur=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dr=new RegExp(ur.source,"g");function fr(e,t){var n,r,o,i=ur.lastIndex=dr.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=ur.exec(e))&&(r=dr.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:lr(n,r)})),i=dr.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 pr(e,t){var n,r=typeof t;return null==t||"boolean"===r?tr(t):("number"===r?lr:"string"===r?(n=bn(t))?(t=n,ir):fr:t instanceof bn?ir:t instanceof Date?sr:Array.isArray(t)?ar:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?cr:lr)(e,t)}function mr(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function hr(e){return function t(n){function r(t,r){var o=e((t=Qn(t)).h,(r=Qn(r)).h),i=or(t.s,r.s),a=or(t.l,r.l),s=or(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 gr(e){return+e}hr((function(e,t){var n=t-e;return n?nr(e,n>180||n<-180?n-360*Math.round(n/360):n):tr(isNaN(e)?t:e)})),hr(or);var yr=[0,1];function vr(e){return e}function br(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function xr(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 Sr(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=br(o,r),i=n(a,i)):(r=br(r,o),i=n(i,a)),function(e){return i(r(e))}}function Mr(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]=br(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Bt(e,t,1,r)-1;return i[n](o[n](t))}}function Cr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function wr(e,t){return function(){var e,t,n,r,o,i,a=yr,s=yr,l=pr,c=vr;function u(){return r=Math.min(a.length,s.length)>2?Mr:Sr,o=i=null,d}function d(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(s,a.map(e),lr)))(n)))},d.domain=function(e){return arguments.length?(a=Qt.call(e,gr),c===vr||(c=xr(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=en.call(e),u()):s.slice()},d.rangeRound=function(e){return s=en.call(e),l=mr,u()},d.clamp=function(e){return arguments.length?(c=e?xr(a):vr,d):c!==vr},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function kr(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Tr(e){return(e=kr(Math.abs(e)))?e[1]:NaN}var qr,Er=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Lr(e){return new Nr(e)}function Nr(e){if(!(t=Er.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 Or(e,t){var n=kr(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")}Lr.prototype=Nr.prototype,Nr.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 Dr={"%":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 Or(100*e,t)},r:Or,s:function(e,t){var n=kr(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(qr=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")+kr(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 Ar(e){return e}var Ir,Rr,Pr,zr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function jr(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)}):Ar,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):Ar,s=e.percent||"%";function l(e){var t=(e=Lr(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,f=e.comma,p=e.precision,m=e.trim,h=e.type;"n"===h?(f=!0,h="g"):Dr[h]||(null==p&&(p=12),m=!0,h="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?o[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",y="$"===c?o[1]:/[%p]/.test(h)?s:"",v=Dr[h],b=/[defgprs%]/.test(h);function x(e){var o,s,c,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?zr[8+qr/3]:"")+S+(M&&"("===l?")":""),b)for(o=-1,s=e.length;++o<s;)if(48>(c=e.charCodeAt(o))||c>57){S=(46===c?i+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}f&&!u&&(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&&u&&(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=Lr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Tr(t)/3))),o=Math.pow(10,-r),i=zr[8+r/3];return function(e){return n(o*e)+i}}}}function Fr(e,t,n,r){var o,i=Wt(e,t,n);switch((r=Lr(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Tr(t)/3)))-Tr(Math.abs(e)))}(i,a))||(r.precision=o),Pr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Tr(t)-Tr(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-Tr(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Rr(r)}function Br(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=Vt(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 Fr(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=Vt(s,l,n))>0?r=Vt(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Vt(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 _r(){var e=wr(vr,vr);return e.copy=function(){return Cr(e,_r())},Ut.apply(e,arguments),Br(e)}Ir=jr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Rr=Ir.format,Pr=Ir.formatPrefix;var Hr=new Date,$r=new Date;function Vr(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 Vr((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 Hr.setTime(+t),$r.setTime(+r),e(Hr),e($r),Math.floor(n(Hr,$r))},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 Wr=Vr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Wr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Vr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Wr:null},Wr.range;var Ur=1e3,Kr=6e4,Gr=36e5,Yr=864e5,Xr=6048e5,Jr=Vr((function(e){e.setTime(Math.floor(e/Ur)*Ur)}),(function(e,t){e.setTime(+e+t*Ur)}),(function(e,t){return(t-e)/Ur}),(function(e){return e.getUTCSeconds()}));Jr.range;var Zr=Vr((function(e){e.setTime(Math.floor(e/Kr)*Kr)}),(function(e,t){e.setTime(+e+t*Kr)}),(function(e,t){return(t-e)/Kr}),(function(e){return e.getMinutes()}));Zr.range;var Qr=Vr((function(e){var t=e.getTimezoneOffset()*Kr%Gr;t<0&&(t+=Gr),e.setTime(Math.floor((+e-t)/Gr)*Gr+t)}),(function(e,t){e.setTime(+e+t*Gr)}),(function(e,t){return(t-e)/Gr}),(function(e){return e.getHours()}));Qr.range;var eo=Vr((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())*Kr)/Yr}),(function(e){return e.getDate()-1}));function to(e){return Vr((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())*Kr)/Xr}))}eo.range;var no=to(0),ro=to(1),oo=to(2),io=to(3),ao=to(4),so=to(5),lo=to(6);no.range,ro.range,oo.range,io.range,ao.range,so.range,lo.range;var co=Vr((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()}));co.range;var uo=Vr((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()}));uo.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Vr((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},uo.range;var fo=Vr((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Kr)}),(function(e,t){return(t-e)/Kr}),(function(e){return e.getUTCMinutes()}));fo.range;var po=Vr((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Gr)}),(function(e,t){return(t-e)/Gr}),(function(e){return e.getUTCHours()}));po.range;var mo=Vr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Yr}),(function(e){return e.getUTCDate()-1}));function ho(e){return Vr((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)/Xr}))}mo.range;var go=ho(0),yo=ho(1),vo=ho(2),bo=ho(3),xo=ho(4),So=ho(5),Mo=ho(6);go.range,yo.range,vo.range,bo.range,xo.range,So.range,Mo.range;var Co=Vr((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()}));Co.range;var wo=Vr((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 ko(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 To(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 qo(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}wo.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Vr((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},wo.range;var Eo,Lo,No,Oo={"-":"",_:" ",0:"0"},Do=/^\s*\d+/,Ao=/^%/,Io=/[\\^$*+?|[\]().{}]/g;function Ro(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 Po(e){return e.replace(Io,"\\$&")}function zo(e){return new RegExp("^(?:"+e.map(Po).join("|")+")","i")}function jo(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Fo(e,t,n){var r=Do.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Bo(e,t,n){var r=Do.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _o(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ho(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $o(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Vo(e,t,n){var r=Do.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Wo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Uo(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 Ko(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Go(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Yo(e,t,n){var r=Do.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Xo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Jo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Zo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Qo(e,t,n){var r=Do.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ei(e,t,n){var r=Do.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ti(e,t,n){var r=Ao.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ni(e,t,n){var r=Do.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ri(e,t,n){var r=Do.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function oi(e,t){return Ro(e.getDate(),t,2)}function ii(e,t){return Ro(e.getHours(),t,2)}function ai(e,t){return Ro(e.getHours()%12||12,t,2)}function si(e,t){return Ro(1+eo.count(uo(e),e),t,3)}function li(e,t){return Ro(e.getMilliseconds(),t,3)}function ci(e,t){return li(e,t)+"000"}function ui(e,t){return Ro(e.getMonth()+1,t,2)}function di(e,t){return Ro(e.getMinutes(),t,2)}function fi(e,t){return Ro(e.getSeconds(),t,2)}function pi(e){var t=e.getDay();return 0===t?7:t}function mi(e,t){return Ro(no.count(uo(e),e),t,2)}function hi(e,t){var n=e.getDay();return e=n>=4||0===n?ao(e):ao.ceil(e),Ro(ao.count(uo(e),e)+(4===uo(e).getDay()),t,2)}function gi(e){return e.getDay()}function yi(e,t){return Ro(ro.count(uo(e),e),t,2)}function vi(e,t){return Ro(e.getFullYear()%100,t,2)}function bi(e,t){return Ro(e.getFullYear()%1e4,t,4)}function xi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ro(t/60|0,"0",2)+Ro(t%60,"0",2)}function Si(e,t){return Ro(e.getUTCDate(),t,2)}function Mi(e,t){return Ro(e.getUTCHours(),t,2)}function Ci(e,t){return Ro(e.getUTCHours()%12||12,t,2)}function wi(e,t){return Ro(1+mo.count(wo(e),e),t,3)}function ki(e,t){return Ro(e.getUTCMilliseconds(),t,3)}function Ti(e,t){return ki(e,t)+"000"}function qi(e,t){return Ro(e.getUTCMonth()+1,t,2)}function Ei(e,t){return Ro(e.getUTCMinutes(),t,2)}function Li(e,t){return Ro(e.getUTCSeconds(),t,2)}function Ni(e){var t=e.getUTCDay();return 0===t?7:t}function Oi(e,t){return Ro(go.count(wo(e),e),t,2)}function Di(e,t){var n=e.getUTCDay();return e=n>=4||0===n?xo(e):xo.ceil(e),Ro(xo.count(wo(e),e)+(4===wo(e).getUTCDay()),t,2)}function Ai(e){return e.getUTCDay()}function Ii(e,t){return Ro(yo.count(wo(e),e),t,2)}function Ri(e,t){return Ro(e.getUTCFullYear()%100,t,2)}function Pi(e,t){return Ro(e.getUTCFullYear()%1e4,t,4)}function zi(){return"+0000"}function ji(){return"%"}function Fi(e){return+e}function Bi(e){return Math.floor(+e/1e3)}!function(e){Eo=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=zo(o),u=jo(o),d=zo(i),f=jo(i),p=zo(a),m=jo(a),h=zo(s),g=jo(s),y=zo(l),v=jo(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:oi,e:oi,f:ci,H:ii,I:ai,j:si,L:li,m:ui,M:di,p:function(e){return o[+(e.getHours()>=12)]},Q:Fi,s:Bi,S:fi,u:pi,U:mi,V:hi,w:gi,W:yi,x:null,X:null,y:vi,Y:bi,Z:xi,"%":ji},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:Si,e:Si,f:Ti,H:Mi,I:Ci,j:wi,L:ki,m:qi,M:Ei,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Fi,s:Bi,S:Li,u:Ni,U:Oi,V:Di,w:Ai,W:Ii,x:null,X:null,y:Ri,Y:Pi,Z:zi,"%":ji},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:Go,e:Go,f:ei,H:Xo,I:Xo,j:Yo,L:Qo,m:Ko,M:Jo,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:ni,s:ri,S:Zo,u:Bo,U:_o,V:Ho,w:Fo,W:$o,x:function(e,t,r){return w(e,n,t,r)},X:function(e,t,n){return w(e,r,t,n)},y:Wo,Y:Vo,Z:Uo,"%":ti};function M(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=Oo[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=qo(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=To(qo(i.y))).getUTCDay(),r=o>4||0===o?yo.ceil(r):yo(r),r=mo.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(qo(i.y))).getDay(),r=o>4||0===o?ro.ceil(r):ro(r),r=eo.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?To(qo(i.y)).getUTCDay():t(qo(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,To(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 Oo?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+="",ko);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,To);return t.toString=function(){return e},t}}}(e),Eo.format,Eo.parse,Lo=Eo.utcFormat,No=Eo.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 _i="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Lo(_i),+new Date("2000-01-01T00:00:00.000Z")||No(_i);var Hi=1e3,$i=60*Hi,Vi=60*$i,Wi=24*Vi,Ui=7*Wi,Ki=30*Wi,Gi=365*Wi;function Yi(e){return new Date(e)}function Xi(e){return e instanceof Date?+e:+new Date(+e)}function Ji(e,t,n,r,o,i,a,s,l){var c=wr(vr,vr),u=c.invert,d=c.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,Hi],[a,5,5*Hi],[a,15,15*Hi],[a,30,30*Hi],[i,1,$i],[i,5,5*$i],[i,15,15*$i],[i,30,30*$i],[o,1,Vi],[o,3,3*Vi],[o,6,6*Vi],[o,12,12*Vi],[r,1,Wi],[r,2,2*Wi],[n,1,Ui],[t,1,Ki],[t,3,3*Ki],[e,1,Gi]];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=Ft((function(e){return e[2]})).right(x,i);a===x.length?(o=Wt(n/Gi,r/Gi,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(Wt(n,r,t),1),t=s)}return null==o?t:t.every(o)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(Qt.call(e,Xi)):d().map(Yi)},c.ticks=function(e,t){var n,r=d(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=M(e,o,i,t))?n.range(o,i+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?S:l(t)},c.nice=function(e,t){var n=d();return(e=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)):c},c.copy=function(){return Cr(c,Ji(e,t,n,r,o,i,a,s,l))},c}function Zi(){return Ut.apply(Ji(wo,Co,go,mo,po,fo,Jr,Wr,Lo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Qi={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"}}},ea=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var ta={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=Qi[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:ea(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:ea(t.shadow.endOffset)}}})(n),c="horizontal"===n&&r,u=[];return a||u.push(e("div",{style:{...l.base,...c?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||u.push(e("div",{style:{...l.base,...c?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),u}};function na({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 ra;function oa(){ra=ra||document.createElement("canvas").getContext("2d")}const ia={measureTextWidth(e){oa();const{width:t}=ra.measureText(e);return t},lineWrap(e,t,n,r){let o,i;oa();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,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&&(ra.font=n),i=0;i<a.length;i++){for(d=a[i]||"",f=d.split(/\s+/),[p]=f,u="",o=1;o<f.length;o++)if(l=`${p} ${f[o]}`,c=ia.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(p),p=f[o]):p=l,"number"==typeof r&&s.length>=r){u=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} ${u}`}return s},wordWrap(e,t,n,r,o){if(oa(),!e||!e.length)return[];n&&(ra.font=n);let i=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c&&(c.length<=1||ia.measureTextWidth(c)<=t?i.push(c):(s=ia.splitWord(c,t,void 0,r-i.length),s.length<=1?i.push(s[0]):(l=s.pop(),i=i.concat(s),a[u+1]?ia.measureTextWidth(`${l} ${a[u+1]}`)>t&&i.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return i.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),i.length>r?(i=i.splice(0,r),i[i.length-1]=ia.truncate(i[i.length-1],t,n,o).text):(c=i[i.length-1],c&&c.length>1&&ia.measureTextWidth(c)>t&&(i[i.length-1]=ia.truncate(c,t,n,o).text)),i},truncate(e,t,n,r="…"){oa();let o,i,a,s,l=e;const c=ia.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(ra.font=n),e&&t){if(ia.measureTextWidth(l)>t){for(o=Math.min(u,l.length);o>0;o--)if(i=l.substring(0,o-1),a=i.trim()+r,ia.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;oa();let i,a=e,s="",l=[];if(ia.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(o=Math.min(e.length,c);o>0&&(a=e.substring(0,o),i=e.substring(o-1,o)," "===i?a=e.substring(0,o-1):a+="-",s=e.substring(o),!(ia.measureTextWidth(a)<=t));o--);return(!o&&!a||ia.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(ia.measureTextWidth(s)>t?(s=ia.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(oa(),e&&t?(n&&(ra.font=n),ia.explodeWord(e,t,r,Math.max(1,ia.measureTextWidth("i")))):[]),wrapText(e,t,n,r,o){let i;return Number.isNaN(t)?[e]:(i=r>1?ia.lineWrap(e,t,n,r):[e],i=ia.wordWrap(i,t,n,r,o),i)},getFontHeight:e=>(oa(),e&&(ra.font=e),1.5*ia.measureTextWidth("m")),tokenize(e,t,n,r,o,i,a=1){oa(),t&&(ra.font=t);const s=ia.getFontHeight(),l=a*s;let c=[],u=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=>{u+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{c.push(Number.isNaN(e)||e<=0?f-u:e)}))):c=[Number.isNaN(r)||r<=0?f:Math.min(f,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<f&&(d=d.concat(ia.wrapText(e,o,t,c[n])))})):d=ia.wrapText(e,o,t,c[0],n),d}},aa={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(de({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},sa=de.bind(null,!0),la={},{isArray:ca}=Array;function ua(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function da(e){return void 0===e}function fa(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function pa(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]=da(e[r||t])?i:e[t],e=e[r||t]})),e}function ma(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function ha(e,t,n){let r=!0;if(ua(e)&&ua(t))return ma(e,n)===ma(t,n)&&(Object.keys(e).forEach((o=>{ha(e[o],t[o],n)||(r=!1)})),r);if(ca(e)&&ca(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!ha(e[r],t[r],n))return!1;return!0}return e===t}la.compare=ha,la.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?sa({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;ha(i,a)||fa(t,o)||(da(a)?r.push({op:"add",path:s,value:i}):ua(i)&&ua(a)?r=r.concat(la.generate(a,i,s)):ca(i)&&ca(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]&&da(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(ha(t,o))return r;if(!da(t[0])&&da(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(la.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=>{da(t[o])&&!fa(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},la.apply=function(e,t){t.forEach((t=>{let n=pa(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(ca(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(ca(o)&&ca(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(ua(o)&&ua(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!fa(a,e)&&delete a[e]})),sa(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=pa(e,t.from);ca(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(ca(n)?n.splice(+r,1):delete n[r]);var a}))},la.clone=function(e){return sa({},e)},la.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},la.updateObject=function(e,t){Object.keys(e).length?la.apply(e,la.generate(e,t)):sa(e,t)};const ga=Math.log(10);function ya(e){return 10**e}const va={pow10:ya,log:(e,t)=>e<=0||t<=0?NaN:Math.log(e)/Math.log(t),log10:e=>e<=0?NaN:Math.log(e)/ga,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))/ga),r=e/ya(n);return t=r<=1?1:r<=2?2:r<=5?5:10,t*ya(n)*(e<0?-1:1)},getSmallNiceNumber(e){let t,n;if(0===e)return 0;t=Math.floor(Math.log(Math.abs(e))/ga);const r=e/ya(t);return r<1?(n=5,t--):n=r<2?1:r<5?2:5,n*ya(t)*(e<0?-1:1)},getMagnitude(e){if(0===e)return 0;return ya(Math.floor(Math.log(Math.abs(e))/ga))},getFraction(e){if(0===e)return 0;return e/ya(Math.floor(Math.log(Math.abs(e))/ga))},getGoodNumber(e){let t;if(0===e)return 0;const n=Math.floor(Math.log(Math.abs(e))/ga),r=e/ya(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*ya(n)*(e<0?-1:1)},getValueWithOffset:(e,t=0)=>e+Math.abs(e)*t,isNumber:e=>"number"==typeof e&&!Number.isNaN(e)},ba=[[2,4,6],[2,4],[3]],xa=[,[,,[[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 Sa(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 Ma(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Sa(e[r],t,n)}!function(){let e,t;for(Ma(ba,1,10),e=0;e<xa.length;e++)if(xa[e])for(t=0;t<xa[e].length;t++)Array.isArray(xa[e][t])&&Ma(xa[e][t])}();const Ca={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=Ca.findSegmentPositionMeetMin(e,t);return Ca.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=Ca.findSegmentPositionMeetMax(e,n);return Ca.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=Ca.findSegmentPositionMeetMaxThenMin(i,s,(i.center+a.center-r)/2),s=i.position+i.radius+r/2;a.position=Ca.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const o=e.length-1;let i,a,s;const l=Math.max(0,e[o].position+e[o].radius-n);if(0===l)return;let c,u=0;for(i=o;i>0&&(a=e[i],s=e[i-1],c=Math.max(0,Ca.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));i--);for(u<l&&(c=Math.max(0,s.position-s.radius-t),c-=Math.max(0,u+c-l),u+=c,s.move=c),u=0,i=0;i<=o;i++)a=e[i],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const o=e.length-1;if(!(o<0))if(0!==o)Ca.layoutPositionFromMin(e,t,n,r),Ca.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=Ca.findSegmentPositionMeetMaxThenMin(r,t,n)}}},wa=(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},ka=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,Ta=e=>e.filter(ka),qa=(e,t)=>Ta(xe.getValue(e,t,[])),Ea=e=>ka(e)&&(!1!==e.showValue||!1!==e.showLabel),La=e=>e.filter(Ea),Na=(e,t)=>La(xe.getValue(e,t,[])),Oa=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,Da=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},Aa=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},Ia=({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},Ra=({value:e,qMin:t})=>"NaN"!==t&&e<t,Pa=({value:e,qMax:t})=>"NaN"!==t&&e>t,za={isRefLineVisible:ka,getVisibleRefLines:Ta,getRefLines:qa,getMeasureRefLines:e=>qa(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:qa(e,"refLine.dimRefLines"),isRefLineLabelVisible:Ea,getVisibleRefLineLabels:La,getRefLineLabels:Na,getMeasureRefLineLabels:e=>Na(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:Na(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=wa(s,o,i,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=wa(s,o,i,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:o})=>{const i=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-i*(s-o)}})({pxScale:s,value:n,innerValues:e,invert:i,minOrder:a})),(void 0===c?s(n):c)+l}return l=wa(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=xe.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():xe.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=xe.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),f=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+f,r=t[d];i[r]||(i[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})():o?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],o=t+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:u[t]},0===t?0===o&&(i[a].isMinOrderOk=!0):a!==e&&(i[a].isMinOrderOk=!0,i[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+f,r=t[d];i[r]||(i[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})(),i},getInputValue:Oa,extractInfoFromInputValue:Da,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Oa({refLineLayout:e,layoutService:n});return Da(r,t,"id")},isDiscreteMinOutOfBounds:Aa,isDiscreteMaxOutOfBounds:Ia,isContinuousMinOutOfBounds:Ra,isContinuousMaxOutOfBounds:Pa,isOutOfRange:({value:e,qMin:t,qMax:n})=>Ra({value:e,qMin:t})||Pa({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&Ia({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&Aa({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},ja=({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(" "),Fa="…";function Ba(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=ja({label:o,labelStyle:t});o.lines=ia.tokenize(o.title,i,`${Fa} ${o.valueString}`,3,n),o.maxNumLines=o.lines.length}}function _a({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=ia.tokenize(e,t,n,r,o),a=i.length;let s="";if(a){[s]=i;for(let e=1;e<a;e++)s=`${s}\n${i[e]}`}return s}function Ha({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=e.map((e=>_a({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 $a(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const Va=3,Wa=2;function Ua({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 Ka=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(za.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(za.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return za.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:za.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},Ga={hasEngineFormat:Ua,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:o,rtl:i,isContinuous:a,isDimension:s}){const l=za.getInvert({orientation:o,rtl:i,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let 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:c,valueInfo:d}=i,m=Ka({label:i,dataPages:u,qMin:f,qMax:p});i.scaledValue=1===m?l?-.1:1.1:-1===m?l?1.1:-.1:za.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),i.center=i.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:o}){let i;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;i=Ua({inputValue:s,inputValueLabel:l,localeInfo:o})?l:t?t(a):a,r.valueString=`${Pe.lrm}(${i})${Pe.lrm}`,r.title=Ga.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=Ua({inputValue:a,inputValueLabel:s,localeInfo:o})?s:r,n.valueString=`${Pe.lrm}(${i})${Pe.lrm}`,n.title=Ga.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];i=n.valueText,n.valueString=`${Pe.lrm}(${i})${Pe.lrm}`,n.title=Ga.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=Ga.getTotalNumLines(e)-r;if(t<=0)return;Ga.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,Ga.measureLabelMaxLineWidth(i,r)),i.height=i.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:o}=r,i=r[t],a=i/2;r.segment={center:o,range:i,min:o-a,max:o+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:o,gap:i,labelStyle:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:f,layoutService:p,isContinuous:m,isDimension:h}){const g=e.map((e=>e)),y=n;Ga.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:u,rtl:f,isContinuous:m,isDimension:h}),$a(e,"center"),Ga.addLabelsNeighborInfo(e,r,o,i),Ba(e,a,s),Ga.reduceTotalMaxNumLines(g,l,o-(g.length-1)*i),"vertical"===u&&(Ga.reduceMaxNumLines(e,l,.05*i),function(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=ja({label:o,labelStyle:t});o.lines.length>o.maxNumLines&&(o.lines=ia.tokenize(o.title,i,`${Fa} ${o.valueString}`,o.maxNumLines,n))}}(e,a,s)),Ga.addLabelsSize(e,s,l,d),Ga.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:o,lineHeight:i=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=o,{fontSize:d,fontFamily: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:_a({title:e.title,font:a,ellipsis:`… ${e.valueString}`}),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:c};return g[l]=u,g[s]=e.segment.position,g.y+=(o-(r-1)/2)*i,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:o,lineHeight:i,background:a}){const{lines:s}=o,{borderRadius:l=Va,padding:c={}}=a,{top:u=Wa,bottom:d=Wa,left:f=Wa,right:p=Wa}=c,m=s.length,h={type:"rect",rx:l,ry:l,fill:o.background.fill,width:o.width+(f+p),height:o.height+(u+d),value:o.value,dock:r};return h[n]=e,h[t]=o.segment.position,h.x-=o.width/2+f,h.y-=m*i/2+u,h}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:i,background:g})),y=y.concat(o)})),y}};function Ya(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 Xa(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 Ga.getMaxTextWidth(e)>i&&(Ba(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,Ga.getMaxTextWidth(e))+n+r}(t,n)}function Ja(e,t){return t?e.domain():[0,1]}function Za(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 Qa(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 es(e,t){return e>9?t[1]:t[0]}function ts({alignment:e,dockValue:t,oobs:n,style:r,rect:o,symbol:i,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:f,minorAxis:p,minorDimension:m,dock:h}=s,g=o[m],y=aa.createOob({oob:aa.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:u>9?"9+":u,title:Ha({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:h};return S[p]=g/2,S[f]=a,[y,x,S]}const ns=e=>{const t=ja({labelStyle:e}),n=ia.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}},rs=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 os={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=rs(this.settings.labels),s=Ya(this.chart,this.settings.formatter,e);Ga.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:i,localeInfo:o});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:o})=>{if(n){const[r,o]=Ja(t,n);return Za(e,r,o)}if(r){const t=o.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return Za(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:i,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:o,fontWeight:i}=n||{};return this.renderer.measureText({text:e,fontWeight:i||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:o||t.label.fontFamily})},u&&u.length){const e=ns(t.label),{dock:n}=this.settings.layout;return Ga.measureLabelsWidth(u,this.measureText),d=Xa(n,u,e),d}const f=Qa(this.measureText),p=l?es(l,f):0,m=c?es(c,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,c=rs(this.settings.labels),{dock:u,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)}(u),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=ns(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:M}=v,C=Ya(this.chart,this.settings.formatter,e),w=y;Ga.addLabelTitles({labels:c,formatter:C,isContinuous:i,canBeContinuous:l,localeInfo:s}),Ga.calculateLabelPositions({labels:c,scale:e,size:w,layoutService:r,orientation:h,rtl:d,isContinuous:i,isDimension:a});const[k,T]=Ja(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:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:f}=Za(e,t,n,c),p="scaledValue"!==c&&za.getInvert({orientation:r,rtl:o,isContinuous:i}),m=function(e,t,n){return n?t:e}(d,u,p),h=function(e,t,n){return n?e:t}(d,u,p),g=m.length,y=h.length,v=Qa(l),b=es(g,v),x=es(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:c,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;$a(E),$a(L);const P=ts({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=ts({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});Ga.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}),Ca.layout(q.map((e=>e.segment)),I,R,n.label.gap);const j=q.filter((e=>Ca.isInside(e.segment,I,R,i)));return Ga.createLabels({labels:j,style:n.label,maxLabelWidth:M,areaProps:p,area:m,lineHeight:x,font:b,theme:o}).concat([...P,...z])}};var is={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 as(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...c}=t,u=de(!0,{},{...n,qHyperCube:{...c,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=is;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(u,e)&&i(u,e,null);else{const e=t[0],n=t[1].split("].")[1];o(u,e,[]).forEach((e=>{void 0!==o(e,n)&&i(e,n,null)}))}})),u}var ss={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return o=>{if(e||t||n){var i;if("line"===o.type)return null!==(i=o.tickValue)&&void 0!==i?i:"axis";if("text"===o.type)return`${o.tickValue} ${o.text}`;if("container"===o.type){const e=o.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${o.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===o.type&&void 0===o.tickValue)return"axis";const e=o.transform&&o.transform.match(/rotate/gi)?"rotated":"horizontal";return`${o.data.group?`${o.data.group.value} `:""}${o.data.value} ${o.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:o}){return({currentNodes:i,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==o&&"bottom"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?i.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?i.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=o):e.transform=`translate(${-r}, ${-o})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=r):(e.x-=r,e.y-=o)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=o,e.y2-=o):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:o/e.major.size,n="y"===e.minor.p?o/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=o;break;case"rect":e.x-=r,e.y-=o;break;case"path":e.transform=`translate(${-r}, ${-o})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.cx-=r,e.cy-=o}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y,i=t.width-n.width,a=t.height-n.height;let s=-r,l=-o;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":i<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":o>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=as(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=as(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:ls,extractInfoFromInputValue:cs,resolveValue:us}=za;var ds={resolveValue:us,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=ls({refLineLayout:e,layoutService:n});return cs(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=ls({refLineLayout:e,layoutService:n});return cs(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:o}=n.meta,i=ls({refLineLayout:e,layoutService:n});return r[i]&&o?r[i].qText:i},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=ls({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:o}=t;return o[r]}};const fs=({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:o,dockService:i,chart:a,scale:s,axis:l,invert:c,component:u,isContinuous:d})=>{var 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=ds.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),m.value=()=>{var e;const o=za.getScaledPosition({scale:a.scale(s),value:ds.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:m.valueInfo,size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===i.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(o)?void 0:o}),m};function ps({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:o,animationsEnabled:i,chart:a,scale:s,axis:l,rtl:c,key:u,mainComponentKey:d,path:f,minimumLayoutMode:p}){const m=e?t.dimensionRefLines:f?t.query.getRefLines(f):t.measureRefLines;if(!m.length)return!1;const h={key:u,type:"ref-line",layout:{minimumLayoutMode:p},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:i,trackBy:ss.lines.trackBy,compensateForLayoutChanges:ss.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==o.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return m.forEach((i=>{h.lines[l].push(fs({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 ms={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},hs=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:o,scale:i,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:f})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:o,formatter:a,scale:i,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:f,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,fontStyle:r.referenceLine.label.name.fontStyle,fontWeight:r.referenceLine.label.name.fontWeight,textDecoration:r.referenceLine.label.name.textDecoration,padding:{top:2,bottom:2,left:c?2:4,right:c?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:ss.refLineLabels.trackBy,compensateForLayoutChanges:ss.refLineLabels.compensateForLayoutChanges}}),gs=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:o,theme:i,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),{align:l,style:c}=e,{fontSize:u,fontFamily:d,fontStyle:f,fontWeight:p,textDecoration:m}=c||{},h={align:l,text:e.label,fill:e.coloredBackground?i.getContrastingColorTo(s):s,fontSize:u,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=()=>ds.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueText=()=>ds.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueInfo=()=>ds.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),h};function ys({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:o,dock:i,scale:a,style:s,formatter:l,theme:c,localeInfo:u,rtl:d,key: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=>gs({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push(hs({isDimension:e,rtl:d,style:de(!0,ms,s),dock:i,key:f,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:o,theme:c,isContinuous:g,localeInfo:u})),h}const vs={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}}},bs=(e,t,n)=>{if(!e)return Promise.resolve();let r=la.generate(t,n);return de(!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()},xs=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))};function Ss(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 Ms={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=xe.getValue(e,`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0`),o=xe.getValue(e,"color");r&&(r.id="colorByExpression",o&&(o.colorExpression=r.qExpression))}},Cs={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"},ws={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"},ks={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"},Ts={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"},qs={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"},Es={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"},Ls={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"},Ns={single:"N",drillDown:"H",cyclic:"C"},Os={N:void 0,H:Cs,C:ks},Ds=(e,t)=>{switch(e.qGrouping){case Ns.single:return;case Ns.drillDown:return{path:Cs,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case Ns.cyclic:return{path:t?ws:ks,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 As(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=la.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 Is(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=de(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),As(e,a,c)}))}function Rs(e){return e.qGrouping===Ns.single?e.qFallbackTitle||"":e.title||""}const Ps=async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case Ns.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:Cs,groupItem:!0,title:e.title,selected:!1,children:n}}case Ns.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:ks,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:Rs(e)}}},zs=(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))},js=async(e,t,n,r,o)=>{const i=await zs(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===Ns.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=Os[s],c=s!==Ns.single;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){Is(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function Fs({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===Ns.single;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await Ps(l,o,a,e),n=c?await js(a,o,r,i,s):[];return(u||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function Bs(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Ns.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:Ds(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===Ns.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:Rs(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function _s({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await zs(n,t),u=t.filter((e=>!o.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){Is(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function Hs(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function $s(){return $s=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},$s.apply(null,arguments)}var Vs={exports:{}};function Ws(){}function Us(){}Us.resetWarningCache=Ws;Vs.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Us,resetWarningCache:Ws};return n.PropTypes=n,n}();var Ks=ee(Vs.exports),Gs={black:"#000",white:"#fff"},Ys={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"},Xs={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"},Js={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"},Zs={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"},Qs={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"},el={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"},tl={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 nl(){return nl=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},nl.apply(this,arguments)}function rl(e){return rl="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},rl(e)}function ol(e){return e&&"object"===rl(e)&&e.constructor===Object}function il(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?nl({},e):e;return ol(e)&&ol(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(ol(t[o])&&o in e?r[o]=il(e[o],t[o],n):r[o]=t[o])})),r}function al(e){var t=function(e,t){if("object"!=rl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rl(t)?t:t+""}function sl(e,t,n){return(t=al(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ll(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 cl(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 ul(e){if(e.type)return e;if("#"===e.charAt(0))return ul(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(ll(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 dl(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 fl(e){var t="hsl"===(e=ul(e)).type?ul(function(e){var t=(e=ul(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])),dl({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 pl(e,t){return e=ul(e),t=cl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,dl(e)}function ml(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 hl(e,t){if(null==e)return{};var n,r,o=ml(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 gl=["xs","sm","md","lg","xl"];function yl(e,t,n){var r;return nl({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")),nl({paddingLeft:t(2),paddingRight:t(2)},n,sl({},e.up("sm"),nl({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},sl(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),sl(r,e.up("sm"),{minHeight:64}),r)},n)}var vl={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:Gs.white,default:tl[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}},bl={text:{primary:Gs.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:tl[800],default:"#303030"},action:{active:Gs.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 xl(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=ul(e),t=cl(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 dl(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=ul(e),t=cl(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 dl(e)}(e.main,i)))}function Sl(e){var t=e.primary,n=void 0===t?{light:Js[300],main:Js[500],dark:Js[700]}:t,r=e.secondary,o=void 0===r?{light:Xs.A200,main:Xs.A400,dark:Xs.A700}:r,i=e.error,a=void 0===i?{light:Ys[300],main:Ys[500],dark:Ys[700]}:i,s=e.warning,l=void 0===s?{light:el[300],main:el[500],dark:el[700]}:s,c=e.info,u=void 0===c?{light:Zs[300],main:Zs[500],dark:Zs[700]}:c,d=e.success,f=void 0===d?{light:Qs[300],main:Qs[500],dark:Qs[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=hl(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=fl(e),r=fl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,bl.text.primary)>=g?bl.text.primary:vl.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=nl({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(ll(4,t));if("string"!=typeof e.main)throw new Error(ll(5,JSON.stringify(e.main)));return xl(e,"light",n,v),xl(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},M={dark:bl,light:vl};return il(nl({common:Gs,type:m,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(f),grey:tl,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},M[m]),b)}function Ml(e){return Math.round(1e5*e)/1e5}function Cl(e){return Ml(e)}var wl={textTransform:"uppercase"},kl='"Roboto", "Helvetica", "Arial", sans-serif';function Tl(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?kl:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,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=hl(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 nl({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===kl?{letterSpacing:"".concat(Ml(r/t),"em")}:{},i,y)},C={h1:M(l,96,1.167,-1.5),h2:M(l,60,1.2,-.5),h3:M(u,48,1.167,0),h4:M(u,34,1.235,.25),h5:M(u,24,1.334,0),h6:M(f,20,1.6,.15),subtitle1:M(u,16,1.75,.15),subtitle2:M(f,14,1.57,.1),body1:M(u,16,1.5,.15),body2:M(u,14,1.43,.15),button:M(f,14,1.75,.4,wl),caption:M(u,12,1.66,.4),overline:M(u,12,2.66,1,wl)};return il(nl({htmlFontSize:g,pxToRem:S,round:Cl,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:f,fontWeightBold:m},C),b,{clone:!1})}function ql(){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 El=["none",ql(0,2,1,-1,0,1,1,0,0,1,3,0),ql(0,3,1,-2,0,2,2,0,0,1,5,0),ql(0,3,3,-2,0,3,4,0,0,1,8,0),ql(0,2,4,-1,0,4,5,0,0,1,10,0),ql(0,3,5,-1,0,5,8,0,0,1,14,0),ql(0,3,5,-1,0,6,10,0,0,1,18,0),ql(0,4,5,-2,0,7,10,1,0,2,16,1),ql(0,5,5,-3,0,8,10,1,0,3,14,2),ql(0,5,6,-3,0,9,12,1,0,3,16,2),ql(0,6,6,-3,0,10,14,1,0,4,18,3),ql(0,6,7,-4,0,11,15,1,0,4,20,3),ql(0,7,8,-4,0,12,17,2,0,5,22,4),ql(0,7,8,-4,0,13,19,2,0,5,24,4),ql(0,7,9,-4,0,14,21,2,0,5,26,4),ql(0,8,9,-5,0,15,22,2,0,6,28,5),ql(0,8,10,-5,0,16,24,2,0,6,30,5),ql(0,8,11,-5,0,17,26,2,0,6,32,5),ql(0,9,11,-5,0,18,28,2,0,7,34,6),ql(0,9,12,-6,0,19,29,2,0,7,36,6),ql(0,10,13,-6,0,20,31,3,0,8,38,7),ql(0,10,13,-6,0,21,33,3,0,8,40,7),ql(0,10,14,-6,0,22,35,3,0,8,42,7),ql(0,11,14,-7,0,23,36,3,0,9,44,8),ql(0,11,15,-7,0,24,38,3,0,9,46,8)],Ll={borderRadius:4};function Nl(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 Ol(e,t){if(e){if("string"==typeof e)return Nl(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)?Nl(e,t):void 0}}function Dl(e){return function(e){if(Array.isArray(e))return Nl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ol(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 Al(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){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){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Ol(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 Il(){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 Rl={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)"},Pl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zl(e){return"".concat(Math.round(e),"ms")}var jl={easing:Rl,duration:Pl,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?Pl.standard:n,o=t.easing,i=void 0===o?Rl.easeInOut:o,a=t.delay,s=void 0===a?0:a;return hl(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:zl(r)," ").concat(i," ").concat("string"==typeof s?s:zl(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))}},Fl={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Bl(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=hl(e,["breakpoints","mixins","palette","spacing","typography"]),d=Sl(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=hl(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=gl.indexOf(t);return r===gl.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[gl[r+1]]?n[gl[r+1]]:t)-a/100).concat(o,")")}return nl({keys:gl,values:n,up:l,down:function(e){var t=gl.indexOf(e)+1,r=n[gl[t]];return t===gl.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),p=Il(s),m=il({breakpoints:f,direction:"ltr",mixins:yl(f,p,o),overrides:{},palette:d,props:{},shadows:El,typography:Tl(d,c),spacing:p,shape:Ll,transitions:jl,zIndex:Fl},u),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 il(e,t)}),m)}var _l="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Hl=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function $l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Hl.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(c()):i}return"".concat(s).concat(o).concat(c())}}function Vl(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 Wl="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},Ul="object"===("undefined"==typeof window?"undefined":Wl(window))&&"object"===("undefined"==typeof document?"undefined":Wl(document))&&9===document.nodeType;function Kl(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,al(r.key),r)}}function Gl(e,t,n){return t&&Kl(e.prototype,t),n&&Kl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yl(e,t){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yl(e,t)}function Xl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yl(e,t)}function Jl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Zl={}.constructor;function Ql(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Ql);if(e.constructor!==Zl)return e;var t={};for(var n in e)t[n]=Ql(e[n]);return t}function ec(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=Ql(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var tc=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},nc=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+=tc(e[n]," ");else t=tc(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function rc(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function oc(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function ic(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=rc(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=oc(f+":"+c+nc(p)+";",i))}}else for(var m in a){var h=a[m];null!=h&&(r&&(r+=l),r+=oc(m+":"+c+nc(h)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=oc(g+":"+c+nc(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),oc(""+e+c+"{"+r,--i)+oc("}",i)):r}var ac=/([[\].#*$><+~=|^:(),"'`\s])/g,sc="undefined"!=typeof CSS&&CSS.escape,lc=function(e){return sc?sc(e):e.replace(ac,"\\$1")},cc=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}(),uc=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(Jl(Jl(o)),s),o.selectorText="."+lc(o.id)),o}Xl(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]=nc(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?nl({},e,{allowEmpty:!0}):e;return ic(this.selectorText,this.style,n)},Gl(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}(cc),dc={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new uc(e,t,n)}},fc={indent:1,children:!0},pc=/@([\w-]+)/,mc=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(pc);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new jc(nl({},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=fc);var t=rc(e).linebreak;if(null==e.indent&&(e.indent=fc.indent),null==e.children&&(e.children=fc.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),hc=/@container|@media|@supports\s+/,gc={onCreateRule:function(e,t,n){return hc.test(e)?new mc(e,t,n):null}},yc={indent:1,children:!0},vc=/@keyframes\s+([\w-]+)/,bc=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(vc);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:lc(a(this,i)),this.rules=new jc(nl({},n,{parent:this})),t)this.rules.add(s,t[s],nl({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=yc);var t=rc(e).linebreak;if(null==e.indent&&(e.indent=yc.indent),null==e.children&&(e.children=yc.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}(),xc=/@keyframes\s+/,Sc=/\$([\w-]+)/g,Mc=function(e,t){return"string"==typeof e?e.replace(Sc,(function(e,n){return n in t?t[n]:e})):e},Cc=function(e,t,n){var r=e[t],o=Mc(r,n);o!==r&&(e[t]=o)},wc={onCreateRule:function(e,t,n){return"string"==typeof e&&xc.test(e)?new bc(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Cc(e,"animation-name",n.keyframes),"animation"in e&&Cc(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 Mc(e,r.keyframes);default:return e}}},kc=function(e){function t(){return e.apply(this,arguments)||this}return Xl(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?nl({},e,{allowEmpty:!0}):e;return ic(this.key,this.style,n)},t}(cc),Tc={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new kc(e,t,n):null}},qc=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=rc(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=ic(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return ic(this.at,this.style,e)},e}(),Ec=/@font-face/,Lc={onCreateRule:function(e,t,n){return Ec.test(e)?new qc(e,t,n):null}},Nc=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 ic(this.key,this.style,e)},e}(),Oc={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Nc(e,t,n):null}},Dc=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}(),Ac={"@charset":!0,"@import":!0,"@namespace":!0},Ic={onCreateRule:function(e,t,n){return e in Ac?new Dc(e,t,n):null}},Rc=[dc,gc,wc,Tc,Lc,Oc,Ic],Pc={process:!0},zc={force:!0,process:!0},jc=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=nl({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+lc(this.classes[d]));var f=ec(d,t,u);if(!f)return null;this.register(f);var p=void 0===u.index?this.index.length:u.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=nl({},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 uc?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof bc&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof uc?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof bc&&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=Pc);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,zc)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,zc)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=rc(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}(),Fc=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=nl({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new jc(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}(),Bc=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}(),_c=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=ml(t,["attached"]),o=rc(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},Gl(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Hc=new _c,$c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Vc="2f1acc6c3a606b082e5eef5e54414ffb";null==$c[Vc]&&($c[Vc]=0);var Wc=$c[Vc]++,Uc=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")+Wc+o+t:i+n.key+"-"+Wc+(o?"-"+o:"")+"-"+t}},Kc=function(e){var t;return function(){return t||(t=e()),t}},Gc=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Yc=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=nc(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},Xc=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Jc=function(e,t){return e.selectorText=t,e.selectorText===t},Zc=Kc((function(){return document.querySelector("head")}));function Qc(e){var t=Hc.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=Zc(),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 eu=Kc((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),tu=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]},nu=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ru=function(){function e(e){this.getPropertyValue=Gc,this.setProperty=Yc,this.removeProperty=Xc,this.setSelector=Jc,this.hasInsertedRules=!1,this.cssRules=[],e&&Hc.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=eu();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=Qc(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 Zc().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=nu(n,t);if(!1===(o=tu(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=nu(n,t),l=tu(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 Fc&&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}(),ou=0,iu=function(){function e(e){this.id=ou++,this.version="10.10.0",this.plugins=new Bc,this.options={id:{minify:!1},createGenerateId:Uc,Renderer:Ul?ru:null,plugins:[]},this.generateId=Uc({minify:!1});for(var t=0;t<Rc.length;t++)this.plugins.use(Rc[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=nl({},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===Hc.index?0:Hc.index+1);var r=new Fc(e,nl({},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(),Hc.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=nl({},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=ec(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}(),au=function(e){return new iu(e)},su="object"==typeof CSS&&null!=CSS&&"number"in CSS;function lu(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=lu(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
- */au();var cu=Date.now(),uu="fnValues"+cu,du="fnStyle"+ ++cu,fu=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=ec(e,{},n);return r[du]=t,r},onProcessStyle:function(e,t){if(uu in t||du 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[uu]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[du];i&&(o.style=i(e)||{});var a=o[uu];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},pu="@global",mu="@global ",hu=function(){function e(e,t,n){for(var r in this.type="global",this.at=pu,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new jc(nl({},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}(),gu=function(){function e(e,t,n){this.type="global",this.at=pu,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(mu.length);this.rule=n.jss.createRule(r,t,nl({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),yu=/\s*,\s*/g;function vu(e,t){for(var n=e.split(yu),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function bu(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===pu)return new hu(e,t,n);if("@"===e[0]&&e.substr(0,mu.length)===mu)return new gu(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[pu]:null;if(o){for(var i in o)t.addRule(i,o[i],nl({},n,{selector:vu(i,e.selector)}));delete r[pu]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,pu.length)===pu){var i=vu(o.substr(pu.length),e.selector);t.addRule(i,r[o],nl({},n,{selector:i})),delete r[o]}}(e,t))}}}var xu=/\s*,\s*/g,Su=/&/g,Mu=/\$([\w-]+)/g;function Cu(){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(xu),r=e.split(xu),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(Su,a):a+" "+l}return o}function n(e,t,n){if(n)return nl({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=nl({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),f="@"===u[0];if(d||f){if(a=n(l,c,a),d){var p=t(u,l.selector);s||(s=e(c,i)),p=p.replace(Mu,s);var m=l.key+"-"+u;"replaceRule"in c?c.replaceRule(m,r[u],nl({},a,{selector:p})):c.addRule(m,r[u],nl({},a,{selector:p}))}else f&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var wu=/[A-Z]/g,ku=/^ms-/,Tu={};function qu(e){return"-"+e.toLowerCase()}function Eu(e){if(Tu.hasOwnProperty(e))return Tu[e];var t=e.replace(wu,qu);return Tu[e]=ku.test(t)?"-"+t:t}function Lu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Eu(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Lu):t.fallbacks=Lu(e.fallbacks)),t}var Nu=su&&CSS?CSS.px:"px",Ou=su&&CSS?CSS.ms:"ms",Du=su&&CSS?CSS.percent:"%";function Au(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 Iu=Au({"animation-delay":Ou,"animation-duration":Ou,"background-position":Nu,"background-position-x":Nu,"background-position-y":Nu,"background-size":Nu,border:Nu,"border-bottom":Nu,"border-bottom-left-radius":Nu,"border-bottom-right-radius":Nu,"border-bottom-width":Nu,"border-left":Nu,"border-left-width":Nu,"border-radius":Nu,"border-right":Nu,"border-right-width":Nu,"border-top":Nu,"border-top-left-radius":Nu,"border-top-right-radius":Nu,"border-top-width":Nu,"border-width":Nu,"border-block":Nu,"border-block-end":Nu,"border-block-end-width":Nu,"border-block-start":Nu,"border-block-start-width":Nu,"border-block-width":Nu,"border-inline":Nu,"border-inline-end":Nu,"border-inline-end-width":Nu,"border-inline-start":Nu,"border-inline-start-width":Nu,"border-inline-width":Nu,"border-start-start-radius":Nu,"border-start-end-radius":Nu,"border-end-start-radius":Nu,"border-end-end-radius":Nu,margin:Nu,"margin-bottom":Nu,"margin-left":Nu,"margin-right":Nu,"margin-top":Nu,"margin-block":Nu,"margin-block-end":Nu,"margin-block-start":Nu,"margin-inline":Nu,"margin-inline-end":Nu,"margin-inline-start":Nu,padding:Nu,"padding-bottom":Nu,"padding-left":Nu,"padding-right":Nu,"padding-top":Nu,"padding-block":Nu,"padding-block-end":Nu,"padding-block-start":Nu,"padding-inline":Nu,"padding-inline-end":Nu,"padding-inline-start":Nu,"mask-position-x":Nu,"mask-position-y":Nu,"mask-size":Nu,height:Nu,width:Nu,"min-height":Nu,"max-height":Nu,"min-width":Nu,"max-width":Nu,bottom:Nu,left:Nu,top:Nu,right:Nu,inset:Nu,"inset-block":Nu,"inset-block-end":Nu,"inset-block-start":Nu,"inset-inline":Nu,"inset-inline-end":Nu,"inset-inline-start":Nu,"box-shadow":Nu,"text-shadow":Nu,"column-gap":Nu,"column-rule":Nu,"column-rule-width":Nu,"column-width":Nu,"font-size":Nu,"font-size-delta":Nu,"letter-spacing":Nu,"text-decoration-thickness":Nu,"text-indent":Nu,"text-stroke":Nu,"text-stroke-width":Nu,"word-spacing":Nu,motion:Nu,"motion-offset":Nu,outline:Nu,"outline-offset":Nu,"outline-width":Nu,perspective:Nu,"perspective-origin-x":Du,"perspective-origin-y":Du,"transform-origin":Du,"transform-origin-x":Du,"transform-origin-y":Du,"transform-origin-z":Du,"transition-delay":Ou,"transition-duration":Ou,"vertical-align":Nu,"flex-basis":Nu,"shape-margin":Nu,size:Nu,gap:Nu,grid:Nu,"grid-gap":Nu,"row-gap":Nu,"grid-row-gap":Nu,"grid-column-gap":Nu,"grid-template-rows":Nu,"grid-template-columns":Nu,"grid-auto-rows":Nu,"grid-auto-columns":Nu,"box-shadow-x":Nu,"box-shadow-y":Nu,"box-shadow-blur":Nu,"box-shadow-spread":Nu,"font-line-height":Nu,"text-shadow-x":Nu,"text-shadow-y":Nu,"text-shadow-blur":Nu});function Ru(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Ru(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Ru(o,t[o],n);else for(var i in t)t[i]=Ru(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Iu[e];return!a||0===t&&a===Nu?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Pu(e){void 0===e&&(e={});var t=Au(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Ru(r,e[r],t);return e},onChangeValue:function(e,n){return Ru(n,e,t)}}}var zu="",ju="",Fu="",Bu="",_u=Ul&&"ontouchstart"in document.documentElement;if(Ul){var Hu={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},$u=document.createElement("p").style;for(var Vu in Hu)if(Vu+"Transform"in $u){zu=Vu,ju=Hu[Vu];break}"Webkit"===zu&&"msHyphens"in $u&&(zu="ms",ju=Hu.ms,Bu="edge"),"Webkit"===zu&&"-apple-trailing-word"in $u&&(Fu="apple")}var Wu={js:zu,css:ju,vendor:Fu,browser:Bu,isTouch:_u};var Uu={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Wu.js?"-webkit-"+e:Wu.css+e)}},Ku={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Wu.js?Wu.css+"print-"+e:e)}},Gu=/[-\s]+(.)?/g;function Yu(e,t){return t?t.toUpperCase():""}function Xu(e){return e.replace(Gu,Yu)}function Ju(e){return Xu("-"+e)}var Zu,Qu={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Wu.js){var n="mask-image";if(Xu(n)in t)return e;if(Wu.js+Ju(n)in t)return Wu.css+e}return e}},ed={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Wu.vendor||Wu.isTouch?e:Wu.css+e)}},td={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Wu.css+e)}},nd={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Wu.css+e)}},rd={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Wu.js||"ms"===Wu.js&&"edge"!==Wu.browser?Wu.css+e:e)}},od={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Wu.js||"ms"===Wu.js||"apple"===Wu.vendor?Wu.css+e:e)}},id={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Wu.js?"WebkitColumn"+Ju(e)in t&&Wu.css+"column-"+e:"Moz"===Wu.js&&("page"+Ju(e)in t&&"page-"+e))}},ad={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Wu.js)return e;var n=e.replace("-inline","");return Wu.js+Ju(n)in t&&Wu.css+n}},sd={supportedProperty:function(e,t){return Xu(e)in t&&e}},ld={supportedProperty:function(e,t){var n=Ju(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Wu.js+n in t?Wu.css+e:"Webkit"!==Wu.js&&"Webkit"+n in t&&"-webkit-"+e}},cd={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Wu.js?""+Wu.css+e:e)}},ud={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Wu.js?Wu.css+"scroll-chaining":e)}},dd={"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"},fd={supportedProperty:function(e,t){var n=dd[e];return!!n&&(Wu.js+Ju(n)in t&&Wu.css+n)}},pd={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"},md=Object.keys(pd),hd=function(e){return Wu.css+e},gd={supportedProperty:function(e,t,n){var r=n.multiple;if(md.indexOf(e)>-1){var o=pd[e];if(!Array.isArray(o))return Wu.js+Ju(o)in t&&Wu.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Wu.js+Ju(o[0])in t))return!1;return o.map(hd)}return!1}},yd=[Uu,Ku,Qu,ed,td,nd,rd,od,id,ad,sd,ld,cd,ud,fd,gd],vd=yd.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),bd=yd.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Dl(t.noPrefill)),e}),[]),xd={};if(Ul){Zu=document.createElement("p");var Sd=window.getComputedStyle(document.documentElement,"");for(var Md in Sd)isNaN(Md)||(xd[Sd[Md]]=Sd[Md]);bd.forEach((function(e){return delete xd[e]}))}function Cd(e,t){if(void 0===t&&(t={}),!Zu)return e;if(null!=xd[e])return xd[e];"transition"!==e&&"transform"!==e||(t[e]=e in Zu.style);for(var n=0;n<vd.length&&(xd[e]=vd[n](e,Zu.style,t),!xd[e]);n++);try{Zu.style[e]=""}catch(e){return!1}return xd[e]}var wd,kd={},Td={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},qd=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ed(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Cd(t):", "+Cd(n);return r||(t||n)}function Ld(e,t){var n=t;if(!wd||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=kd[r])return kd[r];try{wd.style[e]=n}catch(e){return kd[r]=!1,!1}if(Td[e])n=n.replace(qd,Ed);else if(""===wd.style[e]&&("-ms-flex"===(n=Wu.css+n)&&(wd.style[e]="-ms-flexbox"),wd.style[e]=n,""===wd.style[e]))return kd[r]=!1,!1;return wd.style[e]="",kd[r]=n,kd[r]}function Nd(){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=Cd(n);i&&i!==n&&(o=!0);var a=!1,s=Ld(i,nc(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"===Wu.js?e:"@"+Wu.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Ld(t,nc(e))||e}}}function Od(){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 Dd(){return{plugins:[fu(),bu(),Cu(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Lu(e[t]);return e}return Lu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Eu(t);return t===r?e:(n.prop(r,e),null)}},Pu(),"undefined"==typeof window?null:Nd(),Od()]}}function Ad(){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=nl({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Ul&&(wd=document.createElement("p"));var Id={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)}},Rd=Id,Pd=b.createContext(null);function zd(){return b.useContext(Pd)}var jd,Fd=au(Dd()),Bd={disableGeneration:!1,generateClassName:$l(),jss:Fd,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},_d=b.createContext(Bd);function Hd(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=hl(e,["children","injectFirst","disableGeneration"]),s=nl({},b.useContext(_d),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!jd){var l=document.head;jd=document.createComment("mui-inject-first"),l.insertBefore(jd,l.firstChild)}s.jss=au({plugins:Dd().plugins,insertionPoint:jd})}return b.createElement(_d.Provider,{value:s},t)}var $d=-1e9;var Vd={};function Wd(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Rd.get(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Rd.set(o.sheetsManager,i,r,s));var l=nl({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=Rd.get(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,nl({link:!1},l))).attach(),o.sheetsCache&&Rd.set(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=lu(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,nl({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=Ad({baseClasses:s.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Ud(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?Vd:i,s=hl(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=nl({},o);return Object.keys(i).forEach((function(e){a[e]=il(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:$d+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=zd()||a,r=nl({},b.useContext(_d),s),i=b.useRef(),c=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 Wd(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Rd.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Rd.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(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Ad({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function Kd(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=Kd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Gd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Kd(e))&&(r&&(r+=" "),r+=t);return r}var Yd={exports:{}},Xd={},Jd="function"==typeof Symbol&&Symbol.for,Zd=Jd?Symbol.for("react.element"):60103,Qd=Jd?Symbol.for("react.portal"):60106,ef=Jd?Symbol.for("react.fragment"):60107,tf=Jd?Symbol.for("react.strict_mode"):60108,nf=Jd?Symbol.for("react.profiler"):60114,rf=Jd?Symbol.for("react.provider"):60109,of=Jd?Symbol.for("react.context"):60110,af=Jd?Symbol.for("react.async_mode"):60111,sf=Jd?Symbol.for("react.concurrent_mode"):60111,lf=Jd?Symbol.for("react.forward_ref"):60112,cf=Jd?Symbol.for("react.suspense"):60113,uf=Jd?Symbol.for("react.suspense_list"):60120,df=Jd?Symbol.for("react.memo"):60115,ff=Jd?Symbol.for("react.lazy"):60116,pf=Jd?Symbol.for("react.block"):60121,mf=Jd?Symbol.for("react.fundamental"):60117,hf=Jd?Symbol.for("react.responder"):60118,gf=Jd?Symbol.for("react.scope"):60119;function yf(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Zd:switch(e=e.type){case af:case sf:case ef:case nf:case tf:case cf:return e;default:switch(e=e&&e.$$typeof){case of:case lf:case ff:case df:case rf:return e;default:return t}}case Qd:return t}}}function vf(e){return yf(e)===sf}Xd.AsyncMode=af,Xd.ConcurrentMode=sf,Xd.ContextConsumer=of,Xd.ContextProvider=rf,Xd.Element=Zd,Xd.ForwardRef=lf,Xd.Fragment=ef,Xd.Lazy=ff,Xd.Memo=df,Xd.Portal=Qd,Xd.Profiler=nf,Xd.StrictMode=tf,Xd.Suspense=cf,Xd.isAsyncMode=function(e){return vf(e)||yf(e)===af},Xd.isConcurrentMode=vf,Xd.isContextConsumer=function(e){return yf(e)===of},Xd.isContextProvider=function(e){return yf(e)===rf},Xd.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Zd},Xd.isForwardRef=function(e){return yf(e)===lf},Xd.isFragment=function(e){return yf(e)===ef},Xd.isLazy=function(e){return yf(e)===ff},Xd.isMemo=function(e){return yf(e)===df},Xd.isPortal=function(e){return yf(e)===Qd},Xd.isProfiler=function(e){return yf(e)===nf},Xd.isStrictMode=function(e){return yf(e)===tf},Xd.isSuspense=function(e){return yf(e)===cf},Xd.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ef||e===sf||e===nf||e===tf||e===cf||e===uf||"object"==typeof e&&null!==e&&(e.$$typeof===ff||e.$$typeof===df||e.$$typeof===rf||e.$$typeof===of||e.$$typeof===lf||e.$$typeof===mf||e.$$typeof===hf||e.$$typeof===gf||e.$$typeof===pf)},Xd.typeOf=yf,Yd.exports=Xd;var bf=Yd.exports,xf={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Sf={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Mf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Cf={};function wf(e){return bf.isMemo(e)?Mf:Cf[e.$$typeof]||xf}Cf[bf.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Cf[bf.Memo]=Mf;var kf=Object.defineProperty,Tf=Object.getOwnPropertyNames,qf=Object.getOwnPropertySymbols,Ef=Object.getOwnPropertyDescriptor,Lf=Object.getPrototypeOf,Nf=Object.prototype;var Of=function e(t,n,r){if("string"!=typeof n){if(Nf){var o=Lf(n);o&&o!==Nf&&e(t,o,r)}var i=Tf(n);qf&&(i=i.concat(qf(n)));for(var a=wf(t),s=wf(n),l=0;l<i.length;++l){var c=i[l];if(!(Sf[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Ef(n,c);try{kf(t,c,u)}catch(e){}}}}return t},Df=ee(Of);function Af(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=hl(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(nl({theme:e},n))}}}:{root:t},l=Ud(s,nl({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=b.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,f=hl(t,["children","className","clone","component"]),p=Gd(l(t).root,c),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),u)return b.cloneElement(s,nl({className:Gd(s.props.className,p)},m));if("function"==typeof s)return s(nl({className:p},m));var h=d||e;return b.createElement(h,nl({ref:r,className:p},m),s)}));return Df(c,e),c}}function If(e){var t=e.children,n=e.theme,r=zd(),o=b.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):nl({},e,t)}(r,n);return null!=e&&(e[_l]=null!==r),e}),[n,r]);return b.createElement(Pd.Provider,{value:o},t)}var Rf=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=hl(t,["defaultTheme","withTheme","name"]),l=a,c=Ud(e,nl({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=b.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=hl(e,["classes","innerRef"]),u=c(nl({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=zd()||r,a&&(d=Vl({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),b.createElement(n,nl({ref:s||t,classes:u},d))}));return Df(u,n),u}},Pf=Bl(),zf=function(e){var t=Af(e);return function(e,n){return t(e,nl({defaultTheme:Pf},n))}};function jf(e,t){return Rf(e,nl({defaultTheme:Pf},t))}function Ff(e){if("string"!=typeof e)throw new Error(ll(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Bf(){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 _f(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=_f(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Hf(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=_f(e))&&(r&&(r+=" "),r+=t);return r}function $f(e){return e&&e.ownerDocument||document}function Vf(e){return $f(e).defaultView||window}function Wf(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Uf="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Kf(e){var t=x.useRef(e);return Uf((function(){t.current=e})),x.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Gf(e,t){return x.useMemo((function(){return null==e&&null==t?null:function(n){Wf(e,n),Wf(t,n)}}),[e,t])}var Yf=!0,Xf=!1,Jf=null,Zf={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||(Yf=!0)}function ep(){Yf=!1}function tp(){"hidden"===this.visibilityState&&Xf&&(Yf=!0)}function np(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Yf||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Zf[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function rp(){Xf=!0,window.clearTimeout(Jf),Jf=window.setTimeout((function(){Xf=!1}),100)}function op(){var e=x.useCallback((function(e){var t,n=T.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Qf,!0),t.addEventListener("mousedown",ep,!0),t.addEventListener("pointerdown",ep,!0),t.addEventListener("touchstart",ep,!0),t.addEventListener("visibilitychange",tp,!0))}),[]);return{isFocusVisible:np,onBlurVisible:rp,ref:e}}var ip=!1,ap=b.createContext(null),sp="unmounted",lp="exited",cp="entering",up="entered",dp="exiting",fp=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=lp,r.appearStatus=cp):o=up:o=t.unmountOnExit||t.mountOnEnter?sp:lp,r.state={status:o},r.nextCallback=null,r}Xl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===sp?{status:lp}: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!==cp&&n!==up&&(t=cp):n!==cp&&n!==up||(t=dp)}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===cp){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===lp&&this.setState({status:sp})},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||ip?this.safeSetState({status:up},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:cp},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:up},(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&&!ip?(this.props.onExit(r),this.safeSetState({status:dp},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:lp},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:lp},(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===sp)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=ml(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(ap.Provider,{value:null},"function"==typeof n?n(e,r):b.cloneElement(b.Children.only(n),r))},t}(b.Component);function pp(){}fp.contextType=ap,fp.propTypes={},fp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pp,onEntering:pp,onEntered:pp,onExit:pp,onExiting:pp,onExited:pp},fp.UNMOUNTED=sp,fp.EXITED=lp,fp.ENTERING=cp,fp.ENTERED=up,fp.EXITING=dp;var mp=fp;function hp(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 gp(e,t,n){return null!=n[t]?n[t]:e.props[t]}function yp(e,t,n){var r=hp(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(M(a)){var s=i in t,l=i in r,c=t[i],u=M(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&M(c)&&(o[i]=C(a,{onExited:n.bind(null,a),in:c.props.in,exit:gp(a,"exit",e),enter:gp(a,"enter",e)})):o[i]=C(a,{in:!1}):o[i]=C(a,{onExited:n.bind(null,a),in:!0,exit:gp(a,"exit",e),enter:gp(a,"enter",e)})}})),o}var vp=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},bp=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Jl(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Xl(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,hp(n.children,(function(e){return C(e,{onExited:r.bind(null,e),in:!0,appear:gp(e,"appear",n),enter:gp(e,"enter",n),exit:gp(e,"exit",n)})}))):yp(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=hp(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=nl({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ml(e,["component","childFactory"]),o=this.state.contextValue,i=vp(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?b.createElement(ap.Provider,{value:o},i):b.createElement(ap.Provider,{value:o},b.createElement(t,r,i))},t}(b.Component);bp.propTypes={},bp.defaultProps={component:"div",childFactory:function(e){return e}};var xp=bp;function Sp(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 Mp=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,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=hl(e,["classes","className","component","square","elevation","variant"]);return x.createElement(i,nl({className:Hf(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),Cp=jf((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),nl({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"})(Mp),wp="undefined"==typeof window?x.useEffect:x.useLayoutEffect;function kp(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=x.useState(!1),f=d[0],p=d[1],m=Hf(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=Hf(t.child,f&&t.childLeaving,r&&t.childPulsate),y=Kf(c);return wp((function(){if(!s){p(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),x.createElement("span",{className:m,style:h},x.createElement("span",{className:g}))}var Tp=x.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=hl(e,["center","classes","className"]),s=x.useState([]),l=s[0],c=s[1],u=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;c((function(e){return[].concat(Dl(e),[x.createElement(kp,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.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,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:h.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,M=x.clientY;u=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)-u),u)+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:u,rippleY:d,rippleSize:y,cb:n})},p.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):g({pulsate:i,rippleX:u,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,c((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",nl({className:Hf(o.root,i),ref:h},a),x.createElement(xp,{component:null,exit:!0},l))})),qp=jf((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(Tp)),Ep=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,c=e.component,u=void 0===c?"button":c,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=hl(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=op(),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 Kf((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=Kf((function(e){_.current||(_.current=e.currentTarget),K(e)&&(W(!0),w&&w(e)),C&&C(e)})),ae=function(){var e=T.findDOMNode(_.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=x.useRef(!1),le=Kf((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))})),ce=Kf((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)})),ue=u;"button"===ue&&B.href&&(ue="a");var de={};"button"===ue?(de.type=F,de.disabled=f):("a"===ue&&B.href||(de.role="button"),de["aria-disabled"]=f);var fe=Gf(r,t),pe=Gf(Y,_),me=Gf(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(ue,nl({className:Hf(s.root,l,V&&[s.focusVisible,b],f&&s.disabled),onBlur:oe,onClick:M,onFocus:ie,onKeyDown:le,onKeyUp:ce,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(qp,nl({ref:H,center:i},z)):null)})),Lp=jf({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"})(Ep),Np={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Op=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,c=e.display,u=void 0===c?"initial":c,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?Np:b,M=hl(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":S[v]||Np[v])||"span";return x.createElement(C,nl({className:Hf(o.root,i,"inherit"!==v&&o[v],"initial"!==s&&o["color".concat(Ff(s))],m&&o.noWrap,f&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(Ff(r))],"initial"!==u&&o["display".concat(Ff(u))]),ref:t},M))})),Dp=jf((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"})(Op),Ap=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,c=e.disabled,u=void 0!==c&&c,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=hl(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=M&&x.createElement("span",{className:Hf(r.startIcon,r["iconSize".concat(Ff(S))])},M),L=h&&x.createElement("span",{className:Hf(r.endIcon,r["iconSize".concat(Ff(S))])},h);return x.createElement(Lp,nl({className:Hf(r.root,r[T],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(Ff(a))],"medium"!==S&&[r["".concat(T,"Size").concat(Ff(S))],r["size".concat(Ff(S))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!m,focusVisibleClassName:Hf(r.focusVisible,g),ref:t,type:w},q),x.createElement("span",{className:r.label},E,n,L))})),Ip=jf((function(e){return{root:nl({},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:pl(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:pl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:pl(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(pl(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:pl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(pl(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:pl(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"})(Ap);var Rp="undefined"!=typeof window?x.useLayoutEffect:x.useEffect,Pp=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],c=s[1],u=Gf(x.isValidElement(n)?n.ref:null,t);return Rp((function(){i||c(function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(r)||document.body)}),[r,i]),Rp((function(){if(l&&!i)return Wf(t,l),function(){Wf(t,null)}}),[t,l,i]),Rp((function(){a&&(l||i)&&a()}),[a,l,i]),i?x.isValidElement(n)?x.cloneElement(n,{ref:u}):n:l?T.createPortal(n,l):l})),zp=Pp;function jp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Fp(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Bp(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Dl(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)&&jp(e,r)}))}function _p(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Hp(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=$f(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(Fp(i)+a,"px"),n=$f(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(Fp(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 $p=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 Gl(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&&jp(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);Bp(t,e.mountNode,e.modalRef,r,!0);var o=_p(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=_p(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Hp(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=_p(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&&jp(e.modalRef,!0),Bp(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&&jp(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,c=e.isEnabled,u=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=Gf(t.ref,g),v=x.useRef();return x.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(m.current=l().activeElement),x.useEffect((function(){if(u){var e=$f(h.current);r||!h.current||h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),h.current.focus());var t=function(){null!==h.current&&(e.hasFocus()&&!i&&c()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?p.current.focus():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,c,u]),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 Wp={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"}},Up=x.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=hl(e,["invisible","open"]);return o?x.createElement("div",nl({"aria-hidden":!0,ref:t},i,{style:nl({},Wp.root,r?Wp.invisible:{},i.style)})):null}));var Kp=new $p,Gp=x.forwardRef((function(e,t){var n=zd(),r=Vl({name:"MuiModal",props:nl({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Up:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,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?Kp:O,A=r.onBackdropClick,I=r.onClose,R=r.onEscapeKeyDown,P=r.onRendered,z=r.open,j=hl(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=Gf(V,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),K=function(){return $f($.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=Kf((function(){var e=function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(u)||K().body;D.add(G(),e),V.current&&Y()})),J=x.useCallback((function(){return D.isTopModal(G())}),[D]),Z=Kf((function(e){$.current=e,e&&(P&&P(),z&&J()?Y():jp(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&&c||Q()}),[z,Q,U,c,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:Fl}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=Bf((function(){_(!1)}),s.props.onEnter),te.onExited=Bf((function(){_(!0),c&&Q()}),s.props.onExited)),x.createElement(zp,{ref:Z,container:u,disablePortal:S},x.createElement("div",nl({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(R&&R(e),v||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},j,{style:nl({},ee.root,!z&&B?ee.hidden:{},j.style)}),E?null:x.createElement(i,nl({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))))})),Yp=Gp,Xp=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,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,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=hl(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return x.createElement(s,nl({className:Hf(o.root,i,"fullWidth"!==y&&o[y],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===p&&o.vertical),role:h,ref:t},v))})),Jp=jf((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:pl(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"})(Xp);function Zp(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Qp={entering:{opacity:1,transform:Zp(1)},entered:{opacity:1,transform:"none"}},em=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,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,p=e.timeout,m=void 0===p?"auto":p,h=e.TransitionComponent,g=void 0===h?mp:h,y=hl(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=x.useRef(),b=x.useRef(),S=zd()||Pf,M=S.unstable_strictMode&&!o,C=x.useRef(null),w=Gf(n.ref,t),k=Gf(M?C:void 0,w),T=function(e){return function(t,n){if(e){var r=Al(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=Sp({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=Sp({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=Zp(.75),c&&c(e)})),D=T(u);return x.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),x.createElement(g,nl({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,nl({style:nl({opacity:0,transform:Zp(.75),visibility:"exited"!==e||i?void 0:"hidden"},Qp[e],f,n.props.style),ref:k},t))}))}));em.muiSupportAuto=!0;var tm=em,nm=x.createContext({}),rm=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,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=hl(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=x.useMemo((function(){return{dense:l}}),[l]);return x.createElement(nm.Provider,{value:p},x.createElement(a,nl({className:Hf(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),om=jf({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(rm),im="undefined"==typeof window?x.useEffect:x.useLayoutEffect,am=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,c=e.classes,u=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=hl(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=hl(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=x.useContext(nm),D={dense:v||O.dense||!1,alignItems:r},A=x.useRef(null);im((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=Gf(x.useCallback((function(e){A.current=T.findDOMNode(e)}),[]),t),F=nl({className:Hf(c.root,u,D.dense&&c.dense,!C&&c.gutters,k&&c.divider,S&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,L&&c.selected),disabled:S},N),B=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=Hf(c.focusVisible,q),B=Lp),z?(B=F.component||d?B:"div","li"===p&&("li"===B?B="div":"li"===F.component&&(F.component="div")),x.createElement(nm.Provider,{value:D},x.createElement(p,nl({className:Hf(c.container,h),ref:j},g),x.createElement(B,F,P),P.pop()))):x.createElement(nm.Provider,{value:D},x.createElement(B,nl({ref:j},F),P))})),sm=jf((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"})(am),lm=x.forwardRef((function(e,t){var n=e.classes,r=e.className,o=hl(e,["classes","className"]),i=x.useContext(nm);return x.createElement("div",nl({className:Hf(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),cm=jf((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(lm),um=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,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,p=hl(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=x.useContext(nm).dense,h=null!=c?c:n;null==h||h.type===Dp||a||(h=x.createElement(Dp,nl({variant:m?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===Dp||a||(g=x.createElement(Dp,nl({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),x.createElement("div",nl({className:Hf(r.root,o,m&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),dm=jf({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(um);function fm(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function pm(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function mm(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function hm(e){return"function"==typeof e?e():e}var gm=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,c=e.children,u=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?tm:O,A=e.transitionDuration,I=void 0===A?"auto":A,R=e.TransitionProps,P=void 0===R?{}:R,z=hl(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=hm(r),n=(t&&1===t.nodeType?t:$f(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+fm(n,o),left:n.left+pm(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:fm(e,N.vertical)+t,horizontal:pm(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:mm(o)};var i=F(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=Vf(hm(r)),f=d.innerHeight-y,p=d.innerWidth-y;if(a<y){var m=a-y;a-=m,o.vertical+=m}else if(c>f){var h=c-f;a-=h,o.vertical+=h}if(s<y){var g=s-y;s-=g,o.horizontal+=g}else if(u>p){var v=u-p;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:mm(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?$f(hm(r)).body:void 0);return x.createElement(Yp,nl({container:U,open:k,ref:t,BackdropProps:{invisible:!0},className:Hf(u.root,d)},z),x.createElement(D,nl({appear:!0,in:k,onEnter:v,onEntered:b,onExit:M,onExited:C,onExiting:w,timeout:W},P,{onEntering:Bf((function(e,t){S&&S(e,t),$()}),P.onEntering)}),x.createElement(Cp,nl({elevation:m,ref:V},E,{className:Hf(u.paper,E.className)}),c)))})),ym=jf({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(gm);function vm(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function bm({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:vm(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 xm={menuItem:"alternative-menu-item"},Sm=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>Ud((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(sm,$s({className:`${o.root} ${n}`},r))},Mm=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${xm.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 Cm({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=Pe.detectTextDirection(e);return b.createElement(Sm,{nested:r,role:"menuitem",button:!0,onClick:n,className:xm.menuItem,onKeyDown:Mm,dir:a,autoFocus:t},b.createElement(dm,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),b.createElement(cm,{style:{minWidth:16}},b.createElement(bm,{d:t?qs.d:""})),o&&b.createElement(cm,{style:{minWidth:16}},b.createElement(bm,{d:o.d})))}Cm.propTypes={title:Ks.string.isRequired,selected:Ks.bool,onClick:Ks.func.isRequired,nested:Ks.bool,icon:Ks.shape({d:Ks.string.isRequired}),bold:Ks.bool,dir:Ks.string.isRequired},Cm.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Sm.propTypes={nested:Ks.bool,className:Ks.string},Sm.defaultProps={nested:!1,className:xm.menuItem};const wm={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 km({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const c=i.map(((t,o)=>{var s;return b.createElement(b.Fragment,{key:t.id},b.createElement(Cm,{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(om,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>b.createElement(Cm,{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(Jp,{key:`divider-${t.id}`}))}));return b.createElement(ym,$s({anchorEl:t,open:s,onClose:a},wm[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),b.createElement(om,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}km.propTypes={chartId:Ks.string.isRequired,alignTo:Ks.any,currentId:Ks.string.isRequired,dir:Ks.string.isRequired,dock:Ks.string.isRequired,list:Ks.array,onClose:Ks.func.isRequired,show:Ks.bool.isRequired,instruction:Ks.string.isRequired},km.defaultProps={list:[],alignTo:null};const Tm="title-button",qm="active-title-button",Em=zf((({children:e,...t})=>b.createElement(Ip,$s({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Lm=zf(Ip)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class Nm 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(`.${Tm}`);t&&(t.focus(),t.classList.add(qm))}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(`.${Tm}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${qm}`);e&&(e.classList.remove(qm),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,p=o||Boolean(!t.drillUp)||this.state.inSelection,m=t.breadcrumbs.map(((e,n)=>b.createElement(Em,{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(bm,$s({},Ls,{size:"small",style:{margin:"0 8px"}}))))),h=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||o||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const x=()=>{this.setState({disableCyclicButton:!0})},S=Pe.detectTextDirection(t.text),M=b.createElement(Em,{"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:`${Tm} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&b.createElement(bm,$s({},Ts,{size:"small",title:r.get("Tooltip.selections.locked")})),b.createElement("span",{style:d,dir:S},t.text),n&&h&&b.createElement(bm,$s({},Es,{size:"small",style:{margin:"0 8px"}})));return b.createElement(b.Fragment,null,t.icon&&t.icon.onClick&&b.createElement(Lm,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},b.createElement(bm,$s({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&b.createElement(bm,$s({},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(km,{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 Om(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}Nm.propTypes={chartId:Ks.string.isRequired,disabled:Ks.bool.isRequired,padding:Ks.string,minWidth:Ks.string,titleData:Ks.shape({breadcrumbs:Ks.arrayOf(Ks.string).isRequired,icon:Ks.shape({path:Ks.shape({d:Ks.string.isRequired}),tooltip:Ks.string.isRequired,onClick:Ks.func}),index:Ks.number.isRequired,locked:Ks.bool.isRequired,text:Ks.string.isRequired,popoverText:Ks.string.isRequired,drillUp:Ks.func,id:Ks.string.isRequired}).isRequired,popover:Ks.shape({dir:Ks.string.isRequired,dock:Ks.string.isRequired,getPopoverOptions:Ks.func.isRequired}),translator:Ks.shape({get:Ks.func.isRequired}).isRequired,selections:Ks.shape({isActive:Ks.func,addListener:Ks.func,removeListener:Ks.func}),style:Ks.shape({fontSize:Ks.string,color:Ks.string,fontFamily:Ks.string}).isRequired,isDimension:Ks.bool.isRequired,hasAlternative:Ks.bool.isRequired,supportConditional:Ks.bool.isRequired,showGroupDimOptions:Ks.bool.isRequired},Nm.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const Dm=Bl({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 Am=$l({productionPrefix:"q2533",disableGlobal:!0,seed:""});var Im={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:Rm}=Im;function Pm({layoutService:e,largeDataService:t}){const{maxNumPoints:n=Rm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:zm}=Im,jm=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=zm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!Pm({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:Fm}=Im,{MAX_NUM_POINTS:Bm,DEFAULT_NUM_POINTS:_m,DEFAULT_NUM_LINES:Hm}=Im,{DEFAULT_NUM_POINTS:$m}=Im,Vm=({layoutService:e,largeDataService:t})=>{if(!Pm({layoutService:e,largeDataService:t})){const{maxNumPoints:e=$m}=(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=Hm,maxNumPoints:i=_m,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(jm({layoutService:e,largeDataService:t})*r[0]<=i)return r[0];const s=Math.max(1,Math.min(o,r[1])),l=i/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>Hm||i>_m)?Math.min(c,Math.ceil(Bm/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=Fm}=(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})},Wm=({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:jm({layoutService:r,largeDataService:o})};return n.getHyperCubeContinuousData(i,a,!1)};function Um({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>Pm({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>Vm({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>jm({layoutService:t,largeDataService:n}),fetch:(o,i)=>Wm({start:o,end:i,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Km(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Gm({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 Ym(){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 Xm(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=Ym(),i=Ym();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 Jm(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Zm(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Xm(e,t,n.qMatrix),o=Jm(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,eh=1/Qm,th=1e-6,nh=eh**44;function rh(e){return e.qIsOtherCell}function oh({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(rh)){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(rh)||t++})),t}(n)}const ih={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var ah={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 sh="…";function lh(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function ch(e,t){const{localProps:{size:n},props:{anchor:r}}=t,o=function({props:e,localProps:{size:t},style:n,renderer:r}){const o=e.label.padding,i=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",c=s(l);let{x:u,width:d}=r;e.start===e.end&&(d=c.width+2*o,1===e.end&&(u-=d));const f={x:u+o,y:o,width:d-2*o,height:t.height-2*o},p=s(`${l[0]}${sh}`).width,m=Math.max(0,f.width-c.width),h=Math.max(0,f.height-c.height),g=i*m,y=a*h;return{show:f.width>=Math.min(p,c.width),text:l,dx:g,dy:y,rect:f,style:n.label,segment:{x:u+g,width:c.width+2*o},tickValue:e.value}}}}(t),i=function({localProps:{size:e},style:t,scale:n,props:r}){const[o,i]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=lh(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:lh(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 uh(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=lh(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:lh(o,n.minorGuideLine.strokeWidth),x2:i,y2:lh(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function dh(e){return e.filter((e=>e.show)).map((e=>de({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var fh={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=lh(1,t.line.strokeWidth);return{show:n.line.show,x1:lh(0,t.line.strokeWidth),y1:r,x2:lh(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=ch(n,this),this.state.minor=uh(r,this)},render(){return[...dh([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>de({},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})))),...dh(this.state.major.map((e=>e.guideLine))),...dh(this.state.minor.map((e=>e.guideLine)))];var e}};function ph(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 mh(e){return e.qTags.indexOf("$qualified")>-1}function hh({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];ph(i,a)?(mh(a)?(t.push(o),n.push(r)):(t.push(r),n.push(o)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function gh({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,o=NaN,i=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(o=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){i="auto",s=!0;break}if(e&&e.queries.inner(n)){i=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(o)&&Number.isNaN(i)&&"auto"!==i){i=o,o=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(o)&&(o="auto",i="auto");return{outer:o,inner:i,minor:a,isDayOrShorter:s}}}}const yh=16;function vh({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+yh}))),r.clamp(n),o.rangeAndWidth}}}const bh=6;function xh({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>=bh,canFitHalfDayTicks:n=>n>=t*e.count()}}function Sh({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=vh,queryFactory:s=xh}={attributesFactory:vh,queryFactory:xh}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:i});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:o})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function Mh({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=Sh,mapper:a=hh,resolver:s=gh}={metaFactory:Sh,mapper:hh,resolver:gh}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=i({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:o}),f=s({qualifiedMeta:u,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const o=f.resolve(t);return n.set(r,o),o}}}const Ch=86400,wh=864e5;function kh(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(wh*(e-Math.floor(e)))))}const Th=kh(0).getTime();function qh(e){return(e.getTime()-Th)/Ch/1e3}const Eh=new Date,Lh=new Date;function Nh(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=>Nh((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)=>(Eh.setTime(+t),Lh.setTime(+r),e(Eh),e(Lh),Math.floor(n(Eh,Lh))),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,Dh=6e4,Ah=36e5,Ih=864e5,Rh=6048e5,Ph=Nh((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Oh)}),((e,t)=>(t-e)/Oh),(e=>e.getUTCSeconds()));Ph.range;const zh=Nh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oh)}),((e,t)=>{e.setTime(+e+t*Dh)}),((e,t)=>(t-e)/Dh),(e=>e.getMinutes()));zh.range;const jh=Nh((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Dh)}),((e,t)=>(t-e)/Dh),(e=>e.getUTCMinutes()));jh.range;const Fh=Nh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oh-e.getMinutes()*Dh)}),((e,t)=>{e.setTime(+e+t*Ah)}),((e,t)=>(t-e)/Ah),(e=>e.getHours()));Fh.range;const Bh=Nh((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Ah)}),((e,t)=>(t-e)/Ah),(e=>e.getUTCHours()));Bh.range;const _h=Nh((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Dh)/Ih),(e=>e.getDate()-1));_h.range;const Hh=Nh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ih),(e=>e.getUTCDate()-1));Hh.range;const $h=Nh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ih),(e=>Math.floor(e/Ih)));function Vh(e){return Nh((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())*Dh)/Rh))}$h.range;const Wh=Vh(0),Uh=Vh(1),Kh=Vh(2),Gh=Vh(3),Yh=Vh(4),Xh=Vh(5),Jh=Vh(6);function Zh(e){return Nh((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)/Rh))}Wh.range,Uh.range,Kh.range,Gh.range,Yh.range,Xh.range,Jh.range;const Qh=Zh(0),eg=Zh(1),tg=Zh(2),ng=Zh(3),rg=Zh(4),og=Zh(5),ig=Zh(6);Qh.range,eg.range,tg.range,ng.range,rg.range,og.range,ig.range;const ag=Nh((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()));ag.range;const sg=Nh((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()));sg.range;const lg=Nh((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()));lg.every=e=>isFinite(e=Math.floor(e))&&e>0?Nh((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,lg.range;const cg=Nh((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()));cg.every=e=>isFinite(e=Math.floor(e))&&e>0?Nh((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,cg.range;const ug={second:1,minute:2,hour:3,day:4,month:5,year:6};function dg({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:o,timeOnly:i,initialMin:a}){const[s,l]=e.domain(),c=o.key({distance:n});let u;o.get(c,1)?u=o.get(c,1):(u=function(e,t,n,r,o,i){function a(e){return cg.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=Ph.count(e,t),l=jh.count(e,t),c=Bh.count(e,t),u=Hh.count(e,t),d=Qh.count(e,t),f=sg.count(e,t),p=cg.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:cg.every(1),formatter:r.year.formatter,offset:e=>cg.offset(e,-1),floor:cg.floor};if(s<=m)v.type=ug.second,v.desc="second",v.count=s,v.interval=Ph.every(1),v.formatter=r.second.formatter,v.offset=e=>Ph.offset(e,-1),v.floor=Ph.floor;else if(s/2<=m)v.type=ug.second,v.desc="every other second",v.count=s/2,v.interval=Ph.every(2),v.formatter=r.second.formatter,v.offset=e=>Ph.offset(e,-2),v.floor=Ph.floor;else if(s/5<=m)v.type=ug.second,v.desc="every 5 second",v.count=s/5,v.interval=Ph.every(5),v.formatter=r.second.formatter,v.offset=e=>Ph.offset(e,-5),v.floor=Ph.floor;else if(s/15<=m)v.type=ug.second,v.desc="every 15 second",v.count=s/15,v.interval=Ph.every(15),v.formatter=r.second.formatter,v.offset=e=>Ph.offset(e,-15),v.floor=Ph.floor;else if(s/30<=m)v.type=ug.second,v.desc="every 30 second",v.count=s/30,v.interval=Ph.every(30),v.formatter=r.second.formatter,v.offset=e=>Ph.offset(e,-30),v.floor=Ph.floor;else if(l<=h)v.type=ug.minute,v.desc="minute",v.count=l,v.interval=jh.every(1),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-1),v.floor=jh.floor;else if(l/2<=h)v.type=ug.minute,v.desc="every 2 minute",v.count=l/2,v.interval=jh.every(2),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-2),v.floor=jh.floor;else if(l/5<=h)v.type=ug.minute,v.desc="every 5 minute",v.count=l/5,v.interval=jh.every(5),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-5),v.floor=jh.floor;else if(l/10<=h)v.type=ug.minute,v.desc="every 10 minute",v.count=l/10,v.interval=jh.every(10),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-10),v.floor=jh.floor;else if(l/15<=h)v.type=ug.minute,v.desc="every 15 minute",v.count=l/15,v.interval=jh.every(15),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-15),v.floor=jh.floor;else if(l/30<=h)v.type=ug.minute,v.desc="every 30 minute",v.count=l/30,v.interval=jh.every(30),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-30),v.floor=jh.floor;else if(c<=h)v.type=ug.hour,v.desc="hour",v.count=c,v.interval=Bh.every(1),v.formatter=r.minute.formatter,v.offset=e=>Bh.offset(e,-1),v.floor=Bh.floor;else if(c/2<=h)v.type=ug.hour,v.desc="every 2 hour",v.count=c/2,v.interval=Bh.every(2),v.formatter=r.minute.formatter,v.offset=e=>Bh.offset(e,-2),v.floor=Bh.floor;else if(c/3<=h)v.type=ug.hour,v.desc="every 3 hour",v.count=c/3,v.interval=Bh.every(3),v.formatter=r.minute.formatter,v.offset=e=>Bh.offset(e,-3),v.floor=Bh.floor;else if(c/6<=h)v.type=ug.hour,v.desc="every 6 hour",v.count=c/6,v.interval=Bh.every(6),v.formatter=r.minute.formatter,v.offset=e=>Bh.offset(e,-6),v.floor=Bh.floor;else if(c/12<=h||o)v.type=ug.hour,v.desc="every 12 hour",v.count=c/12,v.interval=Bh.every(12),v.formatter=r.minute.formatter,v.offset=e=>Bh.offset(e,-12),v.floor=Bh.floor;else if(u<=g)v.type=ug.day,v.desc="day",v.count=u,v.interval=Hh.every(1),v.formatter=r.date.formatter,v.offset=e=>Hh.offset(e,-1),v.floor=Hh.floor;else if(u/2<=g)v.type=ug.day,v.desc="every 2 day",v.count=u/2,v.interval=Hh.every(2),v.formatter=r.date.formatter,v.offset=e=>Hh.offset(e,-2),v.floor=Hh.floor;else if(u/3<=g)v.type=ug.day,v.desc="every 3 day",v.count=u/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=ug.day,v.desc="week",v.count=d,v.interval=Qh.every(1),v.formatter=r.date.formatter,v.offset=e=>Qh.offset(e,-1),v.floor=Hh.floor;else if(d/2<=g)v.type=ug.day,v.desc="every 2 week",v.count=d/2,v.interval=Qh.every(2),v.formatter=r.date.formatter,v.offset=e=>Qh.offset(e,-2),v.floor=Hh.floor;else if(f<=g)v.type=ug.month,v.desc="month",v.count=f,v.interval=sg.every(1),v.formatter=r.date.formatter,v.offset=e=>sg.offset(e,-1),v.floor=Hh.floor;else if(f/3<=g)v.type=ug.month,v.desc="quarter",v.count=f/3,v.interval=sg.every(3),v.formatter=r.date.formatter,v.offset=e=>sg.offset(e,-3),v.floor=Hh.floor;else if(f/6<=g)v.type=ug.month,v.desc="half year",v.count=f/6,v.interval=sg.every(6),v.formatter=r.date.formatter,v.offset=e=>sg.offset(e,-6),v.floor=Hh.floor;else if(p<=y)v.type=ug.year,v.desc="year",v.count=p,v.interval=cg.every(1),v.formatter=r.year.formatter,v.offset=e=>cg.offset(e,-1),v.floor=cg.floor;else if(p/2<=y)v.type=ug.year,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>cg.offset(e,-2),v.floor=cg.floor;else if(p/5<=y)v.type=ug.year,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>cg.offset(e,-5),v.floor=cg.floor;else if(p/10<=y)v.type=ug.year,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>cg.offset(e,-10),v.floor=cg.floor;else{const e=Math.max(1,Math.floor(p/y));v.type=ug.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>cg.offset(t,-e),v.floor=cg.floor}return v}(s,l,n,t.all(),r,a),o.set(c,u,1));const d=e.ticks(u.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(u.offset(d[0])):d.push(u.floor(s));const f=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:u.formatter}}));let p=[];if(!i&&u.type<=ug.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 fg=86400,pg=1440,mg={};function hg(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function gg(e,t,n){const{generator:r,anchor:o,clamp:i,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(i);const[l,c]=e.domain(),u=Zi().domain([kh(l),kh(c)]);u.clamp(i),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let f;f="d3"===d.type?(e,o)=>dg({timeScale:u,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:kh(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(mg[[t,n,r,r,i]])return mg[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=kh(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,f=t/(o-r),p=f/1440,m=f/fg,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/fg):y<2?(T=2,k=1/fg*2):y<5?(T=5,k=1/fg*5):y<10?(T=10,k=1/fg*10):y<30?(T=30,k=1/fg*30):v<1?(q=1,k=1/pg):v<2?(q=2,k=1/pg*2):v<5?(q=5,k=1/pg*5):v<10?(q=10,k=1/pg*10):v<30?(q=30,k=1/pg*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?hg("year",[l+M*O,0,1],[l+C*O,0,1],a.year.formatter):N?hg("month",[l,c+M*N,1],[l,c+C*N,1],a.date.formatter):L?hg("day",[l,c,u+M*L],[l,c,u+C*L],a.date.formatter):E?hg("hour",[l,c,u,0+M*E],[l,c,u,0+C*E],a.minute.formatter):q?hg("minute",[l,c,u,0,0+M*q],[l,c,u,0,0+C*q],a.minute.formatter):hg("second",[l,c,u,0,0,0+M*T],[l,c,u,0,0,0+C*T],a.second.formatter),w=qh(S.start),D.inner.push(S);const e=Math.floor(w);if(!(i||O||N||L)){const t={type:"day",start:kh(e),end:kh(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,mg[[t,n,r,r,i]]=D,D}(n,e,d.min,l,c,"T"===s.qType);const p={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===o?t.qStart:"end"===o?t.qEnd:(t.qStart+t.qEnd)/2;const i=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(i),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>f(t,n)[a].map((t=>{let n;return n="start"===o?qh(t.start):"end"===o?qh(t.end):(qh(t.start)+qh(t.end))/2,{position:u(t.start),start:u(t.start),end:u(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:qh(t.start),end:qh(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const yg=41000.2343433,vg=/t+/i,bg=16,xg=60;const Sg={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 Mg(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 Cg="continuousPan";var wg={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=ih,viewCache:o,viewState:i,definitionPath:a},s={}){const{engineFetcherFactory:l=Um,snapshotFetcherFactory:c=Gm,cacheFetcherFactory:u=Km,cache:d={initial:{},merged:{}}}=s,f=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),p=c({layoutService:t,viewCache:o}),m=u({cache:d}),h=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){var n,r;({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),o.set("continuousMin",y),o.set("continuousMax",v),o.set("minimiumZoomSpan",(n=y,r=v,Math.max(th,(r-n)*nh))),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=Jm(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=>Zm(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=Jm(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=>Zm(e,t,n))).catch(h),fetchFromCache:(e,t)=>m.fetch(e,t).then((n=>Zm(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return de({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return de({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>oh(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),c=o?1-i:i,{min:u,max:d}=t.get("zoom"),f=Math.abs(d-u),p=f-(r>0?eh:Qm)*f,m=u+p*c,h=d-p*(1-c),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:Cg,pointers:1,threshold:10,enable(r,o){return this.started===Cg||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{[`${Cg}start`](n){n.preventDefault(),this.started=Cg;const{min:o,max:i}=r.get("zoom");this[Cg]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},[`${Cg}move`](e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[Cg],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)})},[`${Cg}end`](e){e.preventDefault(),this.started=!1},[`${Cg}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:ah,timeAxis:fh},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]=de(!0,{},t[o],i)})),r}(t,Sg,n),{qAxis:i}=r,a=_r(),s={instance:null,invert:!1},{min:l,max:c}=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 u,d,f=[];const p=function(e){return Number.isNaN(+e)?NaN:a(e)};p.ticks=({distance:e,resolve:t=u.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=>(Mg(s,p),s.instance(e)),p.normInvert=e=>(Mg(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,c),p.max=()=>Math.max(l,c),a.range(r.invert?[1,0]:[0,1]),a.domain([l,c]),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:xg,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:xg,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:xg,formatter:void 0},year:{type:"year",pattern:"YYYY",width:xg,formatter:void 0}};return o&&vg.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(yg)).width+bg)})),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=kh(t[0].data.start),o=kh(t[n-1].data.start);return Hh.count(r,o)/n>=1?i.date:Bh.count(r,o)/n>0?i.minute:jh.count(r,o)/n>0?i.second:i.date},t}(r);return d=gg(a.copy(),r,m),u=Mh({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 kg={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var Tg={OPTIONS:kg,DEFAULT:kg.MINI_CHART};function qg({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:o,minThumbSize:i})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===o,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<i){const e=(i-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=i}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function Eg({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 Lg=e=>({miniChart:e===Tg.OPTIONS.MINI_CHART.value,bar:e===Tg.OPTIONS.BAR.value,none:e===Tg.OPTIONS.NONE.value}),Ng=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return Lg(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return Lg(Tg.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return Lg(!n&&(r||!r&&o)?Tg.OPTIONS.NONE.value:Tg.OPTIONS.MINI_CHART.value)};function Og({layoutService:e,override:t}){const n=Ng({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===Tg.OPTIONS.MINI_CHART.value,n.bar=t.value===Tg.OPTIONS.BAR.value,n.none=t.value===Tg.OPTIONS.NONE.value),n}function Dg({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:o,viewCache:i,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=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:()=>Eg({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(p.settings.style="slim",p.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(p.settings.size.thumb={min:4}));const 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&&c&&(p.settings.injections=()=>[qg({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:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),f="horizontal"===i.meta.major.orientation,p=f?l-u.left-d.rect.computedInner.x:c-u.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]=Eg({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 Ig({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i}){return()=>{const a=t.component(e),{orientation:s}=i.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,f]=Eg({layoutService:o,viewState:n,viewCache:r});return{size:u,thumbSize:(f-d)*u}}}function Rg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=Ag({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=Ig({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,o)=>!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,i-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const Pg="data-scrollbar-handle";function zg({e:e}){return(e.srcEvent||e).srcElement.getAttribute(Pg)||""}const jg="scrollbarResize",Fg=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function Bg({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:${jg}`,options:{event:jg,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[jg]=this[jg]||{},Fg(t)&&zg({e:t})&&(this[jg].panningEvent=t.srcEvent),!!this[jg].panningEvent))}},events:{[`${jg}start`](n){n.preventDefault(),this[jg]=this[jg]||{},this[jg].panningEvent&&t.component(e).emit("dragStart",this[jg].panningEvent)},[`${jg}move`](n){if(n.preventDefault(),this[jg]=this[jg]||{},!this[jg].panningEvent)return;const i=r.get("zoom"),a=o.get("continuousMin"),s=o.get("continuousMax"),c=o.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=zg({e:this[jg].panningEvent});let f="start"===d?Math.min(u,i.max):i.min,p="end"===d?Math.max(u,i.min):i.max;f===p&&(f-="start"===d?c:0,p+="end"===d?c:0),r.set("zoom",{min:f,max:p}),t.component(e).emit("render")},[`${jg}end`](n){n.preventDefault(),this[jg]=this[jg]||{},delete this[jg].panningEvent,t.component(e).emit("dragEnd")},[`${jg}cancel`](n){n.preventDefault(),this[jg]=this[jg]||{},delete this[jg].panningEvent,t.component(e).emit("dragEnd")}}}}const _g="scrollbarPan";function Hg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=Ag({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=Ig({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:`event:${_g}`,options:{event:_g,threshold:0,enable(r,o){return this[_g]=this[_g]||{},!(o&&!this[_g].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:{[`${_g}start`](n){n.preventDefault();const a=c(n);if(this[_g]=this[_g]||{},this[_g].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[_g].relative=a.relative,this[_g].zoom=r.get("zoom"),this[_g].zoom.span=this[_g].zoom.max-this[_g].zoom.min,this[_g].zoom.fullSpan=i-n}else if(a.onThumb)this[_g].offset=a.thumb;else{const e=u();this[_g].offset=a.beforeThumb?0:e.thumbSize}},[`${_g}move`](n){n.preventDefault();const a=c(n);if(this[_g]=this[_g]||{},i.meta.isContinuous){const e=a.relative-this[_g].relative,{fullSpan:t,span:n,min:i,max:s}=this[_g].zoom,l=o.get("continuousMin"),c=o.get("continuousMax");r.set("zoom",{min:Math.min(i+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[_g].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${_g}end`](n){n.preventDefault(),this[_g]=this[_g]||{},this[_g].isPanning=!1,t.component(e).emit("unlockState")},[`${_g}cancel`](n){n.preventDefault(),this[_g]=this[_g]||{},this[_g].isPanning=!1,t.component(e).emit("unlockState")}}}}function $g({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[Rg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),Bg({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 Vg({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 Wg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...$g({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:Vg({componentKey:e,chart:t,actions:n,layoutService:i})}}const Ug={background:"rgba(0, 0, 0, 0.1)"},Kg={top:-1,bottom:-1,width:6},Gg={width:2,background:"#595959"};var Yg={before:Ug,after:Ug,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:Kg,endHandle:Kg,startHandleBorder:Gg,endHandleBorder:Gg};const Xg={background:"rgba(0, 0, 0, 0.1)"},Jg={top:-1,bottom:-1,width:6},Zg={width:2,background:"#595959"};var Qg={before:Xg,after:Xg,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:Jg,endHandle:Jg,startHandleBorder:Zg,endHandleBorder:Zg};const ey={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},ty={pointerEvents:"initial"},ny={pointerEvents:"none"};const ry="ew-resize",oy="default";function iy(){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 ay(){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?ry:oy}function sy(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 ly(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function cy(){const{size:e,start:t,end:n}=iy.call(this);this.renderer.render(this.elements(this.h,sy.call(this,e,t,n)))}function uy(){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?Qg:Yg;return{container:{...ey},before:{...ey,...n.before,...t.before},after:{...ey,...n.after,...t.after},thumb:{...ey,...n.thumb,...t.thumb},startHandle:{...ey,...ty,...n.startHandle},endHandle:{...ey,...ty,...n.endHandle},startHandleBorder:{...ey,...ny,...n.startHandleBorder},endHandleBorder:{...ey,...ny,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var dy={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(){cy.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||!ly.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=zg({e:e});t&&(this.state.hover[t]=!0),ay.call(this),cy.call(this)},leave(){this.state.locked||(this.state.hover.reset(),ay.call(this),cy.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=zg({e:e});t&&(this.state.drag[t]=!0),ay.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),ay.call(this),cy.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}=iy.call(this);return this.elements(e,sy.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:o}=this.settings,i=o.injections().map((t=>t({h:e,rect:this.rect,orientation:o.orientation,minThumbSize:o.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:o,startHandleActive:i,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[o.end]:t-n},f={[o.start]:r},p={left:-3},m={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?f:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:f},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:p},class:"scrollbar--start-handle",[Pg]:"start"},i?e("div",{style:{...s.startHandleBorder,...c?g:m}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?p:h},class:"scrollbar--end-handle",[Pg]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?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,...u])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:uy.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};var fy={black:"#000",white:"#fff"};var py={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 my={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 hy={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 gy={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 yy={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 vy={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 by={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 xy(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 Sy=Object.freeze({__proto__:null,default:xy}),My="$$material";function Cy(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var wy=/^((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)-.*))$/,ky=Cy((function(e){return wy.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Ty=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}(),qy="-ms-",Ey="-moz-",Ly="-webkit-",Ny="comm",Oy="rule",Dy="decl",Ay="@keyframes",Iy=Math.abs,Ry=String.fromCharCode,Py=Object.assign;function zy(e){return e.trim()}function jy(e,t,n){return e.replace(t,n)}function Fy(e,t){return e.indexOf(t)}function By(e,t){return 0|e.charCodeAt(t)}function _y(e,t,n){return e.slice(t,n)}function Hy(e){return e.length}function $y(e){return e.length}function Vy(e,t){return t.push(e),e}var Wy=1,Uy=1,Ky=0,Gy=0,Yy=0,Xy="";function Jy(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Wy,column:Uy,length:a,return:""}}function Zy(e,t){return Py(Jy("",null,null,"",null,null,0),e,{length:-e.length},t)}function Qy(){return Yy=Gy>0?By(Xy,--Gy):0,Uy--,10===Yy&&(Uy=1,Wy--),Yy}function ev(){return Yy=Gy<Ky?By(Xy,Gy++):0,Uy++,10===Yy&&(Uy=1,Wy++),Yy}function tv(){return By(Xy,Gy)}function nv(){return Gy}function rv(e,t){return _y(Xy,e,t)}function ov(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 iv(e){return Wy=Uy=1,Ky=Hy(Xy=e),Gy=0,[]}function av(e){return Xy="",e}function sv(e){return zy(rv(Gy-1,uv(91===e?e+2:40===e?e+1:e)))}function lv(e){for(;(Yy=tv())&&Yy<33;)ev();return ov(e)>2||ov(Yy)>3?"":" "}function cv(e,t){for(;--t&&ev()&&!(Yy<48||Yy>102||Yy>57&&Yy<65||Yy>70&&Yy<97););return rv(e,nv()+(t<6&&32==tv()&&32==ev()))}function uv(e){for(;ev();)switch(Yy){case e:return Gy;case 34:case 39:34!==e&&39!==e&&uv(Yy);break;case 40:41===e&&uv(e);break;case 92:ev()}return Gy}function dv(e,t){for(;ev()&&e+Yy!==57&&(e+Yy!==84||47!==tv()););return"/*"+rv(t,Gy-1)+"*"+Ry(47===e?e:ev())}function fv(e){for(;!ov(tv());)ev();return rv(e,Gy)}function pv(e){return av(mv("",null,null,null,[""],e=iv(e),0,[0],e))}function mv(e,t,n,r,o,i,a,s,l){for(var c=0,u=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=ev()){case 40:if(108!=m&&58==By(C,d-1)){-1!=Fy(C+=jy(sv(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=sv(v);break;case 9:case 10:case 13:case 32:C+=lv(m);break;case 92:C+=cv(nv()-1,7);continue;case 47:switch(tv()){case 42:case 47:Vy(gv(dv(ev(),nv()),t,n),l);break;default:C+="/"}break;case 123*h:s[c++]=Hy(C)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(C=jy(C,/\f/g,"")),p>0&&Hy(C)-d&&Vy(p>32?yv(C+";",r,n,d-1):yv(jy(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Vy(M=hv(C,t,n,c,u,o,s,b,x=[],S=[],d),i),123===v)if(0===u)mv(C,t,M,M,x,i,d,s,S);else switch(99===f&&110===By(C,3)?100:f){case 100:case 108:case 109:case 115:mv(e,M,M,r&&Vy(hv(e,M,M,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:mv(C,M,M,M,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=C="",d=a;break;case 58:d=1+Hy(C),p=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Qy())continue;switch(C+=Ry(v),v*h){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Hy(C)-1)*y,y=1;break;case 64:45===tv()&&(C+=sv(ev())),f=tv(),u=d=Hy(b=C+=fv(nv())),v++;break;case 45:45===m&&2==Hy(C)&&(h=0)}}return i}function hv(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=$y(f),m=0,h=0,g=0;m<r;++m)for(var y=0,v=_y(e,d+1,d=Iy(h=a[m])),b=e;y<p;++y)(b=zy(h>0?f[y]+" "+v:jy(v,/&\f/g,f[y])))&&(l[g++]=b);return Jy(e,t,n,0===o?Oy:s,l,c,u)}function gv(e,t,n){return Jy(e,t,n,Ny,Ry(Yy),_y(e,2,-2),0)}function yv(e,t,n,r){return Jy(e,t,n,Dy,_y(e,0,r),_y(e,r+1,-1),r)}function vv(e,t){for(var n="",r=$y(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function bv(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Dy:return e.return=e.return||e.value;case Ny:return"";case Ay:return e.return=e.value+"{"+vv(e.children,r)+"}";case Oy:e.value=e.props.join(",")}return Hy(n=vv(e.children,r))?e.return=e.value+"{"+n+"}":""}function xv(e){var t=$y(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var Sv="undefined"!=typeof document,Mv=function(e,t,n){for(var r=0,o=0;r=o,o=tv(),38===r&&12===o&&(t[n]=1),!ov(o);)ev();return rv(e,Gy)},Cv=function(e,t){return av(function(e,t){var n=-1,r=44;do{switch(ov(r)){case 0:38===r&&12===tv()&&(t[n]=1),e[n]+=Mv(Gy-1,t,n);break;case 2:e[n]+=sv(r);break;case 4:if(44===r){e[++n]=58===tv()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ry(r)}}while(r=ev());return e}(iv(e),t))},wv=new WeakMap,kv=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)||wv.get(n))&&!r){wv.set(e,!0);for(var o=[],i=Cv(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Tv=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function qv(e,t){switch(function(e,t){return 45^By(e,0)?(((t<<2^By(e,0))<<2^By(e,1))<<2^By(e,2))<<2^By(e,3):0}(e,t)){case 5103:return Ly+"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 Ly+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ly+e+Ey+e+qy+e+e;case 6828:case 4268:return Ly+e+qy+e+e;case 6165:return Ly+e+qy+"flex-"+e+e;case 5187:return Ly+e+jy(e,/(\w+).+(:[^]+)/,Ly+"box-$1$2"+qy+"flex-$1$2")+e;case 5443:return Ly+e+qy+"flex-item-"+jy(e,/flex-|-self/,"")+e;case 4675:return Ly+e+qy+"flex-line-pack"+jy(e,/align-content|flex-|-self/,"")+e;case 5548:return Ly+e+qy+jy(e,"shrink","negative")+e;case 5292:return Ly+e+qy+jy(e,"basis","preferred-size")+e;case 6060:return Ly+"box-"+jy(e,"-grow","")+Ly+e+qy+jy(e,"grow","positive")+e;case 4554:return Ly+jy(e,/([^-])(transform)/g,"$1"+Ly+"$2")+e;case 6187:return jy(jy(jy(e,/(zoom-|grab)/,Ly+"$1"),/(image-set)/,Ly+"$1"),e,"")+e;case 5495:case 3959:return jy(e,/(image-set\([^]*)/,Ly+"$1$`$1");case 4968:return jy(jy(e,/(.+:)(flex-)?(.*)/,Ly+"box-pack:$3"+qy+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ly+e+e;case 4095:case 3583:case 4068:case 2532:return jy(e,/(.+)-inline(.+)/,Ly+"$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(Hy(e)-1-t>6)switch(By(e,t+1)){case 109:if(45!==By(e,t+4))break;case 102:return jy(e,/(.+:)(.+)-([^]+)/,"$1"+Ly+"$2-$3$1"+Ey+(108==By(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Fy(e,"stretch")?qv(jy(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==By(e,t+1))break;case 6444:switch(By(e,Hy(e)-3-(~Fy(e,"!important")&&10))){case 107:return jy(e,":",":"+Ly)+e;case 101:return jy(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ly+(45===By(e,14)?"inline-":"")+"box$3$1"+Ly+"$2$3$1"+qy+"$2box$3")+e}break;case 5936:switch(By(e,t+11)){case 114:return Ly+e+qy+jy(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ly+e+qy+jy(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ly+e+qy+jy(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ly+e+qy+e+e}return e}var Ev=Sv?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return Cy((function(){var e={};return function(t){return e[t]}}))})),Lv=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dy:e.return=qv(e.value,e.length);break;case Ay:return vv([Zy(e,{value:jy(e.value,"@","@"+Ly)})],r);case Oy: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 vv([Zy(e,{props:[jy(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return vv([Zy(e,{props:[jy(t,/:(plac\w+)/,":"+Ly+"input-$1")]}),Zy(e,{props:[jy(t,/:(plac\w+)/,":-moz-$1")]}),Zy(e,{props:[jy(t,/:(plac\w+)/,qy+"input-$1")]})],r)}return""}))}}],Nv=function(e){var t=e.key;if(Sv&&"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||Lv,a={},s=[];Sv&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,c=[kv,Tv];if(Sv){var u,d=[bv,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=xv(c.concat(i,d));o=function(e,t,n,r){u=n,function(e){vv(pv(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var p=[bv],m=xv(c.concat(i,p)),h=Ev(i)(t),g=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return vv(pv(e),m)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new Ty({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 y.sheet.hydrate(s),y},Ov="undefined"!=typeof document;var Dv=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Ov&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Av=function(e,t,n){Dv(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);Ov||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Ov&&0!==o.length)return o}};var Iv={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,Pv=/[A-Z]|^ms/g,zv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jv=function(e){return 45===e.charCodeAt(1)},Fv=function(e){return null!=e&&"boolean"!=typeof e},Bv=Cy((function(e){return jv(e)?e:e.replace(Pv,"-$&").toLowerCase()})),_v=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(zv,(function(e,t,n){return Vv={name:t,styles:n,next:Vv},t}))}return 1===Iv[e]||jv(e)||"number"!=typeof t||0===t?t:t+"px"},Hv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function $v(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 Vv={name:o.name,styles:o.styles,next:Vv},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Vv={name:a.name,styles:a.styles,next:Vv},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+=$v(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]+"}":Fv(s)&&(r+=Bv(i)+":"+_v(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&Rv)throw new Error(Hv);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=$v(e,t,a);switch(i){case"animation":case"animationName":r+=Bv(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Fv(a[c])&&(r+=Bv(i)+":"+_v(i,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=Vv,l=n(e);return Vv=s,$v(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Vv,Wv=/label:\s*([^\s;{]+)\s*(;|$)/g;function Uv(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="";Vv=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=$v(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=$v(n,t,e[a]),r)o+=i[a]}Wv.lastIndex=0;for(var s,l="";null!==(s=Wv.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Vv}}var Kv="undefined"!=typeof document,Gv=function(e){return e()},Yv=!!x.useInsertionEffect&&x.useInsertionEffect,Xv=Kv&&Yv||Gv,Jv=Yv||x.useLayoutEffect,Zv="undefined"!=typeof document,Qv=x.createContext("undefined"!=typeof HTMLElement?Nv({key:"css"}):null),eb=Qv.Provider,tb=function(e){return w((function(t,n){var r=k(Qv);return e(t,r,n)}))};Zv||(tb=function(e){return function(t){var n=k(Qv);return null===n?(n=Nv({key:"css"}),x.createElement(Qv.Provider,{value:n},e(t,n))):e(t,n)}});var nb=x.createContext({}),rb=tb((function(e,t){var n=Uv([e.styles],void 0,x.useContext(nb));if(!Zv){for(var r,o=n.name,i=n.styles,a=n.next;void 0!==a;)o+=" "+a.name,i+=a.styles,a=a.next;var s=!0===t.compat,l=t.insert("",{name:o,styles:i},t.sheet,s);return s?null:x.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:l},r.nonce=t.sheet.nonce,r))}var c=x.useRef();return Jv((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),c.current=[r,o],function(){r.flush()}}),[t]),Jv((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Av(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function ob(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Uv(t)}var ib=function(){var e=ob.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_"}}},ab=ky,sb=function(e){return"theme"!==e},lb=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ab:sb},cb=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},ub="undefined"!=typeof document,db=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Dv(t,n,r);var o=Xv((function(){return Av(t,n,r)}));if(!ub&&void 0!==o){for(var i,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return x.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},fb=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=cb(t,n,i),l=s||lb(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,p=1;p<f;p++)d.push(u[p],u[0][p])}var m=tb((function(e,t,n){var r,i,u,f,p=c&&e.as||a,m="",h=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=x.useContext(nb)}"string"==typeof e.className?(r=t.registered,i=h,u=e.className,f="",u.split(" ").forEach((function(e){void 0!==r[e]?i.push(r[e]+";"):e&&(f+=e+" ")})),m=f):null!=e.className&&(m=e.className+" ");var v=Uv(d.concat(h),t.registered,g);m+=t.key+"-"+v.name,void 0!==o&&(m+=" "+o);var b=c&&void 0===s?lb(p):l,S={};for(var M in e)c&&"as"===M||b(M)&&(S[M]=e[M]);return S.className=m,n&&(S.ref=n),x.createElement(x.Fragment,null,x.createElement(db,{cache:t,serialized:v,isStringTag:"string"==typeof p}),x.createElement(p,S))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,nl({},n,r,{shouldForwardProp:cb(m,r,!0)})).apply(void 0,d)},m}}.bind();["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){fb[e]=fb(e)}));var pb={exports:{}},mb={},hb=b,gb=Symbol.for("react.element"),yb=Symbol.for("react.fragment"),vb=Object.prototype.hasOwnProperty,bb=hb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xb={key:!0,ref:!0,__self:!0,__source:!0};function Sb(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)vb.call(t,r)&&!xb.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:gb,type:e,key:i,ref:a,props:o,_owner:bb.current}}mb.Fragment=yb,mb.jsx=Sb,mb.jsxs=Sb,pb.exports=mb;var Mb=pb.exports;let Cb;"object"==typeof document&&(Cb=Nv({key:"css",prepend:!0}));var wb=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 Mb.jsx(rb,{styles:r})}
14
+ */au();var cu=Date.now(),uu="fnValues"+cu,du="fnStyle"+ ++cu,fu=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=ec(e,{},n);return r[du]=t,r},onProcessStyle:function(e,t){if(uu in t||du 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[uu]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[du];i&&(o.style=i(e)||{});var a=o[uu];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},pu="@global",mu="@global ",hu=function(){function e(e,t,n){for(var r in this.type="global",this.at=pu,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new jc(nl({},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}(),gu=function(){function e(e,t,n){this.type="global",this.at=pu,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(mu.length);this.rule=n.jss.createRule(r,t,nl({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),yu=/\s*,\s*/g;function vu(e,t){for(var n=e.split(yu),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function bu(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===pu)return new hu(e,t,n);if("@"===e[0]&&e.substr(0,mu.length)===mu)return new gu(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[pu]:null;if(o){for(var i in o)t.addRule(i,o[i],nl({},n,{selector:vu(i,e.selector)}));delete r[pu]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,pu.length)===pu){var i=vu(o.substr(pu.length),e.selector);t.addRule(i,r[o],nl({},n,{selector:i})),delete r[o]}}(e,t))}}}var xu=/\s*,\s*/g,Su=/&/g,Mu=/\$([\w-]+)/g;function Cu(){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(xu),r=e.split(xu),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(Su,a):a+" "+l}return o}function n(e,t,n){if(n)return nl({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=nl({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),f="@"===u[0];if(d||f){if(a=n(l,c,a),d){var p=t(u,l.selector);s||(s=e(c,i)),p=p.replace(Mu,s);var m=l.key+"-"+u;"replaceRule"in c?c.replaceRule(m,r[u],nl({},a,{selector:p})):c.addRule(m,r[u],nl({},a,{selector:p}))}else f&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var wu=/[A-Z]/g,ku=/^ms-/,Tu={};function qu(e){return"-"+e.toLowerCase()}function Eu(e){if(Tu.hasOwnProperty(e))return Tu[e];var t=e.replace(wu,qu);return Tu[e]=ku.test(t)?"-"+t:t}function Lu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Eu(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Lu):t.fallbacks=Lu(e.fallbacks)),t}var Nu=su&&CSS?CSS.px:"px",Ou=su&&CSS?CSS.ms:"ms",Du=su&&CSS?CSS.percent:"%";function Au(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 Iu=Au({"animation-delay":Ou,"animation-duration":Ou,"background-position":Nu,"background-position-x":Nu,"background-position-y":Nu,"background-size":Nu,border:Nu,"border-bottom":Nu,"border-bottom-left-radius":Nu,"border-bottom-right-radius":Nu,"border-bottom-width":Nu,"border-left":Nu,"border-left-width":Nu,"border-radius":Nu,"border-right":Nu,"border-right-width":Nu,"border-top":Nu,"border-top-left-radius":Nu,"border-top-right-radius":Nu,"border-top-width":Nu,"border-width":Nu,"border-block":Nu,"border-block-end":Nu,"border-block-end-width":Nu,"border-block-start":Nu,"border-block-start-width":Nu,"border-block-width":Nu,"border-inline":Nu,"border-inline-end":Nu,"border-inline-end-width":Nu,"border-inline-start":Nu,"border-inline-start-width":Nu,"border-inline-width":Nu,"border-start-start-radius":Nu,"border-start-end-radius":Nu,"border-end-start-radius":Nu,"border-end-end-radius":Nu,margin:Nu,"margin-bottom":Nu,"margin-left":Nu,"margin-right":Nu,"margin-top":Nu,"margin-block":Nu,"margin-block-end":Nu,"margin-block-start":Nu,"margin-inline":Nu,"margin-inline-end":Nu,"margin-inline-start":Nu,padding:Nu,"padding-bottom":Nu,"padding-left":Nu,"padding-right":Nu,"padding-top":Nu,"padding-block":Nu,"padding-block-end":Nu,"padding-block-start":Nu,"padding-inline":Nu,"padding-inline-end":Nu,"padding-inline-start":Nu,"mask-position-x":Nu,"mask-position-y":Nu,"mask-size":Nu,height:Nu,width:Nu,"min-height":Nu,"max-height":Nu,"min-width":Nu,"max-width":Nu,bottom:Nu,left:Nu,top:Nu,right:Nu,inset:Nu,"inset-block":Nu,"inset-block-end":Nu,"inset-block-start":Nu,"inset-inline":Nu,"inset-inline-end":Nu,"inset-inline-start":Nu,"box-shadow":Nu,"text-shadow":Nu,"column-gap":Nu,"column-rule":Nu,"column-rule-width":Nu,"column-width":Nu,"font-size":Nu,"font-size-delta":Nu,"letter-spacing":Nu,"text-decoration-thickness":Nu,"text-indent":Nu,"text-stroke":Nu,"text-stroke-width":Nu,"word-spacing":Nu,motion:Nu,"motion-offset":Nu,outline:Nu,"outline-offset":Nu,"outline-width":Nu,perspective:Nu,"perspective-origin-x":Du,"perspective-origin-y":Du,"transform-origin":Du,"transform-origin-x":Du,"transform-origin-y":Du,"transform-origin-z":Du,"transition-delay":Ou,"transition-duration":Ou,"vertical-align":Nu,"flex-basis":Nu,"shape-margin":Nu,size:Nu,gap:Nu,grid:Nu,"grid-gap":Nu,"row-gap":Nu,"grid-row-gap":Nu,"grid-column-gap":Nu,"grid-template-rows":Nu,"grid-template-columns":Nu,"grid-auto-rows":Nu,"grid-auto-columns":Nu,"box-shadow-x":Nu,"box-shadow-y":Nu,"box-shadow-blur":Nu,"box-shadow-spread":Nu,"font-line-height":Nu,"text-shadow-x":Nu,"text-shadow-y":Nu,"text-shadow-blur":Nu});function Ru(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Ru(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Ru(o,t[o],n);else for(var i in t)t[i]=Ru(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Iu[e];return!a||0===t&&a===Nu?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Pu(e){void 0===e&&(e={});var t=Au(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Ru(r,e[r],t);return e},onChangeValue:function(e,n){return Ru(n,e,t)}}}var zu="",ju="",Fu="",Bu="",_u=Ul&&"ontouchstart"in document.documentElement;if(Ul){var Hu={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},$u=document.createElement("p").style;for(var Vu in Hu)if(Vu+"Transform"in $u){zu=Vu,ju=Hu[Vu];break}"Webkit"===zu&&"msHyphens"in $u&&(zu="ms",ju=Hu.ms,Bu="edge"),"Webkit"===zu&&"-apple-trailing-word"in $u&&(Fu="apple")}var Wu={js:zu,css:ju,vendor:Fu,browser:Bu,isTouch:_u};var Uu={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Wu.js?"-webkit-"+e:Wu.css+e)}},Ku={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Wu.js?Wu.css+"print-"+e:e)}},Gu=/[-\s]+(.)?/g;function Yu(e,t){return t?t.toUpperCase():""}function Xu(e){return e.replace(Gu,Yu)}function Ju(e){return Xu("-"+e)}var Zu,Qu={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Wu.js){var n="mask-image";if(Xu(n)in t)return e;if(Wu.js+Ju(n)in t)return Wu.css+e}return e}},ed={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Wu.vendor||Wu.isTouch?e:Wu.css+e)}},td={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Wu.css+e)}},nd={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Wu.css+e)}},rd={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Wu.js||"ms"===Wu.js&&"edge"!==Wu.browser?Wu.css+e:e)}},od={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Wu.js||"ms"===Wu.js||"apple"===Wu.vendor?Wu.css+e:e)}},id={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Wu.js?"WebkitColumn"+Ju(e)in t&&Wu.css+"column-"+e:"Moz"===Wu.js&&("page"+Ju(e)in t&&"page-"+e))}},ad={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Wu.js)return e;var n=e.replace("-inline","");return Wu.js+Ju(n)in t&&Wu.css+n}},sd={supportedProperty:function(e,t){return Xu(e)in t&&e}},ld={supportedProperty:function(e,t){var n=Ju(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Wu.js+n in t?Wu.css+e:"Webkit"!==Wu.js&&"Webkit"+n in t&&"-webkit-"+e}},cd={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Wu.js?""+Wu.css+e:e)}},ud={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Wu.js?Wu.css+"scroll-chaining":e)}},dd={"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"},fd={supportedProperty:function(e,t){var n=dd[e];return!!n&&(Wu.js+Ju(n)in t&&Wu.css+n)}},pd={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"},md=Object.keys(pd),hd=function(e){return Wu.css+e},gd={supportedProperty:function(e,t,n){var r=n.multiple;if(md.indexOf(e)>-1){var o=pd[e];if(!Array.isArray(o))return Wu.js+Ju(o)in t&&Wu.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Wu.js+Ju(o[0])in t))return!1;return o.map(hd)}return!1}},yd=[Uu,Ku,Qu,ed,td,nd,rd,od,id,ad,sd,ld,cd,ud,fd,gd],vd=yd.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),bd=yd.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Dl(t.noPrefill)),e}),[]),xd={};if(Ul){Zu=document.createElement("p");var Sd=window.getComputedStyle(document.documentElement,"");for(var Md in Sd)isNaN(Md)||(xd[Sd[Md]]=Sd[Md]);bd.forEach((function(e){return delete xd[e]}))}function Cd(e,t){if(void 0===t&&(t={}),!Zu)return e;if(null!=xd[e])return xd[e];"transition"!==e&&"transform"!==e||(t[e]=e in Zu.style);for(var n=0;n<vd.length&&(xd[e]=vd[n](e,Zu.style,t),!xd[e]);n++);try{Zu.style[e]=""}catch(e){return!1}return xd[e]}var wd,kd={},Td={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},qd=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ed(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Cd(t):", "+Cd(n);return r||(t||n)}function Ld(e,t){var n=t;if(!wd||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=kd[r])return kd[r];try{wd.style[e]=n}catch(e){return kd[r]=!1,!1}if(Td[e])n=n.replace(qd,Ed);else if(""===wd.style[e]&&("-ms-flex"===(n=Wu.css+n)&&(wd.style[e]="-ms-flexbox"),wd.style[e]=n,""===wd.style[e]))return kd[r]=!1,!1;return wd.style[e]="",kd[r]=n,kd[r]}function Nd(){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=Cd(n);i&&i!==n&&(o=!0);var a=!1,s=Ld(i,nc(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"===Wu.js?e:"@"+Wu.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Ld(t,nc(e))||e}}}function Od(){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 Dd(){return{plugins:[fu(),bu(),Cu(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Lu(e[t]);return e}return Lu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Eu(t);return t===r?e:(n.prop(r,e),null)}},Pu(),"undefined"==typeof window?null:Nd(),Od()]}}function Ad(){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=nl({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Ul&&(wd=document.createElement("p"));var Id={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)}},Rd=Id,Pd=b.createContext(null);function zd(){return b.useContext(Pd)}var jd,Fd=au(Dd()),Bd={disableGeneration:!1,generateClassName:$l(),jss:Fd,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},_d=b.createContext(Bd);function Hd(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=hl(e,["children","injectFirst","disableGeneration"]),s=nl({},b.useContext(_d),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!jd){var l=document.head;jd=document.createComment("mui-inject-first"),l.insertBefore(jd,l.firstChild)}s.jss=au({plugins:Dd().plugins,insertionPoint:jd})}return b.createElement(_d.Provider,{value:s},t)}var $d=-1e9;var Vd={};function Wd(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Rd.get(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Rd.set(o.sheetsManager,i,r,s));var l=nl({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=Rd.get(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,nl({link:!1},l))).attach(),o.sheetsCache&&Rd.set(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=lu(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,nl({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=Ad({baseClasses:s.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Ud(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?Vd:i,s=hl(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=nl({},o);return Object.keys(i).forEach((function(e){a[e]=il(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:$d+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=zd()||a,r=nl({},b.useContext(_d),s),i=b.useRef(),c=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 Wd(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Rd.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Rd.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(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Ad({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function Kd(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=Kd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Gd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Kd(e))&&(r&&(r+=" "),r+=t);return r}var Yd={exports:{}},Xd={},Jd="function"==typeof Symbol&&Symbol.for,Zd=Jd?Symbol.for("react.element"):60103,Qd=Jd?Symbol.for("react.portal"):60106,ef=Jd?Symbol.for("react.fragment"):60107,tf=Jd?Symbol.for("react.strict_mode"):60108,nf=Jd?Symbol.for("react.profiler"):60114,rf=Jd?Symbol.for("react.provider"):60109,of=Jd?Symbol.for("react.context"):60110,af=Jd?Symbol.for("react.async_mode"):60111,sf=Jd?Symbol.for("react.concurrent_mode"):60111,lf=Jd?Symbol.for("react.forward_ref"):60112,cf=Jd?Symbol.for("react.suspense"):60113,uf=Jd?Symbol.for("react.suspense_list"):60120,df=Jd?Symbol.for("react.memo"):60115,ff=Jd?Symbol.for("react.lazy"):60116,pf=Jd?Symbol.for("react.block"):60121,mf=Jd?Symbol.for("react.fundamental"):60117,hf=Jd?Symbol.for("react.responder"):60118,gf=Jd?Symbol.for("react.scope"):60119;function yf(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Zd:switch(e=e.type){case af:case sf:case ef:case nf:case tf:case cf:return e;default:switch(e=e&&e.$$typeof){case of:case lf:case ff:case df:case rf:return e;default:return t}}case Qd:return t}}}function vf(e){return yf(e)===sf}Xd.AsyncMode=af,Xd.ConcurrentMode=sf,Xd.ContextConsumer=of,Xd.ContextProvider=rf,Xd.Element=Zd,Xd.ForwardRef=lf,Xd.Fragment=ef,Xd.Lazy=ff,Xd.Memo=df,Xd.Portal=Qd,Xd.Profiler=nf,Xd.StrictMode=tf,Xd.Suspense=cf,Xd.isAsyncMode=function(e){return vf(e)||yf(e)===af},Xd.isConcurrentMode=vf,Xd.isContextConsumer=function(e){return yf(e)===of},Xd.isContextProvider=function(e){return yf(e)===rf},Xd.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Zd},Xd.isForwardRef=function(e){return yf(e)===lf},Xd.isFragment=function(e){return yf(e)===ef},Xd.isLazy=function(e){return yf(e)===ff},Xd.isMemo=function(e){return yf(e)===df},Xd.isPortal=function(e){return yf(e)===Qd},Xd.isProfiler=function(e){return yf(e)===nf},Xd.isStrictMode=function(e){return yf(e)===tf},Xd.isSuspense=function(e){return yf(e)===cf},Xd.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ef||e===sf||e===nf||e===tf||e===cf||e===uf||"object"==typeof e&&null!==e&&(e.$$typeof===ff||e.$$typeof===df||e.$$typeof===rf||e.$$typeof===of||e.$$typeof===lf||e.$$typeof===mf||e.$$typeof===hf||e.$$typeof===gf||e.$$typeof===pf)},Xd.typeOf=yf,Yd.exports=Xd;var bf=Yd.exports,xf={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Sf={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Mf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Cf={};function wf(e){return bf.isMemo(e)?Mf:Cf[e.$$typeof]||xf}Cf[bf.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Cf[bf.Memo]=Mf;var kf=Object.defineProperty,Tf=Object.getOwnPropertyNames,qf=Object.getOwnPropertySymbols,Ef=Object.getOwnPropertyDescriptor,Lf=Object.getPrototypeOf,Nf=Object.prototype;var Of=function e(t,n,r){if("string"!=typeof n){if(Nf){var o=Lf(n);o&&o!==Nf&&e(t,o,r)}var i=Tf(n);qf&&(i=i.concat(qf(n)));for(var a=wf(t),s=wf(n),l=0;l<i.length;++l){var c=i[l];if(!(Sf[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Ef(n,c);try{kf(t,c,u)}catch(e){}}}}return t},Df=ee(Of);function Af(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=hl(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(nl({theme:e},n))}}}:{root:t},l=Ud(s,nl({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=b.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,f=hl(t,["children","className","clone","component"]),p=Gd(l(t).root,c),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),u)return b.cloneElement(s,nl({className:Gd(s.props.className,p)},m));if("function"==typeof s)return s(nl({className:p},m));var h=d||e;return b.createElement(h,nl({ref:r,className:p},m),s)}));return Df(c,e),c}}function If(e){var t=e.children,n=e.theme,r=zd(),o=b.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):nl({},e,t)}(r,n);return null!=e&&(e[_l]=null!==r),e}),[n,r]);return b.createElement(Pd.Provider,{value:o},t)}var Rf=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=hl(t,["defaultTheme","withTheme","name"]),l=a,c=Ud(e,nl({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=b.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=hl(e,["classes","innerRef"]),u=c(nl({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=zd()||r,a&&(d=Vl({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),b.createElement(n,nl({ref:s||t,classes:u},d))}));return Df(u,n),u}},Pf=Bl(),zf=function(e){var t=Af(e);return function(e,n){return t(e,nl({defaultTheme:Pf},n))}};function jf(e,t){return Rf(e,nl({defaultTheme:Pf},t))}function Ff(e){if("string"!=typeof e)throw new Error(ll(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Bf(){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 _f(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=_f(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Hf(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=_f(e))&&(r&&(r+=" "),r+=t);return r}function $f(e){return e&&e.ownerDocument||document}function Vf(e){return $f(e).defaultView||window}function Wf(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Uf="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Kf(e){var t=x.useRef(e);return Uf((function(){t.current=e})),x.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Gf(e,t){return x.useMemo((function(){return null==e&&null==t?null:function(n){Wf(e,n),Wf(t,n)}}),[e,t])}var Yf=!0,Xf=!1,Jf=null,Zf={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||(Yf=!0)}function ep(){Yf=!1}function tp(){"hidden"===this.visibilityState&&Xf&&(Yf=!0)}function np(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Yf||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Zf[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function rp(){Xf=!0,window.clearTimeout(Jf),Jf=window.setTimeout((function(){Xf=!1}),100)}function op(){var e=x.useCallback((function(e){var t,n=T.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Qf,!0),t.addEventListener("mousedown",ep,!0),t.addEventListener("pointerdown",ep,!0),t.addEventListener("touchstart",ep,!0),t.addEventListener("visibilitychange",tp,!0))}),[]);return{isFocusVisible:np,onBlurVisible:rp,ref:e}}var ip=!1,ap=b.createContext(null),sp="unmounted",lp="exited",cp="entering",up="entered",dp="exiting",fp=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=lp,r.appearStatus=cp):o=up:o=t.unmountOnExit||t.mountOnEnter?sp:lp,r.state={status:o},r.nextCallback=null,r}Xl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===sp?{status:lp}: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!==cp&&n!==up&&(t=cp):n!==cp&&n!==up||(t=dp)}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===cp){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===lp&&this.setState({status:sp})},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||ip?this.safeSetState({status:up},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:cp},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:up},(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&&!ip?(this.props.onExit(r),this.safeSetState({status:dp},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:lp},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:lp},(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===sp)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=ml(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(ap.Provider,{value:null},"function"==typeof n?n(e,r):b.cloneElement(b.Children.only(n),r))},t}(b.Component);function pp(){}fp.contextType=ap,fp.propTypes={},fp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pp,onEntering:pp,onEntered:pp,onExit:pp,onExiting:pp,onExited:pp},fp.UNMOUNTED=sp,fp.EXITED=lp,fp.ENTERING=cp,fp.ENTERED=up,fp.EXITING=dp;var mp=fp;function hp(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 gp(e,t,n){return null!=n[t]?n[t]:e.props[t]}function yp(e,t,n){var r=hp(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(M(a)){var s=i in t,l=i in r,c=t[i],u=M(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&M(c)&&(o[i]=C(a,{onExited:n.bind(null,a),in:c.props.in,exit:gp(a,"exit",e),enter:gp(a,"enter",e)})):o[i]=C(a,{in:!1}):o[i]=C(a,{onExited:n.bind(null,a),in:!0,exit:gp(a,"exit",e),enter:gp(a,"enter",e)})}})),o}var vp=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},bp=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Jl(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Xl(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,hp(n.children,(function(e){return C(e,{onExited:r.bind(null,e),in:!0,appear:gp(e,"appear",n),enter:gp(e,"enter",n),exit:gp(e,"exit",n)})}))):yp(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=hp(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=nl({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ml(e,["component","childFactory"]),o=this.state.contextValue,i=vp(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?b.createElement(ap.Provider,{value:o},i):b.createElement(ap.Provider,{value:o},b.createElement(t,r,i))},t}(b.Component);bp.propTypes={},bp.defaultProps={component:"div",childFactory:function(e){return e}};var xp=bp;function Sp(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 Mp=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,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=hl(e,["classes","className","component","square","elevation","variant"]);return x.createElement(i,nl({className:Hf(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),Cp=jf((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),nl({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"})(Mp),wp="undefined"==typeof window?x.useEffect:x.useLayoutEffect;function kp(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=x.useState(!1),f=d[0],p=d[1],m=Hf(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=Hf(t.child,f&&t.childLeaving,r&&t.childPulsate),y=Kf(c);return wp((function(){if(!s){p(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),x.createElement("span",{className:m,style:h},x.createElement("span",{className:g}))}var Tp=x.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=hl(e,["center","classes","className"]),s=x.useState([]),l=s[0],c=s[1],u=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;c((function(e){return[].concat(Dl(e),[x.createElement(kp,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.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,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:h.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,M=x.clientY;u=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)-u),u)+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:u,rippleY:d,rippleSize:y,cb:n})},p.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):g({pulsate:i,rippleX:u,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,c((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",nl({className:Hf(o.root,i),ref:h},a),x.createElement(xp,{component:null,exit:!0},l))})),qp=jf((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(Tp)),Ep=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,c=e.component,u=void 0===c?"button":c,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=hl(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=op(),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 Kf((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=Kf((function(e){_.current||(_.current=e.currentTarget),K(e)&&(W(!0),w&&w(e)),C&&C(e)})),ae=function(){var e=T.findDOMNode(_.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=x.useRef(!1),le=Kf((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))})),ce=Kf((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)})),ue=u;"button"===ue&&B.href&&(ue="a");var de={};"button"===ue?(de.type=F,de.disabled=f):("a"===ue&&B.href||(de.role="button"),de["aria-disabled"]=f);var fe=Gf(r,t),pe=Gf(Y,_),me=Gf(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(ue,nl({className:Hf(s.root,l,V&&[s.focusVisible,b],f&&s.disabled),onBlur:oe,onClick:M,onFocus:ie,onKeyDown:le,onKeyUp:ce,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(qp,nl({ref:H,center:i},z)):null)})),Lp=jf({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"})(Ep),Np={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Op=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,c=e.display,u=void 0===c?"initial":c,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?Np:b,M=hl(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":S[v]||Np[v])||"span";return x.createElement(C,nl({className:Hf(o.root,i,"inherit"!==v&&o[v],"initial"!==s&&o["color".concat(Ff(s))],m&&o.noWrap,f&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(Ff(r))],"initial"!==u&&o["display".concat(Ff(u))]),ref:t},M))})),Dp=jf((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"})(Op),Ap=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,c=e.disabled,u=void 0!==c&&c,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=hl(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=M&&x.createElement("span",{className:Hf(r.startIcon,r["iconSize".concat(Ff(S))])},M),L=h&&x.createElement("span",{className:Hf(r.endIcon,r["iconSize".concat(Ff(S))])},h);return x.createElement(Lp,nl({className:Hf(r.root,r[T],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(Ff(a))],"medium"!==S&&[r["".concat(T,"Size").concat(Ff(S))],r["size".concat(Ff(S))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!m,focusVisibleClassName:Hf(r.focusVisible,g),ref:t,type:w},q),x.createElement("span",{className:r.label},E,n,L))})),Ip=jf((function(e){return{root:nl({},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:pl(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:pl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:pl(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(pl(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:pl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(pl(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:pl(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"})(Ap);var Rp="undefined"!=typeof window?x.useLayoutEffect:x.useEffect,Pp=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],c=s[1],u=Gf(x.isValidElement(n)?n.ref:null,t);return Rp((function(){i||c(function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(r)||document.body)}),[r,i]),Rp((function(){if(l&&!i)return Wf(t,l),function(){Wf(t,null)}}),[t,l,i]),Rp((function(){a&&(l||i)&&a()}),[a,l,i]),i?x.isValidElement(n)?x.cloneElement(n,{ref:u}):n:l?T.createPortal(n,l):l})),zp=Pp;function jp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Fp(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Bp(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Dl(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)&&jp(e,r)}))}function _p(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Hp(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=$f(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(Fp(i)+a,"px"),n=$f(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(Fp(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 $p=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 Gl(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&&jp(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);Bp(t,e.mountNode,e.modalRef,r,!0);var o=_p(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=_p(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Hp(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=_p(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&&jp(e.modalRef,!0),Bp(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&&jp(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,c=e.isEnabled,u=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=Gf(t.ref,g),v=x.useRef();return x.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(m.current=l().activeElement),x.useEffect((function(){if(u){var e=$f(h.current);r||!h.current||h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),h.current.focus());var t=function(){null!==h.current&&(e.hasFocus()&&!i&&c()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?p.current.focus():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,c,u]),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 Wp={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"}},Up=x.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=hl(e,["invisible","open"]);return o?x.createElement("div",nl({"aria-hidden":!0,ref:t},i,{style:nl({},Wp.root,r?Wp.invisible:{},i.style)})):null}));var Kp=new $p,Gp=x.forwardRef((function(e,t){var n=zd(),r=Vl({name:"MuiModal",props:nl({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Up:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,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?Kp:O,A=r.onBackdropClick,I=r.onClose,R=r.onEscapeKeyDown,P=r.onRendered,z=r.open,j=hl(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=Gf(V,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),K=function(){return $f($.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=Kf((function(){var e=function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(u)||K().body;D.add(G(),e),V.current&&Y()})),J=x.useCallback((function(){return D.isTopModal(G())}),[D]),Z=Kf((function(e){$.current=e,e&&(P&&P(),z&&J()?Y():jp(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&&c||Q()}),[z,Q,U,c,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:Fl}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=Bf((function(){_(!1)}),s.props.onEnter),te.onExited=Bf((function(){_(!0),c&&Q()}),s.props.onExited)),x.createElement(zp,{ref:Z,container:u,disablePortal:S},x.createElement("div",nl({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(R&&R(e),v||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},j,{style:nl({},ee.root,!z&&B?ee.hidden:{},j.style)}),E?null:x.createElement(i,nl({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))))})),Yp=Gp,Xp=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,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,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=hl(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return x.createElement(s,nl({className:Hf(o.root,i,"fullWidth"!==y&&o[y],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===p&&o.vertical),role:h,ref:t},v))})),Jp=jf((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:pl(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"})(Xp);function Zp(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Qp={entering:{opacity:1,transform:Zp(1)},entered:{opacity:1,transform:"none"}},em=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,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,p=e.timeout,m=void 0===p?"auto":p,h=e.TransitionComponent,g=void 0===h?mp:h,y=hl(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=x.useRef(),b=x.useRef(),S=zd()||Pf,M=S.unstable_strictMode&&!o,C=x.useRef(null),w=Gf(n.ref,t),k=Gf(M?C:void 0,w),T=function(e){return function(t,n){if(e){var r=Al(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=Sp({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=Sp({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=Zp(.75),c&&c(e)})),D=T(u);return x.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),x.createElement(g,nl({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,nl({style:nl({opacity:0,transform:Zp(.75),visibility:"exited"!==e||i?void 0:"hidden"},Qp[e],f,n.props.style),ref:k},t))}))}));em.muiSupportAuto=!0;var tm=em,nm=x.createContext({}),rm=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,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=hl(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=x.useMemo((function(){return{dense:l}}),[l]);return x.createElement(nm.Provider,{value:p},x.createElement(a,nl({className:Hf(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),om=jf({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(rm),im="undefined"==typeof window?x.useEffect:x.useLayoutEffect,am=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,c=e.classes,u=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=hl(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=hl(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=x.useContext(nm),D={dense:v||O.dense||!1,alignItems:r},A=x.useRef(null);im((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=Gf(x.useCallback((function(e){A.current=T.findDOMNode(e)}),[]),t),F=nl({className:Hf(c.root,u,D.dense&&c.dense,!C&&c.gutters,k&&c.divider,S&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,L&&c.selected),disabled:S},N),B=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=Hf(c.focusVisible,q),B=Lp),z?(B=F.component||d?B:"div","li"===p&&("li"===B?B="div":"li"===F.component&&(F.component="div")),x.createElement(nm.Provider,{value:D},x.createElement(p,nl({className:Hf(c.container,h),ref:j},g),x.createElement(B,F,P),P.pop()))):x.createElement(nm.Provider,{value:D},x.createElement(B,nl({ref:j},F),P))})),sm=jf((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"})(am),lm=x.forwardRef((function(e,t){var n=e.classes,r=e.className,o=hl(e,["classes","className"]),i=x.useContext(nm);return x.createElement("div",nl({className:Hf(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),cm=jf((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(lm),um=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,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,p=hl(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=x.useContext(nm).dense,h=null!=c?c:n;null==h||h.type===Dp||a||(h=x.createElement(Dp,nl({variant:m?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===Dp||a||(g=x.createElement(Dp,nl({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),x.createElement("div",nl({className:Hf(r.root,o,m&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),dm=jf({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(um);function fm(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function pm(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function mm(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function hm(e){return"function"==typeof e?e():e}var gm=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,c=e.children,u=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?tm:O,A=e.transitionDuration,I=void 0===A?"auto":A,R=e.TransitionProps,P=void 0===R?{}:R,z=hl(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=hm(r),n=(t&&1===t.nodeType?t:$f(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+fm(n,o),left:n.left+pm(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:fm(e,N.vertical)+t,horizontal:pm(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:mm(o)};var i=F(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=Vf(hm(r)),f=d.innerHeight-y,p=d.innerWidth-y;if(a<y){var m=a-y;a-=m,o.vertical+=m}else if(c>f){var h=c-f;a-=h,o.vertical+=h}if(s<y){var g=s-y;s-=g,o.horizontal+=g}else if(u>p){var v=u-p;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:mm(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?$f(hm(r)).body:void 0);return x.createElement(Yp,nl({container:U,open:k,ref:t,BackdropProps:{invisible:!0},className:Hf(u.root,d)},z),x.createElement(D,nl({appear:!0,in:k,onEnter:v,onEntered:b,onExit:M,onExited:C,onExiting:w,timeout:W},P,{onEntering:Bf((function(e,t){S&&S(e,t),$()}),P.onEntering)}),x.createElement(Cp,nl({elevation:m,ref:V},E,{className:Hf(u.paper,E.className)}),c)))})),ym=jf({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(gm);function vm(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function bm({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:vm(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 xm={menuItem:"alternative-menu-item"},Sm=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>Ud((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(sm,$s({className:`${o.root} ${n}`},r))},Mm=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${xm.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 Cm({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=Pe.detectTextDirection(e);return b.createElement(Sm,{nested:r,role:"menuitem",button:!0,onClick:n,className:xm.menuItem,onKeyDown:Mm,dir:a,autoFocus:t},b.createElement(dm,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),b.createElement(cm,{style:{minWidth:16}},b.createElement(bm,{d:t?qs.d:""})),o&&b.createElement(cm,{style:{minWidth:16}},b.createElement(bm,{d:o.d})))}Cm.propTypes={title:Ks.string.isRequired,selected:Ks.bool,onClick:Ks.func.isRequired,nested:Ks.bool,icon:Ks.shape({d:Ks.string.isRequired}),bold:Ks.bool,dir:Ks.string.isRequired},Cm.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Sm.propTypes={nested:Ks.bool,className:Ks.string},Sm.defaultProps={nested:!1,className:xm.menuItem};const wm={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 km({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const c=i.map(((t,o)=>{var s;return b.createElement(b.Fragment,{key:t.id},b.createElement(Cm,{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(om,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>b.createElement(Cm,{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(Jp,{key:`divider-${t.id}`}))}));return b.createElement(ym,$s({anchorEl:t,open:s,onClose:a},wm[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),b.createElement(om,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}km.propTypes={chartId:Ks.string.isRequired,alignTo:Ks.any,currentId:Ks.string.isRequired,dir:Ks.string.isRequired,dock:Ks.string.isRequired,list:Ks.array,onClose:Ks.func.isRequired,show:Ks.bool.isRequired,instruction:Ks.string.isRequired},km.defaultProps={list:[],alignTo:null};const Tm="title-button",qm="active-title-button",Em=zf((({children:e,...t})=>b.createElement(Ip,$s({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Lm=zf(Ip)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class Nm 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(`.${Tm}`);t&&(t.focus(),t.classList.add(qm))}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(`.${Tm}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${qm}`);e&&(e.classList.remove(qm),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,p=o||Boolean(!t.drillUp)||this.state.inSelection,m=t.breadcrumbs.map(((e,n)=>b.createElement(Em,{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(bm,$s({},Ls,{size:"small",style:{margin:"0 8px"}}))))),h=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||o||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const x=()=>{this.setState({disableCyclicButton:!0})},S=Pe.detectTextDirection(t.text),M=b.createElement(Em,{"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:`${Tm} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&b.createElement(bm,$s({},Ts,{size:"small",title:r.get("Tooltip.selections.locked")})),b.createElement("span",{style:d,dir:S},t.text),n&&h&&b.createElement(bm,$s({},Es,{size:"small",style:{margin:"0 8px"}})));return b.createElement(b.Fragment,null,t.icon&&t.icon.onClick&&b.createElement(Lm,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},b.createElement(bm,$s({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&b.createElement(bm,$s({},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(km,{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 Om(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}Nm.propTypes={chartId:Ks.string.isRequired,disabled:Ks.bool.isRequired,padding:Ks.string,minWidth:Ks.string,titleData:Ks.shape({breadcrumbs:Ks.arrayOf(Ks.string).isRequired,icon:Ks.shape({path:Ks.shape({d:Ks.string.isRequired}),tooltip:Ks.string.isRequired,onClick:Ks.func}),index:Ks.number.isRequired,locked:Ks.bool.isRequired,text:Ks.string.isRequired,popoverText:Ks.string.isRequired,drillUp:Ks.func,id:Ks.string.isRequired}).isRequired,popover:Ks.shape({dir:Ks.string.isRequired,dock:Ks.string.isRequired,getPopoverOptions:Ks.func.isRequired}),translator:Ks.shape({get:Ks.func.isRequired}).isRequired,selections:Ks.shape({isActive:Ks.func,addListener:Ks.func,removeListener:Ks.func}),style:Ks.shape({fontSize:Ks.string,color:Ks.string,fontFamily:Ks.string}).isRequired,isDimension:Ks.bool.isRequired,hasAlternative:Ks.bool.isRequired,supportConditional:Ks.bool.isRequired,showGroupDimOptions:Ks.bool.isRequired},Nm.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const Dm=Bl({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 Am=$l({productionPrefix:"q812d",disableGlobal:!0,seed:""});var Im={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:Rm}=Im;function Pm({layoutService:e,largeDataService:t}){const{maxNumPoints:n=Rm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:zm}=Im,jm=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=zm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!Pm({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:Fm}=Im,{MAX_NUM_POINTS:Bm,DEFAULT_NUM_POINTS:_m,DEFAULT_NUM_LINES:Hm}=Im,{DEFAULT_NUM_POINTS:$m}=Im,Vm=({layoutService:e,largeDataService:t})=>{if(!Pm({layoutService:e,largeDataService:t})){const{maxNumPoints:e=$m}=(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=Hm,maxNumPoints:i=_m,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(jm({layoutService:e,largeDataService:t})*r[0]<=i)return r[0];const s=Math.max(1,Math.min(o,r[1])),l=i/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>Hm||i>_m)?Math.min(c,Math.ceil(Bm/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=Fm}=(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})},Wm=({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:jm({layoutService:r,largeDataService:o})};return n.getHyperCubeContinuousData(i,a,!1)};function Um({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>Pm({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>Vm({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>jm({layoutService:t,largeDataService:n}),fetch:(o,i)=>Wm({start:o,end:i,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Km(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Gm({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 Ym(){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 Xm(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=Ym(),i=Ym();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 Jm(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Zm(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Xm(e,t,n.qMatrix),o=Jm(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,eh=1/Qm,th=1e-6,nh=eh**44;function rh(e){return e.qIsOtherCell}function oh({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(rh)){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(rh)||t++})),t}(n)}const ih={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var ah={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 sh="…";function lh(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function ch(e,t){const{localProps:{size:n},props:{anchor:r}}=t,o=function({props:e,localProps:{size:t},style:n,renderer:r}){const o=e.label.padding,i=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",c=s(l);let{x:u,width:d}=r;e.start===e.end&&(d=c.width+2*o,1===e.end&&(u-=d));const f={x:u+o,y:o,width:d-2*o,height:t.height-2*o},p=s(`${l[0]}${sh}`).width,m=Math.max(0,f.width-c.width),h=Math.max(0,f.height-c.height),g=i*m,y=a*h;return{show:f.width>=Math.min(p,c.width),text:l,dx:g,dy:y,rect:f,style:n.label,segment:{x:u+g,width:c.width+2*o},tickValue:e.value}}}}(t),i=function({localProps:{size:e},style:t,scale:n,props:r}){const[o,i]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=lh(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:lh(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 uh(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=lh(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:lh(o,n.minorGuideLine.strokeWidth),x2:i,y2:lh(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function dh(e){return e.filter((e=>e.show)).map((e=>de({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var fh={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=lh(1,t.line.strokeWidth);return{show:n.line.show,x1:lh(0,t.line.strokeWidth),y1:r,x2:lh(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=ch(n,this),this.state.minor=uh(r,this)},render(){return[...dh([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>de({},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})))),...dh(this.state.major.map((e=>e.guideLine))),...dh(this.state.minor.map((e=>e.guideLine)))];var e}};function ph(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 mh(e){return e.qTags.indexOf("$qualified")>-1}function hh({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];ph(i,a)?(mh(a)?(t.push(o),n.push(r)):(t.push(r),n.push(o)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function gh({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,o=NaN,i=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(o=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){i="auto",s=!0;break}if(e&&e.queries.inner(n)){i=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(o)&&Number.isNaN(i)&&"auto"!==i){i=o,o=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(o)&&(o="auto",i="auto");return{outer:o,inner:i,minor:a,isDayOrShorter:s}}}}const yh=16;function vh({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+yh}))),r.clamp(n),o.rangeAndWidth}}}const bh=6;function xh({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>=bh,canFitHalfDayTicks:n=>n>=t*e.count()}}function Sh({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=vh,queryFactory:s=xh}={attributesFactory:vh,queryFactory:xh}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:i});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:o})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function Mh({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=Sh,mapper:a=hh,resolver:s=gh}={metaFactory:Sh,mapper:hh,resolver:gh}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=i({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:o}),f=s({qualifiedMeta:u,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const o=f.resolve(t);return n.set(r,o),o}}}const Ch=86400,wh=864e5;function kh(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(wh*(e-Math.floor(e)))))}const Th=kh(0).getTime();function qh(e){return(e.getTime()-Th)/Ch/1e3}const Eh=new Date,Lh=new Date;function Nh(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=>Nh((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)=>(Eh.setTime(+t),Lh.setTime(+r),e(Eh),e(Lh),Math.floor(n(Eh,Lh))),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,Dh=6e4,Ah=36e5,Ih=864e5,Rh=6048e5,Ph=Nh((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Oh)}),((e,t)=>(t-e)/Oh),(e=>e.getUTCSeconds()));Ph.range;const zh=Nh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oh)}),((e,t)=>{e.setTime(+e+t*Dh)}),((e,t)=>(t-e)/Dh),(e=>e.getMinutes()));zh.range;const jh=Nh((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Dh)}),((e,t)=>(t-e)/Dh),(e=>e.getUTCMinutes()));jh.range;const Fh=Nh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oh-e.getMinutes()*Dh)}),((e,t)=>{e.setTime(+e+t*Ah)}),((e,t)=>(t-e)/Ah),(e=>e.getHours()));Fh.range;const Bh=Nh((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Ah)}),((e,t)=>(t-e)/Ah),(e=>e.getUTCHours()));Bh.range;const _h=Nh((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Dh)/Ih),(e=>e.getDate()-1));_h.range;const Hh=Nh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ih),(e=>e.getUTCDate()-1));Hh.range;const $h=Nh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ih),(e=>Math.floor(e/Ih)));function Vh(e){return Nh((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())*Dh)/Rh))}$h.range;const Wh=Vh(0),Uh=Vh(1),Kh=Vh(2),Gh=Vh(3),Yh=Vh(4),Xh=Vh(5),Jh=Vh(6);function Zh(e){return Nh((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)/Rh))}Wh.range,Uh.range,Kh.range,Gh.range,Yh.range,Xh.range,Jh.range;const Qh=Zh(0),eg=Zh(1),tg=Zh(2),ng=Zh(3),rg=Zh(4),og=Zh(5),ig=Zh(6);Qh.range,eg.range,tg.range,ng.range,rg.range,og.range,ig.range;const ag=Nh((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()));ag.range;const sg=Nh((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()));sg.range;const lg=Nh((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()));lg.every=e=>isFinite(e=Math.floor(e))&&e>0?Nh((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,lg.range;const cg=Nh((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()));cg.every=e=>isFinite(e=Math.floor(e))&&e>0?Nh((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,cg.range;const ug={second:1,minute:2,hour:3,day:4,month:5,year:6};function dg({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:o,timeOnly:i,initialMin:a}){const[s,l]=e.domain(),c=o.key({distance:n});let u;o.get(c,1)?u=o.get(c,1):(u=function(e,t,n,r,o,i){function a(e){return cg.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=Ph.count(e,t),l=jh.count(e,t),c=Bh.count(e,t),u=Hh.count(e,t),d=Qh.count(e,t),f=sg.count(e,t),p=cg.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:cg.every(1),formatter:r.year.formatter,offset:e=>cg.offset(e,-1),floor:cg.floor};if(s<=m)v.type=ug.second,v.desc="second",v.count=s,v.interval=Ph.every(1),v.formatter=r.second.formatter,v.offset=e=>Ph.offset(e,-1),v.floor=Ph.floor;else if(s/2<=m)v.type=ug.second,v.desc="every other second",v.count=s/2,v.interval=Ph.every(2),v.formatter=r.second.formatter,v.offset=e=>Ph.offset(e,-2),v.floor=Ph.floor;else if(s/5<=m)v.type=ug.second,v.desc="every 5 second",v.count=s/5,v.interval=Ph.every(5),v.formatter=r.second.formatter,v.offset=e=>Ph.offset(e,-5),v.floor=Ph.floor;else if(s/15<=m)v.type=ug.second,v.desc="every 15 second",v.count=s/15,v.interval=Ph.every(15),v.formatter=r.second.formatter,v.offset=e=>Ph.offset(e,-15),v.floor=Ph.floor;else if(s/30<=m)v.type=ug.second,v.desc="every 30 second",v.count=s/30,v.interval=Ph.every(30),v.formatter=r.second.formatter,v.offset=e=>Ph.offset(e,-30),v.floor=Ph.floor;else if(l<=h)v.type=ug.minute,v.desc="minute",v.count=l,v.interval=jh.every(1),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-1),v.floor=jh.floor;else if(l/2<=h)v.type=ug.minute,v.desc="every 2 minute",v.count=l/2,v.interval=jh.every(2),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-2),v.floor=jh.floor;else if(l/5<=h)v.type=ug.minute,v.desc="every 5 minute",v.count=l/5,v.interval=jh.every(5),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-5),v.floor=jh.floor;else if(l/10<=h)v.type=ug.minute,v.desc="every 10 minute",v.count=l/10,v.interval=jh.every(10),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-10),v.floor=jh.floor;else if(l/15<=h)v.type=ug.minute,v.desc="every 15 minute",v.count=l/15,v.interval=jh.every(15),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-15),v.floor=jh.floor;else if(l/30<=h)v.type=ug.minute,v.desc="every 30 minute",v.count=l/30,v.interval=jh.every(30),v.formatter=r.minute.formatter,v.offset=e=>jh.offset(e,-30),v.floor=jh.floor;else if(c<=h)v.type=ug.hour,v.desc="hour",v.count=c,v.interval=Bh.every(1),v.formatter=r.minute.formatter,v.offset=e=>Bh.offset(e,-1),v.floor=Bh.floor;else if(c/2<=h)v.type=ug.hour,v.desc="every 2 hour",v.count=c/2,v.interval=Bh.every(2),v.formatter=r.minute.formatter,v.offset=e=>Bh.offset(e,-2),v.floor=Bh.floor;else if(c/3<=h)v.type=ug.hour,v.desc="every 3 hour",v.count=c/3,v.interval=Bh.every(3),v.formatter=r.minute.formatter,v.offset=e=>Bh.offset(e,-3),v.floor=Bh.floor;else if(c/6<=h)v.type=ug.hour,v.desc="every 6 hour",v.count=c/6,v.interval=Bh.every(6),v.formatter=r.minute.formatter,v.offset=e=>Bh.offset(e,-6),v.floor=Bh.floor;else if(c/12<=h||o)v.type=ug.hour,v.desc="every 12 hour",v.count=c/12,v.interval=Bh.every(12),v.formatter=r.minute.formatter,v.offset=e=>Bh.offset(e,-12),v.floor=Bh.floor;else if(u<=g)v.type=ug.day,v.desc="day",v.count=u,v.interval=Hh.every(1),v.formatter=r.date.formatter,v.offset=e=>Hh.offset(e,-1),v.floor=Hh.floor;else if(u/2<=g)v.type=ug.day,v.desc="every 2 day",v.count=u/2,v.interval=Hh.every(2),v.formatter=r.date.formatter,v.offset=e=>Hh.offset(e,-2),v.floor=Hh.floor;else if(u/3<=g)v.type=ug.day,v.desc="every 3 day",v.count=u/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=ug.day,v.desc="week",v.count=d,v.interval=Qh.every(1),v.formatter=r.date.formatter,v.offset=e=>Qh.offset(e,-1),v.floor=Hh.floor;else if(d/2<=g)v.type=ug.day,v.desc="every 2 week",v.count=d/2,v.interval=Qh.every(2),v.formatter=r.date.formatter,v.offset=e=>Qh.offset(e,-2),v.floor=Hh.floor;else if(f<=g)v.type=ug.month,v.desc="month",v.count=f,v.interval=sg.every(1),v.formatter=r.date.formatter,v.offset=e=>sg.offset(e,-1),v.floor=Hh.floor;else if(f/3<=g)v.type=ug.month,v.desc="quarter",v.count=f/3,v.interval=sg.every(3),v.formatter=r.date.formatter,v.offset=e=>sg.offset(e,-3),v.floor=Hh.floor;else if(f/6<=g)v.type=ug.month,v.desc="half year",v.count=f/6,v.interval=sg.every(6),v.formatter=r.date.formatter,v.offset=e=>sg.offset(e,-6),v.floor=Hh.floor;else if(p<=y)v.type=ug.year,v.desc="year",v.count=p,v.interval=cg.every(1),v.formatter=r.year.formatter,v.offset=e=>cg.offset(e,-1),v.floor=cg.floor;else if(p/2<=y)v.type=ug.year,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>cg.offset(e,-2),v.floor=cg.floor;else if(p/5<=y)v.type=ug.year,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>cg.offset(e,-5),v.floor=cg.floor;else if(p/10<=y)v.type=ug.year,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>cg.offset(e,-10),v.floor=cg.floor;else{const e=Math.max(1,Math.floor(p/y));v.type=ug.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>cg.offset(t,-e),v.floor=cg.floor}return v}(s,l,n,t.all(),r,a),o.set(c,u,1));const d=e.ticks(u.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(u.offset(d[0])):d.push(u.floor(s));const f=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:u.formatter}}));let p=[];if(!i&&u.type<=ug.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 fg=86400,pg=1440,mg={};function hg(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function gg(e,t,n){const{generator:r,anchor:o,clamp:i,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(i);const[l,c]=e.domain(),u=Zi().domain([kh(l),kh(c)]);u.clamp(i),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let f;f="d3"===d.type?(e,o)=>dg({timeScale:u,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:kh(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(mg[[t,n,r,r,i]])return mg[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=kh(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,f=t/(o-r),p=f/1440,m=f/fg,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/fg):y<2?(T=2,k=1/fg*2):y<5?(T=5,k=1/fg*5):y<10?(T=10,k=1/fg*10):y<30?(T=30,k=1/fg*30):v<1?(q=1,k=1/pg):v<2?(q=2,k=1/pg*2):v<5?(q=5,k=1/pg*5):v<10?(q=10,k=1/pg*10):v<30?(q=30,k=1/pg*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?hg("year",[l+M*O,0,1],[l+C*O,0,1],a.year.formatter):N?hg("month",[l,c+M*N,1],[l,c+C*N,1],a.date.formatter):L?hg("day",[l,c,u+M*L],[l,c,u+C*L],a.date.formatter):E?hg("hour",[l,c,u,0+M*E],[l,c,u,0+C*E],a.minute.formatter):q?hg("minute",[l,c,u,0,0+M*q],[l,c,u,0,0+C*q],a.minute.formatter):hg("second",[l,c,u,0,0,0+M*T],[l,c,u,0,0,0+C*T],a.second.formatter),w=qh(S.start),D.inner.push(S);const e=Math.floor(w);if(!(i||O||N||L)){const t={type:"day",start:kh(e),end:kh(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,mg[[t,n,r,r,i]]=D,D}(n,e,d.min,l,c,"T"===s.qType);const p={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===o?t.qStart:"end"===o?t.qEnd:(t.qStart+t.qEnd)/2;const i=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(i),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>f(t,n)[a].map((t=>{let n;return n="start"===o?qh(t.start):"end"===o?qh(t.end):(qh(t.start)+qh(t.end))/2,{position:u(t.start),start:u(t.start),end:u(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:qh(t.start),end:qh(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const yg=41000.2343433,vg=/t+/i,bg=16,xg=60;const Sg={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 Mg(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 Cg="continuousPan";var wg={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=ih,viewCache:o,viewState:i,definitionPath:a},s={}){const{engineFetcherFactory:l=Um,snapshotFetcherFactory:c=Gm,cacheFetcherFactory:u=Km,cache:d={initial:{},merged:{}}}=s,f=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),p=c({layoutService:t,viewCache:o}),m=u({cache:d}),h=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){var n,r;({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),o.set("continuousMin",y),o.set("continuousMax",v),o.set("minimiumZoomSpan",(n=y,r=v,Math.max(th,(r-n)*nh))),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=Jm(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=>Zm(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=Jm(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=>Zm(e,t,n))).catch(h),fetchFromCache:(e,t)=>m.fetch(e,t).then((n=>Zm(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return de({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return de({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>oh(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),c=o?1-i:i,{min:u,max:d}=t.get("zoom"),f=Math.abs(d-u),p=f-(r>0?eh:Qm)*f,m=u+p*c,h=d-p*(1-c),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:Cg,pointers:1,threshold:10,enable(r,o){return this.started===Cg||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{[`${Cg}start`](n){n.preventDefault(),this.started=Cg;const{min:o,max:i}=r.get("zoom");this[Cg]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},[`${Cg}move`](e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[Cg],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)})},[`${Cg}end`](e){e.preventDefault(),this.started=!1},[`${Cg}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:ah,timeAxis:fh},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]=de(!0,{},t[o],i)})),r}(t,Sg,n),{qAxis:i}=r,a=_r(),s={instance:null,invert:!1},{min:l,max:c}=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 u,d,f=[];const p=function(e){return Number.isNaN(+e)?NaN:a(e)};p.ticks=({distance:e,resolve:t=u.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=>(Mg(s,p),s.instance(e)),p.normInvert=e=>(Mg(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,c),p.max=()=>Math.max(l,c),a.range(r.invert?[1,0]:[0,1]),a.domain([l,c]),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:xg,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:xg,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:xg,formatter:void 0},year:{type:"year",pattern:"YYYY",width:xg,formatter:void 0}};return o&&vg.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(yg)).width+bg)})),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=kh(t[0].data.start),o=kh(t[n-1].data.start);return Hh.count(r,o)/n>=1?i.date:Bh.count(r,o)/n>0?i.minute:jh.count(r,o)/n>0?i.second:i.date},t}(r);return d=gg(a.copy(),r,m),u=Mh({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 kg={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var Tg={OPTIONS:kg,DEFAULT:kg.MINI_CHART};function qg({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:o,minThumbSize:i})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===o,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<i){const e=(i-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=i}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function Eg({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 Lg=e=>({miniChart:e===Tg.OPTIONS.MINI_CHART.value,bar:e===Tg.OPTIONS.BAR.value,none:e===Tg.OPTIONS.NONE.value}),Ng=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return Lg(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return Lg(Tg.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return Lg(!n&&(r||!r&&o)?Tg.OPTIONS.NONE.value:Tg.OPTIONS.MINI_CHART.value)};function Og({layoutService:e,override:t}){const n=Ng({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===Tg.OPTIONS.MINI_CHART.value,n.bar=t.value===Tg.OPTIONS.BAR.value,n.none=t.value===Tg.OPTIONS.NONE.value),n}function Dg({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:o,viewCache:i,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=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:()=>Eg({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(p.settings.style="slim",p.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(p.settings.size.thumb={min:4}));const 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&&c&&(p.settings.injections=()=>[qg({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:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),f="horizontal"===i.meta.major.orientation,p=f?l-u.left-d.rect.computedInner.x:c-u.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]=Eg({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 Ig({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i}){return()=>{const a=t.component(e),{orientation:s}=i.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,f]=Eg({layoutService:o,viewState:n,viewCache:r});return{size:u,thumbSize:(f-d)*u}}}function Rg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=Ag({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=Ig({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,o)=>!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,i-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const Pg="data-scrollbar-handle";function zg({e:e}){return(e.srcEvent||e).srcElement.getAttribute(Pg)||""}const jg="scrollbarResize",Fg=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function Bg({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:${jg}`,options:{event:jg,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[jg]=this[jg]||{},Fg(t)&&zg({e:t})&&(this[jg].panningEvent=t.srcEvent),!!this[jg].panningEvent))}},events:{[`${jg}start`](n){n.preventDefault(),this[jg]=this[jg]||{},this[jg].panningEvent&&t.component(e).emit("dragStart",this[jg].panningEvent)},[`${jg}move`](n){if(n.preventDefault(),this[jg]=this[jg]||{},!this[jg].panningEvent)return;const i=r.get("zoom"),a=o.get("continuousMin"),s=o.get("continuousMax"),c=o.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=zg({e:this[jg].panningEvent});let f="start"===d?Math.min(u,i.max):i.min,p="end"===d?Math.max(u,i.min):i.max;f===p&&(f-="start"===d?c:0,p+="end"===d?c:0),r.set("zoom",{min:f,max:p}),t.component(e).emit("render")},[`${jg}end`](n){n.preventDefault(),this[jg]=this[jg]||{},delete this[jg].panningEvent,t.component(e).emit("dragEnd")},[`${jg}cancel`](n){n.preventDefault(),this[jg]=this[jg]||{},delete this[jg].panningEvent,t.component(e).emit("dragEnd")}}}}const _g="scrollbarPan";function Hg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=Ag({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=Ig({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:`event:${_g}`,options:{event:_g,threshold:0,enable(r,o){return this[_g]=this[_g]||{},!(o&&!this[_g].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:{[`${_g}start`](n){n.preventDefault();const a=c(n);if(this[_g]=this[_g]||{},this[_g].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[_g].relative=a.relative,this[_g].zoom=r.get("zoom"),this[_g].zoom.span=this[_g].zoom.max-this[_g].zoom.min,this[_g].zoom.fullSpan=i-n}else if(a.onThumb)this[_g].offset=a.thumb;else{const e=u();this[_g].offset=a.beforeThumb?0:e.thumbSize}},[`${_g}move`](n){n.preventDefault();const a=c(n);if(this[_g]=this[_g]||{},i.meta.isContinuous){const e=a.relative-this[_g].relative,{fullSpan:t,span:n,min:i,max:s}=this[_g].zoom,l=o.get("continuousMin"),c=o.get("continuousMax");r.set("zoom",{min:Math.min(i+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[_g].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${_g}end`](n){n.preventDefault(),this[_g]=this[_g]||{},this[_g].isPanning=!1,t.component(e).emit("unlockState")},[`${_g}cancel`](n){n.preventDefault(),this[_g]=this[_g]||{},this[_g].isPanning=!1,t.component(e).emit("unlockState")}}}}function $g({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[Rg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),Bg({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 Vg({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 Wg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...$g({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:Vg({componentKey:e,chart:t,actions:n,layoutService:i})}}const Ug={background:"rgba(0, 0, 0, 0.1)"},Kg={top:-1,bottom:-1,width:6},Gg={width:2,background:"#595959"};var Yg={before:Ug,after:Ug,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:Kg,endHandle:Kg,startHandleBorder:Gg,endHandleBorder:Gg};const Xg={background:"rgba(0, 0, 0, 0.1)"},Jg={top:-1,bottom:-1,width:6},Zg={width:2,background:"#595959"};var Qg={before:Xg,after:Xg,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:Jg,endHandle:Jg,startHandleBorder:Zg,endHandleBorder:Zg};const ey={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},ty={pointerEvents:"initial"},ny={pointerEvents:"none"};const ry="ew-resize",oy="default";function iy(){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 ay(){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?ry:oy}function sy(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 ly(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function cy(){const{size:e,start:t,end:n}=iy.call(this);this.renderer.render(this.elements(this.h,sy.call(this,e,t,n)))}function uy(){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?Qg:Yg;return{container:{...ey},before:{...ey,...n.before,...t.before},after:{...ey,...n.after,...t.after},thumb:{...ey,...n.thumb,...t.thumb},startHandle:{...ey,...ty,...n.startHandle},endHandle:{...ey,...ty,...n.endHandle},startHandleBorder:{...ey,...ny,...n.startHandleBorder},endHandleBorder:{...ey,...ny,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var dy={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(){cy.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||!ly.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=zg({e:e});t&&(this.state.hover[t]=!0),ay.call(this),cy.call(this)},leave(){this.state.locked||(this.state.hover.reset(),ay.call(this),cy.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=zg({e:e});t&&(this.state.drag[t]=!0),ay.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),ay.call(this),cy.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}=iy.call(this);return this.elements(e,sy.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:o}=this.settings,i=o.injections().map((t=>t({h:e,rect:this.rect,orientation:o.orientation,minThumbSize:o.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:o,startHandleActive:i,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[o.end]:t-n},f={[o.start]:r},p={left:-3},m={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?f:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:f},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:p},class:"scrollbar--start-handle",[Pg]:"start"},i?e("div",{style:{...s.startHandleBorder,...c?g:m}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?p:h},class:"scrollbar--end-handle",[Pg]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?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,...u])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:uy.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};var fy={black:"#000",white:"#fff"};var py={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 my={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 hy={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 gy={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 yy={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 vy={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 by={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 xy(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 Sy=Object.freeze({__proto__:null,default:xy}),My="$$material";function Cy(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var wy=/^((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)-.*))$/,ky=Cy((function(e){return wy.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Ty=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}(),qy="-ms-",Ey="-moz-",Ly="-webkit-",Ny="comm",Oy="rule",Dy="decl",Ay="@keyframes",Iy=Math.abs,Ry=String.fromCharCode,Py=Object.assign;function zy(e){return e.trim()}function jy(e,t,n){return e.replace(t,n)}function Fy(e,t){return e.indexOf(t)}function By(e,t){return 0|e.charCodeAt(t)}function _y(e,t,n){return e.slice(t,n)}function Hy(e){return e.length}function $y(e){return e.length}function Vy(e,t){return t.push(e),e}var Wy=1,Uy=1,Ky=0,Gy=0,Yy=0,Xy="";function Jy(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Wy,column:Uy,length:a,return:""}}function Zy(e,t){return Py(Jy("",null,null,"",null,null,0),e,{length:-e.length},t)}function Qy(){return Yy=Gy>0?By(Xy,--Gy):0,Uy--,10===Yy&&(Uy=1,Wy--),Yy}function ev(){return Yy=Gy<Ky?By(Xy,Gy++):0,Uy++,10===Yy&&(Uy=1,Wy++),Yy}function tv(){return By(Xy,Gy)}function nv(){return Gy}function rv(e,t){return _y(Xy,e,t)}function ov(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 iv(e){return Wy=Uy=1,Ky=Hy(Xy=e),Gy=0,[]}function av(e){return Xy="",e}function sv(e){return zy(rv(Gy-1,uv(91===e?e+2:40===e?e+1:e)))}function lv(e){for(;(Yy=tv())&&Yy<33;)ev();return ov(e)>2||ov(Yy)>3?"":" "}function cv(e,t){for(;--t&&ev()&&!(Yy<48||Yy>102||Yy>57&&Yy<65||Yy>70&&Yy<97););return rv(e,nv()+(t<6&&32==tv()&&32==ev()))}function uv(e){for(;ev();)switch(Yy){case e:return Gy;case 34:case 39:34!==e&&39!==e&&uv(Yy);break;case 40:41===e&&uv(e);break;case 92:ev()}return Gy}function dv(e,t){for(;ev()&&e+Yy!==57&&(e+Yy!==84||47!==tv()););return"/*"+rv(t,Gy-1)+"*"+Ry(47===e?e:ev())}function fv(e){for(;!ov(tv());)ev();return rv(e,Gy)}function pv(e){return av(mv("",null,null,null,[""],e=iv(e),0,[0],e))}function mv(e,t,n,r,o,i,a,s,l){for(var c=0,u=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=ev()){case 40:if(108!=m&&58==By(C,d-1)){-1!=Fy(C+=jy(sv(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=sv(v);break;case 9:case 10:case 13:case 32:C+=lv(m);break;case 92:C+=cv(nv()-1,7);continue;case 47:switch(tv()){case 42:case 47:Vy(gv(dv(ev(),nv()),t,n),l);break;default:C+="/"}break;case 123*h:s[c++]=Hy(C)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(C=jy(C,/\f/g,"")),p>0&&Hy(C)-d&&Vy(p>32?yv(C+";",r,n,d-1):yv(jy(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Vy(M=hv(C,t,n,c,u,o,s,b,x=[],S=[],d),i),123===v)if(0===u)mv(C,t,M,M,x,i,d,s,S);else switch(99===f&&110===By(C,3)?100:f){case 100:case 108:case 109:case 115:mv(e,M,M,r&&Vy(hv(e,M,M,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:mv(C,M,M,M,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=C="",d=a;break;case 58:d=1+Hy(C),p=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Qy())continue;switch(C+=Ry(v),v*h){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Hy(C)-1)*y,y=1;break;case 64:45===tv()&&(C+=sv(ev())),f=tv(),u=d=Hy(b=C+=fv(nv())),v++;break;case 45:45===m&&2==Hy(C)&&(h=0)}}return i}function hv(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=$y(f),m=0,h=0,g=0;m<r;++m)for(var y=0,v=_y(e,d+1,d=Iy(h=a[m])),b=e;y<p;++y)(b=zy(h>0?f[y]+" "+v:jy(v,/&\f/g,f[y])))&&(l[g++]=b);return Jy(e,t,n,0===o?Oy:s,l,c,u)}function gv(e,t,n){return Jy(e,t,n,Ny,Ry(Yy),_y(e,2,-2),0)}function yv(e,t,n,r){return Jy(e,t,n,Dy,_y(e,0,r),_y(e,r+1,-1),r)}function vv(e,t){for(var n="",r=$y(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function bv(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Dy:return e.return=e.return||e.value;case Ny:return"";case Ay:return e.return=e.value+"{"+vv(e.children,r)+"}";case Oy:e.value=e.props.join(",")}return Hy(n=vv(e.children,r))?e.return=e.value+"{"+n+"}":""}function xv(e){var t=$y(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var Sv="undefined"!=typeof document,Mv=function(e,t,n){for(var r=0,o=0;r=o,o=tv(),38===r&&12===o&&(t[n]=1),!ov(o);)ev();return rv(e,Gy)},Cv=function(e,t){return av(function(e,t){var n=-1,r=44;do{switch(ov(r)){case 0:38===r&&12===tv()&&(t[n]=1),e[n]+=Mv(Gy-1,t,n);break;case 2:e[n]+=sv(r);break;case 4:if(44===r){e[++n]=58===tv()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ry(r)}}while(r=ev());return e}(iv(e),t))},wv=new WeakMap,kv=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)||wv.get(n))&&!r){wv.set(e,!0);for(var o=[],i=Cv(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Tv=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function qv(e,t){switch(function(e,t){return 45^By(e,0)?(((t<<2^By(e,0))<<2^By(e,1))<<2^By(e,2))<<2^By(e,3):0}(e,t)){case 5103:return Ly+"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 Ly+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ly+e+Ey+e+qy+e+e;case 6828:case 4268:return Ly+e+qy+e+e;case 6165:return Ly+e+qy+"flex-"+e+e;case 5187:return Ly+e+jy(e,/(\w+).+(:[^]+)/,Ly+"box-$1$2"+qy+"flex-$1$2")+e;case 5443:return Ly+e+qy+"flex-item-"+jy(e,/flex-|-self/,"")+e;case 4675:return Ly+e+qy+"flex-line-pack"+jy(e,/align-content|flex-|-self/,"")+e;case 5548:return Ly+e+qy+jy(e,"shrink","negative")+e;case 5292:return Ly+e+qy+jy(e,"basis","preferred-size")+e;case 6060:return Ly+"box-"+jy(e,"-grow","")+Ly+e+qy+jy(e,"grow","positive")+e;case 4554:return Ly+jy(e,/([^-])(transform)/g,"$1"+Ly+"$2")+e;case 6187:return jy(jy(jy(e,/(zoom-|grab)/,Ly+"$1"),/(image-set)/,Ly+"$1"),e,"")+e;case 5495:case 3959:return jy(e,/(image-set\([^]*)/,Ly+"$1$`$1");case 4968:return jy(jy(e,/(.+:)(flex-)?(.*)/,Ly+"box-pack:$3"+qy+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ly+e+e;case 4095:case 3583:case 4068:case 2532:return jy(e,/(.+)-inline(.+)/,Ly+"$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(Hy(e)-1-t>6)switch(By(e,t+1)){case 109:if(45!==By(e,t+4))break;case 102:return jy(e,/(.+:)(.+)-([^]+)/,"$1"+Ly+"$2-$3$1"+Ey+(108==By(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Fy(e,"stretch")?qv(jy(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==By(e,t+1))break;case 6444:switch(By(e,Hy(e)-3-(~Fy(e,"!important")&&10))){case 107:return jy(e,":",":"+Ly)+e;case 101:return jy(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ly+(45===By(e,14)?"inline-":"")+"box$3$1"+Ly+"$2$3$1"+qy+"$2box$3")+e}break;case 5936:switch(By(e,t+11)){case 114:return Ly+e+qy+jy(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ly+e+qy+jy(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ly+e+qy+jy(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ly+e+qy+e+e}return e}var Ev=Sv?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return Cy((function(){var e={};return function(t){return e[t]}}))})),Lv=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dy:e.return=qv(e.value,e.length);break;case Ay:return vv([Zy(e,{value:jy(e.value,"@","@"+Ly)})],r);case Oy: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 vv([Zy(e,{props:[jy(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return vv([Zy(e,{props:[jy(t,/:(plac\w+)/,":"+Ly+"input-$1")]}),Zy(e,{props:[jy(t,/:(plac\w+)/,":-moz-$1")]}),Zy(e,{props:[jy(t,/:(plac\w+)/,qy+"input-$1")]})],r)}return""}))}}],Nv=function(e){var t=e.key;if(Sv&&"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||Lv,a={},s=[];Sv&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,c=[kv,Tv];if(Sv){var u,d=[bv,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=xv(c.concat(i,d));o=function(e,t,n,r){u=n,function(e){vv(pv(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var p=[bv],m=xv(c.concat(i,p)),h=Ev(i)(t),g=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return vv(pv(e),m)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new Ty({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 y.sheet.hydrate(s),y},Ov="undefined"!=typeof document;var Dv=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Ov&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Av=function(e,t,n){Dv(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);Ov||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Ov&&0!==o.length)return o}};var Iv={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,Pv=/[A-Z]|^ms/g,zv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jv=function(e){return 45===e.charCodeAt(1)},Fv=function(e){return null!=e&&"boolean"!=typeof e},Bv=Cy((function(e){return jv(e)?e:e.replace(Pv,"-$&").toLowerCase()})),_v=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(zv,(function(e,t,n){return Vv={name:t,styles:n,next:Vv},t}))}return 1===Iv[e]||jv(e)||"number"!=typeof t||0===t?t:t+"px"},Hv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function $v(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 Vv={name:o.name,styles:o.styles,next:Vv},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Vv={name:a.name,styles:a.styles,next:Vv},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+=$v(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]+"}":Fv(s)&&(r+=Bv(i)+":"+_v(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&Rv)throw new Error(Hv);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=$v(e,t,a);switch(i){case"animation":case"animationName":r+=Bv(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Fv(a[c])&&(r+=Bv(i)+":"+_v(i,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=Vv,l=n(e);return Vv=s,$v(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Vv,Wv=/label:\s*([^\s;{]+)\s*(;|$)/g;function Uv(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="";Vv=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=$v(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=$v(n,t,e[a]),r)o+=i[a]}Wv.lastIndex=0;for(var s,l="";null!==(s=Wv.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Vv}}var Kv="undefined"!=typeof document,Gv=function(e){return e()},Yv=!!x.useInsertionEffect&&x.useInsertionEffect,Xv=Kv&&Yv||Gv,Jv=Yv||x.useLayoutEffect,Zv="undefined"!=typeof document,Qv=x.createContext("undefined"!=typeof HTMLElement?Nv({key:"css"}):null),eb=Qv.Provider,tb=function(e){return w((function(t,n){var r=k(Qv);return e(t,r,n)}))};Zv||(tb=function(e){return function(t){var n=k(Qv);return null===n?(n=Nv({key:"css"}),x.createElement(Qv.Provider,{value:n},e(t,n))):e(t,n)}});var nb=x.createContext({}),rb=tb((function(e,t){var n=Uv([e.styles],void 0,x.useContext(nb));if(!Zv){for(var r,o=n.name,i=n.styles,a=n.next;void 0!==a;)o+=" "+a.name,i+=a.styles,a=a.next;var s=!0===t.compat,l=t.insert("",{name:o,styles:i},t.sheet,s);return s?null:x.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:l},r.nonce=t.sheet.nonce,r))}var c=x.useRef();return Jv((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),c.current=[r,o],function(){r.flush()}}),[t]),Jv((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Av(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function ob(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Uv(t)}var ib=function(){var e=ob.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_"}}},ab=ky,sb=function(e){return"theme"!==e},lb=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ab:sb},cb=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},ub="undefined"!=typeof document,db=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Dv(t,n,r);var o=Xv((function(){return Av(t,n,r)}));if(!ub&&void 0!==o){for(var i,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return x.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},fb=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=cb(t,n,i),l=s||lb(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,p=1;p<f;p++)d.push(u[p],u[0][p])}var m=tb((function(e,t,n){var r,i,u,f,p=c&&e.as||a,m="",h=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=x.useContext(nb)}"string"==typeof e.className?(r=t.registered,i=h,u=e.className,f="",u.split(" ").forEach((function(e){void 0!==r[e]?i.push(r[e]+";"):e&&(f+=e+" ")})),m=f):null!=e.className&&(m=e.className+" ");var v=Uv(d.concat(h),t.registered,g);m+=t.key+"-"+v.name,void 0!==o&&(m+=" "+o);var b=c&&void 0===s?lb(p):l,S={};for(var M in e)c&&"as"===M||b(M)&&(S[M]=e[M]);return S.className=m,n&&(S.ref=n),x.createElement(x.Fragment,null,x.createElement(db,{cache:t,serialized:v,isStringTag:"string"==typeof p}),x.createElement(p,S))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,nl({},n,r,{shouldForwardProp:cb(m,r,!0)})).apply(void 0,d)},m}}.bind();["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){fb[e]=fb(e)}));var pb={exports:{}},mb={},hb=b,gb=Symbol.for("react.element"),yb=Symbol.for("react.fragment"),vb=Object.prototype.hasOwnProperty,bb=hb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xb={key:!0,ref:!0,__self:!0,__source:!0};function Sb(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)vb.call(t,r)&&!xb.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:gb,type:e,key:i,ref:a,props:o,_owner:bb.current}}mb.Fragment=yb,mb.jsx=Sb,mb.jsxs=Sb,pb.exports=mb;var Mb=pb.exports;let Cb;"object"==typeof document&&(Cb=Nv({key:"css",prepend:!0}));var wb=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 Mb.jsx(rb,{styles:r})}
15
15
  /**
16
16
  * @mui/styled-engine v5.15.14
17
17
  *
@@ -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
- `),MC.rippleVisible,LC,550,(({theme:e})=>e.transitions.easing.easeInOut),MC.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),MC.child,MC.childLeaving,NC,550,(({theme:e})=>e.transitions.easing.easeInOut),MC.childPulsate,OC,(({theme:e})=>e.transitions.easing.easeInOut)),IC=x.forwardRef((function(e,t){const n=zM({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=ml(n,CC),[s,l]=x.useState([]),c=x.useRef(0),u=x.useRef(null);x.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=x.useRef(!1),f=TS(),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,Mb.jsx(AC,{classes:{ripple:$x(o.ripple,MC.ripple),rippleVisible:$x(o.rippleVisible,MC.rippleVisible),ripplePulsate:$x(o.ripplePulsate,MC.ripplePulsate),child:$x(o.child,MC.child),childLeaving:$x(o.childLeaving,MC.childLeaving),childPulsate:$x(o.childPulsate,MC.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.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 c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):h({pulsate:o,rippleX:c,rippleY:u,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)),u.current=t}),[f]);return x.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),Mb.jsx(DC,nl({className:$x(MC.root,o.root,i),ref:m},a,{children:Mb.jsx(xp,{component:null,exit:!0,children:s})}))}));var RC=IC;function PC(e){return Wx("MuiButtonBase",e)}var zC=Ux("MuiButtonBase",["root","disabled","focusVisible"]);const jC=["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"],FC=mC("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"},[`&.${zC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),BC=x.forwardRef((function(e,t){const n=zM({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent: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=ml(n,jC),A=x.useRef(null),I=x.useRef(null),R=MS(I,N),{isFocusVisibleRef:P,onFocus:z,onBlur:j,ref:F}=RS(),[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&&!c&&!l;function W(e,t,n=u){return SS((r=>{t&&t(r);return!n&&I.current&&I.current[e](r),!0}))}x.useEffect((()=>{B&&d&&!c&&H&&I.current.pulsate()}),[c,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=SS((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=SS((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=SS((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=MS(t,F,A),ce=nl({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:E,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=PS({root:["root",t&&"disabled",n&&"focusVisible"]},PC,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Mb.jsxs(FC,nl({as:ae,className:$x(ue.root,a),ownerState:ce,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?Mb.jsx(RC,nl({ref:R,center:o},L)):null]}))}));var _C=BC;function HC(e){return Wx("MuiButton",e)}var $C=Ux("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 VC=x.createContext({});var WC=x.createContext(void 0);const UC=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],KC=e=>nl({},"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}}),GC=mC(_C,{shouldForwardProp:e=>pC(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${zb(n.color)}`],t[`size${zb(n.size)}`],t[`${n.variant}Size${zb(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 nl({},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":nl({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:eM(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})`:eM(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})`:eM(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":nl({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${$C.focusVisible}`]:nl({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${$C.disabled}`]:nl({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 ${eM(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"},[`&.${$C.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$C.disabled}`]:{boxShadow:"none"}})),YC=mC("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${zb(n.size)}`]]}})((({ownerState:e})=>nl({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},KC(e)))),XC=mC("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${zb(n.size)}`]]}})((({ownerState:e})=>nl({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},KC(e)))),JC=x.forwardRef((function(e,t){const n=x.useContext(VC),r=x.useContext(WC),o=zM({props:yS(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=o,b=ml(o,UC),S=nl({},o,{color:a,component:s,disabled:c,disableElevation:u,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 nl({},a,PS({root:["root",i,`${i}${zb(t)}`,`size${zb(o)}`,`${i}Size${zb(o)}`,`color${zb(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${zb(o)}`],endIcon:["icon","endIcon",`iconSize${zb(o)}`]},HC,a))})(S),C=g&&Mb.jsx(YC,{className:M.startIcon,ownerState:S,children:g}),w=f&&Mb.jsx(XC,{className:M.endIcon,ownerState:S,children:f}),k=r||"";return Mb.jsxs(GC,nl({ownerState:S,className:$x(n.className,M.root,l,k),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:$x(M.focusVisible,p),ref:t,type:y},b,{classes:M,children:[C,i,w]}))}));var ZC=JC;var QC=x.createContext({});function ew(e){return Wx("MuiListItemButton",e)}var tw=Ux("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const nw=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],rw=mC(_C,{shouldForwardProp:e=>pC(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})=>nl({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"}},[`&.${tw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:eM(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:eM(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:eM(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})`:eM(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tw.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}))),ow=x.forwardRef((function(e,t){const n=zM({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,p=ml(n,nw),m=x.useContext(QC),h=x.useMemo((()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:l})),[r,m.dense,s,l]),g=x.useRef(null);bS((()=>{o&&g.current&&g.current.focus()}),[o]);const y=nl({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return nl({},n,PS({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},ew,n))})(y),b=MS(g,t);return Mb.jsx(QC.Provider,{value:h,children:Mb.jsx(rw,nl({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===i?"button":i,focusVisibleClassName:$x(v.focusVisible,u),ownerState:y,className:$x(v.root,f)},p,{classes:v,children:a}))})}));var iw=ow;function aw(e){return Wx("MuiListItemIcon",e)}Ux("MuiListItemIcon",["root","alignItemsFlexStart"]);const sw=["className"],lw=mC("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})=>nl({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),cw=x.forwardRef((function(e,t){const n=zM({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=ml(n,sw),i=nl({},n,{alignItems:x.useContext(QC).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return PS({root:["root","flex-start"===t&&"alignItemsFlexStart"]},aw,n)})(i);return Mb.jsx(lw,nl({className:$x(a.root,r),ownerState:i,ref:t},o))}));var uw=cw;function dw(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 fw(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 pw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fw(Object(n),!0).forEach((function(t){dw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mw,hw,gw=function(e){var t=e.className,n=e.path,r=e.fillRule;return b.createElement(SC,{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)},yw={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)"}}};mC(ZC,{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}}})),mC((function(e){var t=e.className;return b.createElement(gw,{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:yw.ICONS.COLOR.SECONDARY}})),mC((function(e){var t=e.className;return b.createElement(gw,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:yw.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:yw.ICONS.COLOR.DISABLED}}})),mC(ZC,{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 vw={color:yw.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:yw.ICONS.COLOR.DISABLED}};mC((function(e){var t=e.className;return b.createElement(gw,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return vw})),mC((function(e){var t=e.className;return b.createElement(gw,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return vw})),mC((function(e){var t=e.className;return b.createElement(gw,{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:yw.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),mC(iw)((function(){return{padding:"4px 12px","&:focus":pw({},yw.FOCUS)}})),mC(uw)((function(){return{marginRight:0,justifyContent:"center"}})),mC((function(e){var t=e.className;return b.createElement(gw,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:yw.ICONS.COLOR.SECONDARY}}));var bw=function(){if(hw)return mw;hw=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 mw=function e(){var t,n,r,l,c,u,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)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},mw}();!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(bw);var xw,Sw=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))},Mw={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(Sw,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},Cw={},ww=function(){if(xw)return Cw;xw=1;var e=q;return Cw.createRoot=e.createRoot,Cw.hydrateRoot=e.hydrateRoot,Cw}(),kw=RM({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 Tw(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 qw(){var e={rendererBox:Tw(),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=Tw(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=ww.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(gC,{theme:kw},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const Ew={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(de({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function Lw({i:e,width:t,height:n,resolved:r,keys:o,flipXY:i,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=de({},{major:l,majorEnd:c},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:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),m=(u-p)/2,h=m+d.major+p/2;return{item:d,boxCenter:h,boxWidth:p,boxPadding:m,rendWidth:t,rendHeight:n}}function Nw({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=de(!0,{},n||{},r||{}),c={major:"horizontal"===o.orientation?a:i,minor:"horizontal"===o.orientation?i:a},u=o.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:de(!0,{},{binStart:{scale:o.major.scale,ref:o.major.ref.start},binEnd:{scale:o.major.scale,ref:o.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:de(!0,{},{binStart:{scale:o.major.scale,ref:"binStart"},binEnd:{scale:o.major.scale,ref:"binEnd"}},o.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:o.major}});const f=o.minor||{};let p;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:de(!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:c});return m}const Ow=["oob"];const Dw={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=Nw({keys:Ow,data:o,defaultSettings:{oob:Ew.getDefaultSettings()},style:i,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=Lw}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:f,rendWidth:p,rendHeight:m}=s({i:u,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(Ew.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:u,settings:c,width:e,height:t,flipXY:r,resolved:l,keys:Ow,symbol:s,dockValue:n});return d}},Aw={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},Iw=["hat"];function Rw(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 Pw({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:o,flipXY:i}){let a="x",s="y",l=r,c=o,u=e.hat.alignment||0;i&&(a="y",s="x",l=o,c=r,u=1-u);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const p=de({},e.hat,{type:"path",d:Rw(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[p,de({},e.hat,{type:"path",d:Rw(f)})]}const zw={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=Nw({keys:Iw,data:r,defaultSettings:Aw,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=Lw}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:f,rendHeight:p}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),m=s[l].data,h=[];c.hat.show&&h.push(...Pw({item:c,boxWidth:u,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:Iw});return c}};function jw(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:jw(o,t,n)},o}function Fw(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),jw(o,a,l,e.invert)}))}const Bw=()=>({version:"1.35.20",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}}),_w={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 Hw(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const $w={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function Vw(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(o=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!o){var d;o=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(o.url);o.host=t.hostname,o.port=t.port,o.isSecure="wss:"===t.protocol}return c=void 0!==o.secure?o.secure:o.isSecure,i=c?"https://":"http://",a=o.host||"localhost",s=o.port?`:${o.port}`:"",l=o.prefix?o.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),i+a+s+l}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await $w.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function Ww(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let p=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.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=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return Vw(u,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&&Hw(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await $w.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 $w.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&h&&h.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Hw(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await $w.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 Uw={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(Ww(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}},Kw={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await Uw.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>Uw.checkIfPromisesExist({customTooltipModel:e})};const Gw=(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:_w.CHART.CHART_PARENT_TYPE,qId:_w.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Yw=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:_w.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const Xw={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=_w.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:_w.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 Xw.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=_w.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=_w.CHART.STATE,a=Gw(t,i),s=await e.createSessionObject(a),l=Yw(t);if(s.id!==_w.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var 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(_w.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 Xw.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(Xw.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(_w.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=_w.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 Jw(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Zw(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=_w.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function Qw(e){const t=Zw();return e.filter((e=>t[e.id]))}const ek={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=ek.getAttrExprData(a);i.length||n.length?Kw.handlePromises({customTooltipModel:o,nodes:ek.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&&Xw.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Kw.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[_w.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[_w.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[_w.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Qw(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[_w.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[_w.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Jw(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===Qw(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=Jw(e)||[];[...o,t].forEach((e=>{const t=Qw(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=Zw(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Pe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Pe.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function tk(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 _w.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case _w.CUSTOM.TITLE:case _w.CUSTOM.DESCRIPTION:case _w.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 nk={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>tk(t,e,r,n)}}};const rk={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={[_w.CUSTOM.TITLE]:!0,[_w.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=ek.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===_w.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===_w.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>ze.getMeasure(e,t))),e,o)}};function ok({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(rk.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 ik(e){const t=_w.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 ak(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const sk={migrateProperties(e){var t,n;const r=de(!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=ak(r);return i=function(e,t){return t.concat(e.map((e=>ik(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=ik(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}(ak(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 lk={attrExpr:sk},ck=7005;const uk=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==ck},dk=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&xe.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},fk=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&xe.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&xe.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},pk=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))},mk=(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;fk(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(fk(e,t),r)))),(()=>r))}return dk(e),Promise.resolve()};function hk(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 gk=(e,t)=>{hk(t),zt(e),ek.addCallbackCustomTooltip(t)},yk=e=>{hk(e)};function vk({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=>uk(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?mk(t,n.app).then((()=>(gk(e,t),e))):(pk(t),gk(e,t),e)),move(e,t,n){const r=n.layout.qHyperCube.qDimensionInfo.filter((e=>uk(e))).length;r>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),dk(t),hk(t),ek.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;hk(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),ek.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){ek.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?mk(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,yk(t),e))):(pk(t),yk(t),e),move(e,t){dk(t),hk(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;hk(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function bk(e){return{properties:Bw(),data:{targets:[{path:"/qHyperCubeDef",...vk(e)}]}}}var xk={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const Sk="REJECTED",Mk=()=>{},Ck=1e4,wk={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},kk=50,Tk=10,qk=100;var Ek={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),o=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,o-e.qArea.qTop),s=Math.min(o+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,i-e.qArea.qLeft),c=Math.min(i+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:o,qLeft:i},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-Tk<=t.qTop,o=n.qLeft+n.qWidth+Tk>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+Tk>=t.qTop+t.qHeight,a=n.qLeft-Tk<=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 Lk={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-Tk<=t.qTop,o=n.qTop+n.qHeight+Tk>=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 Nk={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 Ok="pages";const Dk="discretePan",Ak=10;function Ik({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:Dk,pointers:1,threshold:Ak,enable(r,o){return this.started===Dk||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{[`${Dk}start`](e){e.preventDefault(),this.started=Dk;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-Ak:Ak},[`${Dk}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)},[`${Dk}end`](e){e.preventDefault(),this.started=!1},[`${Dk}cancel`](e){e.preventDefault(),this.started=!1}}}}function Rk({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)*qk;r.scroll(s)}}function Pk({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(Ck/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(wk.MAXIMUM,n));return{width:e,height:Math.max(wk.MINIMUM,Math.min(n*wk.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 zk(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(Sk),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(Sk),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(Sk),n=null)},o}const jk={command:{update:()=>{}}};var Fk={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 Bk={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 _k(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function Hk(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 $k(e){return Hk(e.qMatrix,(e=>e[0].qElemNumber))-1}var Vk={inTotal:function({layoutService:e}){const t=_k(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=_k(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=_k(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=$k(i),c=i.qArea.qHeight*o+l,u=(s+(i.qArea.qTop*o+i.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const Wk=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),Uk=(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 Kk(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return Wk(e,n);const r=Uk(t.qMatrix,n);return r.successful?r.count:Wk(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return Wk(e,n);return Hk(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var Gk={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=Kk(t).itemOffset(e(),n),i=Math.max(0,Math.floor(n-o));return{qTop:i,qHeight:Math.min(t.meta.size.y-i,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:o,upperBound:i}){const a=t.getDataPages()[0],s=o/r.inView,{item:l,pixel:c}=n,u=Kk(t).area(e(),l,a.qArea),d=$k(a),f=a.qArea.qHeight+d,p=c===i?(r.inView-f)*s/o:(c+(a.qArea.qTop+u)*s)/o;return[p,r.inView>=r.inTotal?p+1:p+f/r.inView]}};function Yk({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:o,renderer:i,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE: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,u);case"custom":return Math.min(g,u);default:return c?v/p:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:o,itemSize:i,label:a}){if(o||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:c,fontSize:u,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 Xk="AVERAGE",Jk="LINEAR",Zk="POLYNOMIAL2",Qk="POLYNOMIAL3",eT="POLYNOMIAL4",tT="EXPONENTIAL",nT="LOG",rT="POWER";function oT({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 Zk:return i;case Qk:return i.y+=o[3]*t**3,i;case eT:return i.y+=o[4]*t**4+o[3]*t**3,i}}var iT={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:oT,polynomial3:oT,polynomial4:oT,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 aT=500;function sT(e,t){const n=iT[t.qType.toLowerCase()],r=Math.max(1,e/aT);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 lT=100;function cT(e){return iT[e.qType.toLowerCase()]}function uT(e,t){return e.meta.isContinuous?function(e,t){return{generate:(e,n,r)=>{var o,i;const a=[],s=cT(e),l=t.get("zoom"),c=null!==(o=e.start)&&void 0!==o?o:l.min,u=null!==(i=e.end)&&void 0!==i?i:l.max,d=(u-c)/lT;if(d>0){const t=t=>{const o=s({dimValue:t,value:t,qTrendLine:e});o.layerId=n,o.measureIndex=r,o.dimValue=t,a.push(o)};let o=c;for(let e=c;e<=u;e+=d)t(e),o=e;o!==u&&t(u)}return a},calculate:(e,t)=>cT(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)}}}}(0,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=iT[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const i=a[e],c=l({dimValue:i.qElemNo,value:e+s+1,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=i.qText,o.push(c)}return o},findMinMax:sT}}(e):function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qMatrix,s=i.qArea.qTop,l=iT[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const i=a[e][0],c=e+s+1,u=l({dimValue:i.qElemNumber,value:c,qTrendLine:t});u.layerId=n,u.measureIndex=r,u.dimValue=i.qText,o.push(u)}return o},calculate:(e,t,n)=>(0,iT[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:sT}}(e)}var dT={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"},fT={color:"#f93f17",index:9};const{isDark:pT}=Pt,mT={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},hT=({layoutService:e,viewState:t,colorModel:n,chart:r,env:o,keys:{colorScale:i},isEnabled:a=(()=>!1)})=>{const{translator:s}=o,l=[mT],c=[],d=[],f=uT(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(c.push(...e.qTrendLines),d.push(...e.qTrendLines.map((()=>t))))}));const p=u((e=>{const{style:t}=c[e]||{},o=n.settings();if(t.autoColor){if("measure"===o.mode){const t=d[e],n=r.scale(i)(t);return pT(n)?function(e){const t=At(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=At(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(fT)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!c.length&&a(),getData:()=>l,getStroke:p,getLineDash:e=>{const{style:t}=c[e]||{};return null==t?void 0:t.lineDash},getLineThickness:e=>{var t;const{style:n}=c[e]||{};return null!==(t=null==n?void 0:n.lineThickness)&&void 0!==t?t:2},getLabel:e=>(c[e]||{}).label,getType:e=>{const{qType:t}=c[e]||{};return s.get(dT.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return c.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=c[e];return f.calculate(r,t,n)}},command:{update:()=>{l.length=0,c.forEach(((e,t)=>{const n=f.generate(e,t,d[t]);l.push(...n)}))}}}};var gT={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const yT=({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,vT=(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=yT(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:gT,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:ss.nonUpdatingNode.trackBy,compensateForLayoutChanges:ss.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=yT(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:gT,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 bT(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 xT=16,ST=2;function MT(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:Pe.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:`${xT}px`,x2:`${xT}px`,y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:`0 0 ${xT} ${xT}`},t)}(e):t.content}function CT(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:Pe.detectTextDirection(t)},t);return e("tr",{},n)}(n,i),l=[s];if(a.slice(0,ST).forEach((e=>{l.push(n("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Pe.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const o=MT(t,e);return t("td",r,o)}))}(e.row,{h:n,style:o})))})),r.length>ST){const o=r.length-ST;l.push(...function(e,t,n,r){const o=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,i=Pe.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 wT(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:o}=r,i=De({key:e.tooltip,rtl:o});return de(!0,i,{settings:{extract:bT(e,t),content:CT(n,o),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function kT(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 TT(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=kT(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=kT(r,t),c=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(c.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),u=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);c.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=u,e.data.minor.value=o(e.data.layer.value,r).y}))}return c}}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 qT=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},ET=e=>{qT(e),e.qMultiDimMode="Sum",e.qXColIx=0};function LT(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!we.dimensionless(n)&&!we.groupedByDimension(n)&&(r||!we.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:dT.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(dT.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:dT.ADD_BUTTON,add:ET,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:dT.TYPE,options:[{value:Xk,translation:dT.TYPES.AVERAGE},{value:Jk,translation:dT.TYPES.LINEAR},{value:Zk,translation:dT.TYPES.POLYNOMIAL2},{value:Qk,translation:dT.TYPES.POLYNOMIAL3},{value:eT,translation:dT.TYPES.POLYNOMIAL4},{value:tT,translation:dT.TYPES.EXPONENTIAL},{value:nT,translation:dT.TYPES.LOG},{value:rT,translation:dT.TYPES.POWER}],defaultValue:Xk},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:fT,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:dT.STYLE.DASHED,type:"boolean",defaultValue:!0,change:qT}}}}var NT={};function OT(){OT.init.call(this)}NT.isObject=function(e){return"object"==typeof e&&null!==e},NT.isNumber=function(e){return"number"==typeof e},NT.isUndefined=function(e){return void 0===e},NT.isFunction=function(e){return"function"==typeof e};var DT=OT;OT.EventEmitter=OT,OT.prototype._events=void 0,OT.prototype._maxListeners=void 0,OT.defaultMaxListeners=10,OT.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},OT.prototype.setMaxListeners=function(e){if(!NT.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},OT.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],NT.isUndefined(n))return!1;if(NT.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(NT.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},OT.prototype.addListener=function(e,t){var n;if(!NT.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,NT.isFunction(t.listener)?t.listener:t),this._events[e]?NT.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,NT.isObject(this._events[e])&&!this._events[e].warned)&&((n=NT.isUndefined(this._maxListeners)?OT.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,NT.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),NT.isFunction(console.trace)&&console.trace()));return this},OT.prototype.on=OT.prototype.addListener,OT.prototype.once=function(e,t){if(!NT.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},OT.prototype.removeListener=function(e,t){var n,r,o,i;if(!NT.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||NT.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(NT.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},OT.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],NT.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},OT.prototype.listeners=function(e){return this._events&&this._events[e]?NT.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},OT.listenerCount=function(e,t){return e._events&&e._events[t]?NT.isFunction(e._events[t])?1:e._events[t].length:0};var AT=ee(DT);const IT={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 RT=e=>(Object.keys(AT.prototype).forEach((t=>{e[t]=AT.prototype[t]})),AT.init(e),e);var PT={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}},zT={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"}};function jT({layout:e}){const t=ve.canBeContinuous(e),n=we.continuous(e),r=we.dimensionless(e);return{canBeContinuous:t,isDiscrete:!n,isContinuous:n,isTime:ve.isTime(n,e),isDimensionless:r,isSimple:we.simple(e),isGrouped:we.grouped(e),isGroupedByMeasure:we.groupedByMeasure(e),isGroupedByDimension:we.groupedByDimension(e),isStacked:we.stacked(e),isStackedByDimension:we.stackedByDimension(e),isStackedByMeasure:we.stackedByMeasure(e),isSnapshot:we.snapshot(e)}}const FT={extractDimsAndNode(e){const t=[];let n;return e.forEach((e=>{if(e.key===zT.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 BT({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 _T({chart:e,actions:t,selections:n}){const r=e.scale(zT.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:BT},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 HT=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 $T({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 VT({app:e,model:t,translator:n,picasso:r,localeInfo:o,theme:i,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:c}){const{isContinuous:u,isStacked:d}=s.meta,p={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const m=[],{isReduced:h}=c.model().mode,g=u||h||d,y=!u&&(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:$T,key:zT.SCALE.MAIN.COLOR},createConfig:()=>({hc:g?y||s.getHyperCube():c.model().cube,source:g?v:"miniCube",theme:i})}),m.push(p.main.initialize()),u&&(p.mini=f({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:$T,key:zT.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 WT={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 UT({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 WT.getDimensionSize(r)>ve.maxNumberOfLines}}}}})}function KT(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function GT(e){return e.some(KT)}function YT(e,t){let n=NaN,r=NaN;return e.forEach((e=>{GT(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 XT(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function JT(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!GT(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 ZT(e,t){const n={};e.forEach((e=>{if(!GT(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 QT(e){return"number"==typeof e&&!Number.isNaN(e)}function eq(e){const t=e.getHyperCubeValue("qMeasureInfo");return{min:Math.min(...t.filter((e=>QT(e.qMin))).map((e=>e.qMin))),max:Math.max(...t.filter((e=>QT(e.qMax))).map((e=>e.qMax)))}}function tq(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function nq(e){return!Number.isNaN(+e.qNum)}function rq(e){return e.qNum}function oq(e){return!Number.isNaN(+e.qNum)}function iq(e){return e.qNum}function aq(e,t){return e.push(...t),e}const{getValueWithOffset:sq,isNumber:lq}=va,cq=5,uq=.2;function dq(e,t){return Math.abs(e/t)<cq||0===t}function fq({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=JT,stackedByDimensionExtractor:i=ZT,straightExtractor:a=YT,measureInfoExtractor:s=eq,explicitExtractor:l=XT}=n,{meta:c}=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),c=this.extractExplicit(),u=[0,i,a].filter((e=>lq(e)));let d=Math.min(...u),f=Math.max(...u);d=dq(s,d)?Math.min(d,s):d,f=dq(l,f)?Math.max(f,l):f;const p=[c.explicitMin,c.explicitMax,d,f].filter((e=>lq(e)));return i=Number.isNaN(c.explicitMin)?Math.min(...p):c.explicitMin,a=Number.isNaN(c.explicitMax)?Math.max(...p):c.explicitMax,i===a&&(Number.isNaN(c.explicitMin)?i=sq(i,-uq):Number.isNaN(c.explicitMax)&&(a=sq(a,uq))),{min:i,max:a,implicitMin:d,implicitMax:f,otherMin:s,otherMax:l,hasOtherMin:s<i,hasOtherMax:l>a,...c}},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 c.isStackedByMeasure?r(o,n):c.isStackedByDimension?i(o,n):e.getHyperCubeValue("qHasOtherValues")?a(o,n):s(e)},extractOthers:e=>c.isStackedByDimension?function(e){const t=tq(o(e,"0.qData.0.qSubNodes",[]),KT,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):c.isGroupedByDimension?function(e){const t=o(e,"0.qMatrix",[]).filter(GT).reduce(aq,[]).filter(oq).map(iq);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=tq(o(e,"0.qMatrix",[]),GT,[]).filter(nq).map(rq);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function pq(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 c=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:c,others:t}}))}}}(e),n=fq(e);return t.resolve().then((e=>n.extract(e)))}const mq=({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}}}),hq="lasso",gq=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:hq,enable(e,n){if(this.started===hq||!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!==hq&&(o.actions.select.emit("start",hq),this.chart.component(e).emit("lassoStart",t),this.started=hq)},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",hq),"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});const yq=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:o="tap"},i)=>{let a;const s=i.customTooltipModel?i.customTooltipModel.utils:void 0,l=s?i.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:o,interval:10,pointers:1,enable(t,n){return!n||!(!i.actions.select.enabled()&&!i.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[o](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}(t,this.chart),c=i.hitRadius?i.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=i.shapesAt?i.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),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 vq=({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 bq=({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 xq(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:o,targetFillSelector:i,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:f}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:f?{bubbleEnd(){f()}}:{},settings:{brush:c?{context:"selection",observe:!0}:"selection",scale:s,multiple:u,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:o,fillSelector:i,fill:"rgba(82,204,82,0.2)"}}}}(e),r=bq(e,t,"range");return{interactions:[e.onEdited?vq(e,t):null,r].filter(Boolean),components:[n]}}const Sq={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"}}},Mq="inner-time-axis",Cq="outer-time-axis";const wq={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=WT.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=wq.getAxisData(e,t),r=!e.qDimensionInfo.length,o=r||t?void 0:e.qDimensionInfo.length-1,i=wq.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Le.getAdjustedMaxGlyphCount(i,n,o,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=wq.getAxisData(e),n=WT.getMaxGlyphCount(e,0);return Le.getAdjustedMaxGlyphCount(n,t,0)}};var kq={LOWERGLYPHCOUNT:3,UPPERGLYPHCOUNT:13};function Tq(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:c}=t.layoutService.getLayoutValue("gridLine",{}),u=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,f=Sq[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,p={type:"grid-line",x:{},layout:{minimumLayoutMode:Sq.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:ss.lines.trackBy,compensateForLayoutChanges:ss.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:ss.axes.trackBy({isTime:!0}),compensateForLayoutChanges:ss.axes.compensateForLayoutChanges({isTime:!0})}};u.push(de(!0,{},d,{key:Mq,scale:zT.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===c}},style:de(!0,{},a,{line:{stroke:i.line.major.color},majorGuideLine:{stroke:i.line.minor.color},minorGuideLine:{stroke:i.line.major.color}})})),u.push(de(!0,{},d,{key:Cq,scale:zT.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),u.push({type:"axis-overlay",key:"outer-axis-overlay",scale:zT.SCALE.MAIN.MAJOR,layout:{dock:`@${Cq}`,minimumLayoutMode:f}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:zT.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${Mq}`,minimumLayoutMode:f}}),u.push(m)}return u.push(de(!0,{},p,{key:"inner-time-grid",x:{scale:zT.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),u.push(de(!0,{},p,{key:"outer-time-grid",x:{scale:zT.SCALE.MAIN.MAJOR}})),u}if(o.isContinuous){const e="continuous-axis";d&&(u.push({type:"axis",key:e,renderer:Ss(t.flags),scale:zT.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:ss.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:ss.axes.compensateForLayoutChanges({isContinuous:!0})}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:zT.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:f}}),u.push(m)),u.push(de(!0,{},p,{key:"continuous-grid",x:{scale:zT.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return u}(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),c="horizontal"===t.dockService.meta.major.orientation,u=c?e.dimensionAxis.label:"auto",d="horizontal"===u?void 0:t.dockService.meta.minor.size/4,f=t.styleService.axis.label.getStyle(),p={type:"axis",renderer:Ss(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:Sq[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:u,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:ss.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:ss.axes.compensateForLayoutChanges({isHorizontal:c})}};l&&a.push(de(!0,{},p,{key:"group-axis",scale:zT.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":p.settings.labels.mode,maxGlyphCount:wq.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(c||!s)&&p.settings.line.show}}}));const m=wq.getBarAxisMaxGlyphCount(e.qHyperCube,o.isStackedByDimension);return s&&a.push(de(!0,{},p,{key:zT.COMPONENT.BAR_AXIS,scale:zT.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:m,maxLengthPx:d,tiltThreshold:m>kq.LOWERGLYPHCOUNT&&m<kq.UPPERGLYPHCOUNT?1:void 0},line:{show:!(c&&l)&&p.settings.line.show}}})),c||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),c=t.styleService.axis.label.getStyle();return a&&i.push({type:"axis",key:"y-axis",renderer:Ss(t.flags),formatter:zT.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:Sq.measureAxis.minimumLayoutMode},scale:zT.SCALE.MAIN.MINOR,settings:{labels:{show:s,...c},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:ss.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:ss.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),i}var qq={BAR:{WIDTH:.7,STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};const Eq=.7,Lq=.9;function Nq({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=qq.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?Lq:Eq}const Oq={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function Dq(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=Oq[me.getLayoutMode(o.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-i),c=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===c)return s;const u=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/c/.2,1));return n[[i,a]]=Math.max(2,Math.min(s,u)),n[[i,a]]}}function Aq(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function Iq(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function Rq(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function Pq(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const zq={MAX:"max",MIN:"min"},jq={min:"Min",max:"Max"};function Fq(e,t,n){return void 0===n?Aq(e,t)||Iq(e,t):n===zq.MAX?Aq(e,t):Iq(e,t)}function Bq({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${jq[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===zq.MAX?e.implicitMax:e.implicitMin;return!Fq(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function _q(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===zq.MAX?s.implicitMax:s.implicitMin;if(!Fq(Number(l.toFixed(13)),s,n))return!1;const{orientation:c}=t.settings,u=n===zq.MAX?i.meta.minor.end:i.meta.minor.start;let d="end";r&&(d=n===zq.MAX?"sumOfPositives":"sumOfNegatives");const f=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:u},data:t.data,brush:t.brush,settings:{orientation:c,major:t.settings.major,minor:t.settings.minor,dockValue:qe.getDockValue(u),oob:de({},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)&&Fq(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:ss.barOobs.compensateForLayoutChanges}}}function Hq(e){return Math.min(Math.max(0,e),1)}const $q=(e,{chart:t,type:n,componentKey:r,collectionKey:o})=>{const{layoutService:i,dockService:a,viewCache:s}=e,{isStacked:l}=i.meta,c=s.get("minorMinMax"),{meta:u}=e.layoutService;if(!Bq({minorMinMax:c,type:n}))return!1;let d;u.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:u.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const f={type:"box",key:`${zT.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:o},settings:{orientation:a.meta.minor.orientation,major:{scale:zT.SCALE.MAIN.MAJOR,fn:d},minor:{scale:zT.SCALE.MAIN.MINOR,start(e){var n;return Hq(t.scale(zT.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(zT.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r[n]();return Hq(r(i))}},box:{width:Nq({layoutService:e.layoutService,discrete:e.discrete,componentKey:r}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(zT.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}}};return f};function Vq(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 Pt.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 Wq(e){return{placements:e.simplifiedPlacements.map((t=>Vq(t,e))),label:e.label}}function Uq(e,t){if(t){if(function(e,t){return Aq(e,t)}(e,t))return-1;if(function(e,t){return Iq(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 Kq="vertical",Gq="horizontal";function Yq(e,t,n,r){const o=Uq(e,r);let i="up";return t===Kq&&o<0?i="down":t===Gq&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}function Xq(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 Jq(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 Zq(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 Qq({layout:e,component:t,minorScale:n},r,o){if(!Xq(e,r))return!1;const{viewModel:i,ds:a,viewCache:s,layoutService:l,dockService:c,themeService:u}=r,{meta:d}=l,f=s.get("minorMinMax"),p=u.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:Zq(h,g,y,d.isContinuous),style:p.label.value},C=[Wq(de(r,M))],w={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Yq(e.data.end.value,c.meta.minor.orientation,o,f),labels:C,fontSize:parseInt(m.fontSize,10),fontFamily:m.fontFamily,linkData:ss.labels.linkData}}},k=[w],T={key:"bar-labels",type:"labels",renderer:Ss(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:k},animations:{enabled:r.viewModel.animations.enabled,trackBy:ss.labels.trackBy,compensateForLayoutChanges:ss.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 eE={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 ze.getMeasure(e,s)},getMeasures(e,t,n,r,o){const i=e.resources.dataset;return t.map((e=>eE.getMeasure(i,e,n,r,o))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return ok({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,o){const i={title:eE.getTitle(t,n),color:ze.getColor(e,t,r),measures:eE.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,o)};if(eE.useCustomTooltip(r)){var a,s;const n=eE.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);i.customMeasures=n.customTooltipAttrExpsArr,i.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===_w.CUSTOM.TITLE)),i.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===_w.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,c,u;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=(c=r.app).isInModalSelection)&&void 0!==l&&l.call(c)){if((null==d||null===(u=d.qHyperCube)||void 0===u||null===(u=u.qDimensionInfo)||void 0===u?void 0:u.length)>0){Xw.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");i.customLimitation=e}}else{const t=Xw.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:`${eE.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:o}},extractTooltipData(e,t){const n=t.chart.formatter(zT.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=>eE.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:o.map((o=>eE.extractBarTooltipData(e,o,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:i}},extractBarNodeData(e,t,n,r,o,i,a){let s=!o&&ze.getTitleRow(t,r);const l=ze.hideColorRow(t,n),c=!i&&!l&&ze.getColorRow(e,t,r),u=t.measures.map((o=>!a&&ze.getMeasureRow(o,e,t,r,l&&o.field===n.coloring.field))),d=u.filter((e=>!eE.isSameMeasureAndColorRow(e,c,r)));if(eE.useCustomTooltip(n)){const n=o?[]:t.customMeasures.map((n=>ze.getMeasureRow(n,e,t,r,!1))),i=!(!t.customTitle[0]||o)&&ze.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||o)&&ze.getDescriptionRow(t.customDescription[0],r);s=!eE.shouldIgnoreTitleRowForCtt(i,a,d,n)&&s;const l=[i,a,s,c,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(ek.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>ek.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,c,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&ze.getTitleRow(t,n),o=t.measures.map((r=>ze.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)=>eE.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,c=[];const u=eE.shouldIgnoreDefaultRows(i,t);for(s=0;s<a;s++){l=r[s];const i=eE.shouldIgnoreTitleRow(o,s),d=u||eE.shouldIgnoreColorRow(o,s),f=u||eE.shouldIgnoreMeasureRow(d,l,t);if(c=c.concat(eE.extractBarNodeData(e,l,t,n,i,d,f)),c.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:c,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:c,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(eE.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:o,stackTotalBarTooltipData:i}=eE.extractTooltipData(e,t),a=eE.extractStackTotalBarsData(e,n,i);a.length&&a.push(ze.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=eE.extractBarsData(e,t,n,r),c=a.concat(s),u=o+l;return u&&c.push(ze.getNMoreRow(u,t.translator,n)),c},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return vs.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",c=e.chart.scale(n).pxScale(a[l]);let u,d,f;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;u=o.value,d=n===r&&void 0!==u?(c([u,0])+c([u,t-1]))/2:0,f=n===r&&void 0!==u?c.bandwidth([u,0]):0}else{const{value:e}=o;u=o[i]?o[i].value:void 0,d=c(n===r&&void 0!==u?[u,e]:e),f=n===r&&void 0!==u?c.bandwidth([u,e]):c.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 c;return c=l.length?eE.calculateBoundsFromBars(l):eE.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===o?i:a,majorScale:i,data:t[0].data,groupProp:s}),c},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=eE.isBarMatchingLabelOnProp;return eE.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=eE.isBarMatchingLabel;return eE.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=eE.findBarsFromBarLabelsInGroupedByDim(e,o,r),s=eE.findBarsFromGroupLabelsInGroupedByDim(e,i,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=eE.isBarMatchingLabel;return eE.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=eE.isBarMatchingLabel;return eE.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=eE.isBarMatchingLabelOnProp;return eE.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>eE.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:o,stackProp:i}){const{meta:a}=t.layoutService,s=eE.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?eE.findBarsFromLabelsInStackedByDim(s,e,i):a.isStackedByMeasure?eE.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?eE.findBarsFromLabelsInGroupedByDim(s,e,r,o):eE.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const o=eE.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?eE.findStackTotalBarsFromLabelsInStackedByDim(o,e):eE.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:c,majorInnerScale:u,filterFn:d}){const{meta:f}=t.layoutService;if(e.length){let p=eE.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)),eE.isSingleBarMode(f,p))return[p[0]];if(p.length){let f=eE.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=eE.calculateTotalBounds({opts:t,labels:e,bars:f,barKey:n,barAxisKey:o,groupProp:s,majorScale:c,majorInnerScale:u}),h=eE.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:c,majorScale:u,majorInnerScale:d}){let f=eE.filterNodesOnKeys(e,[o,i]),p=f&&f.length?[f[0]]:[];const m=eE.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d});if(m&&m.length)return m;const{meta:h}=t.layoutService;if(h.isStackedByMeasure){f=eE.filterNodesOnKeys(e,[a,s]),p=f&&f.length?[f[0]]:[];const i=e=>eE.filterNodesForOob(e,n,a),m=eE.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}if(h.isStackedByDimension){f=eE.filterNodesOnKeys(e,[a,s]),p=f&&f.length?[f[0]]:[];const i=e=>eE.filterNodesForOob(e,n,a),m=eE.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}const g=eE.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function tE(e,t={},n){let r=[];const o=De({key:zT.COMPONENT.BASE_TOOLTIP,rtl:n});return de(!0,o,{scale:zT.SCALE.MAIN.COLOR,settings:{filter:e=>eE.filterNodes({nodes:e,opts:t,barKey:zT.COMPONENT.BAR,stackTotalBarKey:zT.COMPONENT.STACK_TOTAL_BAR,barAxisKey:zT.COMPONENT.BAR_AXIS,groupAxisKey:zT.COMPONENT.GROUP_AXIS,barOobMaxKey:zT.COMPONENT.BAR_OOB_MAX,barOobMinKey:zT.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],eE.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&&Xw.show({app:o,properties:i,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const nE={extractData:(e,t)=>[ze.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 rE(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=De({key:zT.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return de(!0,r,{scale:zT.SCALE.MAIN.COLOR,settings:{filter:e=>nE.filterNodes(e,zT.COMPONENT.LEGEND_COLOR_CAT),extract:e=>nE.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function oE(e,{fill:t}){return{[zT.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[zT.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const iE=1,aE=3;function sE(e){return e.getLayoutValue("gridLine.auto")}function lE(e){return!sE(e)&&e.getLayoutValue("gridLine.spacing")===iE}function cE(e){return!sE(e)&&e.getLayoutValue("gridLine.spacing")===aE}const uE=e=>({enabled:e.animations.enabled,trackBy:ss.lines.trackBy,compensateForLayoutChanges:ss.lines.compensateForLayoutChanges}),dE=(e,{themeService:t,layoutService:n,dockService:r,viewModel:o})=>{if(!sE(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:Sq.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!lE(n)||((e,t)=>t%2==0),stroke:i.line.major.color},minorTicks:{show:cE(n),stroke:i.line.minor.color},animations:uE(o)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=zT.SCALE.MAIN.MINOR,a};function fE(e,t){const n=[dE(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:zT.SCALE.MAIN.MINOR,line:{stroke:i.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:zT.SCALE.MAIN.MINOR,lines:a,animations:uE(r)}})(t)),n}const pE="areaPan",mE=e=>({type:"Pan",key:"panorama",options:{event:pE,pointers:1,threshold:10,enable(t,n){return this.started===pE||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===zT.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=pE;const n=e.viewState.get("zoom");this[pE]={min:n.min,max:n.max,size:e.chart.component(zT.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:o,size:i}=this[pE],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 hE(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:o}=e,{rtl:i}=t,a=wg.event.onZoom({viewCache:n,viewState:r,chart:o},{threshold:100,rtl:i,targetKey:zT.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===zT.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 gE({chart:e},t,n){const r=e.component(zT.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(zT.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&i.emit("hide");const a=e.component(zT.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function yE(e,t){const{viewCache:n,viewState:r,chart:o,trendLineModel:i,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?wg.event.onZoom({viewCache:n,viewState:r,chart:o},{rtl:s,threshold:50,targetKey:zT.COMPONENT.BAR}):void 0,c=TT({majorInnerScale:zT.SCALE.MAIN.MAJOR_INNER,tooltip:zT.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:zT.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:o,viewState:r,trendLineModel:i,layoutService:a,rtl:s}),u=[zT.COMPONENT.BAR,zT.COMPONENT.BAR_AXIS,zT.COMPONENT.GROUP_AXIS,zT.COMPONENT.BAR_OOB_MAX,zT.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===zT.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===zT.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(),gE(e,f,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(c(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(zT.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>u.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(zT.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&(n.some((e=>e.key===zT.COMPONENT.LEGEND_COLOR_CAT))?o.emit("show",t):o.emit("hide"))}},mouseup(t){2===t.button&&gE(this,f,e)},mouseleave(){gE(this,f,e)}}}}const vE=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...Wg({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[mE(e,t.rtl),hE(e,t)]]});function bE(e,t){const n=[vE(e,t),yE(e,t),Wg({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const xE=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:ss.bars.compensateForLayoutChanges});const SE=(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:de(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:de(!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:xE(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:xE(t.viewModel)}},{measureText:ME}=t.renderer("svg")();function CE(e,t,n){const r=function(e){const t=de(!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=de(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=de(!0,{},t,{min:()=>i("continuousMin"),max:()=>i("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:o}}const wE=125,kE={NARROW:50,MEDIUM:100,WIDE:200};function TE(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return kE.NARROW;case 1:return kE.MEDIUM;case 2:return kE.WIDE;default:return t*wE}}(t);return Math.max(1,Math.round(e/n))}const qE=10;function EE(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function LE(e,t,n){return 0===t||0===e||t===n.length-1}function NE(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function OE(e,t,n,r,o){e.domain([t,n]),e.nice(qE);const[i,a]=e.domain();let s=e.ticks(qE);const l=function(e){return e.length%2==0}(s),c=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),u=c?LE:EE;s=s.filter(u),l&&!c&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=o?o.formatter(zT.FORMATTER.MINOR):void 0;return NE(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:i,roundedMax:a,ticks:s}}function DE(e,t,n,r,o,i,a,s){const l=i.formatter(zT.FORMATTER.MINOR),c=s.getStyles(),u="horizontal"===a.meta.major.orientation?"height":"width",d=e=>ME({text:e,fontSize:c.axis.label.name.fontSize,fontFamily:c.axis.label.name.fontFamily})[u];let[f,p]=e.domain(),m=e.ticks(r);function h(){const e=m.map(l);return!NE(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 AE=(e,t)=>e.value-t.value,IE=e=>({value:e,isMinor:!1}),RE=e=>({value:e,isMinor:!0});function PE(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 zE({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:o}){const{explicitMin:i,explicitMax:a,hasExplicitMin:s,hasExplicitMax:l}=t.get("minorMinMax"),{min:c,max:d}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),f=u((()=>{const u=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(zT.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),f=TE(u,r),p=function(e,t,n){const r=_r().domain([e,t]);return r.nice(n),r}(c,d,f);let m,h,g=[];"SPARK"===n.meta.chart.mode?({roundedMin:m,roundedMax:h}=function(e,t){return{roundedMin:e,roundedMax:t}}(c,d)):(({roundedMin:m,roundedMax:h,ticks:g}=DE(p,c,d,f,u,e,n,o)),PE(g,i,a)&&({roundedMin:m,roundedMax:h,ticks:g}=OE(p,c,d,s||l,e)));const y=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}(g,1);g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(s,i,g),g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(l,a,g);const v=function(e,t){return[...e.map(IE),...t.map(RE)].sort(AE)}(g,y);return{roundedMin:m,roundedMax:h,ticks:v}}),(()=>t.get("isPreRender")));return{values:()=>f().ticks,min:()=>s?i:f().roundedMin,max:()=>l?a:f().roundedMax}}function jE(e,{picasso:t,discrete:n,layoutService:r,dockService:o,viewModel:i,viewCache:a,reducedDataModel:s,colorService:l,themeService:c,viewState:u,chart:d},{localeInfo:f,rtl:p}){const{meta:m}=r,{fields:h}=i,g=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,o.meta.chart.size["horizontal"===o.meta.major.orientation?"height":"width"]/4)},y=!("none"===r.getLayoutValue("measureAxis.show"))?(v=o.meta.minor.orientation,b=o.meta.minor.dock,"vertical"===v?"near"===b||"left"===b?0:1:"near"===b||"bottom"===b?1:0):.5;var v,b;const x={},S="vertical"===o.meta.minor.orientation&&p,M=l.getMain().getScales(),C=l.getMini().getScales();if(Object.assign(x,M,{reducedFill:C.reducedFill}),x[zT.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,layoutService:o,themeService:i},{rtl:a}){const s=zE({chart:e,dockService:n,viewCache:r,layoutService:o,themeService:i}),l={invert:"vertical"===n.meta.minor.orientation||a,ticks:{values:s.values},minorTicks:{count:1},min:s.min,max:s.max};return o.meta.isStacked||(l.data={source:"qHyperCube",fields:t.minor}),l}({chart:d,viewModel:i,dockService:o,viewCache:a,layoutService:r,themeService:c},{rtl:p}),m.isGroupedByDimension)[zT.SCALE.MAIN.MAJOR_INNER,zT.SCALE.MAIN.MAJOR].forEach(((e,t)=>{x[e]={invert:S,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...i.selectionDimensionProp(t),group:m.isGroupedByDimension?{field:h.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:g,align:y}})),i.isDimensionLocked(0)||(x[zT.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(m.isGroupedByMeasure)x[zT.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:S,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:g,align:y};else if(m.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,c=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),u=i.formatter("q-time"),d=l.getStyles(),f=e=>ME({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=c().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:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,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:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,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:f,viewState:u,viewModel:i,viewCache:a,themeService:c,layoutService:r},p);x[zT.SCALE.MAIN.MAJOR_INNER]=e,x[zT.SCALE.MAIN.MAJOR]=n}else m.isContinuous?x[zT.SCALE.MAIN.MAJOR]={type:"linear",invert:S,data:{extract:{key:"qHyperCube",field:h.majorNumeric}},ticks:{forceBounds:!0,count:u.get("zoom").min===u.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>u.get("zoom").min,max:()=>u.get("zoom").max}:x[zT.SCALE.MAIN.MAJOR]={invert:S,data:{extract:m.isDimensionless?h.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:m.isDimensionless?"band":void 0,maxPxStep:g,align:y};const{reducedMinor:w,reducedMajor:k}=CE(s,{major:x[zT.SCALE.MAIN.MAJOR],minor:x[zT.SCALE.MAIN.MINOR]},{majorScaleInvert:S,maxPxStep:g,align:y,getProp:a.get});return m.isDiscrete&&(x[zT.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,m.isGroupedByDimension&&(x[zT.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),x[s.scales.major]=k,x[s.scales.minor]=w,x}function FE(e,t,n){const{layoutService:r,colorService:o}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[yq(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?zT.COMPONENT.STACK_TOTAL_BAR:zT.COMPONENT.BAR,zT.COMPONENT.BAR_AXIS,zT.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",zT.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return zT.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[zT.COMPONENT.BAR_AXIS,zT.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===zT.COMPONENT.LEGEND_COLOR_CAT))?o.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function BE(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=mq(n);return{interactions:[gq(n,t)],components:[r]}}({key:"lasso",componentTargetKey:zT.COMPONENT.BAR,components:[t?{key:zT.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:zT.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function _E(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:[bq(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:zT.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",zT.COMPONENT.BAR_AXIS,zT.COMPONENT.BAR],fillTargets:["group-axis",zT.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function HE(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:o}=t,i=void 0===n,a=r.getIsSingleSelect(n),s=FE(e,i,a);if(i||a)return{components:[...s.components],gestures:[...s.interactions]};const l=BE(e),c=function(e,t){return e.layoutService.meta.isStacked||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:xq({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",zT.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:zT.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,o),u=function(e){return e.layoutService.meta.isContinuous?xq({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",zT.COMPONENT.BAR]:["continuous-axis",zT.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?zT.SCALE.MAIN.MAJOR_INNER:zT.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const o=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(zT.FORMATTER.MINOR),i=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||i?"":"<"}${o(t)}`}},e):{components:[],interactions:[]}}(e),d=_E(e);return{components:[...s.components,...l.components,...c.components,...d.components,...u.components],gestures:[...l.interactions,...s.interactions,...c.interactions,...d.interactions,...u.interactions]}}function $E({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:zT.SCALE.MAIN.MAJOR},minor:{scale:zT.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:ss.shadowBars.trackBy,compensateForLayoutChanges:ss.bars.compensateForLayoutChanges}}}const VE={min:"Min",max:"Max"};function WE(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?Rq(e,t)||Pq(e,t):n===zq.MAX?Rq(e,t):Pq(e,t)}(Number(r.toFixed(13)),e,t)}function UE(e,{barComponent:t,type:n,isStacked:r}){var o,i,a;const{viewCache:s,layoutService:l,dockService:c}=e,u=s.get("minorMinMax"),d=n===zq.MAX;if(function(e,t){return!e[`hasOther${VE[t]}`]}(u,n)){if(function(e,t){return!e[`hasExplicit${VE[t]}`]}(u,n))return!1;if(WE(u,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${VE[t]}`]&&r(e[`explicit${VE[t]}`])}(u,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(zT.SCALE.MAIN.MINOR)[n]())),m=d?e=>e.datum[f].value>p():e=>e.datum[f].value<p(),h=zT.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?c.meta.minor.end:c.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:de({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:m,width:Nq({layoutService:e.layoutService,discrete:e.discrete,componentKey:h}),strokeWidth:null!=y&&null!==(o=y.style)&&void 0!==o&&o.strokeWidth?qq.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:qq.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:qq.BAR.STROKE.COLOR})}}}function KE(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 GE(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:o}=e.viewModel,i=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum",a=e=>"NaN"===e[i]?0:e[i];function s(t){const n=e.ds.field(t).raw(),r=e.ds.field(t).formatter(),o=xe.shouldUseFormat(n);return{field:t,reduceLabel:"none",value:a,label:e=>o?(e=>"NaN"===e[i]?"-":r(e[i]))(e):e.qText}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;const c={key:t,data:{extract:o.minor.map(((t,i)=>{const a=e.colorService.getMain().getDatumProps(i),c=e.colorService.getMini().getDatumProps(i),u=a[Object.keys(a)[0]],d=null==u?void 0:u.field,f=d?{field:d,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,p={field:r.isDimensionless?t:o.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:s(t),null:(m=t,{field:m,reduceLabel:"none",reduce:"first",value:l}),segment:r.isStacked?s(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:f,...a,...c,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${i}`},customTooltipAttrExps:0!==r.dimensionCount?nk.getNode(e.layoutService.getLayout(),r):void 0}};var m;return r.isDimensionless&&(p.value=i),void 0!==n&&(p.source=n),xe.deleteUndefinedProperties(p.props),p}))}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}function YE({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 XE="main-collection",JE="stack-total-collection";const ZE="mini-collection",QE="mini-stack-collection",eL="mini-continuous-collection",tL="miniCube",nL=(e,t)=>{const n=(e=>{const t=[GE(e,{collectionKey:XE})];return e.layoutService.meta.isStacked&&t.push(YE(e,{collectionKey:JE})),t})(t),r=((e,t)=>{const n=[];return Og({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(GE(t,{collectionKey:eL},tL)):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:QE})):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=o.isReduced?{}:n.getMain().getDatumProps(t),a={end:{field:e},start:0,group:{field:r.majorGroup},measureIndex:t,...i},s={source:"miniCube",field:o.isDimensionless?e:r.major,props:a};return o.isDimensionless&&(s.value=t),s}))}}}(t,{collectionKey:ZE}))),n})(0,t);return n.concat(r)};function rL(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 oL({layout:e,component:t},n,r){if(!Jq(e,n))return!1;const{layoutService:o,chart:i,dockService:a,viewModel:s,themeService:l,styleService:c}=n,{meta:u}=o,d=!Xq(e,n),f=l.getStyles(),p=c.label.getStyle(),m=p.useContrastColor;function h(e){const t=i.formatter(zT.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:rL("outside",d,m,u.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:rL("opposite",d,m,u.isContinuous),style:f.label.value},v=[Wq(de(n,g)),Wq(de(n,y))];return{key:"stack-total-labels",type:"labels",renderer:Ss(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Yq(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily,linkData:ss.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:ss.labels.trackBy,compensateForLayoutChanges:ss.labels.compensateForLayoutChanges}}}function iL(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 aL({layout:e,type:t},n){const{layoutService:r,viewCache:o,themeService:i,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!Xq(e,n)||l&&!Jq(e,n))return!1;const c=o.get("minorMinMax");if(!c.hasExplicitMinMax||t===zq.MAX&&0===c.max||t===zq.MIN&&0===c.min)return!1;if(!Fq(t===zq.MAX?c.implicitMax:c.implicitMin,c,t))return!1;const u=i.getStyles(),d=a.label.getStyle();let f=e=>e.data.end.label;s.isStacked&&(f=t===zq.MAX?function(e){if(Fq(e.data.sumOfNegatives.value,c,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(zT.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(Fq(e.data.sumOfPositives.value,c,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(zT.FORMATTER.MINOR);return r?r(t):t}return""});const p={label:f,simplifiedPlacements:iL("outside",true,s.isContinuous),styles:u},m={label:f,simplifiedPlacements:iL("opposite",true,s.isContinuous),styles:u},h=[Wq(de(n,p)),Wq(de(n,m))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${zT.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:h,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:ss.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:Ss(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:ss.labels.trackBy,compensateForLayoutChanges:ss.labels.compensateForLayoutChanges}}}function sL(e){return"all"===e||"title"===e}function lL(e,t,n){if(!sL(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:t.flags.isEnabled("IM_1579_HIDE_DIM_MEA"),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:Sq[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:i,style:a}}function cL(e,t,n){if(!sL(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:t.flags.isEnabled("IM_1579_HIDE_DIM_MEA"),isEnabled:t.flags.isEnabled},c=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:c}}function uL({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:o,dockService:i,themeService:a,viewModel:s,chart:l}){const{theme:c,localeInfo:u}=e,d={resolveUIColor:o.getMain().getPaletteColor},f=a.getStyles(),p=s.animations.enabled;return[ps({refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:p,chart:l,scale:zT.SCALE.MAIN.MINOR,axis:"horizontal"===i.meta.major.orientation?"y":"x",key:zT.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:Sq.refLines.minimumLayoutMode}),ps({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:p,chart:l,scale:zT.SCALE.MAIN.MAJOR,axis:"horizontal"===i.meta.major.orientation?"x":"y",rtl:t,key:zT.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:zT.COMPONENT.BAR,minimumLayoutMode:Sq.refLines.minimumLayoutMode}),...ys({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:p,dock:i.meta.minor.opposite,scale:zT.SCALE.MAIN.MINOR,style:f,formatter:zT.FORMATTER.MINOR,theme:c,localeInfo:u,rtl:t,key:zT.COMPONENT.MEASURE_REF_LINE_LABEL}),...ys({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:p,dock:i.meta.major.opposite,scale:zT.SCALE.MAIN.MAJOR,style:f,theme:c,localeInfo:u,rtl:t,key:zT.COMPONENT.DIMENSION_REF_LINE_LABEL})]}const dL=(e,t,n)=>{var r;const{layoutService:o,dockService:i,colorService:a,chart:s,actions:l,discrete:c,continuousDataModel:u,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=jE(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=xq({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;let s,l;a.isGroupedByDimension?s=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(s=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let c=2;a.isContinuous?(l={start:"timeStart",end:"timeEnd"},c=Dq(e,t)):a.isStacked&&(l="stack");const u=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,d=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},f=e.layoutService.getLayoutValue("components",null),p=f?f.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||u?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:zT.SCALE.MAIN.MAJOR,fn:s,ref:l},minor:{scale:zT.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:Nq({layoutService:e.layoutService,discrete:e.discrete,componentKey:t}),minWidthPx:c,fill:e.colorService.getMain().getColor(),opacity:e=>d(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:d(e)?.01:.3},strokeWidth:null!=p&&null!==(r=p.style)&&void 0!==r&&r.strokeWidth?qq.BAR.STROKE.WIDTH[p.style.strokeWidth.toUpperCase()]:qq.BAR.STROKE.WIDTH.NONE,stroke:null!==(o=null==p||null===(i=p.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==o?o:qq.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:ss.bars.trackBy,compensateForLayoutChanges:ss.bars.compensateForLayoutChanges}}})(t,{componentKey:zT.COMPONENT.BAR,collectionKey:zT.COLLECTION.MAIN}),L=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let o=2;r.isContinuous&&(o=Dq(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:zT.SCALE.MAIN.MAJOR},minor:{scale:zT.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:KE(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:zT.COMPONENT.STACK_TOTAL_BAR,collectionKey:zT.COLLECTION.STACK_TOTAL}),N=HE(t,n,f.selectionDimensionIdx),{isStacked:O}=o.meta;let D;D=d.mode.isContinuous?zT.COLLECTION.MINI_CONTINUOUS:O?zT.COLLECTION.MINI_STACK:zT.COLLECTION.MINI;const A=O?L:E,I=fE(0,t),R=[...I,UE(t,{barComponent:A,type:"max",isStacked:O}),UE(t,{barComponent:A,type:"min",isStacked:O}),_q(t,{barComponent:A,type:"max",isStacked:O}),_q(t,{barComponent:A,type:"min",isStacked:O}),$q(t,{chart:s,barComponent:A,type:"max",scales:w,collectionKey:O?zT.COLLECTION.STACK_TOTAL:zT.COLLECTION.MAIN}),$q(t,{chart:s,barComponent:A,type:"min",scales:w,collectionKey:O?zT.COLLECTION.STACK_TOTAL:zT.COLLECTION.MAIN}),...Tq(e,t,v,!!I[0]),E,L,$E({layoutService:o,viewModel:f,layout:e,dockService:i}),lL(e,t,v),cL(e,t,v),...uL({environment:n,rtl:v,refLineModel:g,layoutService:o,colorService:a,dockService:i,themeService:h,viewModel:f,chart:s}),na({viewState:p,viewCache:m,layoutService:o,dockService:i,rtl:v}),SE(E,t,{collectionKey:D}),Dg({layoutService:o,dockService:i,discrete:c,continuousDataModel:u,viewState:p,viewCache:m,themeService:h,rtl:v,deviceType:n.deviceType}),...vT({majorScale:zT.SCALE.MAIN.MAJOR,minorScale:zT.SCALE.MAIN.MINOR,tooltipOverlay:zT.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:o,trendLineModel:x,dockService:i,animationsEnabled:f.animations.enabled}),...T.components,Qq({layout:e,component:zT.COMPONENT.BAR,minorScale:w.minor},t,v),oL({layout:e,component:zT.COMPONENT.STACK_TOTAL_BAR},t,v),aL({layout:e,component:"bar-oob-max",type:"max"},t),aL({layout:e,component:"bar-oob-min",type:"min"},t),...N.components,tE(0,{...t,coloring:a.getMain().getSettings()},v),rE(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&C,wT({tooltip:zT.COMPONENT.TREND_LINES_TOOLTIP,formatter:zT.FORMATTER.MINOR,majorScale:zT.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:bE(t,{rtl:v,hammer:{gestures:P}}),scales:w,palettes:a.getMain().getPalettes(),components:y.extendComponents(R),strategy:he(0,{logicalSize:b,minCenterRatio:0}),formatters:oE(t,w),collections:nL(0,t)}};const fL=({environment:e,services:t,chart:n,viewState:r,bootstrapped:o})=>{K((i=>{var a;if(!e||!t||!o)return;const{flags:s}=e,{layoutService:l,dockService:c,colorService:u,discrete:d,continuousDataModel:f,reducedDataModel:p}=t,{width:m,height:h}=c.meta.chart.size;if(i.snapshotData=i.snapshotData||{},i.snapshotData.content={size:{w:m,h:h}},l.meta.isSnapshot)return Promise.resolve();if(i.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:ke(n,zT.COMPONENT.LEGEND_COLOR_CAT)},null!=s&&null!==(a=s.isEnabled)&&void 0!==a&&a.call(s,"IM_1579_HIDE_DIM_MEA")){const{properties:e}=o,t=null==e?void 0:e.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}));t&&(i.tooltip.auto=!0)}return l.meta.isDiscrete?(d.command.setSnapshotData(i),p.setSnapshotData(i)):f.setSnapshotData(i),u.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:ke(n,zT.COMPONENT.LEGEND_COLOR_CAT)}}})),[r,n])},pL=e=>"[object Object]"===Object.prototype.toString.call(e),mL=e=>Array.isArray(e);function hL(e,t){if(e===t)return!0;if(mL(e)){if(!mL(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!hL(e[n],t[n]))return!1;return!0}if(pL(e)){if(!pL(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(!hL(e[n[r]],t[n[r]]))return!1}return!0}return e===t}const gL=({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)})),c=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=de(!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,c,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}),!la.compare(u,e,!0)&&JSON.stringify(u)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};function yL(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)!==ck})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==ck})).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 vL=.7,bL=.9,xL=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],SL=(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)!==ck})).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)!==ck})).length,s="grouped"===(null===(o=e.barGrouping)||void 0===o?void 0:o.grouping)&&a>0&&i+a>2;return we.continuous(t)?1:s?bL:vL},ML=(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 CL(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(xL).map((e=>xL[e])),schemaIgnore:!0,defaultValue:xL[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)=>!we.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)=>SL(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(Tg.OPTIONS).map((e=>Tg.OPTIONS[e])),schemaIgnore:!0,defaultValue:Tg.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(xL).map((e=>xL[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)=>!we.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 we.continuous(r)?1:l?bL:vL},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:ML("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:ML("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:{...ML("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:ML("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:ML("legend.label",r,e)}}}:void 0}}}(t,n,r)}const wL=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==ck},kL=(e,t)=>e.qHyperCube[t].filter((e=>wL(e))),TL=e=>({get:(t,n,r)=>we.continuous(r.layout)?e:t(n.type),set(e,t,n){const r=Ee(n.type,n);t(n.type,e,r)}}),qL=e=>{if(!e)return!1;const t=de(!0,{},e);return t.qHyperCube.qMeasureInfo=kL(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=kL(e,"qDimensionInfo"),t&&!we.continuous(t)&&we.stacked(t)},EL=({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)=>kL(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!qL(t.layout)&&kL(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>qL(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)=>qL(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)=>kL(n.layout,"qDimensionInfo").length&&kL(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)=>kL(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,c={uses:"settings",items:{simpleStyling:CL(!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:CL(!1,l,t,e),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){const n=kL(t.layout,"qMeasureInfo").length,r=kL(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},change(e,t){kL(t.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>we.continuous(n.layout),convertFunctions:TL("stacked")},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)=>we.continuous(n.layout),convertFunctions:TL("vertical")},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(Tg.OPTIONS).map((e=>Tg.OPTIONS[e])),defaultValue:Tg.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)=>!we.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(qL(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&&qL(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&&qL(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:Ms}},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")&&!we.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=kL(n.layout,"qMeasureInfo").length,o=kL(n.layout,"qDimensionInfo").length,i=e.dimensionAxis.maxVisibleItems;return i<0||i>1e4/(o+r)},globalChange:yL,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"}}};return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(c.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"}]}}}),c},LL={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){zt(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}}}}}},NL={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},OL=({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=>wL(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=we.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,show:()=>t.isEnabled("IM_1579_HIDE_DIM_MEA")}}},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,show:()=>t.isEnabled("IM_1579_HIDE_DIM_MEA")},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"trendlines")?void 0:LT({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function DL({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:OL({translator:e,flags:t,anything:n}),sorting:LL,addons:NL,settings:EL({translator:e,flags:t,anything:n})}}}const AL=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==ck};function IL(){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=>AL(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=>AL(e))).length,r=t.qHyperCube.qDimensionInfo.filter((e=>AL(e))).length;return n+r>2&&!we.continuous(t)&&!((null==(o=t)||null===(i=o.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.filter((e=>AL(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)=>!we.continuous(t)}}},color:{uses:"color"}}}}function RL(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 PL=e=>!!(e&&e.qHyperCube.qSize.qcy>0),zL={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function jL(){const e=[];return Object.keys(zL).forEach((t=>{e.push(zL[t])})),e}function FL(e){const{flags:t}=e;return{definition:DL(e),softDefinition:IL(),support:{snapshot:PL,export:PL,exportData:!0,sharing:PL,viewData:!0,effects:!0,modifiers:jL()},importProperties:(n,r,o,i)=>{const a={layout:{templateId:r.templateId}};o.mapProperties(a);const s={defaultDimension:o.getDefaultDimensionProperties(),defaultMeasure:o.getDefaultMeasureProperties()},l=X.axisChart.importProperties({exportFormat:n,initialProperties:r,dataDefinition:vk(e),defaultPropertyValues:s,hypercubePath:i,extension:o}),c=l.qProperty;return c.qHyperCubeDef.qDimensions.length>1&&"stacked"===c.barGrouping.grouping&&(c.qHyperCubeDef.qMode="K",c.qHyperCubeDef.qAlwaysFullyExpanded=!0),t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(X.conditionalShow.unquarantine(c),X.conditionalShow.unquarantineAlternative(c)),l},exportProperties:(e,n,r)=>{t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(X.conditionalShow.quarantine(e.qProperty),X.conditionalShow.quarantineAlternative(e.qProperty));return X.axisChart.exportProperties({propertyTree:e,hyperCubePath:n,viewDataMode:r})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(zt),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(zt)}(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=Tg.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:RL}}}}}));
94
+ `),MC.rippleVisible,LC,550,(({theme:e})=>e.transitions.easing.easeInOut),MC.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),MC.child,MC.childLeaving,NC,550,(({theme:e})=>e.transitions.easing.easeInOut),MC.childPulsate,OC,(({theme:e})=>e.transitions.easing.easeInOut)),IC=x.forwardRef((function(e,t){const n=zM({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=ml(n,CC),[s,l]=x.useState([]),c=x.useRef(0),u=x.useRef(null);x.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=x.useRef(!1),f=TS(),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,Mb.jsx(AC,{classes:{ripple:$x(o.ripple,MC.ripple),rippleVisible:$x(o.rippleVisible,MC.rippleVisible),ripplePulsate:$x(o.ripplePulsate,MC.ripplePulsate),child:$x(o.child,MC.child),childLeaving:$x(o.childLeaving,MC.childLeaving),childPulsate:$x(o.childPulsate,MC.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.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 c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):h({pulsate:o,rippleX:c,rippleY:u,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)),u.current=t}),[f]);return x.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),Mb.jsx(DC,nl({className:$x(MC.root,o.root,i),ref:m},a,{children:Mb.jsx(xp,{component:null,exit:!0,children:s})}))}));var RC=IC;function PC(e){return Wx("MuiButtonBase",e)}var zC=Ux("MuiButtonBase",["root","disabled","focusVisible"]);const jC=["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"],FC=mC("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"},[`&.${zC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),BC=x.forwardRef((function(e,t){const n=zM({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent: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=ml(n,jC),A=x.useRef(null),I=x.useRef(null),R=MS(I,N),{isFocusVisibleRef:P,onFocus:z,onBlur:j,ref:F}=RS(),[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&&!c&&!l;function W(e,t,n=u){return SS((r=>{t&&t(r);return!n&&I.current&&I.current[e](r),!0}))}x.useEffect((()=>{B&&d&&!c&&H&&I.current.pulsate()}),[c,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=SS((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=SS((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=SS((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=MS(t,F,A),ce=nl({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:E,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=PS({root:["root",t&&"disabled",n&&"focusVisible"]},PC,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Mb.jsxs(FC,nl({as:ae,className:$x(ue.root,a),ownerState:ce,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?Mb.jsx(RC,nl({ref:R,center:o},L)):null]}))}));var _C=BC;function HC(e){return Wx("MuiButton",e)}var $C=Ux("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 VC=x.createContext({});var WC=x.createContext(void 0);const UC=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],KC=e=>nl({},"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}}),GC=mC(_C,{shouldForwardProp:e=>pC(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${zb(n.color)}`],t[`size${zb(n.size)}`],t[`${n.variant}Size${zb(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 nl({},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":nl({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:eM(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})`:eM(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})`:eM(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":nl({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${$C.focusVisible}`]:nl({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${$C.disabled}`]:nl({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 ${eM(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"},[`&.${$C.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${$C.disabled}`]:{boxShadow:"none"}})),YC=mC("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${zb(n.size)}`]]}})((({ownerState:e})=>nl({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},KC(e)))),XC=mC("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${zb(n.size)}`]]}})((({ownerState:e})=>nl({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},KC(e)))),JC=x.forwardRef((function(e,t){const n=x.useContext(VC),r=x.useContext(WC),o=zM({props:yS(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=o,b=ml(o,UC),S=nl({},o,{color:a,component:s,disabled:c,disableElevation:u,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 nl({},a,PS({root:["root",i,`${i}${zb(t)}`,`size${zb(o)}`,`${i}Size${zb(o)}`,`color${zb(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${zb(o)}`],endIcon:["icon","endIcon",`iconSize${zb(o)}`]},HC,a))})(S),C=g&&Mb.jsx(YC,{className:M.startIcon,ownerState:S,children:g}),w=f&&Mb.jsx(XC,{className:M.endIcon,ownerState:S,children:f}),k=r||"";return Mb.jsxs(GC,nl({ownerState:S,className:$x(n.className,M.root,l,k),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:$x(M.focusVisible,p),ref:t,type:y},b,{classes:M,children:[C,i,w]}))}));var ZC=JC;var QC=x.createContext({});function ew(e){return Wx("MuiListItemButton",e)}var tw=Ux("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const nw=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],rw=mC(_C,{shouldForwardProp:e=>pC(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})=>nl({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"}},[`&.${tw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:eM(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:eM(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:eM(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})`:eM(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tw.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}))),ow=x.forwardRef((function(e,t){const n=zM({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,p=ml(n,nw),m=x.useContext(QC),h=x.useMemo((()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:l})),[r,m.dense,s,l]),g=x.useRef(null);bS((()=>{o&&g.current&&g.current.focus()}),[o]);const y=nl({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return nl({},n,PS({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},ew,n))})(y),b=MS(g,t);return Mb.jsx(QC.Provider,{value:h,children:Mb.jsx(rw,nl({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===i?"button":i,focusVisibleClassName:$x(v.focusVisible,u),ownerState:y,className:$x(v.root,f)},p,{classes:v,children:a}))})}));var iw=ow;function aw(e){return Wx("MuiListItemIcon",e)}Ux("MuiListItemIcon",["root","alignItemsFlexStart"]);const sw=["className"],lw=mC("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})=>nl({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),cw=x.forwardRef((function(e,t){const n=zM({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=ml(n,sw),i=nl({},n,{alignItems:x.useContext(QC).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return PS({root:["root","flex-start"===t&&"alignItemsFlexStart"]},aw,n)})(i);return Mb.jsx(lw,nl({className:$x(a.root,r),ownerState:i,ref:t},o))}));var uw=cw;function dw(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 fw(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 pw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fw(Object(n),!0).forEach((function(t){dw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mw,hw,gw=function(e){var t=e.className,n=e.path,r=e.fillRule;return b.createElement(SC,{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)},yw={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)"}}};mC(ZC,{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}}})),mC((function(e){var t=e.className;return b.createElement(gw,{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:yw.ICONS.COLOR.SECONDARY}})),mC((function(e){var t=e.className;return b.createElement(gw,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:yw.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:yw.ICONS.COLOR.DISABLED}}})),mC(ZC,{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 vw={color:yw.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:yw.ICONS.COLOR.DISABLED}};mC((function(e){var t=e.className;return b.createElement(gw,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return vw})),mC((function(e){var t=e.className;return b.createElement(gw,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return vw})),mC((function(e){var t=e.className;return b.createElement(gw,{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:yw.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),mC(iw)((function(){return{padding:"4px 12px","&:focus":pw({},yw.FOCUS)}})),mC(uw)((function(){return{marginRight:0,justifyContent:"center"}})),mC((function(e){var t=e.className;return b.createElement(gw,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:yw.ICONS.COLOR.SECONDARY}}));var bw=function(){if(hw)return mw;hw=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 mw=function e(){var t,n,r,l,c,u,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)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},mw}();!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(bw);var xw,Sw=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))},Mw={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(Sw,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},Cw={},ww=function(){if(xw)return Cw;xw=1;var e=q;return Cw.createRoot=e.createRoot,Cw.hydrateRoot=e.hydrateRoot,Cw}(),kw=RM({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 Tw(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 qw(){var e={rendererBox:Tw(),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=Tw(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=ww.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(gC,{theme:kw},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const Ew={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(de({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function Lw({i:e,width:t,height:n,resolved:r,keys:o,flipXY:i,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=de({},{major:l,majorEnd:c},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:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),m=(u-p)/2,h=m+d.major+p/2;return{item:d,boxCenter:h,boxWidth:p,boxPadding:m,rendWidth:t,rendHeight:n}}function Nw({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=de(!0,{},n||{},r||{}),c={major:"horizontal"===o.orientation?a:i,minor:"horizontal"===o.orientation?i:a},u=o.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:de(!0,{},{binStart:{scale:o.major.scale,ref:o.major.ref.start},binEnd:{scale:o.major.scale,ref:o.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:de(!0,{},{binStart:{scale:o.major.scale,ref:"binStart"},binEnd:{scale:o.major.scale,ref:"binEnd"}},o.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:o.major}});const f=o.minor||{};let p;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:de(!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:c});return m}const Ow=["oob"];const Dw={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=Nw({keys:Ow,data:o,defaultSettings:{oob:Ew.getDefaultSettings()},style:i,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=Lw}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:f,rendWidth:p,rendHeight:m}=s({i:u,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(Ew.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:u,settings:c,width:e,height:t,flipXY:r,resolved:l,keys:Ow,symbol:s,dockValue:n});return d}},Aw={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},Iw=["hat"];function Rw(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 Pw({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:o,flipXY:i}){let a="x",s="y",l=r,c=o,u=e.hat.alignment||0;i&&(a="y",s="x",l=o,c=r,u=1-u);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const p=de({},e.hat,{type:"path",d:Rw(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[p,de({},e.hat,{type:"path",d:Rw(f)})]}const zw={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=Nw({keys:Iw,data:r,defaultSettings:Aw,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=Lw}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:f,rendHeight:p}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),m=s[l].data,h=[];c.hat.show&&h.push(...Pw({item:c,boxWidth:u,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:Iw});return c}};function jw(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:jw(o,t,n)},o}function Fw(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),jw(o,a,l,e.invert)}))}const Bw=()=>({version:"1.35.21",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}}),_w={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 Hw(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const $w={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function Vw(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(o=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!o){var d;o=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(o.url);o.host=t.hostname,o.port=t.port,o.isSecure="wss:"===t.protocol}return c=void 0!==o.secure?o.secure:o.isSecure,i=c?"https://":"http://",a=o.host||"localhost",s=o.port?`:${o.port}`:"",l=o.prefix?o.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),i+a+s+l}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await $w.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function Ww(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let p=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.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=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return Vw(u,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&&Hw(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await $w.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 $w.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&h&&h.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Hw(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await $w.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 Uw={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(Ww(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}},Kw={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await Uw.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>Uw.checkIfPromisesExist({customTooltipModel:e})};const Gw=(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:_w.CHART.CHART_PARENT_TYPE,qId:_w.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Yw=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:_w.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const Xw={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=_w.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:_w.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 Xw.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=_w.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=_w.CHART.STATE,a=Gw(t,i),s=await e.createSessionObject(a),l=Yw(t);if(s.id!==_w.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var 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(_w.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 Xw.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(Xw.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(_w.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=_w.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 Jw(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Zw(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=_w.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function Qw(e){const t=Zw();return e.filter((e=>t[e.id]))}const ek={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=ek.getAttrExprData(a);i.length||n.length?Kw.handlePromises({customTooltipModel:o,nodes:ek.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&&Xw.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Kw.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[_w.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[_w.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[_w.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Qw(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[_w.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[_w.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Jw(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===Qw(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=Jw(e)||[];[...o,t].forEach((e=>{const t=Qw(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=Zw(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Pe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Pe.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function tk(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 _w.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case _w.CUSTOM.TITLE:case _w.CUSTOM.DESCRIPTION:case _w.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 nk={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>tk(t,e,r,n)}}};const rk={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={[_w.CUSTOM.TITLE]:!0,[_w.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=ek.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===_w.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===_w.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>ze.getMeasure(e,t))),e,o)}};function ok({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(rk.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 ik(e){const t=_w.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 ak(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const sk={migrateProperties(e){var t,n;const r=de(!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=ak(r);return i=function(e,t){return t.concat(e.map((e=>ik(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=ik(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}(ak(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 lk={attrExpr:sk},ck=7005;const uk=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==ck},dk=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&xe.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},fk=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&xe.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&xe.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},pk=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))},mk=(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;fk(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(fk(e,t),r)))),(()=>r))}return dk(e),Promise.resolve()};function hk(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 gk=(e,t)=>{hk(t),zt(e),ek.addCallbackCustomTooltip(t)},yk=e=>{hk(e)};function vk({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=>uk(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?mk(t,n.app).then((()=>(gk(e,t),e))):(pk(t),gk(e,t),e)),move(e,t,n){const r=n.layout.qHyperCube.qDimensionInfo.filter((e=>uk(e))).length;r>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),dk(t),hk(t),ek.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;hk(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),ek.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){ek.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?mk(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,yk(t),e))):(pk(t),yk(t),e),move(e,t){dk(t),hk(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;hk(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function bk(e){return{properties:Bw(),data:{targets:[{path:"/qHyperCubeDef",...vk(e)}]}}}var xk={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const Sk="REJECTED",Mk=()=>{},Ck=1e4,wk={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},kk=50,Tk=10,qk=100;var Ek={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),o=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,o-e.qArea.qTop),s=Math.min(o+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,i-e.qArea.qLeft),c=Math.min(i+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:o,qLeft:i},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-Tk<=t.qTop,o=n.qLeft+n.qWidth+Tk>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+Tk>=t.qTop+t.qHeight,a=n.qLeft-Tk<=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 Lk={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-Tk<=t.qTop,o=n.qTop+n.qHeight+Tk>=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 Nk={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 Ok="pages";const Dk="discretePan",Ak=10;function Ik({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:Dk,pointers:1,threshold:Ak,enable(r,o){return this.started===Dk||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{[`${Dk}start`](e){e.preventDefault(),this.started=Dk;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-Ak:Ak},[`${Dk}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)},[`${Dk}end`](e){e.preventDefault(),this.started=!1},[`${Dk}cancel`](e){e.preventDefault(),this.started=!1}}}}function Rk({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)*qk;r.scroll(s)}}function Pk({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(Ck/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(wk.MAXIMUM,n));return{width:e,height:Math.max(wk.MINIMUM,Math.min(n*wk.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 zk(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(Sk),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(Sk),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(Sk),n=null)},o}const jk={command:{update:()=>{}}};var Fk={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 Bk={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 _k(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function Hk(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 $k(e){return Hk(e.qMatrix,(e=>e[0].qElemNumber))-1}var Vk={inTotal:function({layoutService:e}){const t=_k(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=_k(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=_k(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=$k(i),c=i.qArea.qHeight*o+l,u=(s+(i.qArea.qTop*o+i.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const Wk=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),Uk=(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 Kk(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return Wk(e,n);const r=Uk(t.qMatrix,n);return r.successful?r.count:Wk(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return Wk(e,n);return Hk(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var Gk={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=Kk(t).itemOffset(e(),n),i=Math.max(0,Math.floor(n-o));return{qTop:i,qHeight:Math.min(t.meta.size.y-i,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:o,upperBound:i}){const a=t.getDataPages()[0],s=o/r.inView,{item:l,pixel:c}=n,u=Kk(t).area(e(),l,a.qArea),d=$k(a),f=a.qArea.qHeight+d,p=c===i?(r.inView-f)*s/o:(c+(a.qArea.qTop+u)*s)/o;return[p,r.inView>=r.inTotal?p+1:p+f/r.inView]}};function Yk({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:o,renderer:i,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE: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,u);case"custom":return Math.min(g,u);default:return c?v/p:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:o,itemSize:i,label:a}){if(o||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:c,fontSize:u,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 Xk="AVERAGE",Jk="LINEAR",Zk="POLYNOMIAL2",Qk="POLYNOMIAL3",eT="POLYNOMIAL4",tT="EXPONENTIAL",nT="LOG",rT="POWER";function oT({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 Zk:return i;case Qk:return i.y+=o[3]*t**3,i;case eT:return i.y+=o[4]*t**4+o[3]*t**3,i}}var iT={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:oT,polynomial3:oT,polynomial4:oT,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 aT=500;function sT(e,t){const n=iT[t.qType.toLowerCase()],r=Math.max(1,e/aT);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 lT=100;function cT(e){return iT[e.qType.toLowerCase()]}function uT(e,t){return e.meta.isContinuous?function(e,t){return{generate:(e,n,r)=>{var o,i;const a=[],s=cT(e),l=t.get("zoom"),c=null!==(o=e.start)&&void 0!==o?o:l.min,u=null!==(i=e.end)&&void 0!==i?i:l.max,d=(u-c)/lT;if(d>0){const t=t=>{const o=s({dimValue:t,value:t,qTrendLine:e});o.layerId=n,o.measureIndex=r,o.dimValue=t,a.push(o)};let o=c;for(let e=c;e<=u;e+=d)t(e),o=e;o!==u&&t(u)}return a},calculate:(e,t)=>cT(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)}}}}(0,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=iT[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const i=a[e],c=l({dimValue:i.qElemNo,value:e+s+1,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=i.qText,o.push(c)}return o},findMinMax:sT}}(e):function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qMatrix,s=i.qArea.qTop,l=iT[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const i=a[e][0],c=e+s+1,u=l({dimValue:i.qElemNumber,value:c,qTrendLine:t});u.layerId=n,u.measureIndex=r,u.dimValue=i.qText,o.push(u)}return o},calculate:(e,t,n)=>(0,iT[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:sT}}(e)}var dT={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"},fT={color:"#f93f17",index:9};const{isDark:pT}=Pt,mT={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},hT=({layoutService:e,viewState:t,colorModel:n,chart:r,env:o,keys:{colorScale:i},isEnabled:a=(()=>!1)})=>{const{translator:s}=o,l=[mT],c=[],d=[],f=uT(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(c.push(...e.qTrendLines),d.push(...e.qTrendLines.map((()=>t))))}));const p=u((e=>{const{style:t}=c[e]||{},o=n.settings();if(t.autoColor){if("measure"===o.mode){const t=d[e],n=r.scale(i)(t);return pT(n)?function(e){const t=At(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=At(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(fT)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!c.length&&a(),getData:()=>l,getStroke:p,getLineDash:e=>{const{style:t}=c[e]||{};return null==t?void 0:t.lineDash},getLineThickness:e=>{var t;const{style:n}=c[e]||{};return null!==(t=null==n?void 0:n.lineThickness)&&void 0!==t?t:2},getLabel:e=>(c[e]||{}).label,getType:e=>{const{qType:t}=c[e]||{};return s.get(dT.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return c.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=c[e];return f.calculate(r,t,n)}},command:{update:()=>{l.length=0,c.forEach(((e,t)=>{const n=f.generate(e,t,d[t]);l.push(...n)}))}}}};var gT={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const yT=({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,vT=(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=yT(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:gT,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:ss.nonUpdatingNode.trackBy,compensateForLayoutChanges:ss.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=yT(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:gT,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 bT(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 xT=16,ST=2;function MT(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:Pe.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:`${xT}px`,x2:`${xT}px`,y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:`0 0 ${xT} ${xT}`},t)}(e):t.content}function CT(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:Pe.detectTextDirection(t)},t);return e("tr",{},n)}(n,i),l=[s];if(a.slice(0,ST).forEach((e=>{l.push(n("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Pe.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const o=MT(t,e);return t("td",r,o)}))}(e.row,{h:n,style:o})))})),r.length>ST){const o=r.length-ST;l.push(...function(e,t,n,r){const o=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,i=Pe.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 wT(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:o}=r,i=De({key:e.tooltip,rtl:o});return de(!0,i,{settings:{extract:bT(e,t),content:CT(n,o),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function kT(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 TT(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=kT(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=kT(r,t),c=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(c.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),u=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);c.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=u,e.data.minor.value=o(e.data.layer.value,r).y}))}return c}}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 qT=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},ET=e=>{qT(e),e.qMultiDimMode="Sum",e.qXColIx=0};function LT(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!we.dimensionless(n)&&!we.groupedByDimension(n)&&(r||!we.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:dT.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(dT.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:dT.ADD_BUTTON,add:ET,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:dT.TYPE,options:[{value:Xk,translation:dT.TYPES.AVERAGE},{value:Jk,translation:dT.TYPES.LINEAR},{value:Zk,translation:dT.TYPES.POLYNOMIAL2},{value:Qk,translation:dT.TYPES.POLYNOMIAL3},{value:eT,translation:dT.TYPES.POLYNOMIAL4},{value:tT,translation:dT.TYPES.EXPONENTIAL},{value:nT,translation:dT.TYPES.LOG},{value:rT,translation:dT.TYPES.POWER}],defaultValue:Xk},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:fT,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:dT.STYLE.DASHED,type:"boolean",defaultValue:!0,change:qT}}}}var NT={};function OT(){OT.init.call(this)}NT.isObject=function(e){return"object"==typeof e&&null!==e},NT.isNumber=function(e){return"number"==typeof e},NT.isUndefined=function(e){return void 0===e},NT.isFunction=function(e){return"function"==typeof e};var DT=OT;OT.EventEmitter=OT,OT.prototype._events=void 0,OT.prototype._maxListeners=void 0,OT.defaultMaxListeners=10,OT.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},OT.prototype.setMaxListeners=function(e){if(!NT.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},OT.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],NT.isUndefined(n))return!1;if(NT.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(NT.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},OT.prototype.addListener=function(e,t){var n;if(!NT.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,NT.isFunction(t.listener)?t.listener:t),this._events[e]?NT.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,NT.isObject(this._events[e])&&!this._events[e].warned)&&((n=NT.isUndefined(this._maxListeners)?OT.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,NT.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),NT.isFunction(console.trace)&&console.trace()));return this},OT.prototype.on=OT.prototype.addListener,OT.prototype.once=function(e,t){if(!NT.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},OT.prototype.removeListener=function(e,t){var n,r,o,i;if(!NT.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||NT.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(NT.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},OT.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],NT.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},OT.prototype.listeners=function(e){return this._events&&this._events[e]?NT.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},OT.listenerCount=function(e,t){return e._events&&e._events[t]?NT.isFunction(e._events[t])?1:e._events[t].length:0};var AT=ee(DT);const IT={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 RT=e=>(Object.keys(AT.prototype).forEach((t=>{e[t]=AT.prototype[t]})),AT.init(e),e);var PT={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}},zT={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"}};function jT({layout:e}){const t=ve.canBeContinuous(e),n=we.continuous(e),r=we.dimensionless(e);return{canBeContinuous:t,isDiscrete:!n,isContinuous:n,isTime:ve.isTime(n,e),isDimensionless:r,isSimple:we.simple(e),isGrouped:we.grouped(e),isGroupedByMeasure:we.groupedByMeasure(e),isGroupedByDimension:we.groupedByDimension(e),isStacked:we.stacked(e),isStackedByDimension:we.stackedByDimension(e),isStackedByMeasure:we.stackedByMeasure(e),isSnapshot:we.snapshot(e)}}const FT={extractDimsAndNode(e){const t=[];let n;return e.forEach((e=>{if(e.key===zT.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 BT({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 _T({chart:e,actions:t,selections:n}){const r=e.scale(zT.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:BT},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 HT=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 $T({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 VT({app:e,model:t,translator:n,picasso:r,localeInfo:o,theme:i,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:c}){const{isContinuous:u,isStacked:d}=s.meta,p={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const m=[],{isReduced:h}=c.model().mode,g=u||h||d,y=!u&&(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:$T,key:zT.SCALE.MAIN.COLOR},createConfig:()=>({hc:g?y||s.getHyperCube():c.model().cube,source:g?v:"miniCube",theme:i})}),m.push(p.main.initialize()),u&&(p.mini=f({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:$T,key:zT.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 WT={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 UT({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 WT.getDimensionSize(r)>ve.maxNumberOfLines}}}}})}function KT(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function GT(e){return e.some(KT)}function YT(e,t){let n=NaN,r=NaN;return e.forEach((e=>{GT(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 XT(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function JT(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!GT(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 ZT(e,t){const n={};e.forEach((e=>{if(!GT(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 QT(e){return"number"==typeof e&&!Number.isNaN(e)}function eq(e){const t=e.getHyperCubeValue("qMeasureInfo");return{min:Math.min(...t.filter((e=>QT(e.qMin))).map((e=>e.qMin))),max:Math.max(...t.filter((e=>QT(e.qMax))).map((e=>e.qMax)))}}function tq(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function nq(e){return!Number.isNaN(+e.qNum)}function rq(e){return e.qNum}function oq(e){return!Number.isNaN(+e.qNum)}function iq(e){return e.qNum}function aq(e,t){return e.push(...t),e}const{getValueWithOffset:sq,isNumber:lq}=va,cq=5,uq=.2;function dq(e,t){return Math.abs(e/t)<cq||0===t}function fq({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=JT,stackedByDimensionExtractor:i=ZT,straightExtractor:a=YT,measureInfoExtractor:s=eq,explicitExtractor:l=XT}=n,{meta:c}=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),c=this.extractExplicit(),u=[0,i,a].filter((e=>lq(e)));let d=Math.min(...u),f=Math.max(...u);d=dq(s,d)?Math.min(d,s):d,f=dq(l,f)?Math.max(f,l):f;const p=[c.explicitMin,c.explicitMax,d,f].filter((e=>lq(e)));return i=Number.isNaN(c.explicitMin)?Math.min(...p):c.explicitMin,a=Number.isNaN(c.explicitMax)?Math.max(...p):c.explicitMax,i===a&&(Number.isNaN(c.explicitMin)?i=sq(i,-uq):Number.isNaN(c.explicitMax)&&(a=sq(a,uq))),{min:i,max:a,implicitMin:d,implicitMax:f,otherMin:s,otherMax:l,hasOtherMin:s<i,hasOtherMax:l>a,...c}},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 c.isStackedByMeasure?r(o,n):c.isStackedByDimension?i(o,n):e.getHyperCubeValue("qHasOtherValues")?a(o,n):s(e)},extractOthers:e=>c.isStackedByDimension?function(e){const t=tq(o(e,"0.qData.0.qSubNodes",[]),KT,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):c.isGroupedByDimension?function(e){const t=o(e,"0.qMatrix",[]).filter(GT).reduce(aq,[]).filter(oq).map(iq);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=tq(o(e,"0.qMatrix",[]),GT,[]).filter(nq).map(rq);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function pq(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 c=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:c,others:t}}))}}}(e),n=fq(e);return t.resolve().then((e=>n.extract(e)))}const mq=({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}}}),hq="lasso",gq=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:hq,enable(e,n){if(this.started===hq||!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!==hq&&(o.actions.select.emit("start",hq),this.chart.component(e).emit("lassoStart",t),this.started=hq)},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",hq),"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});const yq=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:o="tap"},i)=>{let a;const s=i.customTooltipModel?i.customTooltipModel.utils:void 0,l=s?i.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:o,interval:10,pointers:1,enable(t,n){return!n||!(!i.actions.select.enabled()&&!i.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[o](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}(t,this.chart),c=i.hitRadius?i.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=i.shapesAt?i.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),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 vq=({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 bq=({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 xq(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:o,targetFillSelector:i,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:f}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:f?{bubbleEnd(){f()}}:{},settings:{brush:c?{context:"selection",observe:!0}:"selection",scale:s,multiple:u,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:o,fillSelector:i,fill:"rgba(82,204,82,0.2)"}}}}(e),r=bq(e,t,"range");return{interactions:[e.onEdited?vq(e,t):null,r].filter(Boolean),components:[n]}}const Sq={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"}}},Mq="inner-time-axis",Cq="outer-time-axis";const wq={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=WT.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=wq.getAxisData(e,t),r=!e.qDimensionInfo.length,o=r||t?void 0:e.qDimensionInfo.length-1,i=wq.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Le.getAdjustedMaxGlyphCount(i,n,o,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=wq.getAxisData(e),n=WT.getMaxGlyphCount(e,0);return Le.getAdjustedMaxGlyphCount(n,t,0)}};var kq={LOWERGLYPHCOUNT:3,UPPERGLYPHCOUNT:13};function Tq(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:c}=t.layoutService.getLayoutValue("gridLine",{}),u=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,f=Sq[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,p={type:"grid-line",x:{},layout:{minimumLayoutMode:Sq.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:ss.lines.trackBy,compensateForLayoutChanges:ss.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:ss.axes.trackBy({isTime:!0}),compensateForLayoutChanges:ss.axes.compensateForLayoutChanges({isTime:!0})}};u.push(de(!0,{},d,{key:Mq,scale:zT.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===c}},style:de(!0,{},a,{line:{stroke:i.line.major.color},majorGuideLine:{stroke:i.line.minor.color},minorGuideLine:{stroke:i.line.major.color}})})),u.push(de(!0,{},d,{key:Cq,scale:zT.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),u.push({type:"axis-overlay",key:"outer-axis-overlay",scale:zT.SCALE.MAIN.MAJOR,layout:{dock:`@${Cq}`,minimumLayoutMode:f}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:zT.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${Mq}`,minimumLayoutMode:f}}),u.push(m)}return u.push(de(!0,{},p,{key:"inner-time-grid",x:{scale:zT.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),u.push(de(!0,{},p,{key:"outer-time-grid",x:{scale:zT.SCALE.MAIN.MAJOR}})),u}if(o.isContinuous){const e="continuous-axis";d&&(u.push({type:"axis",key:e,renderer:Ss(t.flags),scale:zT.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:ss.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:ss.axes.compensateForLayoutChanges({isContinuous:!0})}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:zT.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:f}}),u.push(m)),u.push(de(!0,{},p,{key:"continuous-grid",x:{scale:zT.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return u}(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),c="horizontal"===t.dockService.meta.major.orientation,u=c?e.dimensionAxis.label:"auto",d="horizontal"===u?void 0:t.dockService.meta.minor.size/4,f=t.styleService.axis.label.getStyle(),p={type:"axis",renderer:Ss(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:Sq[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:u,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:ss.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:ss.axes.compensateForLayoutChanges({isHorizontal:c})}};l&&a.push(de(!0,{},p,{key:"group-axis",scale:zT.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":p.settings.labels.mode,maxGlyphCount:wq.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(c||!s)&&p.settings.line.show}}}));const m=wq.getBarAxisMaxGlyphCount(e.qHyperCube,o.isStackedByDimension);return s&&a.push(de(!0,{},p,{key:zT.COMPONENT.BAR_AXIS,scale:zT.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:m,maxLengthPx:d,tiltThreshold:m>kq.LOWERGLYPHCOUNT&&m<kq.UPPERGLYPHCOUNT?1:void 0},line:{show:!(c&&l)&&p.settings.line.show}}})),c||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),c=t.styleService.axis.label.getStyle();return a&&i.push({type:"axis",key:"y-axis",renderer:Ss(t.flags),formatter:zT.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:Sq.measureAxis.minimumLayoutMode},scale:zT.SCALE.MAIN.MINOR,settings:{labels:{show:s,...c},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:ss.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:ss.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),i}var qq={BAR:{WIDTH:.7,STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};const Eq=.7,Lq=.9;function Nq({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=qq.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?Lq:Eq}const Oq={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function Dq(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=Oq[me.getLayoutMode(o.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-i),c=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===c)return s;const u=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/c/.2,1));return n[[i,a]]=Math.max(2,Math.min(s,u)),n[[i,a]]}}function Aq(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function Iq(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function Rq(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function Pq(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const zq={MAX:"max",MIN:"min"},jq={min:"Min",max:"Max"};function Fq(e,t,n){return void 0===n?Aq(e,t)||Iq(e,t):n===zq.MAX?Aq(e,t):Iq(e,t)}function Bq({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${jq[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===zq.MAX?e.implicitMax:e.implicitMin;return!Fq(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function _q(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===zq.MAX?s.implicitMax:s.implicitMin;if(!Fq(Number(l.toFixed(13)),s,n))return!1;const{orientation:c}=t.settings,u=n===zq.MAX?i.meta.minor.end:i.meta.minor.start;let d="end";r&&(d=n===zq.MAX?"sumOfPositives":"sumOfNegatives");const f=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:u},data:t.data,brush:t.brush,settings:{orientation:c,major:t.settings.major,minor:t.settings.minor,dockValue:qe.getDockValue(u),oob:de({},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)&&Fq(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:ss.barOobs.compensateForLayoutChanges}}}function Hq(e){return Math.min(Math.max(0,e),1)}const $q=(e,{chart:t,type:n,componentKey:r,collectionKey:o})=>{const{layoutService:i,dockService:a,viewCache:s}=e,{isStacked:l}=i.meta,c=s.get("minorMinMax"),{meta:u}=e.layoutService;if(!Bq({minorMinMax:c,type:n}))return!1;let d;u.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:u.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const f={type:"box",key:`${zT.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:o},settings:{orientation:a.meta.minor.orientation,major:{scale:zT.SCALE.MAIN.MAJOR,fn:d},minor:{scale:zT.SCALE.MAIN.MINOR,start(e){var n;return Hq(t.scale(zT.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(zT.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r[n]();return Hq(r(i))}},box:{width:Nq({layoutService:e.layoutService,discrete:e.discrete,componentKey:r}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(zT.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}}};return f};function Vq(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 Pt.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 Wq(e){return{placements:e.simplifiedPlacements.map((t=>Vq(t,e))),label:e.label}}function Uq(e,t){if(t){if(function(e,t){return Aq(e,t)}(e,t))return-1;if(function(e,t){return Iq(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 Kq="vertical",Gq="horizontal";function Yq(e,t,n,r){const o=Uq(e,r);let i="up";return t===Kq&&o<0?i="down":t===Gq&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}function Xq(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 Jq(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 Zq(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 Qq({layout:e,component:t,minorScale:n},r,o){if(!Xq(e,r))return!1;const{viewModel:i,ds:a,viewCache:s,layoutService:l,dockService:c,themeService:u}=r,{meta:d}=l,f=s.get("minorMinMax"),p=u.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:Zq(h,g,y,d.isContinuous),style:p.label.value},C=[Wq(de(r,M))],w={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Yq(e.data.end.value,c.meta.minor.orientation,o,f),labels:C,fontSize:parseInt(m.fontSize,10),fontFamily:m.fontFamily,linkData:ss.labels.linkData}}},k=[w],T={key:"bar-labels",type:"labels",renderer:Ss(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:k},animations:{enabled:r.viewModel.animations.enabled,trackBy:ss.labels.trackBy,compensateForLayoutChanges:ss.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 eE={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 ze.getMeasure(e,s)},getMeasures(e,t,n,r,o){const i=e.resources.dataset;return t.map((e=>eE.getMeasure(i,e,n,r,o))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return ok({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,o){const i={title:eE.getTitle(t,n),color:ze.getColor(e,t,r),measures:eE.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,o)};if(eE.useCustomTooltip(r)){var a,s;const n=eE.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);i.customMeasures=n.customTooltipAttrExpsArr,i.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===_w.CUSTOM.TITLE)),i.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===_w.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,c,u;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=(c=r.app).isInModalSelection)&&void 0!==l&&l.call(c)){if((null==d||null===(u=d.qHyperCube)||void 0===u||null===(u=u.qDimensionInfo)||void 0===u?void 0:u.length)>0){Xw.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");i.customLimitation=e}}else{const t=Xw.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:`${eE.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:o}},extractTooltipData(e,t){const n=t.chart.formatter(zT.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=>eE.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:o.map((o=>eE.extractBarTooltipData(e,o,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:i}},extractBarNodeData(e,t,n,r,o,i,a){let s=!o&&ze.getTitleRow(t,r);const l=ze.hideColorRow(t,n),c=!i&&!l&&ze.getColorRow(e,t,r),u=t.measures.map((o=>!a&&ze.getMeasureRow(o,e,t,r,l&&o.field===n.coloring.field))),d=u.filter((e=>!eE.isSameMeasureAndColorRow(e,c,r)));if(eE.useCustomTooltip(n)){const n=o?[]:t.customMeasures.map((n=>ze.getMeasureRow(n,e,t,r,!1))),i=!(!t.customTitle[0]||o)&&ze.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||o)&&ze.getDescriptionRow(t.customDescription[0],r);s=!eE.shouldIgnoreTitleRowForCtt(i,a,d,n)&&s;const l=[i,a,s,c,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(ek.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>ek.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,c,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&ze.getTitleRow(t,n),o=t.measures.map((r=>ze.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)=>eE.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,c=[];const u=eE.shouldIgnoreDefaultRows(i,t);for(s=0;s<a;s++){l=r[s];const i=eE.shouldIgnoreTitleRow(o,s),d=u||eE.shouldIgnoreColorRow(o,s),f=u||eE.shouldIgnoreMeasureRow(d,l,t);if(c=c.concat(eE.extractBarNodeData(e,l,t,n,i,d,f)),c.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:c,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:c,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(eE.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:o,stackTotalBarTooltipData:i}=eE.extractTooltipData(e,t),a=eE.extractStackTotalBarsData(e,n,i);a.length&&a.push(ze.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=eE.extractBarsData(e,t,n,r),c=a.concat(s),u=o+l;return u&&c.push(ze.getNMoreRow(u,t.translator,n)),c},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return vs.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",c=e.chart.scale(n).pxScale(a[l]);let u,d,f;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;u=o.value,d=n===r&&void 0!==u?(c([u,0])+c([u,t-1]))/2:0,f=n===r&&void 0!==u?c.bandwidth([u,0]):0}else{const{value:e}=o;u=o[i]?o[i].value:void 0,d=c(n===r&&void 0!==u?[u,e]:e),f=n===r&&void 0!==u?c.bandwidth([u,e]):c.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 c;return c=l.length?eE.calculateBoundsFromBars(l):eE.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===o?i:a,majorScale:i,data:t[0].data,groupProp:s}),c},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=eE.isBarMatchingLabelOnProp;return eE.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=eE.isBarMatchingLabel;return eE.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=eE.findBarsFromBarLabelsInGroupedByDim(e,o,r),s=eE.findBarsFromGroupLabelsInGroupedByDim(e,i,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=eE.isBarMatchingLabel;return eE.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=eE.isBarMatchingLabel;return eE.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=eE.isBarMatchingLabelOnProp;return eE.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>eE.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:o,stackProp:i}){const{meta:a}=t.layoutService,s=eE.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?eE.findBarsFromLabelsInStackedByDim(s,e,i):a.isStackedByMeasure?eE.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?eE.findBarsFromLabelsInGroupedByDim(s,e,r,o):eE.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const o=eE.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?eE.findStackTotalBarsFromLabelsInStackedByDim(o,e):eE.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:c,majorInnerScale:u,filterFn:d}){const{meta:f}=t.layoutService;if(e.length){let p=eE.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)),eE.isSingleBarMode(f,p))return[p[0]];if(p.length){let f=eE.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=eE.calculateTotalBounds({opts:t,labels:e,bars:f,barKey:n,barAxisKey:o,groupProp:s,majorScale:c,majorInnerScale:u}),h=eE.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:c,majorScale:u,majorInnerScale:d}){let f=eE.filterNodesOnKeys(e,[o,i]),p=f&&f.length?[f[0]]:[];const m=eE.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d});if(m&&m.length)return m;const{meta:h}=t.layoutService;if(h.isStackedByMeasure){f=eE.filterNodesOnKeys(e,[a,s]),p=f&&f.length?[f[0]]:[];const i=e=>eE.filterNodesForOob(e,n,a),m=eE.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}if(h.isStackedByDimension){f=eE.filterNodesOnKeys(e,[a,s]),p=f&&f.length?[f[0]]:[];const i=e=>eE.filterNodesForOob(e,n,a),m=eE.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}const g=eE.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function tE(e,t={},n){let r=[];const o=De({key:zT.COMPONENT.BASE_TOOLTIP,rtl:n});return de(!0,o,{scale:zT.SCALE.MAIN.COLOR,settings:{filter:e=>eE.filterNodes({nodes:e,opts:t,barKey:zT.COMPONENT.BAR,stackTotalBarKey:zT.COMPONENT.STACK_TOTAL_BAR,barAxisKey:zT.COMPONENT.BAR_AXIS,groupAxisKey:zT.COMPONENT.GROUP_AXIS,barOobMaxKey:zT.COMPONENT.BAR_OOB_MAX,barOobMinKey:zT.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],eE.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&&Xw.show({app:o,properties:i,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const nE={extractData:(e,t)=>[ze.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 rE(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=De({key:zT.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return de(!0,r,{scale:zT.SCALE.MAIN.COLOR,settings:{filter:e=>nE.filterNodes(e,zT.COMPONENT.LEGEND_COLOR_CAT),extract:e=>nE.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function oE(e,{fill:t}){return{[zT.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[zT.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const iE=1,aE=3;function sE(e){return e.getLayoutValue("gridLine.auto")}function lE(e){return!sE(e)&&e.getLayoutValue("gridLine.spacing")===iE}function cE(e){return!sE(e)&&e.getLayoutValue("gridLine.spacing")===aE}const uE=e=>({enabled:e.animations.enabled,trackBy:ss.lines.trackBy,compensateForLayoutChanges:ss.lines.compensateForLayoutChanges}),dE=(e,{themeService:t,layoutService:n,dockService:r,viewModel:o})=>{if(!sE(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:Sq.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!lE(n)||((e,t)=>t%2==0),stroke:i.line.major.color},minorTicks:{show:cE(n),stroke:i.line.minor.color},animations:uE(o)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=zT.SCALE.MAIN.MINOR,a};function fE(e,t){const n=[dE(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:zT.SCALE.MAIN.MINOR,line:{stroke:i.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:zT.SCALE.MAIN.MINOR,lines:a,animations:uE(r)}})(t)),n}const pE="areaPan",mE=e=>({type:"Pan",key:"panorama",options:{event:pE,pointers:1,threshold:10,enable(t,n){return this.started===pE||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===zT.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=pE;const n=e.viewState.get("zoom");this[pE]={min:n.min,max:n.max,size:e.chart.component(zT.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:o,size:i}=this[pE],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 hE(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:o}=e,{rtl:i}=t,a=wg.event.onZoom({viewCache:n,viewState:r,chart:o},{threshold:100,rtl:i,targetKey:zT.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===zT.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 gE({chart:e},t,n){const r=e.component(zT.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(zT.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&i.emit("hide");const a=e.component(zT.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function yE(e,t){const{viewCache:n,viewState:r,chart:o,trendLineModel:i,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?wg.event.onZoom({viewCache:n,viewState:r,chart:o},{rtl:s,threshold:50,targetKey:zT.COMPONENT.BAR}):void 0,c=TT({majorInnerScale:zT.SCALE.MAIN.MAJOR_INNER,tooltip:zT.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:zT.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:o,viewState:r,trendLineModel:i,layoutService:a,rtl:s}),u=[zT.COMPONENT.BAR,zT.COMPONENT.BAR_AXIS,zT.COMPONENT.GROUP_AXIS,zT.COMPONENT.BAR_OOB_MAX,zT.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===zT.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===zT.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(),gE(e,f,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(c(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(zT.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>u.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(zT.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&(n.some((e=>e.key===zT.COMPONENT.LEGEND_COLOR_CAT))?o.emit("show",t):o.emit("hide"))}},mouseup(t){2===t.button&&gE(this,f,e)},mouseleave(){gE(this,f,e)}}}}const vE=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...Wg({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[mE(e,t.rtl),hE(e,t)]]});function bE(e,t){const n=[vE(e,t),yE(e,t),Wg({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const xE=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:ss.bars.compensateForLayoutChanges});const SE=(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:de(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:de(!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:xE(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:xE(t.viewModel)}},{measureText:ME}=t.renderer("svg")();function CE(e,t,n){const r=function(e){const t=de(!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=de(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=de(!0,{},t,{min:()=>i("continuousMin"),max:()=>i("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:o}}const wE=125,kE={NARROW:50,MEDIUM:100,WIDE:200};function TE(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return kE.NARROW;case 1:return kE.MEDIUM;case 2:return kE.WIDE;default:return t*wE}}(t);return Math.max(1,Math.round(e/n))}const qE=10;function EE(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function LE(e,t,n){return 0===t||0===e||t===n.length-1}function NE(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function OE(e,t,n,r,o){e.domain([t,n]),e.nice(qE);const[i,a]=e.domain();let s=e.ticks(qE);const l=function(e){return e.length%2==0}(s),c=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),u=c?LE:EE;s=s.filter(u),l&&!c&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=o?o.formatter(zT.FORMATTER.MINOR):void 0;return NE(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:i,roundedMax:a,ticks:s}}function DE(e,t,n,r,o,i,a,s){const l=i.formatter(zT.FORMATTER.MINOR),c=s.getStyles(),u="horizontal"===a.meta.major.orientation?"height":"width",d=e=>ME({text:e,fontSize:c.axis.label.name.fontSize,fontFamily:c.axis.label.name.fontFamily})[u];let[f,p]=e.domain(),m=e.ticks(r);function h(){const e=m.map(l);return!NE(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 AE=(e,t)=>e.value-t.value,IE=e=>({value:e,isMinor:!1}),RE=e=>({value:e,isMinor:!0});function PE(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 zE({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:o}){const{explicitMin:i,explicitMax:a,hasExplicitMin:s,hasExplicitMax:l}=t.get("minorMinMax"),{min:c,max:d}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),f=u((()=>{const u=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(zT.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),f=TE(u,r),p=function(e,t,n){const r=_r().domain([e,t]);return r.nice(n),r}(c,d,f);let m,h,g=[];"SPARK"===n.meta.chart.mode?({roundedMin:m,roundedMax:h}=function(e,t){return{roundedMin:e,roundedMax:t}}(c,d)):(({roundedMin:m,roundedMax:h,ticks:g}=DE(p,c,d,f,u,e,n,o)),PE(g,i,a)&&({roundedMin:m,roundedMax:h,ticks:g}=OE(p,c,d,s||l,e)));const y=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}(g,1);g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(s,i,g),g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(l,a,g);const v=function(e,t){return[...e.map(IE),...t.map(RE)].sort(AE)}(g,y);return{roundedMin:m,roundedMax:h,ticks:v}}),(()=>t.get("isPreRender")));return{values:()=>f().ticks,min:()=>s?i:f().roundedMin,max:()=>l?a:f().roundedMax}}function jE(e,{picasso:t,discrete:n,layoutService:r,dockService:o,viewModel:i,viewCache:a,reducedDataModel:s,colorService:l,themeService:c,viewState:u,chart:d},{localeInfo:f,rtl:p}){const{meta:m}=r,{fields:h}=i,g=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,o.meta.chart.size["horizontal"===o.meta.major.orientation?"height":"width"]/4)},y=!("none"===r.getLayoutValue("measureAxis.show"))?(v=o.meta.minor.orientation,b=o.meta.minor.dock,"vertical"===v?"near"===b||"left"===b?0:1:"near"===b||"bottom"===b?1:0):.5;var v,b;const x={},S="vertical"===o.meta.minor.orientation&&p,M=l.getMain().getScales(),C=l.getMini().getScales();if(Object.assign(x,M,{reducedFill:C.reducedFill}),x[zT.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,layoutService:o,themeService:i},{rtl:a}){const s=zE({chart:e,dockService:n,viewCache:r,layoutService:o,themeService:i}),l={invert:"vertical"===n.meta.minor.orientation||a,ticks:{values:s.values},minorTicks:{count:1},min:s.min,max:s.max};return o.meta.isStacked||(l.data={source:"qHyperCube",fields:t.minor}),l}({chart:d,viewModel:i,dockService:o,viewCache:a,layoutService:r,themeService:c},{rtl:p}),m.isGroupedByDimension)[zT.SCALE.MAIN.MAJOR_INNER,zT.SCALE.MAIN.MAJOR].forEach(((e,t)=>{x[e]={invert:S,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...i.selectionDimensionProp(t),group:m.isGroupedByDimension?{field:h.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:g,align:y}})),i.isDimensionLocked(0)||(x[zT.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(m.isGroupedByMeasure)x[zT.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:S,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:g,align:y};else if(m.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,c=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),u=i.formatter("q-time"),d=l.getStyles(),f=e=>ME({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=c().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:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,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:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,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:f,viewState:u,viewModel:i,viewCache:a,themeService:c,layoutService:r},p);x[zT.SCALE.MAIN.MAJOR_INNER]=e,x[zT.SCALE.MAIN.MAJOR]=n}else m.isContinuous?x[zT.SCALE.MAIN.MAJOR]={type:"linear",invert:S,data:{extract:{key:"qHyperCube",field:h.majorNumeric}},ticks:{forceBounds:!0,count:u.get("zoom").min===u.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>u.get("zoom").min,max:()=>u.get("zoom").max}:x[zT.SCALE.MAIN.MAJOR]={invert:S,data:{extract:m.isDimensionless?h.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:m.isDimensionless?"band":void 0,maxPxStep:g,align:y};const{reducedMinor:w,reducedMajor:k}=CE(s,{major:x[zT.SCALE.MAIN.MAJOR],minor:x[zT.SCALE.MAIN.MINOR]},{majorScaleInvert:S,maxPxStep:g,align:y,getProp:a.get});return m.isDiscrete&&(x[zT.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,m.isGroupedByDimension&&(x[zT.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),x[s.scales.major]=k,x[s.scales.minor]=w,x}function FE(e,t,n){const{layoutService:r,colorService:o}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[yq(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?zT.COMPONENT.STACK_TOTAL_BAR:zT.COMPONENT.BAR,zT.COMPONENT.BAR_AXIS,zT.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",zT.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return zT.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[zT.COMPONENT.BAR_AXIS,zT.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===zT.COMPONENT.LEGEND_COLOR_CAT))?o.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function BE(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=mq(n);return{interactions:[gq(n,t)],components:[r]}}({key:"lasso",componentTargetKey:zT.COMPONENT.BAR,components:[t?{key:zT.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:zT.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function _E(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:[bq(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:zT.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",zT.COMPONENT.BAR_AXIS,zT.COMPONENT.BAR],fillTargets:["group-axis",zT.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function HE(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:o}=t,i=void 0===n,a=r.getIsSingleSelect(n),s=FE(e,i,a);if(i||a)return{components:[...s.components],gestures:[...s.interactions]};const l=BE(e),c=function(e,t){return e.layoutService.meta.isStacked||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:xq({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",zT.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:zT.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,o),u=function(e){return e.layoutService.meta.isContinuous?xq({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",zT.COMPONENT.BAR]:["continuous-axis",zT.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?zT.SCALE.MAIN.MAJOR_INNER:zT.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const o=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(zT.FORMATTER.MINOR),i=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||i?"":"<"}${o(t)}`}},e):{components:[],interactions:[]}}(e),d=_E(e);return{components:[...s.components,...l.components,...c.components,...d.components,...u.components],gestures:[...l.interactions,...s.interactions,...c.interactions,...d.interactions,...u.interactions]}}function $E({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:zT.SCALE.MAIN.MAJOR},minor:{scale:zT.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:ss.shadowBars.trackBy,compensateForLayoutChanges:ss.bars.compensateForLayoutChanges}}}const VE={min:"Min",max:"Max"};function WE(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?Rq(e,t)||Pq(e,t):n===zq.MAX?Rq(e,t):Pq(e,t)}(Number(r.toFixed(13)),e,t)}function UE(e,{barComponent:t,type:n,isStacked:r}){var o,i,a;const{viewCache:s,layoutService:l,dockService:c}=e,u=s.get("minorMinMax"),d=n===zq.MAX;if(function(e,t){return!e[`hasOther${VE[t]}`]}(u,n)){if(function(e,t){return!e[`hasExplicit${VE[t]}`]}(u,n))return!1;if(WE(u,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${VE[t]}`]&&r(e[`explicit${VE[t]}`])}(u,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(zT.SCALE.MAIN.MINOR)[n]())),m=d?e=>e.datum[f].value>p():e=>e.datum[f].value<p(),h=zT.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?c.meta.minor.end:c.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:de({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:m,width:Nq({layoutService:e.layoutService,discrete:e.discrete,componentKey:h}),strokeWidth:null!=y&&null!==(o=y.style)&&void 0!==o&&o.strokeWidth?qq.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:qq.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:qq.BAR.STROKE.COLOR})}}}function KE(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 GE(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:o}=e.viewModel,i=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum",a=e=>"NaN"===e[i]?0:e[i];function s(t){const n=e.ds.field(t).raw(),r=e.ds.field(t).formatter(),o=xe.shouldUseFormat(n);return{field:t,reduceLabel:"none",value:a,label:e=>o?(e=>"NaN"===e[i]?"-":r(e[i]))(e):e.qText}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;const c={key:t,data:{extract:o.minor.map(((t,i)=>{const a=e.colorService.getMain().getDatumProps(i),c=e.colorService.getMini().getDatumProps(i),u=a[Object.keys(a)[0]],d=null==u?void 0:u.field,f=d?{field:d,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,p={field:r.isDimensionless?t:o.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:s(t),null:(m=t,{field:m,reduceLabel:"none",reduce:"first",value:l}),segment:r.isStacked?s(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:f,...a,...c,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${i}`},customTooltipAttrExps:0!==r.dimensionCount?nk.getNode(e.layoutService.getLayout(),r):void 0}};var m;return r.isDimensionless&&(p.value=i),void 0!==n&&(p.source=n),xe.deleteUndefinedProperties(p.props),p}))}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}function YE({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 XE="main-collection",JE="stack-total-collection";const ZE="mini-collection",QE="mini-stack-collection",eL="mini-continuous-collection",tL="miniCube",nL=(e,t)=>{const n=(e=>{const t=[GE(e,{collectionKey:XE})];return e.layoutService.meta.isStacked&&t.push(YE(e,{collectionKey:JE})),t})(t),r=((e,t)=>{const n=[];return Og({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(GE(t,{collectionKey:eL},tL)):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:QE})):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=o.isReduced?{}:n.getMain().getDatumProps(t),a={end:{field:e},start:0,group:{field:r.majorGroup},measureIndex:t,...i},s={source:"miniCube",field:o.isDimensionless?e:r.major,props:a};return o.isDimensionless&&(s.value=t),s}))}}}(t,{collectionKey:ZE}))),n})(0,t);return n.concat(r)};function rL(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 oL({layout:e,component:t},n,r){if(!Jq(e,n))return!1;const{layoutService:o,chart:i,dockService:a,viewModel:s,themeService:l,styleService:c}=n,{meta:u}=o,d=!Xq(e,n),f=l.getStyles(),p=c.label.getStyle(),m=p.useContrastColor;function h(e){const t=i.formatter(zT.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:rL("outside",d,m,u.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:rL("opposite",d,m,u.isContinuous),style:f.label.value},v=[Wq(de(n,g)),Wq(de(n,y))];return{key:"stack-total-labels",type:"labels",renderer:Ss(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Yq(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily,linkData:ss.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:ss.labels.trackBy,compensateForLayoutChanges:ss.labels.compensateForLayoutChanges}}}function iL(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 aL({layout:e,type:t},n){const{layoutService:r,viewCache:o,themeService:i,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!Xq(e,n)||l&&!Jq(e,n))return!1;const c=o.get("minorMinMax");if(!c.hasExplicitMinMax||t===zq.MAX&&0===c.max||t===zq.MIN&&0===c.min)return!1;if(!Fq(t===zq.MAX?c.implicitMax:c.implicitMin,c,t))return!1;const u=i.getStyles(),d=a.label.getStyle();let f=e=>e.data.end.label;s.isStacked&&(f=t===zq.MAX?function(e){if(Fq(e.data.sumOfNegatives.value,c,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(zT.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(Fq(e.data.sumOfPositives.value,c,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(zT.FORMATTER.MINOR);return r?r(t):t}return""});const p={label:f,simplifiedPlacements:iL("outside",true,s.isContinuous),styles:u},m={label:f,simplifiedPlacements:iL("opposite",true,s.isContinuous),styles:u},h=[Wq(de(n,p)),Wq(de(n,m))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${zT.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:h,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:ss.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:Ss(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:ss.labels.trackBy,compensateForLayoutChanges:ss.labels.compensateForLayoutChanges}}}function sL(e){return"all"===e||"title"===e}function lL(e,t,n){if(!sL(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:Sq[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:i,style:a}}function cL(e,t,n){if(!sL(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},c=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:c}}function uL({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:o,dockService:i,themeService:a,viewModel:s,chart:l}){const{theme:c,localeInfo:u}=e,d={resolveUIColor:o.getMain().getPaletteColor},f=a.getStyles(),p=s.animations.enabled;return[ps({refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:p,chart:l,scale:zT.SCALE.MAIN.MINOR,axis:"horizontal"===i.meta.major.orientation?"y":"x",key:zT.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:Sq.refLines.minimumLayoutMode}),ps({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:p,chart:l,scale:zT.SCALE.MAIN.MAJOR,axis:"horizontal"===i.meta.major.orientation?"x":"y",rtl:t,key:zT.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:zT.COMPONENT.BAR,minimumLayoutMode:Sq.refLines.minimumLayoutMode}),...ys({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:p,dock:i.meta.minor.opposite,scale:zT.SCALE.MAIN.MINOR,style:f,formatter:zT.FORMATTER.MINOR,theme:c,localeInfo:u,rtl:t,key:zT.COMPONENT.MEASURE_REF_LINE_LABEL}),...ys({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:p,dock:i.meta.major.opposite,scale:zT.SCALE.MAIN.MAJOR,style:f,theme:c,localeInfo:u,rtl:t,key:zT.COMPONENT.DIMENSION_REF_LINE_LABEL})]}const dL=(e,t,n)=>{var r;const{layoutService:o,dockService:i,colorService:a,chart:s,actions:l,discrete:c,continuousDataModel:u,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=jE(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=xq({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;let s,l;a.isGroupedByDimension?s=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(s=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let c=2;a.isContinuous?(l={start:"timeStart",end:"timeEnd"},c=Dq(e,t)):a.isStacked&&(l="stack");const u=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,d=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},f=e.layoutService.getLayoutValue("components",null),p=f?f.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||u?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:zT.SCALE.MAIN.MAJOR,fn:s,ref:l},minor:{scale:zT.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:Nq({layoutService:e.layoutService,discrete:e.discrete,componentKey:t}),minWidthPx:c,fill:e.colorService.getMain().getColor(),opacity:e=>d(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:d(e)?.01:.3},strokeWidth:null!=p&&null!==(r=p.style)&&void 0!==r&&r.strokeWidth?qq.BAR.STROKE.WIDTH[p.style.strokeWidth.toUpperCase()]:qq.BAR.STROKE.WIDTH.NONE,stroke:null!==(o=null==p||null===(i=p.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==o?o:qq.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:ss.bars.trackBy,compensateForLayoutChanges:ss.bars.compensateForLayoutChanges}}})(t,{componentKey:zT.COMPONENT.BAR,collectionKey:zT.COLLECTION.MAIN}),L=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let o=2;r.isContinuous&&(o=Dq(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:zT.SCALE.MAIN.MAJOR},minor:{scale:zT.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:KE(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:zT.COMPONENT.STACK_TOTAL_BAR,collectionKey:zT.COLLECTION.STACK_TOTAL}),N=HE(t,n,f.selectionDimensionIdx),{isStacked:O}=o.meta;let D;D=d.mode.isContinuous?zT.COLLECTION.MINI_CONTINUOUS:O?zT.COLLECTION.MINI_STACK:zT.COLLECTION.MINI;const A=O?L:E,I=fE(0,t),R=[...I,UE(t,{barComponent:A,type:"max",isStacked:O}),UE(t,{barComponent:A,type:"min",isStacked:O}),_q(t,{barComponent:A,type:"max",isStacked:O}),_q(t,{barComponent:A,type:"min",isStacked:O}),$q(t,{chart:s,barComponent:A,type:"max",scales:w,collectionKey:O?zT.COLLECTION.STACK_TOTAL:zT.COLLECTION.MAIN}),$q(t,{chart:s,barComponent:A,type:"min",scales:w,collectionKey:O?zT.COLLECTION.STACK_TOTAL:zT.COLLECTION.MAIN}),...Tq(e,t,v,!!I[0]),E,L,$E({layoutService:o,viewModel:f,layout:e,dockService:i}),lL(e,t,v),cL(e,t,v),...uL({environment:n,rtl:v,refLineModel:g,layoutService:o,colorService:a,dockService:i,themeService:h,viewModel:f,chart:s}),na({viewState:p,viewCache:m,layoutService:o,dockService:i,rtl:v}),SE(E,t,{collectionKey:D}),Dg({layoutService:o,dockService:i,discrete:c,continuousDataModel:u,viewState:p,viewCache:m,themeService:h,rtl:v,deviceType:n.deviceType}),...vT({majorScale:zT.SCALE.MAIN.MAJOR,minorScale:zT.SCALE.MAIN.MINOR,tooltipOverlay:zT.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:o,trendLineModel:x,dockService:i,animationsEnabled:f.animations.enabled}),...T.components,Qq({layout:e,component:zT.COMPONENT.BAR,minorScale:w.minor},t,v),oL({layout:e,component:zT.COMPONENT.STACK_TOTAL_BAR},t,v),aL({layout:e,component:"bar-oob-max",type:"max"},t),aL({layout:e,component:"bar-oob-min",type:"min"},t),...N.components,tE(0,{...t,coloring:a.getMain().getSettings()},v),rE(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&C,wT({tooltip:zT.COMPONENT.TREND_LINES_TOOLTIP,formatter:zT.FORMATTER.MINOR,majorScale:zT.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:bE(t,{rtl:v,hammer:{gestures:P}}),scales:w,palettes:a.getMain().getPalettes(),components:y.extendComponents(R),strategy:he(0,{logicalSize:b,minCenterRatio:0}),formatters:oE(t,w),collections:nL(0,t)}};const fL=({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:c,continuousDataModel:u,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:ke(n,zT.COMPONENT.LEGEND_COLOR_CAT)};const{properties:m}=o,h=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}));return h&&(i.tooltip.auto=!0),a.meta.isDiscrete?(c.command.setSnapshotData(i),d.setSnapshotData(i)):u.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:ke(n,zT.COMPONENT.LEGEND_COLOR_CAT)}}})),[r,n])},pL=e=>"[object Object]"===Object.prototype.toString.call(e),mL=e=>Array.isArray(e);function hL(e,t){if(e===t)return!0;if(mL(e)){if(!mL(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!hL(e[n],t[n]))return!1;return!0}if(pL(e)){if(!pL(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(!hL(e[n[r]],t[n[r]]))return!1}return!0}return e===t}const gL=({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)})),c=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=de(!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,c,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}),!la.compare(u,e,!0)&&JSON.stringify(u)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};function yL(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)!==ck})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==ck})).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 vL=.7,bL=.9,xL=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],SL=(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)!==ck})).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)!==ck})).length,s="grouped"===(null===(o=e.barGrouping)||void 0===o?void 0:o.grouping)&&a>0&&i+a>2;return we.continuous(t)?1:s?bL:vL},ML=(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 CL(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(xL).map((e=>xL[e])),schemaIgnore:!0,defaultValue:xL[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)=>!we.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)=>SL(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(Tg.OPTIONS).map((e=>Tg.OPTIONS[e])),schemaIgnore:!0,defaultValue:Tg.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(xL).map((e=>xL[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)=>!we.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 we.continuous(r)?1:l?bL:vL},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:ML("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:ML("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:{...ML("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:ML("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:ML("legend.label",r,e)}}}:void 0}}}(t,n,r)}const wL=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==ck},kL=(e,t)=>e.qHyperCube[t].filter((e=>wL(e))),TL=e=>({get:(t,n,r)=>we.continuous(r.layout)?e:t(n.type),set(e,t,n){const r=Ee(n.type,n);t(n.type,e,r)}}),qL=e=>{if(!e)return!1;const t=de(!0,{},e);return t.qHyperCube.qMeasureInfo=kL(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=kL(e,"qDimensionInfo"),t&&!we.continuous(t)&&we.stacked(t)},EL=({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)=>kL(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!qL(t.layout)&&kL(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>qL(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)=>qL(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)=>kL(n.layout,"qDimensionInfo").length&&kL(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)=>kL(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,c={uses:"settings",items:{simpleStyling:CL(!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:CL(!1,l,t,e),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){const n=kL(t.layout,"qMeasureInfo").length,r=kL(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},change(e,t){kL(t.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>we.continuous(n.layout),convertFunctions:TL("stacked")},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)=>we.continuous(n.layout),convertFunctions:TL("vertical")},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(Tg.OPTIONS).map((e=>Tg.OPTIONS[e])),defaultValue:Tg.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)=>!we.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(qL(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&&qL(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&&qL(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:Ms}},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")&&!we.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=kL(n.layout,"qMeasureInfo").length,o=kL(n.layout,"qDimensionInfo").length,i=e.dimensionAxis.maxVisibleItems;return i<0||i>1e4/(o+r)},globalChange:yL,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"}}};return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(c.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"}]}}}),c},LL={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){zt(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}}}}}},NL={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},OL=({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=>wL(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=we.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:LT({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function DL({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:OL({translator:e,flags:t,anything:n}),sorting:LL,addons:NL,settings:EL({translator:e,flags:t,anything:n})}}}const AL=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==ck};function IL(){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=>AL(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=>AL(e))).length,r=t.qHyperCube.qDimensionInfo.filter((e=>AL(e))).length;return n+r>2&&!we.continuous(t)&&!((null==(o=t)||null===(i=o.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.filter((e=>AL(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)=>!we.continuous(t)}}},color:{uses:"color"}}}}function RL(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 PL=e=>!!(e&&e.qHyperCube.qSize.qcy>0),zL={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function jL(){const e=[];return Object.keys(zL).forEach((t=>{e.push(zL[t])})),e}function FL(e){return{definition:DL(e),softDefinition:IL(),support:{snapshot:PL,export:PL,exportData:!0,sharing:PL,viewData:!0,effects:!0,modifiers:jL()},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:vk(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(zt),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(zt)}(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=Tg.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:RL}}}}}));