@nebula.js/sn-bar-chart 1.23.14 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +4 -4
- package/dist/sn-bar-chart.js +12 -12
- package/dist/sn-bar-chart.systemjs.js +5 -5
- package/package.json +1 -1
- package/sn-bar-chart-ext/dist/sn-bar-chart.js +12 -12
- package/sn-bar-chart-ext/sn-bar-chart.qext +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-bar-chart v1.
|
|
2
|
+
* @nebula.js/sn-bar-chart v1.24.0
|
|
3
3
|
* Copyright (c) 2022 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["picasso.js","picasso-plugin-q","hammerjs","react","react-dom","qlik-chart-modules","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,m,f,h,g,v,y,b,x,S,w,C,M,k,E,T,N,L,D,q,O,R,A,P,I,z,B,F,H,j,W,V;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.default,i=e.Children,a=e.isValidElement,s=e.cloneElement},function(e){l=e.default},function(e){c=e.debouncer,u=e.throttler,d=e.getValue,p=e.setValue,m=e.cache,f=e.storage,h=e.memoize,g=e.selectionService,v=e.colorService,y=e.layoutService,b=e.dockService,x=e.themeService,S=e.pluginService},function(e){w=e.useTranslator,C=e.useEmbed,M=e.useTheme,k=e.useState,E=e.useDeviceType,T=e.useAppLayout,N=e.useEffect,L=e.useElement,D=e.useOptions,q=e.useLayout,O=e.useAction,R=e.useStaleLayout,A=e.useModel,P=e.useApp,I=e.usePlugins,z=e.useSelections,B=e.useConstraints,F=e.useRect,H=e.usePromise,j=e.onTakeSnapshot,W=e.useImperativeHandle},function(e){V=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 function(t){t.interaction("hammer",$(e))};return void e.interaction("hammer",$(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,i=e();const a={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=Math.round(i.margin.left+i.x*t)+"px",r.style.top=Math.round(i.margin.top+i.y*n)+"px",r.style.width=Math.round(i.width)+"px",r.style.height=Math.round(i.height)+"px",r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",l.render(function(e,t){return o.createElement(Td,{generateClassName:t},o.createElement(ep,{theme:jx},e))}(e,Wx),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&l.unmountComponentAtNode(r),a),destroy(){r&&r.parentElement&&(l.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return a}}()),e.component("data-title",function(){function e({title:e,selected:t,onClick:n}){const r=qe.detectTextDirection(e);return o.createElement(zg,{role:"menuitem",button:!0,onClick:n,style:{textAlign:"start"}},o.createElement(Hg,{style:{minWidth:32}},o.createElement(Tx,{d:t?Dx:""})),o.createElement(Vg,{primaryTypographyProps:{dir:r}},e))}function t({alignTo:t,changeTo:n,current:r,dir:i,dock:a,list:s,onClose:l,show:c,instruction:u}){const d=s.map(((t,r)=>o.createElement(e,{key:t.id,title:t.title,onClick:()=>n(r)})));return o.createElement(Xg,K({anchorEl:t,open:c,onClose:l},Fx[a],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),o.createElement(Ag,{dense:!0,dir:i,"aria-label":u,component:"nav"},o.createElement(e,{title:r,selected:!0,onClick:l}),d))}e.propTypes={title:as.exports.string.isRequired,selected:as.exports.bool,onClick:as.exports.func.isRequired},e.defaultProps={selected:!1},t.propTypes={alignTo:as.exports.any,changeTo:as.exports.func.isRequired,current:as.exports.string.isRequired,dir:as.exports.string.isRequired,dock:as.exports.string.isRequired,list:as.exports.array,onClose:as.exports.func.isRequired,show:as.exports.bool.isRequired,instruction:as.exports.string},t.defaultProps={list:[],alignTo:null};class n extends o.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive()},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=o.createRef()}componentDidMount(){const{selections:e}=this.props;e&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),e.addListener("activated",this.onSelectionsActivated),e.addListener("deactivated",this.onSelectionsDeactivated),e.addListener("canceled",this.onSelectionsDeactivated))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.index,e),this.closePopover()}openPopover(){this.state.closeTime&&Date.now()-this.state.closeTime<20||this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e})}))}closePopover(){this.setState({open:!1,closeTime:Date.now()})}render(){const{titleData:e,popover:n,translator:r,disabled:i,isDimension:a,padding:s,minWidth:l,hasAlternative:c}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},d=e.breadcrumbs.length,p=i||this.state.inSelection,m=e.breadcrumbs.map(((t,n)=>o.createElement(Hx,{style:{display:"flex",alignItems:"center",color:p&&"rgba(89, 89, 89, 0.8)",pointerEvents:p?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>p?void 0:e.drillUp(d-n),title:t},o.createElement("span",{style:u},t),o.createElement(Tx,K({},Ox,{size:"small",style:{margin:"0 8px"}}))))),f=n&&!this.state.open?this.openPopover:this.closePopover,h=!n||i||this.state.inSelection,g={display:"flex",alignItems:"center",width:"100%",color:h&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!a&&h&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(g.background="rgba(0,0,0,0.08)");const v=e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},y=e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"};s&&(g.padding=s),l&&(g.minWidth=l);const b=qe.detectTextDirection(e.text),x=o.createElement(Hx,{"aria-label":r.get("Accessibility.Alternative.Instructions",[e.text]),style:g,onClick:h?void 0:f,title:e.text,tabIndex:h?-1:0,onFocus:h?void 0:v,onBlur:h?void 0:y,onMouseDown:e=>{e.preventDefault()}},e.locked&&o.createElement(Tx,K({},Lx,{size:"small",title:r.get("Tooltip.selections.locked")})),o.createElement("span",{style:u,dir:b},e.text),n&&o.createElement(Tx,K({},qx,{size:"small",style:{margin:"0 8px"}})));return o.createElement(o.Fragment,null,e.drilldown&&o.createElement(Tx,K({},Nx,{size:"small",title:r.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),m,o.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:c?"auto":"none",height:"100%"}},x),n&&o.createElement(t,{dock:n.dock,dir:n.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function r(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}function i(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function a(e){return!e.isDimension&&me(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}function s(e){return e.isDimension&&me(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0}return n.propTypes={disabled:as.exports.bool.isRequired,padding:as.exports.string,minWidth:as.exports.string,titleData:as.exports.shape({breadcrumbs:as.exports.arrayOf(as.exports.string).isRequired,drilldown:as.exports.bool.isRequired,index:as.exports.number.isRequired,locked:as.exports.bool.isRequired,text:as.exports.string.isRequired,popoverText:as.exports.string.isRequired,drillUp:as.exports.func}).isRequired,popover:as.exports.shape({dir:as.exports.string.isRequired,dock:as.exports.string.isRequired,changeTo:as.exports.func.isRequired,getAlternatives:as.exports.func.isRequired}),translator:as.exports.shape({get:as.exports.func.isRequired}).isRequired,selections:as.exports.shape({isActive:as.exports.func,addListener:as.exports.func,removeListener:as.exports.func}),style:as.exports.shape({fontSize:as.exports.string,color:as.exports.string,fontFamily:as.exports.string}).isRequired,isDimension:as.exports.bool.isRequired,hasAlternative:as.exports.bool.isRequired},n.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){return this.settings.settings.isDimension||a(this.settings.settings)?28:20},render(){const{settings:{app:e,disabled:t,explicitItemInfos:l,hyperCube:c,hyperCubeDef:u,isDimension:d,minWidth:p,model:m,onChangeToAlternative:f,padding:h,rtl:g,selections:v,skipAttributeExpressions:y,translator:b},layout:{dock:x}}=this.settings,S="top"!==x&&"bottom"!==x||!g?"ltr":"rtl",w=r(x,this.rect),C=u&&u.qLayoutExclude&&u.qLayoutExclude.qHyperCubeDef,M=C&&C[d?"qDimensions":"qMeasures"]||[],k=l||c[d?"qDimensionInfo":"qMeasureInfo"],E=d?Px:zx,T=d?Ix:Bx,N=m&&m.colorSupport&&m.modifiers&&E({altList:M,app:e,dir:g?"rtl":"ltr",dock:i(x),model:m,onChange:f,skipAttributeExpressions:y,translator:b}),L=s(this.settings.settings)||a(this.settings.settings),D=k.map(((e,r)=>{const i="number"==typeof e.explicitColumn?e.explicitColumn:r,a=T(e,i,m),s=r===k.length-1;return o.createElement(o.Fragment,{key:e.cId},o.createElement(n,{popover:N,titleData:a,model:m,translator:b,selections:v,disabled:t(),style:this.style,isDimension:d,padding:h,minWidth:p,hasAlternative:L}),!s&&o.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return o.createElement("div",{style:w,dir:S},D)}}}()),e.component("disclaimer",function(){class e extends o.Component{render(){const{label:e,spanStyle:t}=this.props;return o.createElement(o.Fragment,null,o.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}function t(e,t,n){const r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.fontFamily||'"Source Sans Pro", "Arial", "sans-serif"'};switch(t){case"left":r.width=n.height+"px",r.transform=`rotate(-90deg) translate(-${n.height}px, 0)`,r.transformOrigin="top left";break;case"right":r.width=n.height+"px",r.transform=`rotate(90deg) translate(0, -${n.width}px)`,r.transformOrigin="top left";break;case"center":r.width=n.width+"px",r.height=n.height+"px",r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:case"top":case"bottom":r.justifyContent="flex-start",r.alignItems="flex-start"}return r}return e.propTypes={label:as.exports.string.isRequired,spanStyle:as.exports.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:n,rtl:r},layout:{dock:i},style:a={}}=this.settings,s="top"!==i&&"bottom"!==i||!r?"ltr":"rtl",l=t(a,i,this.rect),c="center"===i?n:"* "+n,u="center"!==i?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return o.createElement("div",{style:l,dir:s},o.createElement(o.Fragment,null,o.createElement(e,{label:c,spanStyle:u})))}}}())}}()),e.use(uC),e.component("box-sliced-hat",lC),e.component("box-out-of-bounds",rC),e.component("scrollbar",Zw),e.component("scroll-hint",Ji),e.component("reference-line-labels",Ja),e.component("axis-overlay",mw.picassoComponents.axisOverlay),e.component("time-axis",mw.picassoComponents.timeAxis),e.scale("q-time-axis",mw.picassoScales.time),e}();return{qae:FC(e),ext:ST(e),component(){const t=function({env:e}){var t,n;const{flags:r}=e,o=null===(t=e.anything)||void 0===t||null===(n=t.sense)||void 0===n?void 0:n.isUnsupportedFeature,i=w();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(HC).forEach((t=>{e.add(HC[t])}))}}(e.translator);const a=C(),s=M(),[l,c]=k(),u=E(),d=T(),{qLocaleInfo:p}=d;return N((()=>{c({translator:i,theme:s,embed:a,deviceType:u,localeInfo:p,isUnsupportedFeature:o,flags:r})}),[p,o,i.language(),s.name(),u]),l}({env:e}),{viewState:n,viewCache:r}=function(){const[e]=k((()=>m())),[t]=k((()=>f({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:e,viewState:t}}(),o=function({picasso:e}){const t=L(),n=D(),[r,o]=k();return N((()=>{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}),a=function({picasso:e,chart:t,environment:n,viewState:r,viewCache:o}){const i=R(),a=A(),s=P(),l=I(),c=z(),p=D(),[f,g]=k(),[v,C]=k(),[M,E]=k(),T=B(),L=function(){const[e]=k({}),[t]=k({}),n=function(){var e,t,n,r;const o=q(),i=w(),a=!(null==o||null===(e=o.qSelectionInfo)||void 0===e||!e.qInSelections),s=!(null==o||null===(t=o.qHyperCube)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n||null===(r=n[0])||void 0===r||!r.qIsOneAndOnlyOne),[l,c]=k(!1),[u,d]=k(!1),[p,m]=k({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),f=e=>{d("boolean"==typeof e?e:!u)};return O((()=>(m({key:"lasso",action:f,enabled:()=>l,active:()=>u}),{key:"lasso",label:i.get(u?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:$M,hidden:!l||!a||s,active:u,action:f})),[a,s,u,l,i.language()]),{get:()=>p,setAllows:e=>{c(!!e)}}}(),[r,o]=k();return N((()=>{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=>{return t=r[e],Object.keys(_M.prototype).forEach((e=>{t[e]=_M.prototype[e]})),_M.init(t),t;var t})),o(r)}),[]),N((()=>{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 N((()=>{if(!t)return()=>{};const e=L.get(),n=ZM({chart:t,actions:e,selections:c});return C(e),E(n),()=>{n.destroy(),L.destroy()}}),[t]),N((()=>{if(!T)return;const e={allowScroll:!T.active,allowInteract:!T.active,allowTooltip:!T.passive,allowSelect:!T.select&&!T.active};L.setAllows(e)}),[T]),N((()=>{if(!M||!n)return;const{theme:c,translator:f,localeInfo:w,flags:C,embed:k}=n,{direction:E="ltr"}=p,T=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(i)?y({source:i}):void 0,N=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:i,options:p}),D=y({source:i,metaAdditionsFn:YM}),q=function(e){const t={};return t.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),t.selectionDimensionIdx=(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}return})(e.getHyperCube()),t.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,t.selectionDimensionProp=e=>void 0===t.selectionDimensionIdx||void 0!==e&&t.selectionDimensionIdx!==e?{}:{selectionDimension:{field:t.selectionDimensionIdx}},t}(D),O=b({chart:t,layoutService:D,config:{logicalSize:N,rtl:"rtl"===E},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),R=x({theme:c,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),A=mw.model({model:a,layoutService:D,viewCache:o,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(Se).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),o=t.getHyperCubeValue("qDimensionInfo"),i="K"===r&&o.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo");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")}}}))}(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=ne(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:GM.SCALE.REDUCED.MAJOR,minor:GM.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=ne(!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:a,layoutService:D,viewModel:q});!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:D,viewState:r,viewStateOptions:null==p?void 0:p.viewState});const I=ek({picasso:e,model:a,app:s,translator:f,localeInfo:w,theme:c,continuousDataModel:A,layoutService:D,legendLayoutService:T,reducedDataModel:P}),z=(({layoutService:e,viewState:t,colorModel:n,chart:r,env:o,keys:{colorScale:i},isEnabled:a=(()=>!1)})=>{const{translator:s}=o,l=[DM],c=[],u=[],d=function(e,t){if(e.meta.isContinuous)return function(e,t){return{generate:(e,n,r)=>{const o=[],i=EM(e),{min:a,max:s}=t.get("zoom"),l=(s-a)/100;if(l>0){const t=t=>{const a=i({dimValue:t,value:t,qTrendLine:e});a.layerId=n,a.measureIndex=r,a.dimValue=t,o.push(a)};let c=a;for(let e=a;e<=s;e+=l)t(e),c=e;c!==s&&t(s)}return o},calculate:(e,t)=>EM(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);if(e.meta.mode.K)return function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qData[0].qSubNodes,s=i.qArea.qTop,l=MM[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:kM}}(e);return function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qMatrix,s=i.qArea.qTop,l=MM[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,MM[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:kM}}(e)}(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(c.push(...e.qTrendLines),u.push(...e.qTrendLines.map((()=>t))))}));return{query:{hasTrendLines:()=>!!c.length&&a(),getData:()=>l,getStroke:h((e=>{const{style:t}=c[e]||{},o=n.settings();if(t.autoColor){if("measure"===o.mode){const t=u[e],n=r.scale(i)(t);return LM(n)?function(e){const t=Ct(e);t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5;return t.toString()}(n):function(e){const t=Ct(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(NM)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"})),getLineDash:e=>{const{style:t}=c[e]||{};return t.lineDash},getLabel:e=>(c[e]||{}).label,getType:e=>{const{qType:t}=c[e]||{};return s.get(TM.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return c.forEach((r=>{const o=d.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 d.calculate(r,t,n)}},command:{update:()=>{l.length=0,c.forEach(((e,t)=>{const n=d.generate(e,t,u[t]);l.push(...n)}))}}}})({layoutService:D,viewState:r,colorModel:{settings:()=>I.getMain().getSettings(),resolveUIColor:e=>I.getMain().getPaletteColor(e)},chart:t,env:n,keys:{colorScale:GM.SCALE.MAIN.COLOR},isEnabled:()=>!D.meta.isGroupedByDimension&&(!D.meta.isStackedByDimension||C.isEnabled("TRENDLINES_STACKED_DIM"))&&!D.meta.isDimensionless});DC.attrExpr.updateProperties(a,i);const B=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:CC,miniChartToken:{},embed:s}}({layout:i,app:s,model:a,picasso:e,chart:t,translator:f,localeInfo:w,embed:k,extractDimsAndNode:XM.extractDimsAndNode});let F;D.meta.isDiscrete&&(F=function({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:o,dockService:i,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:p="/qHyperCubeDef",getRect:f,axisKey:h,renderer:g,areaBuffer:v,processDataPage:y=(()=>{})}={}}){const b=m(),x=function({qMode:e}){switch(e){case"S":default:return GC;case"K":return YC;case"T":return XC}}({qMode:o.getHyperCubeValue("qMode")}),S=function({state:e,contains:t}){return e.set(JC,[]),{add:t=>{const n=e.get(JC);n.length=0,n.push(t)},getCurrent:()=>e.get(JC)[0],getAll:()=>e.get(JC),contains:n=>t(e.get(JC)[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:o,dataStore:S,composition:x});const w=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:v}),C=function({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:o=oM,definitionPath:i,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:o,process:i,connectionless:a,processDataPage:s}){return(l,{onProcessing:c}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const o=n.release(r.qArea,l),s=i.isProcessing();if(!o&&s&&i.cancel(),!o||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());i.isProcessing()&&c&&c();const u=r(l);return i(o(u)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:nM({layoutService:r}),request:c({layoutService:r,definitionPath:i}),process:rM(n),connectionless:r.meta.isSnapshot,processDataPage:a}),p=u(((e,{onProcessing:t,onData:n})=>{d(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==jC)throw e}))}),50);return function(e,{onProcessing:t=WC,onDataPage:n=WC}={}){p(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),o.command.update(),n(e)}})}}({dataStore:S,composition:x,enigmaModel:r,layoutService:o,trendLineModel:a,definitionPath:p,processDataPage:y}),M=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:p,rtl:m}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const f=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:p}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;if(t)return iM;if(!n)return aM;return r?uM:mM}({layoutService:r}),m=()=>"horizontal"===o.meta.major.orientation?t().width:t().height,f=e=>e?m()/e:0,h=(e,t)=>-(e-t)*f(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:fM({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(VC/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return f(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,o=Math.min(0,Math.max(e,h(n,r))),i=r?Math.abs(r*o/m()):0;return{start:{pixel:o,item:i},end:{item:Math.min(i+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return h(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const o=e/n*t,i=Math.abs(r)/o;return[i,i+e/o]}({viewSize:m(),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=p({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:m(),upperBound:h(t.inTotal,t.inView)});return"horizontal"===o.meta.major.orientation&&c?function(e){return[1-e[1],1-e[0]]}(i):i},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=h(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*f(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(f(r)*n)}}}}({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:i,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:m}),h=()=>{const e=f.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=f.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},v=({items:e})=>{const t=i.getLayoutValue("scrollStartPos"),n=p.get("scrollOffset");if(void 0===n)return 1===t?f.getUpperBound({items:e}):0;if("number"==typeof n)return f.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:o}=n,a=1===t&&o?o-e.inView:r;return f.convert.itemToPixelOffset({itemOffset:a,items:e})},y=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=f.getArea({itemOffset:i.start.item,items:r});if(y(a))return void((f.validate.offset({pixelOffset:e,items:r})||p.get("scrollOffset").start!==i.start.item)&&(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:i.start,items:r})),p.preventSet("viewRange",f.getViewRange({pixelOffset:i.start.pixel,items:r})),p.set("scrollOffset",{start:i.start.item,end:i.end.item})));p.preventSet("viewRange",f.getViewRange({pixelOffset:i.start.pixel,items:r}));const s=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:i.start,items:r})),p.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",f.getItemSize({items:i}));const a=v({items:i}),c=g({pixelOffset:a,items:i});p.preventSet("viewRange",f.getViewRange({pixelOffset:c.start.pixel,items:i}));const u=f.getArea({itemOffset:c.start.item,items:i});return new Promise((e=>{o(u,{onDataPage:()=>{n.set("scaleRange",f.getScaleRange({offsets:c.start,items:i})),p.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=f.convert.relativeToPixelOffset({relativeOffset:e,items:t});b(r)}}}({chart:e,componentKey:n,state:b,dataStore:S,pageData:C,layoutService:o,dockService:i,itemWidths:s,getRect:f,axisKey:h,renderer:g,areaBuffer:w,viewState:l,rtl:c}),k=function({layoutService:e,dataStore:t}){return function(n){const r=d(n,""+e.refs.dataPages);r.length=0,r.push(t.getCurrent())}}({layoutService:o,dataStore:S});return{interactions:tM({chart:e,actions:t,componentKey:n,dockService:i,rtl:c,scroller:M}),query:{getCanScroll:()=>M.enabled(),getItemSize:()=>M.itemSize(),getScaleRange:()=>M.scaleRange(),getCurrentDataPage:()=>S.getCurrent()},command:{initialize:()=>M.initialize(),scrollTo:e=>M.scrollToRelative(e),setSnapshotData:e=>k(e)}}}({chart:t,actions:v,componentKey:GM.COMPONENT.BAR,enigmaModel:a,layoutService:D,dockService:O,trendLineModel:z,itemWidths:KM,viewState:r,rtl:"rtl"===E,options:{axisKey:GM.COMPONENT.BAR_AXIS,renderer:e.renderer("svg")()}}));const H=function({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:o}=e.meta,i=e.getLayout(),a="K"===i.qHyperCube.qMode,s=be.dimensionless(i),l=Oa.getMeasureRefLines(i),c=Oa.getDimensionRefLines(i,s),u=Oa.getMeasureRefLineLabels(i),d=Oa.getDimensionRefLineLabels(i,s);let p={},m={};const f=t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:o}=n;return Oa.isOutOfRange({value:t,qMin:r,qMax:o})}return!1},h=t=>{if(!m[t])return!1;if(!n&&o){const n={valueInfo:m[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",o=e.getHyperCubeValue(r);return Oa.isOutOfDataPages({label:n,dataPages:o})}return!0},g=()=>!(!c||!c.length)&&!c.every((t=>{const n=Oa.getInputValue({refLineLayout:t,layoutService:e});return f(n)||h(n)})),v={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:m,dimensionValuesInfo:p,query:{getRefLines:e=>Oa.getRefLines(i,e),getRefLineLabels:e=>Oa.getRefLineLabels(i,e)},update:()=>{m=v.dimensionRefLineInfo,g()&&(p=Oa.getDimensionValuesInfo({layout:i,canBeContinuous:r,discreteModel:t,layoutService:e}),v.dimensionValuesInfo=p,c.forEach((t=>{const n=Oa.getInputValue({refLineLayout:t,layoutService:e});p[n]&&(m[n]?(m[n].innerValues=p[n].innerValues,m[n].minOrder=Math.min(m[n].minOrder,p[n].minOrder),m[n].maxOrder=Math.max(m[n].maxOrder,p[n].maxOrder),m[n].isMinOrderOk=m[n].isMinOrderOk||p[n].isMinOrderOk,m[n].isMaxOrderOk=m[n].isMaxOrderOk||p[n].isMaxOrderOk):m[n]={id:p[n].id,qText:p[n].qText,innerValues:p[n].innerValues,minOrder:p[n].minOrder,maxOrder:p[n].maxOrder,isMinOrderOk:p[n].isMinOrderOk,isMaxOrderOk:p[n].isMaxOrderOk},m[n].numInnerValues=(m[n].maxOrder||0)-(m[n].minOrder||0)+1)})))}};return v.update(),v}({layoutService:D,discreteModel:F}),j=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:GM.SCALE.MAIN.MINOR,MAJOR:GM.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:GM.COMPONENT.BAR,BAR_AXIS:GM.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:GM.COLLECTION.MAIN}}}}(D),W=S({picassoInstance:e,plugins:l||[],pluginArgs:j});L.setContext({discrete:F,layoutService:D}),g({discrete:F,continuous:mw,legendLayoutService:T,layoutService:D,viewModel:q,dockService:O,themeService:R,continuousDataModel:A,reducedDataModel:P,colorService:I,trendLineModel:z,refLineModel:H,pluginService:W,customTooltipModel:B,selectionService:M,logicalSize:N})}),[M,p,n,i]),f}({picasso:i,chart:o,environment:t,viewState:n,viewCache:r});!function({picasso:e,chart:t,services:n,environment:r,viewState:o,viewCache:i}){const{width:a,height:s}=F(),l=A(),u=z(),d=D(),[p,m]=k(),[f,g]=k(),[v,y]=k(),[b,x]=k(),S=P();function w(a={}){const{selectionService:s,refLineModel:m,discrete:f,reducedDataModel:g,continuousDataModel:v,trendLineModel:y,pluginService:b,colorService:x,viewModel:w,dockService:C,themeService:M,customTooltipModel:k,layoutService:E,logicalSize:T}=n,N=s.custom.getActions(),L=e.data("q")(p.prepPicassoDataSet()),D={picasso:e,ds:L,rtl:"rtl"===(null==d?void 0:d.direction),model:l,app:S,chart:t,actions:N,localeInfo:r.localeInfo,logicalSize:T,flags:r.flags,translator:r.translator,selections:u,isLocked:s.getIsSelectionLocked,viewCache:i,viewState:o,layoutService:E,dockService:C,viewModel:w,colorService:x,selectionService:s,themeService:M,trendLineModel:y,discrete:f,continuousDataModel:v,reducedDataModel:g.model(),customTooltipModel:k,debouncer:c,refLineModel:m,pluginService:b,...a};return((e,t,n)=>{var r;const{layoutService:o,dockService:i,colorService:a,chart:s,actions:l,discrete:c,continuousDataModel:u,reducedDataModel:d,viewModel:p,viewState:m,viewCache:f,themeService:g,refLineModel:v,pluginService:y,rtl:b,logicalSize:x}=t,{localeInfo:S}=n,w=function({layout:e},t,n){const r=function(e,t){if(e.qHyperCube.qSize.qcx*e.qHyperCube.qSize.qcy==0)return"NoDataExist";if(e.qHyperCube.qMeasureInfo.every(lE))return"OnlyNanData";let n=!1;if(t.layoutService.meta.isContinuous&&2===e.qHyperCube.qDimensionInfo.length){const t=e.qHyperCube.qDimensionInfo[1];n=Lk.getDimensionSize(t)>pe.maxNumberOfLines}return!!n&&"LimitedData"}(e,t),{fontFamily:o}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:o}=t,{rtl:i}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:ie[e].alignment},settings:{label:o.get("Object.Disclaimer."+e),rtl:i},style:r}}(r,t,{rtl:n},{fontFamily:o})}({layout:e},t,b);if(w&&"center"===w.layout.dock)return{components:[w]};const C=function(e,{picasso:t,discrete:n,layoutService:r,dockService:o,viewModel:i,viewCache:a,reducedDataModel:s,colorService:l,themeService:c,viewState:u,chart:d},{localeInfo:p,rtl:m}){const{meta:f}=r,{fields:g}=i,v=()=>{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")?((e,t)=>{if("vertical"===e)return"near"===t||"left"===t?0:1;return"near"===t||"bottom"===t?1:0})(o.meta.minor.orientation,o.meta.minor.dock):.5,b={},x="vertical"===o.meta.minor.orientation&&m,S=l.getMain().getScales(),w=l.getMini().getScales();if(Object.assign(b,S,{reducedFill:w.reducedFill}),b[GM.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,layoutService:o,themeService:i},{rtl:a}){const s=function({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:u}=function(e){let{min:t,max:n}=e.get("minorMinMax");t===n&&0===t&&(t-=1,n+=1);return{min:t,max:n}}(t),d=h((()=>{const d=function(e,t,n){let r;e?r=n.meta.chart.size:({rect:r}=t.component(GM.COMPONENT.BAR));return"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),p=function(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return EE;case 1:return TE;case 2:return NE;default:return 125*t}}(t);return Math.max(1,Math.round(e/n))}(d,r),m=function(e,t,n){const r=Wr().domain([e,t]);return r.nice(n),r}(c,u,p);let f,h,g=[];"SPARK"===n.meta.chart.mode?({roundedMin:f,roundedMax:h}=function(e,t){return{roundedMin:e,roundedMax:t}}(c,u)):(({roundedMin:f,roundedMax:h,ticks:g}=function(e,t,n,r,o,i,a,s){const l=i.formatter(GM.FORMATTER.MINOR),c=s.getStyles(),u="horizontal"===a.meta.major.orientation?"height":"width",d=e=>kE({text:e,fontSize:c.axis.label.name.fontSize,fontFamily:c.axis.label.name.fontFamily})[u];let[p,m]=e.domain(),f=e.ticks(r);function h(e){const t=o/f.length;return Math.max(...e.map(d))<=t}function g(){const e=f.map(l);return!qE(e)&&h(e)}for(let o=r-1;o>0&&!g();o--)e.domain([t,n]),e.nice(o),[p,m]=e.domain(),f=e.ticks(o);return{roundedMin:p,roundedMax:m,ticks:f}}(m,c,u,p,d,e,n,o)),function(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2,o=e=>Number.isNaN(t)||e>=t,i=e=>Number.isNaN(n)||e<=n;return e.filter((e=>o(e)&&i(e))).length<=r}(g,i,a)&&({roundedMin:f,roundedMax:h,ticks:g}=function(e,t,n,r,o){e.domain([t,n]),e.nice(10);const[i,a]=e.domain();let s=e.ticks(10);const l=function(e){return e.length%2==0}(s),c=function(e){const t=.3,n=Math.round(e.length*t),r=n,o=e.length-n;return e.slice(r,o).some((e=>0===e))}(s),u=c?DE:LE;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(GM.FORMATTER.MINOR):void 0,p=d?s.map(d):s;qE(p)&&(s=[s[0],s[s.length-1]]);return{roundedMin:i,roundedMax:a,ticks:s}}(m,c,u,s||l,e)));const v=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){if(e&&n.length&&!n.some((e=>e===t)))return n.unshift(t),n.filter((e=>e>=t));return n}(s,i,g),g=function(e,t,n){if(e&&n.length&&!n.some((e=>e===t)))return n.push(t),n.filter((e=>e<=t));return n}(l,a,g);return{roundedMin:f,roundedMax:h,ticks:function(e,t){return[...e.map(RE),...t.map(AE)].sort(OE)}(g,v)}}),(()=>t.get("isPreRender")));return{values:()=>d().ticks,min:()=>s?i:d().roundedMin,max:()=>l?a:d().roundedMax}}({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};o.meta.isStacked||(l.data={source:"qHyperCube",fields:t.minor});return l}({chart:d,viewModel:i,dockService:o,viewCache:a,layoutService:r,themeService:c},{rtl:m}),f.isGroupedByDimension)[GM.SCALE.MAIN.MAJOR_INNER,GM.SCALE.MAIN.MAJOR].forEach(((e,t)=>{b[e]={invert:x,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...i.selectionDimensionProp(t),group:f.isGroupedByDimension?{field:g.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:v,align:y}})),i.isDimensionLocked(0)||(b[GM.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(f.isGroupedByMeasure)b[GM.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:x,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:v,align:y};else if(f.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(),p=e=>kE({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});o.set("qTimeAxisCache",[]);const m={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()}},f={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:p},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:m},h={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:p},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:m};return{innerTime:f,outerTime:h}}({picasso:t,localeInfo:p,viewState:u,viewModel:i,viewCache:a,themeService:c,layoutService:r},m);b[GM.SCALE.MAIN.MAJOR_INNER]=e,b[GM.SCALE.MAIN.MAJOR]=n}else f.isContinuous?b[GM.SCALE.MAIN.MAJOR]={type:"linear",invert:x,data:{extract:{key:"qHyperCube",field:g.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}:b[GM.SCALE.MAIN.MAJOR]={invert:x,data:{extract:f.isDimensionless?g.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:f.isDimensionless?"band":void 0,maxPxStep:v,align:y};const{reducedMinor:C,reducedMajor:M}=function(e,t,n){const r=function(e){const t=ne(!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};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=ne(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=ne(!0,{},t,{min:()=>i("continuousMin"),max:()=>i("continuousMax")}));return a}(e,t.major,n);return{reducedMinor:r,reducedMajor:o}}(s,{major:b[GM.SCALE.MAIN.MAJOR],minor:b[GM.SCALE.MAIN.MINOR]},{majorScaleInvert:x,maxPxStep:v,align:y,getProp:a.get});f.isDiscrete&&(b[GM.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,f.isGroupedByDimension&&(b[GM.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange));return b[s.scales.major]=M,b[s.scales.minor]=C,b}(e,t,{localeInfo:S,rtl:b}),M=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),k=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:m,chart:s,styleReference:"object.barChart",rtl:b,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:M}),E=k.components[0];if(E){const{dock:e}=E.layout;if(C.fillRange&&(["right","left"].includes(e)||b)&&(C.fillRange.invert=!0),"legend-seq"===E.type&&void 0!==p.selectionDimensionIdx&&C.fillRange&&C.fillRange.min<C.fillRange.max){const e=kk({eventName:"legendRange",key:"legendRangeBrush",targets:[E.key],fillTargets:[E.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:E.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);k.components.push(...e.components),k.interactions.unshift(...e.interactions)}}else C.fillRange&&b&&(C.fillRange.invert=!0);const T=((e,{componentKey:t,collectionKey:n})=>{var r,o,i,a;const{meta:s}=e.layoutService;let l,c;s.isGroupedByDimension?l=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:s.isGroupedByMeasure&&(l=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;s.isContinuous?(c={start:"timeStart",end:"timeEnd"},u=zk(e,t)):s.isStacked&&(c="stack");const d=s.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,p=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)};function m(e){return s.isStacked?.1:p(e)?.01:.3}const f=e.layoutService.getLayoutValue("components",null),h=f?f.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:s.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:s.isContinuous||d?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:GM.SCALE.MAIN.MAJOR,fn:l,ref:c},minor:{scale:GM.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:Pk({layoutService:e.layoutService,discrete:e.discrete,componentKey:t}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>p(e)?0:void 0,minHeightPx:m,strokeWidth:null!=h&&null!==(r=h.style)&&void 0!==r&&r.strokeWidth?Ak.BAR.STROKE.WIDTH[h.style.strokeWidth.toUpperCase()]:Ak.BAR.STROKE.WIDTH.NONE,stroke:null!==(o=null==h||null===(i=h.style)||void 0===i||null===(a=i.strokeColor)||void 0===a?void 0:a.color)&&void 0!==o?o:Ak.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}})(t,{componentKey:GM.COMPONENT.BAR,collectionKey:GM.COLLECTION.MAIN}),N=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let o=2;r.isContinuous&&(o=zk(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:GM.SCALE.MAIN.MAJOR},minor:{scale:GM.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:FE(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,n;return!0===(null===(t=e.data)||void 0===t||null===(n=t.null)||void 0===n?void 0:n.value)?0:1}},inactive:{opacity:e=>{var t,n;return!0===(null===(t=e.data)||void 0===t||null===(n=t.null)||void 0===n?void 0:n.value)?0:.3}}}}]}};r.isContinuous&&(s.settings.major.ref={start:"timeStart",end:"timeEnd"});return s})(t,{componentKey:GM.COMPONENT.STACK_TOTAL_BAR,collectionKey:GM.COLLECTION.STACK_TOTAL}),L=function(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:o}=t,i=void 0===n,a=r.getIsSingleSelect(n),s=function(e,t,n){const{layoutService:r,colorService:o}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[wk(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?GM.COMPONENT.STACK_TOTAL_BAR:GM.COMPONENT.BAR,GM.COMPONENT.BAR_AXIS,GM.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",GM.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return GM.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[GM.COMPONENT.BAR_AXIS,GM.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===GM.COMPONENT.LEGEND_COLOR_CAT))?o.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}(e,i,a);if(i||a)return{components:[...s.components],gestures:[...s.interactions]};const l=function(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=(({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}}))(n);return{interactions:[Sk(n,t)],components:[r]}}({key:"lasso",componentTargetKey:GM.COMPONENT.BAR,components:[t?{key:GM.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:GM.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}(e),c=function(e,t){return e.layoutService.meta.isStacked||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:kk({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",GM.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:GM.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,o),u=function(e){return e.layoutService.meta.isContinuous?kk({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",GM.COMPONENT.BAR]:["continuous-axis",GM.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?GM.SCALE.MAIN.MAJOR_INNER:GM.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const o=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(GM.FORMATTER.MINOR),i=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||i?"":"<"}${o(t)}`}},e):{components:[],interactions:[]}}(e),d=function(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:[Mk(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:GM.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",GM.COMPONENT.BAR_AXIS,GM.COMPONENT.BAR],fillTargets:["group-axis",GM.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},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]}}(t,n,p.selectionDimensionIdx),{isStacked:D}=o.meta;let q;q=d.mode.isContinuous?GM.COLLECTION.MINI_CONTINUOUS:D?GM.COLLECTION.MINI_STACK:GM.COLLECTION.MINI;const O=D?N:T,R=gE(e,t),A=[...R,BE(t,{barComponent:O,type:"max",isStacked:D}),BE(t,{barComponent:O,type:"min",isStacked:D}),Kk(t,{barComponent:O,type:"max",isStacked:D}),Kk(t,{barComponent:O,type:"min",isStacked:D}),Yk(t,{chart:s,barComponent:O,type:"max",scales:C,collectionKey:D?GM.COLLECTION.STACK_TOTAL:GM.COLLECTION.MAIN}),Yk(t,{chart:s,barComponent:O,type:"min",scales:C,collectionKey:D?GM.COLLECTION.STACK_TOTAL:GM.COLLECTION.MAIN}),...Rk(e,t,b,!!R[0]),T,N,PE({layoutService:o,viewModel:p,layout:e,dockService:i}),eT(e,t,b),tT(e,t,b),...nT({environment:n,rtl:b,refLineModel:v,layoutService:o,colorService:a,dockService:i,themeService:g,chart:s}),Zi({viewState:m,viewCache:f,layoutService:o,dockService:i,rtl:b}),ME(T,t,{collectionKey:q}),xw({layoutService:o,dockService:i,discrete:c,continuousDataModel:u,viewState:m,viewCache:f,themeService:g,rtl:b,deviceType:n.deviceType}),...RM({majorScale:GM.SCALE.MAIN.MAJOR,minorScale:GM.SCALE.MAIN.MINOR,tooltipOverlay:GM.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},t),...k.components,rE({layout:e,component:GM.COMPONENT.BAR,minorScale:C.minor},t,b),XE({layout:e,component:GM.COMPONENT.STACK_TOTAL_BAR},t,b),ZE({layout:e,component:"bar-oob-max",type:"max"},t),ZE({layout:e,component:"bar-oob-min",type:"min"},t),...L.components,iE({layout:e},{...t,coloring:a.getMain().getSettings()},b),sE({layout:e},{...t,coloring:a.getMain().getSettings()},b),(!1!==e.showDisclaimer||!t.flags.isEnabled("SHOW_DISCLAIMER"))&&w,zM({tooltip:GM.COMPONENT.TREND_LINES_TOOLTIP,formatter:GM.FORMATTER.MINOR,majorScale:GM.SCALE.MAIN.MAJOR},t,{rtl:b})].filter(Boolean);!function(e){if(!e||0===e.length)return;for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(A);const P=[...k.interactions,...L.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:CE(t,{rtl:b,hammer:{gestures:P}}),scales:C,palettes:a.getMain().getPalettes(),components:y.extendComponents(A),strategy:ce(e,{logicalSize:x,minCenterRatio:0}),formatters:cE(t,C),collections:GE(e,t)}})(E.getLayout(),D,r)}function C(){if(!t.update)return Promise.resolve();const{discrete:e,layoutService:r}=n;i.set("isPreRender",!0);const o=w(f);p.extractDataPages(),t.update({settings:o,data:v}),i.set("isPreRender",!1),p.insertDataPages();const a=[];return 1!==o.components.length&&r.meta.isDiscrete&&a.push(e.command.initialize()),Promise.all(a)}const[[M,E]=[]]=H((()=>{var a;if(!(e&&t&&n&&r&&o&&i))return Promise.resolve();const{layoutService:s,selectionService:c,refLineModel:u,discrete:d,continuous:p,reducedDataModel:m,continuousDataModel:f,trendLineModel:h,legendLayoutService:g,colorService:v,pluginService:y}=n;if(null==c||null===(a=c.custom)||void 0===a||!a.getActions())return Promise.resolve();const b=()=>{x(Date.now())},S=()=>{g&&g.setDataPages([d.query.getCurrentDataPage()]),u&&u.update(),b()};o.onChanged("scrollOffset",S),o.onChanged("legendScrollOffset",b),o.intercept("zoom",p.event.onZoomIntercept({viewCache:i})),o.onChanged("zoom",p.event.onZoomChange({layoutService:s,continuousDataModel:f},b)),c.setLayout(s.getLayout());const w=[];s.meta.isContinuous&&(f.update(s.getLayout()),w.push(f.initialFetch())),h.command.update(),w.push(m.fetch().then((({reducedCube:e})=>{m.update(e)}))),w.push(function({layout:e,model:t}){if(be.snapshot(e))return Promise.resolve(null);return t.getEffectiveProperties().then((e=>({properties:e})))}({layout:s.getLayout(),model:l,env:r}));const C=()=>[y.initialize(),v.initialize(),bk({reducedDataModel:m,layoutService:s,continuousDataModel:f,trendLineModel:h})];return Promise.all(w).then((e=>Promise.all(C()).then((t=>[e,t.pop()]))))}),[n]);N((()=>{var e;if(null==n||null===(e=n.colorService)||void 0===e||!e.getMain()||!E)return;const{layoutService:t,selectionService:o,reducedDataModel:a,continuousDataModel:s,trendLineModel:l,legendLayoutService:c,colorService:u,viewModel:d}=n;i.set("minorMinMax",E);const p=()=>!t.meta.isContinuous&&(a.model().mode.isReduced||t.meta.isStacked)&&c,f=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():a.model().cube,{field:v}=u.getMain().getSettings(),y=p(),b=y?c.getHyperCube():void 0;o.setBrushAliases({colorField:v,useLegendCube:y,legendAlias:"legendCube/"+v});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:f,miniCube:h,legendCube:b,localeInfo:r.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),S=M[M.length-1];g({localeInfo:r.localeInfo,...S}),m(x)}),[E]),N((()=>{if(!n||!f||!p)return;const e=n.colorService.getMain();if(!e)return;p.prepPicassoDataSet();const t=p.prepPicassoData(e.getData());y(t)}),[f]),N((()=>{var e;null!=n&&null!==(e=n.colorService)&&void 0!==e&&e.getMain()&&t.update&&p&&v&&C().then((()=>{const{layoutService:e,discrete:r,legendLayoutService:o}=n;if(o){1===e.getLayoutValue("scrollStartPos")&&o.setDataPages([r.query.getCurrentDataPage()])}t.update()}))}),[v]),N((()=>{if(!(a&&s&&p&&null!=t&&t.update&&null!=n&&n.colorService.getMain()))return;const{dockService:e,themeService:o}=n;e.update({width:a,height:s}),o.setTheme(r.theme),C().then((()=>{t.update&&t.update()}))}),[a,s]),N((()=>{null!=t&&t.update&&t.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]})}),[b])}({picasso:i,chart:o,services:a,environment:t,viewState:n,viewCache:r}),(({services:e,chart:t,viewState:n})=>{j((r=>{if(!e)return;const{layoutService:o,dockService:i,colorService:a,discrete:s,continuousDataModel:l,reducedDataModel:c}=e,{width:u,height:d}=i.meta.chart.size;return r.snapshotData=r.snapshotData||{},r.snapshotData.content={size:{w:u,h:d}},o.meta.isSnapshot?Promise.resolve():(r.snapshotData.content.chartData={scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:xe(t,GM.COMPONENT.LEGEND_COLOR_CAT)},o.meta.isDiscrete?(s.command.setSnapshotData(r),c.setSnapshotData(r)):l.setSnapshotData(r),a.getMain().getSnapshotData().then((e=>{r.snapshotData.content.chartData={...r.snapshotData.content.chartData,...e}})).catch((()=>{})))})),W((()=>({getViewState(){if(n&&t)return{scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:xe(t,GM.COMPONENT.LEGEND_COLOR_CAT)}}})),[n,t])})({services:a,chart:o,viewState:n})}}}));var U={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function _(e){return U[e]||e}function $(e){return function(t,n,r){var o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((function(t){t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));var n=_(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),(a=a||new e.Manager(r)).add(new e[n](t.options)),Object.keys(t.events).forEach((function(e){t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((function(t){var n=_(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((function(e){return""!==e}))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((function(e){return""!==e}))))})))}function d(){l.forEach((function(e){Object.keys(e.events).forEach((function(t){a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set:function(e){!function(e){s=e.key,i={chart:t,mediator:n,settings:o=e},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off:function(){c=!1,d()},on:function(){c=!0,0===l.length&&u()},destroy:function(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function K(){return(K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var G=Object.prototype.hasOwnProperty,Y=Object.prototype.toString,X=Object.defineProperty,J=Object.getOwnPropertyDescriptor,Z=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Y.call(e)},Q=function(e){if(!e||"[object Object]"!==Y.call(e))return!1;var t,n=G.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&G.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||G.call(e,t)},ee=function(e,t){X&&"__proto__"===t.name?X(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},te=function(e,t){if("__proto__"===t){if(!G.call(e,t))return;if(J)return J(e,t).value}return e[t]},ne=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=te(s,n),s!==(o=te(t,n))&&(u&&o&&(Q(o)||(i=Z(o)))?(i?(i=!1,a=r&&Z(r)?r:[]):a=r&&Q(r)?r:{},ee(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&ee(s,{name:n,newValue:o}));return s};const re="center",oe="bottom";var ie={NoDataExist:{label:"NoDataExist",alignment:re,default:!0},OnlyNanData:{label:"OnlyNanData",alignment:re,default:!0},OnlyNegativeOrZeroValues:{label:"OnlyNegativeOrZeroValues",alignment:re,default:!1},LimitedData:{label:"LimitedData",alignment:oe,default:!1},OnlyNanColor:{label:"OnlyNanColor",alignment:oe,default:!1},NegativeOrZeroValues:{label:"NegativeOrZeroValues",alignment:oe,default:!1},DataRangeIncludingZero:{label:"DataRangeIncludingZero",alignment:oe,default:!1}};const ae=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],se={};ae.forEach((([e,{width:t,height:n}])=>{se[e]={width:t,height:n}}));const le={getLayoutModes:()=>se,getLayoutMode(e,t){let n;for(n=0;n<ae.length;++n)if(e>=ae[n][1].width&&t>=ae[n][1].height)return ae[n][0];return"SPARK"}};function ce(e,t){return{layoutModes:le.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const ue=["$date","$timestamp","$time"],de=["D","TS","T"],pe={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>ue.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&de.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(pe.hasTimeTag(t)&&pe.hasUnknownFormat(t)||pe.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&pe.isTimeDimension(e,t.qHyperCube.qDimensionInfo[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous:e=>!(!(e&&e.qHyperCube&&e.qHyperCube.qDimensionInfo)||e.qHyperCube.qDimensionInfo.length<1)&&pe.canBeContinuousDimension(e.qHyperCube.qDimensionInfo[0]),maxNumberOfLines:12},me=(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},fe=(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])},he=e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},ge=e=>me(e,"qHyperCube.qDimensionInfo",[]),ve=e=>me(e,"qHyperCube.qMeasureInfo",[]),ye=e=>me(e,"barGrouping.grouping"),be={continuous:(e,t=!1)=>!!pe.canBeContinuous(e)&&(me(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!ge(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===ye(e)&&(ge(e).length>1||ve(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&ge(e).length>1&&1===ve(e).length},groupedByMeasure(e){return this.grouped(e)&&1===ge(e).length&&ve(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==ye(e)||this.continuous(e))&&(ge(e).length>1||ve(e).length>1)},stackedByDimension(e){return this.stacked(e)&&ge(e).length>1&&1===ve(e).length},stackedByMeasure(e){return this.stacked(e)&&1===ge(e).length&&ve(e).length>1},simple:e=>0===ge(e).length||1===ge(e).length&&1===ve(e).length,snapshot:e=>!!me(e,"snapshotData")};function xe(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Se=e=>{throw e.isHandled=!0,e};const we={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":return"far";case"far":return"near";default:return"far"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?we.getVerticalDock(t):n?we.getOppositeDock(we.getHorizontalDock(t)):we.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment(e,t){switch(e){case"vertical":return"near"===t||"bottom"===t?1:0;default:return"near"===t||"left"===t?0:1}},getMeasureScaleInvert:(e,t)=>"vertical"===e||t,getDimensionScaleInvert:(e,t)=>"horizontal"===e&&t,getSize:(e,{width:t,height:n})=>"vertical"===e?t:n};var Ce=(e,t)=>{if("function"==typeof t.defaultValue)return t.defaultValue();if(void 0!==t.defaultValue)return t.defaultValue;if(Array.isArray(t.options))return t.options[0].value;switch(e){case"array":return[];case"string":return"";case"integer":case"number":return 0;case"boolean":return!1;default:return null}};const Me={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=Me.getCharacterRatios(e[n]),r.latin+=o.latin,r.cjk+=o.cjk})):e.forEach((e=>{o=Me.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=Me.getTotalCharacterRatios(t,n,r),i=o.latinRatio*e,a=o.cjkRatio*e;return Math.ceil(Me.stringWidthOverMWidth(i)+1.0909090909090908*a)}},ke="#la-vie-tooltip";function Ee(){if(!document.querySelector(ke)){const e=document.createElement("div");e.id="la-vie-tooltip",e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function Te({key:e="tooltip",rtl:t}){return{show:!0,key:e,type:"tooltip",layout:{displayOrder:3},beforeMount(){Ee()},beforeUpdate(){Ee()},destroyed(){!function(){const e=document.querySelector(ke);e&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)}()},settings:{appendTo:()=>document.querySelector(ke),content:({h:e,data:t,style:n})=>t[0].map((t=>e("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{...n.cell||{},...e.style||{}},class:e.class};return e.colspan&&(r.colspan=e.colspan),t("td",r,e.content)}))}(t,{h:e,style:n})))),direction:t?"rtl":"ltr"},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',"empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}const Ne=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Le=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),De=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),qe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Ne.test(e),isRtlChar:e=>Le.test(e)||De.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],qe.isLtrChar(r))return"ltr";if(qe.isRtlChar(r))return"rtl"}return"ltr"}},Oe={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?Oe.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=qe.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=qe.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:qe.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=qe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=qe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Oe.getColorSymbol(e,t)]:[Oe.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=qe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=qe.detectTextDirection(e.value);let l;return l=o?r?[e.value,Oe.getColorSymbol(t,n)]:[Oe.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 Re(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ae(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Pe(){}var Ie=.7,ze=1/Ie,Be="\\s*([+-]?\\d+)\\s*",Fe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",He="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",je=/^#([0-9a-f]{3,8})$/,We=new RegExp("^rgb\\("+[Be,Be,Be]+"\\)$"),Ve=new RegExp("^rgb\\("+[He,He,He]+"\\)$"),Ue=new RegExp("^rgba\\("+[Be,Be,Be,Fe]+"\\)$"),_e=new RegExp("^rgba\\("+[He,He,He,Fe]+"\\)$"),$e=new RegExp("^hsl\\("+[Fe,He,He]+"\\)$"),Ke=new RegExp("^hsla\\("+[Fe,He,He,Fe]+"\\)$"),Ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ye(){return this.rgb().formatHex()}function Xe(){return this.rgb().formatRgb()}function Je(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=je.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ze(t):3===n?new tt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Qe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Qe(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=We.exec(e))?new tt(t[1],t[2],t[3],1):(t=Ve.exec(e))?new tt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ue.exec(e))?Qe(t[1],t[2],t[3],t[4]):(t=_e.exec(e))?Qe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$e.exec(e))?it(t[1],t[2]/100,t[3]/100,1):(t=Ke.exec(e))?it(t[1],t[2]/100,t[3]/100,t[4]):Ge.hasOwnProperty(e)?Ze(Ge[e]):"transparent"===e?new tt(NaN,NaN,NaN,0):null}function Ze(e){return new tt(e>>16&255,e>>8&255,255&e,1)}function Qe(e,t,n,r){return r<=0&&(e=t=n=NaN),new tt(e,t,n,r)}function et(e){return e instanceof Pe||(e=Je(e)),e?new tt((e=e.rgb()).r,e.g,e.b,e.opacity):new tt}function tt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function nt(){return"#"+ot(this.r)+ot(this.g)+ot(this.b)}function rt(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function ot(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function it(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new st(e,t,n,r)}function at(e){if(e instanceof st)return new st(e.h,e.s,e.l,e.opacity);if(e instanceof Pe||(e=Je(e)),!e)return new st;if(e instanceof st)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 st(a,s,l,e.opacity)}function st(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function lt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Re(Pe,Je,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ye,formatHex:Ye,formatHsl:function(){return at(this).formatHsl()},formatRgb:Xe,toString:Xe}),Re(tt,(function(e,t,n,r){return 1===arguments.length?et(e):new tt(e,t,n,null==r?1:r)}),Ae(Pe,{brighter:function(e){return e=null==e?ze:Math.pow(ze,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Ie:Math.pow(Ie,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:nt,formatHex:nt,formatRgb:rt,toString:rt})),Re(st,(function(e,t,n,r){return 1===arguments.length?at(e):new st(e,t,n,null==r?1:r)}),Ae(Pe,{brighter:function(e){return e=null==e?ze:Math.pow(ze,e),new st(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Ie:Math.pow(Ie,e),new st(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 tt(lt(e>=240?e-240:e+120,o,r),lt(e,o,r),lt(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var ct=Math.PI/180,ut=180/Math.PI,dt=.96422,pt=.82521,mt=4/29,ft=6/29,ht=3*ft*ft;function gt(e){if(e instanceof vt)return new vt(e.l,e.a,e.b,e.opacity);if(e instanceof Mt)return kt(e);e instanceof tt||(e=et(e));var t,n,r=St(e.r),o=St(e.g),i=St(e.b),a=yt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=yt((.4360747*r+.3850649*o+.1430804*i)/dt),n=yt((.0139322*r+.0971045*o+.7141733*i)/pt)),new vt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function vt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function yt(e){return e>.008856451679035631?Math.pow(e,1/3):e/ht+mt}function bt(e){return e>ft?e*e*e:ht*(e-mt)}function xt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function St(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function wt(e){if(e instanceof Mt)return new Mt(e.h,e.c,e.l,e.opacity);if(e instanceof vt||(e=gt(e)),0===e.a&&0===e.b)return new Mt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ut;return new Mt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Ct(e,t,n,r){return 1===arguments.length?wt(e):new Mt(e,t,n,null==r?1:r)}function Mt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function kt(e){if(isNaN(e.h))return new vt(e.l,0,0,e.opacity);var t=e.h*ct;return new vt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Re(vt,(function(e,t,n,r){return 1===arguments.length?gt(e):new vt(e,t,n,null==r?1:r)}),Ae(Pe,{brighter:function(e){return new vt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new vt(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 tt(xt(3.1338561*(t=dt*bt(t))-1.6168667*(e=1*bt(e))-.4906146*(n=pt*bt(n))),xt(-.9787684*t+1.9161415*e+.033454*n),xt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Re(Mt,Ct,Ae(Pe,{brighter:function(e){return new Mt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Mt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return kt(this).rgb()}}));var Et=-.14861,Tt=1.78277,Nt=-.29227,Lt=-.90649,Dt=1.97294,qt=Dt*Lt,Ot=Dt*Tt,Rt=Tt*Nt-Lt*Et;function At(e){if(e instanceof Pt)return new Pt(e.h,e.s,e.l,e.opacity);e instanceof tt||(e=et(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Rt*r+qt*t-Ot*n)/-5.9615122912,i=r-o,a=(Dt*(n-o)-Nt*i)/Lt,s=Math.sqrt(a*a+i*i)/(Dt*o*(1-o)),l=s?Math.atan2(a,i)*ut-120:NaN;return new Pt(l<0?l+360:l,s,o,e.opacity)}function Pt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Re(Pt,(function(e,t,n,r){return 1===arguments.length?At(e):new Pt(e,t,n,null==r?1:r)}),Ae(Pe,{brighter:function(e){return e=null==e?ze:Math.pow(ze,e),new Pt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Ie:Math.pow(Ie,e),new Pt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*ct,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new tt(255*(t+n*(Et*r+Tt*o)),255*(t+n*(Nt*r+Lt*o)),255*(t+n*(Dt*r)),this.opacity)}}));var It={isDark:function(e){return Ct(e).l<70}};function zt(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Bt(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 Bt(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 Ht=Ft(Bt).right,jt=Math.sqrt(50),Wt=Math.sqrt(10),Vt=Math.sqrt(2);function Ut(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=jt?10:i>=Wt?5:i>=Vt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=jt?10:i>=Wt?5:i>=Vt?2:1)}function _t(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=jt?o*=10:i>=Wt?o*=5:i>=Vt&&(o*=2),t<e?-o:o}function $t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var 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})$/,pn=new RegExp("^rgb\\("+[sn,sn,sn]+"\\)$"),mn=new RegExp("^rgb\\("+[cn,cn,cn]+"\\)$"),fn=new RegExp("^rgba\\("+[sn,sn,sn,ln]+"\\)$"),hn=new RegExp("^rgba\\("+[cn,cn,cn,ln]+"\\)$"),gn=new RegExp("^hsl\\("+[ln,cn,cn]+"\\)$"),vn=new RegExp("^hsla\\("+[ln,cn,cn,ln]+"\\)$"),yn={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 Mn((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=pn.exec(e))?new Mn(t[1],t[2],t[3],1):(t=mn.exec(e))?new Mn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fn.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))?En(t[1],t[2]/100,t[3]/100,1):(t=vn.exec(e))?En(t[1],t[2]/100,t[3]/100,t[4]):yn.hasOwnProperty(e)?xn(yn[e]):"transparent"===e?new Mn(NaN,NaN,NaN,0):null}function xn(e){return new Mn(e>>16&255,e>>8&255,255&e,1)}function Sn(e,t,n,r){return r<=0&&(e=t=n=NaN),new Mn(e,t,n,r)}function wn(e){return e instanceof rn||(e=bn(e)),e?new Mn((e=e.rgb()).r,e.g,e.b,e.opacity):new Mn}function Cn(e,t,n,r){return 1===arguments.length?wn(e):new Mn(e,t,n,null==r?1:r)}function Mn(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 En(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Nn(e,t,n,r)}function Tn(e){if(e instanceof Nn)return new Nn(e.h,e.s,e.l,e.opacity);if(e instanceof rn||(e=bn(e)),!e)return new Nn;if(e instanceof Nn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Nn(a,s,l,e.opacity)}function Nn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ln(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(Mn,Cn,nn(rn,{brighter:function(e){return e=null==e?an:Math.pow(an,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?on:Math.pow(on,e),new Mn(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(Nn,(function(e,t,n,r){return 1===arguments.length?Tn(e):new Nn(e,t,n,null==r?1:r)}),nn(rn,{brighter:function(e){return e=null==e?an:Math.pow(an,e),new Nn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?on:Math.pow(on,e),new Nn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Mn(Ln(e>=240?e-240:e+120,o,r),Ln(e,o,r),Ln(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 Dn=Math.PI/180,qn=180/Math.PI,On=.96422,Rn=.82521,An=4/29,Pn=6/29,In=3*Pn*Pn;function zn(e){if(e instanceof Bn)return new Bn(e.l,e.a,e.b,e.opacity);if(e instanceof Un){if(isNaN(e.h))return new Bn(e.l,0,0,e.opacity);var t=e.h*Dn;return new Bn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Mn||(e=wn(e));var n,r,o=Wn(e.r),i=Wn(e.g),a=Wn(e.b),s=Fn((.2225045*o+.7168786*i+.0606169*a)/1);return o===i&&i===a?n=r=s:(n=Fn((.4360747*o+.3850649*i+.1430804*a)/On),r=Fn((.0139322*o+.0971045*i+.7141733*a)/Rn)),new Bn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function Bn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Fn(e){return e>.008856451679035631?Math.pow(e,1/3):e/In+An}function Hn(e){return e>Pn?e*e*e:In*(e-An)}function jn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Wn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Vn(e){if(e instanceof Un)return new Un(e.h,e.c,e.l,e.opacity);if(e instanceof Bn||(e=zn(e)),0===e.a&&0===e.b)return new Un(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*qn;return new Un(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Un(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}tn(Bn,(function(e,t,n,r){return 1===arguments.length?zn(e):new Bn(e,t,n,null==r?1:r)}),nn(rn,{brighter:function(e){return new Bn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Bn(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 Mn(jn(3.1338561*(t=On*Hn(t))-1.6168667*(e=1*Hn(e))-.4906146*(n=Rn*Hn(n))),jn(-.9787684*t+1.9161415*e+.033454*n),jn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),tn(Un,(function(e,t,n,r){return 1===arguments.length?Vn(e):new Un(e,t,n,null==r?1:r)}),nn(rn,{brighter:function(e){return new Un(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Un(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return zn(this).rgb()}}));var _n=-.14861,$n=1.78277,Kn=-.29227,Gn=-.90649,Yn=1.97294,Xn=Yn*Gn,Jn=Yn*$n,Zn=$n*Kn-Gn*_n;function Qn(e){if(e instanceof tr)return new tr(e.h,e.s,e.l,e.opacity);e instanceof Mn||(e=wn(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)*qn-120:NaN;return new tr(l<0?l+360:l,s,o,e.opacity)}function er(e,t,n,r){return 1===arguments.length?Qn(e):new tr(e,t,n,null==r?1:r)}function tr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function nr(e){return function(){return e}}function rr(e,t){return function(n){return e+n*t}}function or(e){return 1==(e=+e)?ir: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):nr(isNaN(t)?n:t)}}function ir(e,t){var n=t-e;return n?rr(e,n):nr(isNaN(e)?t:e)}tn(tr,er,nn(rn,{brighter:function(e){return e=null==e?an:Math.pow(an,e),new tr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?on:Math.pow(on,e),new tr(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Dn,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new Mn(255*(t+n*(_n*r+$n*o)),255*(t+n*(Kn*r+Gn*o)),255*(t+n*(Yn*r)),this.opacity)}}));var ar=function e(t){var n=or(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=ir(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 sr(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]=fr(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 lr(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function cr(e,t){return t-=e=+e,function(n){return e+t*n}}function ur(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]=fr(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var dr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pr=new RegExp(dr.source,"g");function mr(e,t){var n,r,o,i=dr.lastIndex=pr.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=dr.exec(e))&&(r=pr.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:cr(n,r)})),i=pr.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 fr(e,t){var n,r=typeof t;return null==t||"boolean"===r?nr(t):("number"===r?cr:"string"===r?(n=bn(t))?(t=n,ar):mr:t instanceof bn?ar:t instanceof Date?lr:Array.isArray(t)?sr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?ur:cr)(e,t)}function hr(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function gr(e){return function t(n){function r(t,r){var o=e((t=er(t)).h,(r=er(r)).h),i=ir(t.s,r.s),a=ir(t.l,r.l),s=ir(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 vr(e){return+e}gr((function(e,t){var n=t-e;return n?rr(e,n>180||n<-180?n-360*Math.round(n/360):n):nr(isNaN(e)?t:e)})),gr(ir);var yr=[0,1];function br(e){return e}function xr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Sr(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 wr(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=xr(o,r),i=n(a,i)):(r=xr(r,o),i=n(i,a)),function(e){return i(r(e))}}function Cr(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]=xr(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Ht(e,t,1,r)-1;return i[n](o[n](t))}}function Mr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function kr(e,t){return function(){var e,t,n,r,o,i,a=yr,s=yr,l=fr,c=br;function u(){return r=Math.min(a.length,s.length)>2?Cr:wr,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),cr)))(n)))},d.domain=function(e){return arguments.length?(a=Qt.call(e,vr),c===br||(c=Sr(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=hr,u()},d.clamp=function(e){return arguments.length?(c=e?Sr(a):br,d):c!==br},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function Er(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Tr(e){return(e=Er(Math.abs(e)))?e[1]:NaN}var Nr,Lr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Dr(e){return new qr(e)}function qr(e){if(!(t=Lr.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=Er(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Dr.prototype=qr.prototype,qr.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 Rr={"%":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=Er(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Nr=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Er(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Ar(e){return e}var Pr,Ir,zr,Br=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Fr(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=Dr(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,p=e.comma,m=e.precision,f=e.trim,h=e.type;"n"===h?(p=!0,h="g"):Rr[h]||(null==m&&(m=12),f=!0,h="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?o[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",v="$"===c?o[1]:/[%p]/.test(h)?s:"",y=Rr[h],b=/[defgprs%]/.test(h);function x(e){var o,s,c,x=g,S=v;if("c"===h)S=y(e)+S,e="";else{var w=(e=+e)<0;if(e=y(Math.abs(e),m),f&&(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)),w&&0==+e&&(w=!1),x=(w?"("===l?l:"-":"-"===l||"("===l?"":l)+x,S=("s"===h?Br[8+Nr/3]:"")+S+(w&&"("===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}}p&&!u&&(e=r(e,1/0));var C=x.length+e.length+S.length,M=C<d?new Array(d-C+1).join(t):"";switch(p&&u&&(e=r(M+e,M.length?d-S.length:1/0),M=""),n){case"<":e=x+e+S+M;break;case"=":e=x+M+e+S;break;case"^":e=M.slice(0,C=M.length>>1)+x+e+S+M.slice(C);break;default:e=M+x+e+S}return a(e)}return m=null==m?6:/[gprs]/.test(h)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Dr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Tr(t)/3))),o=Math.pow(10,-r),i=Br[8+r/3];return function(e){return n(o*e)+i}}}}function Hr(e,t,n,r){var o,i=_t(e,t,n);switch((r=Dr(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),zr(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 Ir(r)}function jr(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=Ut(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++s<o;)i[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),i=new Array(o=Math.ceil(e-t+1));++s<o;)i[s]=(e-s)/a;return r&&i.reverse(),i}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Hr(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],l=o[a];return l<s&&(r=s,s=l,l=r,r=i,i=a,a=r),(r=Ut(s,l,n))>0?r=Ut(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Ut(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 Wr(){var e=kr(br,br);return e.copy=function(){return Mr(e,Wr())},$t.apply(e,arguments),jr(e)}Pr=Fr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Ir=Pr.format,zr=Pr.formatPrefix;var Vr=new Date,Ur=new Date;function _r(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 _r((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Vr.setTime(+t),Ur.setTime(+r),e(Vr),e(Ur),Math.floor(n(Vr,Ur))},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 $r=_r((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));$r.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?_r((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):$r:null},$r.range;var Kr=1e3,Gr=6e4,Yr=36e5,Xr=864e5,Jr=6048e5,Zr=_r((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.getUTCSeconds()}));Zr.range,_r((function(e){e.setTime(Math.floor(e/Gr)*Gr)}),(function(e,t){e.setTime(+e+t*Gr)}),(function(e,t){return(t-e)/Gr}),(function(e){return e.getMinutes()})).range,_r((function(e){var t=e.getTimezoneOffset()*Gr%Yr;t<0&&(t+=Yr),e.setTime(Math.floor((+e-t)/Yr)*Yr+t)}),(function(e,t){e.setTime(+e+t*Yr)}),(function(e,t){return(t-e)/Yr}),(function(e){return e.getHours()})).range;var Qr=_r((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())*Gr)/Xr}),(function(e){return e.getDate()-1}));function eo(e){return _r((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())*Gr)/Jr}))}Qr.range;var to=eo(0),no=eo(1),ro=eo(2),oo=eo(3),io=eo(4),ao=eo(5),so=eo(6);to.range,no.range,ro.range,oo.range,io.range,ao.range,so.range,_r((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var lo=_r((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()}));lo.every=function(e){return isFinite(e=Math.floor(e))&&e>0?_r((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},lo.range;var co=_r((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Gr)}),(function(e,t){return(t-e)/Gr}),(function(e){return e.getUTCMinutes()}));co.range;var uo=_r((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Yr)}),(function(e,t){return(t-e)/Yr}),(function(e){return e.getUTCHours()}));uo.range;var po=_r((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Xr}),(function(e){return e.getUTCDate()-1}));function mo(e){return _r((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)/Jr}))}po.range;var fo=mo(0),ho=mo(1),go=mo(2),vo=mo(3),yo=mo(4),bo=mo(5),xo=mo(6);fo.range,ho.range,go.range,vo.range,yo.range,bo.range,xo.range;var So=_r((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()}));So.range;var wo=_r((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 Co(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 Mo(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 ko(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?_r((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,To,No,Lo={"-":"",_:" ",0:"0"},Do=/^\s*\d+/,qo=/^%/,Oo=/[\\^$*+?|[\]().{}]/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 Ao(e){return e.replace(Oo,"\\$&")}function Po(e){return new RegExp("^(?:"+e.map(Ao).join("|")+")","i")}function Io(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function zo(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 Fo(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 jo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Wo(e,t,n){var r=Do.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Vo(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 _o(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 $o(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ko(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 Go(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Yo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Xo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Jo(e,t,n){var r=Do.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Zo(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 Qo(e,t,n){var r=qo.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ei(e,t,n){var r=Do.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ti(e,t,n){var r=Do.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function ni(e,t){return Ro(e.getDate(),t,2)}function ri(e,t){return Ro(e.getHours(),t,2)}function oi(e,t){return Ro(e.getHours()%12||12,t,2)}function ii(e,t){return Ro(1+Qr.count(lo(e),e),t,3)}function ai(e,t){return Ro(e.getMilliseconds(),t,3)}function si(e,t){return ai(e,t)+"000"}function li(e,t){return Ro(e.getMonth()+1,t,2)}function ci(e,t){return Ro(e.getMinutes(),t,2)}function ui(e,t){return Ro(e.getSeconds(),t,2)}function di(e){var t=e.getDay();return 0===t?7:t}function pi(e,t){return Ro(to.count(lo(e),e),t,2)}function mi(e,t){var n=e.getDay();return e=n>=4||0===n?io(e):io.ceil(e),Ro(io.count(lo(e),e)+(4===lo(e).getDay()),t,2)}function fi(e){return e.getDay()}function hi(e,t){return Ro(no.count(lo(e),e),t,2)}function gi(e,t){return Ro(e.getFullYear()%100,t,2)}function vi(e,t){return Ro(e.getFullYear()%1e4,t,4)}function yi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ro(t/60|0,"0",2)+Ro(t%60,"0",2)}function bi(e,t){return Ro(e.getUTCDate(),t,2)}function xi(e,t){return Ro(e.getUTCHours(),t,2)}function Si(e,t){return Ro(e.getUTCHours()%12||12,t,2)}function wi(e,t){return Ro(1+po.count(wo(e),e),t,3)}function Ci(e,t){return Ro(e.getUTCMilliseconds(),t,3)}function Mi(e,t){return Ci(e,t)+"000"}function ki(e,t){return Ro(e.getUTCMonth()+1,t,2)}function Ei(e,t){return Ro(e.getUTCMinutes(),t,2)}function Ti(e,t){return Ro(e.getUTCSeconds(),t,2)}function Ni(e){var t=e.getUTCDay();return 0===t?7:t}function Li(e,t){return Ro(fo.count(wo(e),e),t,2)}function Di(e,t){var n=e.getUTCDay();return e=n>=4||0===n?yo(e):yo.ceil(e),Ro(yo.count(wo(e),e)+(4===wo(e).getUTCDay()),t,2)}function qi(e){return e.getUTCDay()}function Oi(e,t){return Ro(ho.count(wo(e),e),t,2)}function Ri(e,t){return Ro(e.getUTCFullYear()%100,t,2)}function Ai(e,t){return Ro(e.getUTCFullYear()%1e4,t,4)}function Pi(){return"+0000"}function Ii(){return"%"}function zi(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=Po(o),u=Io(o),d=Po(i),p=Io(i),m=Po(a),f=Io(a),h=Po(s),g=Io(s),v=Po(l),y=Io(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:ni,e:ni,f:si,H:ri,I:oi,j:ii,L:ai,m:li,M:ci,p:function(e){return o[+(e.getHours()>=12)]},Q:zi,s:Bi,S:ui,u:di,U:pi,V:mi,w:fi,W:hi,x:null,X:null,y:gi,Y:vi,Z:yi,"%":Ii},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:bi,e:bi,f:Mi,H:xi,I:Si,j:wi,L:Ci,m:ki,M:Ei,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:zi,s:Bi,S:Ti,u:Ni,U:Li,V:Di,w:qi,W:Oi,x:null,X:null,y:Ri,Y:Ai,Z:Pi,"%":Ii},S={a:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return M(e,t,n,r)},d:$o,e:$o,f:Zo,H:Go,I:Go,j:Ko,L:Jo,m:_o,M:Yo,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:ei,s:ti,S:Xo,u:Bo,U:Fo,V:Ho,w:zo,W:jo,x:function(e,t,r){return M(e,n,t,r)},X:function(e,t,n){return M(e,r,t,n)},y:Vo,Y:Wo,Z:Uo,"%":Qo};function w(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=Lo[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=ko(1900);if(M(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=Mo(ko(i.y))).getUTCDay(),r=o>4||0===o?ho.ceil(r):ho(r),r=po.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(ko(i.y))).getDay(),r=o>4||0===o?no.ceil(r):no(r),r=Qr.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?Mo(ko(i.y)).getUTCDay():t(ko(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,Mo(i)):t(i)}}function M(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 Lo?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=w(n,b),b.X=w(r,b),b.c=w(t,b),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",Co);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,Mo);return t.toString=function(){return e},t}}}(e)).format,Eo.parse,To=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 Fi="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||To(Fi),+new Date("2000-01-01T00:00:00.000Z")||No(Fi);var Hi=1e3,ji=6e4,Wi=36e5,Vi=864e5,Ui=2592e6,_i=31536e6;function $i(e){return new Date(e)}function Ki(e){return e instanceof Date?+e:+new Date(+e)}function Gi(e,t,n,r,o,i,a,s,l){var c=kr(br,br),u=c.invert,d=c.domain,p=l(".%L"),m=l(":%S"),f=l("%I:%M"),h=l("%I %p"),g=l("%a %d"),v=l("%b %d"),y=l("%B"),b=l("%Y"),x=[[a,1,Hi],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,ji],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Wi],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Vi],[r,2,1728e5],[n,1,6048e5],[t,1,Ui],[t,3,7776e6],[e,1,_i]];function S(s){return(a(s)<s?p:i(s)<s?m:o(s)<s?f:r(s)<s?h:t(s)<s?n(s)<s?g:v:e(s)<s?y:b)(s)}function w(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=_t(n/_i,r/_i,t),t=e):a?(o=(a=x[i/x[a-1][2]<x[a][2]/i?a-1:a])[1],t=a[0]):(o=Math.max(_t(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,Ki)):d().map($i)},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=w(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=w(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 Mr(c,Gi(e,t,n,r,o,i,a,s,l))},c}const Yi={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"}}},Xi=e=>e+" 12px -12px inset rgba(0, 0, 0, 0.0625)";var Ji={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=Yi[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Xi(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Xi(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 Zi({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 Qi;function ea(){Qi=Qi||document.createElement("canvas").getContext("2d")}const ta={measureTextWidth(e){ea();const{width:t}=Qi.measureText(e);return t},lineWrap(e,t,n,r){let o,i;ea();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,p=e?e.split(/\s+/):[],m=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(Qi.font=n),i=0;i<a.length;i++){for(d=a[i]||"",p=d.split(/\s+/),[m]=p,u="",o=1;o<p.length;o++)if(l=`${m} ${p[o]}`,c=ta.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(m),m=p[o]):m=l,"number"==typeof r&&s.length>=r){u=p.slice(o+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(m):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${m} ${u}`}return s},wordWrap(e,t,n,r,o){if(ea(),!e||!e.length)return[];n&&(Qi.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||ta.measureTextWidth(c)<=t?i.push(c):(s=ta.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]?ta.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]=ta.truncate(i[i.length-1],t,n,o).text):(c=i[i.length-1],c&&c.length>1&&ta.measureTextWidth(c)>t&&(i[i.length-1]=ta.truncate(c,t,n,o).text)),i},truncate(e,t,n,r="…"){ea();let o,i,a,s,l=e;const c=ta.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Qi.font=n),e&&t){if(ta.measureTextWidth(l)>t){for(o=Math.min(u,l.length);o>0;o--)if(i=l.substring(0,o-1),a=i.trim()+r,ta.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;ea();let i,a=e,s="",l=[];if(ta.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),!(ta.measureTextWidth(a)<=t));o--);return(!o&&!a||ta.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(ta.measureTextWidth(s)>t?(s=ta.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(ea(),e&&t?(n&&(Qi.font=n),ta.explodeWord(e,t,r,Math.max(1,ta.measureTextWidth("i")))):[]),wrapText(e,t,n,r,o){let i;return Number.isNaN(t)?[e]:(i=r>1?ta.lineWrap(e,t,n,r):[e],i=ta.wordWrap(i,t,n,r,o),i)},getFontHeight:e=>(ea(),e&&(Qi.font=e),1.5*ta.measureTextWidth("m")),tokenize(e,t,n,r,o,i,a=1){ea(),t&&(Qi.font=t);const s=ta.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(i<s)return[];const p=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?p-u:e)}))):c=[Number.isNaN(r)||r<=0?p:Math.min(p,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<p&&(d=d.concat(ta.wrapText(e,o,t,c[n])))})):d=ta.wrapText(e,o,t,c[0],n),d}},na={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(ne({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},ra=ne.bind(null,!0),oa={},{isArray:ia}=Array;function aa(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function sa(e){return void 0===e}function la(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function ca(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]=sa(e[r||t])?i:e[t],e=e[r||t]})),e}function ua(e,t){let n=!0;if(aa(e)&&aa(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{ua(e[r],t[r])||(n=!1)})),n);if(ia(e)&&ia(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!ua(e[n],t[n]))return!1;return!0}return e===t}oa.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?ra({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;ua(i,a)||la(t,o)||(sa(a)?r.push({op:"add",path:s,value:i}):aa(i)&&aa(a)?r=r.concat(oa.generate(a,i,s)):ia(i)&&ia(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]&&sa(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(ua(t,o))return r;if(!sa(t[0])&&sa(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(oa.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=>{sa(t[o])&&!la(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},oa.apply=function(e,t){t.forEach((t=>{let n=ca(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(ia(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(ia(o)&&ia(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(aa(o)&&aa(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!la(a,e)&&delete a[e]})),ra(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=ca(e,t.from);ia(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(ia(n)?n.splice(+r,1):delete n[r]);var a}))},oa.clone=function(e){return ra({},e)},oa.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},oa.updateObject=function(e,t){Object.keys(e).length?oa.apply(e,oa.generate(e,t)):ra(e,t)};const da=Math.log(10);function pa(e){return 10**e}const ma={pow10:pa,log:(e,t)=>e<=0||t<=0?NaN:Math.log(e)/Math.log(t),log10:e=>e<=0?NaN:Math.log(e)/da,eliminateFloatingError(e){const t=Math.round(e);return Math.abs(e-t)<1e-12?t:e},getNiceNumber(e){let t;if(0===e)return 0;const n=Math.floor(Math.log(Math.abs(e))/da),r=e/pa(n);return t=r<=1?1:r<=2?2:r<=5?5:10,t*pa(n)*(e<0?-1:1)},getSmallNiceNumber(e){let t,n;if(0===e)return 0;t=Math.floor(Math.log(Math.abs(e))/da);const r=e/pa(t);return r<1?(n=5,t--):n=r<2?1:r<5?2:5,n*pa(t)*(e<0?-1:1)},getMagnitude(e){if(0===e)return 0;return pa(Math.floor(Math.log(Math.abs(e))/da))},getFraction(e){if(0===e)return 0;return e/pa(Math.floor(Math.log(Math.abs(e))/da))},getGoodNumber(e){let t;if(0===e)return 0;const n=Math.floor(Math.log(Math.abs(e))/da),r=e/pa(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*pa(n)*(e<0?-1:1)},getValueWithOffset:(e,t=0)=>e+Math.abs(e)*t,isNumber:e=>"number"==typeof e&&!Number.isNaN(e)},fa=[[2,4,6],[2,4],[3]],ha=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function ga(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function va(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)ga(e[r],t,n)}!function(){let e,t;for(va(fa,1,10),e=0;e<ha.length;e++)if(ha[e])for(t=0;t<ha[e].length;t++)Array.isArray(ha[e][t])&&va(ha[e][t])}();const ya={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=ya.findSegmentPositionMeetMin(e,t);return ya.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=ya.findSegmentPositionMeetMax(e,n);return ya.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=ya.findSegmentPositionMeetMaxThenMin(i,s,(i.center+a.center-r)/2),s=i.position+i.radius+r/2;a.position=ya.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,ya.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)ya.layoutPositionFromMin(e,t,n,r),ya.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=ya.findSegmentPositionMeetMaxThenMin(r,t,n)}}},ba=(e,t,n,r=1)=>{const o=e.bandwidth();return n?"start"===t?o:"end"===t?o*(1-r):o*(2-r)/2:"start"===t?0:"end"===t?o*r:o*r/2},xa=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,Sa=e=>e.filter(xa),wa=(e,t)=>Sa(me(e,t,[])),Ca=e=>xa(e)&&(!1!==e.showValue||!1!==e.showLabel),Ma=e=>e.filter(Ca),ka=(e,t)=>Ma(me(e,t,[])),Ea=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,Ta=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},Na=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},La=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+o},Da=({value:e,qMin:t})=>"NaN"!==t&&e<t,qa=({value:e,qMax:t})=>"NaN"!==t&&e>t,Oa={isRefLineVisible:xa,getVisibleRefLines:Sa,getRefLines:wa,getMeasureRefLines:e=>wa(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:wa(e,"refLine.dimRefLines"),isRefLineLabelVisible:Ca,getVisibleRefLineLabels:Ma,getRefLineLabels:ka,getMeasureRefLineLabels:e=>ka(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:ka(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:o,invert:i=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=ba(s,o,i,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=ba(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=ba(s,o,i),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:o}=r.meta,i={},a=me(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():me(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=me(l,s?"qData.0.qSubNodes":"qMatrix",[]),u=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),d=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<c.length;e++){const t=c[e],n=e+d,r=t[u];i[r]||(i[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n})}})():o?(()=>{let e;for(let t=0;t<c.length;t++){const n=c[t][0],r=c[t][1],o=t+d,a=n[u];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}]},0===t?0===o&&(i[a].isMinOrderOk=!0):a!==e&&(i[a].isMinOrderOk=!0,i[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<c.length;e++){const t=c[e][0],n=e+d,r=t[u];i[r]||(i[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n})}})(),i},getInputValue:Ea,extractInfoFromInputValue:Ta,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Ea({refLineLayout:e,layoutService:n});return Ta(r,t,"id")},isDiscreteMinOutOfBounds:Na,isDiscreteMaxOutOfBounds:La,isContinuousMinOutOfBounds:Da,isContinuousMaxOutOfBounds:qa,isOutOfRange:({value:e,qMin:t,qMax:n})=>Da({value:e,qMin:t})||qa({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&La({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&Na({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n};function Ra(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r];o.lines=ta.tokenize(o.title,t,"… "+o.valueString,3,n),o.maxNumLines=o.lines.length}}function Aa({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=ta.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 Pa({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=e.map((e=>Aa({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 Ia(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const za=3,Ba=2;function Fa({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 Ha=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(Oa.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(Oa.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return Oa.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:Oa.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},ja={hasEngineFormat:Fa,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:o,rtl:i,isContinuous:a,isDimension:s}){const l=Oa.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 p,m;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");p=e.qMin,m=e.qMax}for(let o=0;o<e.length;o++){const i=e[o],{value:s,align:c,valueInfo:d}=i,f=Ha({label:i,dataPages:u,qMin:p,qMax:m});i.scaledValue=1===f?l?-.1:1.1:-1===f?l?1.1:-.1:Oa.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=Fa({inputValue:s,inputValueLabel:l,localeInfo:o})?l:t?t(a):a,r.valueString=`${qe.lrm}(${i})${qe.lrm}`,r.title=ja.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=Fa({inputValue:a,inputValueLabel:s,localeInfo:o})?s:r,n.valueString=`${qe.lrm}(${i})${qe.lrm}`,n.title=ja.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];i=n.valueText,n.valueString=`${qe.lrm}(${i})${qe.lrm}`,n.title=ja.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title).width}},measureLabelMaxLineWidth:(e,t)=>Math.max(...e.lines.map((e=>t(e).width))),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=ja.getTotalNumLines(e)-r;if(t<=0)return;ja.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,ja.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,font:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:p,layoutService:m,isContinuous:f,isDimension:h}){const g=e.map((e=>e)),v=n;ja.calculateLabelPositions({labels:e,scale:t,size:v,layoutService:m,orientation:u,rtl:p,isContinuous:f,isDimension:h}),Ia(e,"center"),ja.addLabelsNeighborInfo(e,r,o,i),Ra(e,a,s),ja.reduceTotalMaxNumLines(g,l,o-(g.length-1)*i),"vertical"===u&&(ja.reduceMaxNumLines(e,l,.05*i),function(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r];o.lines.length>o.maxNumLines&&(o.lines=ta.tokenize(o.title,t,"… "+o.valueString,o.maxNumLines,n))}}(e,a,s)),ja.addLabelsSize(e,s,l,d),ja.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:o,lineHeight:i=15,font:a}){const{majorAxis:s,minorAxis:l}=r,{minorCenter:c}=o,{fontSize:u,fontFamily:d,background:p}=t;let m=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,o=t.map(((t,o)=>{const p={type:"text",text:t,title:Aa({title:e.title,font:a,ellipsis:"… "+e.valueString}),dx:0,dy:0,maxWidth:n,width:n,fontSize:u,fontFamily:d,fill:e.fill,baseline:"central",anchor:"middle"};return p[l]=c,p[s]=e.segment.position,p.y+=(o-(r-1)/2)*i,p}));e.background&&m.push(function({minorCenter:e,majorAxis:t,minorAxis:n,label:r,lineHeight:o,background:i}){const{lines:a}=r,{borderRadius:s=za,padding:l={}}=i,{top:c=Ba,bottom:u=Ba,left:d=Ba,right:p=Ba}=l,m=a.length,f={type:"rect",rx:s,ry:s,fill:r.background.fill,width:r.width+(d+p),height:r.height+(c+u)};return f[n]=e,f[t]=r.segment.position,f.x-=r.width/2+d,f.y-=m*o/2+c,f}({minorCenter:c,majorAxis:s,minorAxis:l,label:e,lineHeight:i,background:p})),m=m.concat(o)})),m}};function Wa(e,t,n){let r;const o=typeof t;if("string"===o||"object"===o)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function Va(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{font:n,lineHeight:r,top:o,bottom:i,maxLabelWidth:a}=t;let s=1;return ja.getMaxTextWidth(e)>a&&(Ra(e,n,a),s=Math.max(...e.map((e=>e.lines.length)))),s*r+o+i}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:o}=t;return Math.min(o,ja.getMaxTextWidth(e))+n+r}(t,n)}function Ua(e,t){return t?e.domain():[0,1]}function _a(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 $a(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 Ka(e,t){return e>9?t[1]:t[0]}function Ga({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:p,minorAxis:m,minorDimension:f}=s,h=o[f],g=na.createOob({oob:na.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:o.width,rendHeight:o.height,flipXY:d,symbol:i}),v="c"+p,y="c"+m,b={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0};b[y]=h/2,b[v]=a;const x={type:"text",text:u>9?"9+":u,title:Pa({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:h,width:h,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle"};return x[m]=h/2,x[p]=a,[g,b,x]}function Ya(e){const t=`normal ${e.fontSize} '${e.fontFamily}'`;return{font:t,lineHeight:ta.getFontHeight(t)*(e.lineHeightMultiplicator||1),gap:e.gap||12,maxLabelWidth:e.maxWidth||75,top:e.padding.top||0,bottom:e.padding.bottom||0,left:e.padding.left||0,right:e.padding.right||0}}const Xa=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 Ja={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=Xa(this.settings.labels),s=Wa(this.chart,this.settings.formatter,e);ja.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]=Ua(t,n);return _a(e,r,o)}if(r){const t=o.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return _a(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:i,layoutService:n});let d;if(this.measureText=e=>this.renderer.measureText({text:e,fontSize:t.label.fontSize,fontFamily:t.label.fontFamily}),u&&u.length){const e=Ya(t.label),{dock:n}=this.settings.layout;return ja.measureLabelsWidth(u,this.measureText),d=Va(n,u,e),d}const p=$a(this.measureText),m=l?Ka(l,p):0,f=c?Ka(c,p):0;return d=Math.max(m,f),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:o,isContinuous:i,isDimension:a,localeInfo:s}=this.settings,l=!!i||r.meta.canBeContinuous,c=Xa(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:p}=n.label,m=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),f=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,m,p),{orientation:h,majorDimension:g}=m,{majorSize:v}=f,{font:y,lineHeight:b,gap:x,maxLabelWidth:S}=Ya(n.label),w=Wa(this.chart,this.settings.formatter,e),C=v;ja.addLabelTitles({labels:c,formatter:w,isContinuous:i,canBeContinuous:l,localeInfo:s}),ja.calculateLabelPositions({labels:c,scale:e,size:C,layoutService:r,orientation:h,rtl:d,isContinuous:i,isDimension:a});const[M,k]=Ua(e,i),{filteredLabels:E,lowerOobs:T,upperOobs:N,lowerCircleSize:L,upperCircleSize:D,lowerOobSpace:q,upperOobSpace:O}=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:p}=_a(e,t,n,c),m="scaledValue"!==c&&Oa.getInvert({orientation:r,rtl:o,isContinuous:i}),f=function(e,t,n){return n?t:e}(d,u,m),h=function(e,t,n){return n?e:t}(d,u,m),g=f.length,v=h.length,y=$a(l),b=Ka(g,y),x=Ka(v,y);return{filteredLabels:p,lowerOobs:f,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace: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),upperOobSpace:function(e,t,n,r,o){return("vertical"===r?o.bottom:o.right)+(e>0?t+n:0)}(v,a.oob.size,x,r,s)}}({labels:c,minValue:M,maxValue:k,orientation:h,rtl:d,isContinuous:i,style:n,padding:p,measureText:this.measureText,prop:i?"value":"scaledValue"}),R=q,A=v-O;Ia(T),Ia(N);const P=Ga({alignment:0,dockValue:0,oobs:T,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+L/2,areaProps:m,radius:L/2,font:y}),I=Ga({alignment:1,dockValue:1,oobs:N,style:n.oob,rect:this.rect,symbol:t,position:v-(n.oob.size+D/2),areaProps:m,radius:D/2,font:y});ja.addLabelsInfo({labels:E,scale:e,majorSize:v,lowerLimit:R,upperLimit:A,font:y,lineHeight:b,gap:x,maxLabelWidth:S,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:i,isDimension:a}),ya.layout(E.map((e=>e.segment)),R,A,n.label.gap);const z=E.filter((e=>ya.isInside(e.segment,R,A,i)));return ja.createLabels({labels:z,style:n.label,maxLabelWidth:S,areaProps:m,area:f,lineHeight:b,font:y,theme:o}).concat([...P,...I])}};const{getInputValue:Za,extractInfoFromInputValue:Qa,resolveValue:es}=Oa;var ts={resolveValue:es,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Za({refLineLayout:e,layoutService:n});return Qa(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Za({refLineLayout:e,layoutService:n});return Qa(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:o}=n.meta,i=Za({refLineLayout:e,layoutService:n});return r[i]&&o?r[i].qText:i},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Za({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:o}=t;return o[r]}};function ns({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:o,chart:i,scale:a,axis:s,rtl:l,key:c,mainComponentKey:u,path:d,minimumLayoutMode:p}){const m=e?t.dimensionRefLines:d?t.query.getRefLines(d):t.measureRefLines;if(!m.length)return!1;const f={key:c,type:"ref-line",layout:{minimumLayoutMode:p},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}})},h=!(!e||"horizontal"!==o.meta.major.orientation||!l),g=!e||n.meta.isContinuous;return m.forEach((l=>{f.lines[s].push((({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 p,m;const f={dir:l,line:{strokeWidth:(null==t||null===(p=t.style)||void 0===p?void 0:p.lineThickness)||2,strokeDasharray:null==t||null===(m=t.style)||void 0===m?void 0:m.lineType,stroke:o.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(f.scale=s,f.value=t.refLineExpr.value):f.value=()=>{var e;const o=Oa.getScaledPosition({scale:a.scale(s),value:ts.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:ts.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===i.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(o)?void 0:o},f})({isDimension:e,refLineLayout:l,refLineModel:t,layoutService:n,colorModel:r,dockService:o,chart:i,scale:a,axis:s,invert:h,component:u,isContinuous:g}))})),f}const rs={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}};function os({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dock:o,scale:i,style:a,formatter:s,theme:l,localeInfo:c,rtl:u,key:d,path:p}){const m=e?t.dimensionRefLineLabels:p?t.query.getRefLineLabels(p):t.measureRefLineLabels;if(!m.length)return[];const f=[],h=!e||n.meta.isContinuous,g=m.map((e=>(({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:o,theme:i,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),l={align:e.align,text:e.label,fill:e.coloredBackground?i.getContrastingColorTo(s):s,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(l.background={fill:s}),a?(l.scale=o,l.value=e.refLineExpr.value):(l.value=()=>ts.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueText=()=>ts.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueInfo=()=>ts.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),l})({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:l,isContinuous:h})));return f.push((({isDimension:e,layoutService:t,style:n,labels:r,scale:o,formatter:i,dock:a,key:s,rtl:l,theme:c,isContinuous:u,localeInfo:d})=>({key:s,type:"reference-line-labels",renderer:"svg",labels:r,formatter:i,scale:o,layoutService:t,layout:{dock:a,rtl:l},theme:c,isContinuous:u,isDimension:e,localeInfo:d,style:{label:{fontFamily:n.referenceLine.label.name.fontFamily,fontSize:n.referenceLine.label.name.fontSize,padding:{top:2,bottom:2,left:l?2:4,right:l?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===a||"right"===a?10:16},oob:{size:8,fill:n.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:n.referenceLine.outOfBounds.fontFamily,fontSize:n.referenceLine.outOfBounds.fontSize,fill:n.referenceLine.outOfBounds.color,background:{fill:n.referenceLine.outOfBounds.backgroundColor}}}}}))({isDimension:e,rtl:u,style:ne(!0,rs,a),dock:o,key:d,labels:g,scale:i,formatter:s,layoutService:n,theme:l,isContinuous:h,localeInfo:c})),f}const is={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}}};var as={exports:{}};function ss(){}function ls(){}ls.resetWarningCache=ss;as.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ls,resetWarningCache:ss};return n.PropTypes=n,n}();var cs={black:"#000",white:"#fff"},us="#e57373",ds="#f44336",ps="#d32f2f",ms="#ff4081",fs="#f50057",hs="#c51162",gs="#7986cb",vs="#3f51b5",ys="#303f9f",bs={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 xs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>n?n:e}function Ss(e){if(e.type)return e;if("#"===e.charAt(0))return Ss(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb(".concat(n.map((function(e){return parseInt(e,16)})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(["Material-UI: unsupported `".concat(e,"` color."),"We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."].join("\n"));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function ws(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 Cs(e){var t="hsl"===(e=Ss(e)).type?Ss(function(e){var t=(e=Ss(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])),ws({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 Ms(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Cs(e)>.5?Es(e,t):Ts(e,t)}function ks(e,t){return e=Ss(e),t=xs(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,ws(e)}function Es(e,t){if(e=Ss(e),t=xs(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 ws(e)}function Ts(e,t){if(e=Ss(e),t=xs(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 ws(e)}function Ns(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ls(){return(Ls=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ds(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qs(){return(qs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Os(e){return(Os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rs(e){return(Rs="function"==typeof Symbol&&"symbol"===Os(Symbol.iterator)?function(e){return Os(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Os(e)})(e)}function As(e){return e&&"object"===Rs(e)&&!Array.isArray(e)}function Ps(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?qs({},e):e;return As(e)&&As(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(As(t[o])&&o in e?r[o]=Ps(e[o],t[o],n):r[o]=t[o])})),r}(as.exports.element,function(){return null}).isRequired=(as.exports.element.isRequired,function(){return null});var Is={exports:{}},zs={};
|
|
7
|
+
System.register(["picasso.js","picasso-plugin-q","hammerjs","react","react-dom","qlik-chart-modules","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,m,f,h,g,v,y,b,x,S,w,C,M,k,E,T,N,L,q,D,O,R,A,P,I,z,B,F,H,j,W,V,_;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.default,i=e.Children,a=e.isValidElement,s=e.cloneElement},function(e){l=e.default},function(e){c=e.debouncer,u=e.throttler,d=e.getValue,p=e.setValue,m=e.cache,f=e.storage,h=e.memoize,g=e.selectionService,v=e.colorService,y=e.layoutService,b=e.dockService,x=e.themeService,S=e.pluginService},function(e){w=e.useTranslator,C=e.useEmbed,M=e.useTheme,k=e.useState,E=e.useDeviceType,T=e.useAppLayout,N=e.useEffect,L=e.useElement,q=e.useOptions,D=e.useLayout,O=e.useAction,R=e.useStaleLayout,A=e.useModel,P=e.useApp,I=e.usePlugins,z=e.useSelections,B=e.useConstraints,F=e.useRect,H=e.usePromise,j=e.onTakeSnapshot,W=e.useImperativeHandle,V=e.useRenderState},function(e){_=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 function(t){t.interaction("hammer",K(e))};return void e.interaction("hammer",K(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,i=e();const a={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=Math.round(i.margin.left+i.x*t)+"px",r.style.top=Math.round(i.margin.top+i.y*n)+"px",r.style.width=Math.round(i.width)+"px",r.style.height=Math.round(i.height)+"px",r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",l.render(function(e,t){return o.createElement(Nd,{generateClassName:t},o.createElement(tp,{theme:Vx},e))}(e,_x),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&l.unmountComponentAtNode(r),a),destroy(){r&&r.parentElement&&(l.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return a}}()),e.component("data-title",function(){function e({title:e,selected:t,onClick:n}){const r=Oe.detectTextDirection(e);return o.createElement(Bg,{role:"menuitem",button:!0,onClick:n,style:{textAlign:"start"}},o.createElement(jg,{style:{minWidth:32}},o.createElement(Nx,{d:t?Dx:""})),o.createElement(_g,{primaryTypographyProps:{dir:r}},e))}function t({alignTo:t,changeTo:n,current:r,dir:i,dock:a,list:s,onClose:l,show:c,instruction:u}){const d=s.map((t=>o.createElement(e,{key:t.id,title:t.title,onClick:()=>n(t.id)})));return o.createElement(Jg,G({anchorEl:t,open:c,onClose:l},jx[a],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),o.createElement(Pg,{dense:!0,dir:i,"aria-label":u,component:"nav"},o.createElement(e,{title:r,selected:!0,onClick:l}),d))}e.propTypes={title:ss.exports.string.isRequired,selected:ss.exports.bool,onClick:ss.exports.func.isRequired},e.defaultProps={selected:!1},t.propTypes={alignTo:ss.exports.any,changeTo:ss.exports.func.isRequired,current:ss.exports.string.isRequired,dir:ss.exports.string.isRequired,dock:ss.exports.string.isRequired,list:ss.exports.array,onClose:ss.exports.func.isRequired,show:ss.exports.bool.isRequired,instruction:ss.exports.string.isRequired},t.defaultProps={list:[],alignTo:null};class n extends o.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive()},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=o.createRef()}componentDidMount(){const{selections:e}=this.props;e&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),e.addListener("activated",this.onSelectionsActivated),e.addListener("deactivated",this.onSelectionsDeactivated),e.addListener("canceled",this.onSelectionsDeactivated))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}changeTo(e){this.props.popover.changeTo(this.props.titleData.id,e),this.closePopover()}openPopover(){this.state.closeTime&&Date.now()-this.state.closeTime<20||this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e})}))}closePopover(){this.setState({open:!1,closeTime:Date.now()})}render(){const{titleData:e,popover:n,translator:r,disabled:i,isDimension:a,padding:s,minWidth:l,hasAlternative:c}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},d=e.breadcrumbs.length,p=i||this.state.inSelection,m=e.breadcrumbs.map(((t,n)=>o.createElement(Wx,{style:{display:"flex",alignItems:"center",color:p&&"rgba(89, 89, 89, 0.8)",pointerEvents:p?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>p?void 0:e.drillUp(d-n),title:t},o.createElement("span",{style:u},t),o.createElement(Nx,G({},Rx,{size:"small",style:{margin:"0 8px"}}))))),f=n&&!this.state.open?this.openPopover:this.closePopover,h=!n||i||this.state.inSelection,g={display:"flex",alignItems:"center",width:"100%",color:h&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!a&&h&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(g.background="rgba(0,0,0,0.08)");const v=e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},y=e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"};s&&(g.padding=s),l&&(g.minWidth=l);const b=Oe.detectTextDirection(e.text),x=o.createElement(Wx,{"aria-label":r.get("Accessibility.Alternative.Instructions",[e.text]),style:g,onClick:h?void 0:f,title:e.text,tabIndex:h?-1:0,onFocus:h?void 0:v,onBlur:h?void 0:y,onMouseDown:e=>{e.preventDefault()}},e.locked&&o.createElement(Nx,G({},qx,{size:"small",title:r.get("Tooltip.selections.locked")})),o.createElement("span",{style:u,dir:b},e.text),n&&o.createElement(Nx,G({},Ox,{size:"small",style:{margin:"0 8px"}})));return o.createElement(o.Fragment,null,e.drilldown&&o.createElement(Nx,G({},Lx,{size:"small",title:r.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),m,o.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:c?"auto":"none",height:"100%"}},x),n&&o.createElement(t,{dock:n.dock,dir:n.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function r(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=t.height+"px",n.height=t.width+"px",n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}function i(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function a(e){return!e.isDimension&&fe(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}function s(e){return e.isDimension&&fe(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0}return n.propTypes={disabled:ss.exports.bool.isRequired,padding:ss.exports.string,minWidth:ss.exports.string,titleData:ss.exports.shape({breadcrumbs:ss.exports.arrayOf(ss.exports.string).isRequired,drilldown:ss.exports.bool.isRequired,index:ss.exports.number.isRequired,locked:ss.exports.bool.isRequired,text:ss.exports.string.isRequired,popoverText:ss.exports.string.isRequired,drillUp:ss.exports.func,id:ss.exports.string.isRequired}).isRequired,popover:ss.exports.shape({dir:ss.exports.string.isRequired,dock:ss.exports.string.isRequired,changeTo:ss.exports.func.isRequired,getAlternatives:ss.exports.func.isRequired}),translator:ss.exports.shape({get:ss.exports.func.isRequired}).isRequired,selections:ss.exports.shape({isActive:ss.exports.func,addListener:ss.exports.func,removeListener:ss.exports.func}),style:ss.exports.shape({fontSize:ss.exports.string,color:ss.exports.string,fontFamily:ss.exports.string}).isRequired,isDimension:ss.exports.bool.isRequired,hasAlternative:ss.exports.bool.isRequired},n.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){return this.settings.settings.isDimension||a(this.settings.settings)?28:20},render(){const{settings:{app:e,disabled:t,explicitItemInfos:l,hyperCube:c,hyperCubeDef:u,isDimension:d,minWidth:p,model:m,onChangeToAlternative:f,padding:h,rtl:g,selections:v,skipAttributeExpressions:y,translator:b},layout:{dock:x}}=this.settings,S="top"!==x&&"bottom"!==x||!g?"ltr":"rtl",w=r(x,this.rect),C=u&&u.qLayoutExclude&&u.qLayoutExclude.qHyperCubeDef,M=C&&C[d?"qDimensions":"qMeasures"]||[],k=l||c[d?"qDimensionInfo":"qMeasureInfo"],E=d?zx:Fx,T=d?Bx:Hx,N=m&&m.colorSupport&&m.modifiers&&E({altList:M,app:e,dir:g?"rtl":"ltr",dock:i(x),model:m,onChange:f,skipAttributeExpressions:y,translator:b}),L=s(this.settings.settings)||a(this.settings.settings),q=k.map(((e,r)=>{const i="number"==typeof e.explicitColumn?e.explicitColumn:r,a=T(e,i,m),s=r===k.length-1;return o.createElement(o.Fragment,{key:e.cId},o.createElement(n,{popover:N,titleData:a,model:m,translator:b,selections:v,disabled:t(),style:this.style,isDimension:d,padding:h,minWidth:p,hasAlternative:L}),!s&&o.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return o.createElement("div",{style:w,dir:S},q)}}}()),e.component("disclaimer",function(){class e extends o.Component{render(){const{label:e,spanStyle:t}=this.props;return o.createElement(o.Fragment,null,o.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}function t(e,t,n){const r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.fontFamily||'"Source Sans Pro", "Arial", "sans-serif"'};switch(t){case"left":r.width=n.height+"px",r.transform=`rotate(-90deg) translate(-${n.height}px, 0)`,r.transformOrigin="top left";break;case"right":r.width=n.height+"px",r.transform=`rotate(90deg) translate(0, -${n.width}px)`,r.transformOrigin="top left";break;case"center":r.width=n.width+"px",r.height=n.height+"px",r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:case"top":case"bottom":r.justifyContent="flex-start",r.alignItems="flex-start"}return r}return e.propTypes={label:ss.exports.string.isRequired,spanStyle:ss.exports.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:n,rtl:r},layout:{dock:i},style:a={}}=this.settings,s="top"!==i&&"bottom"!==i||!r?"ltr":"rtl",l=t(a,i,this.rect),c="center"===i?n:"* "+n,u="center"!==i?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return o.createElement("div",{style:l,dir:s},o.createElement(o.Fragment,null,o.createElement(e,{label:c,spanStyle:u})))}}}())}}()),e.use(pC),e.component("box-sliced-hat",uC),e.component("box-out-of-bounds",iC),e.component("scrollbar",eC),e.component("scroll-hint",Zi),e.component("reference-line-labels",Za),e.component("axis-overlay",hw.picassoComponents.axisOverlay),e.component("time-axis",hw.picassoComponents.timeAxis),e.scale("q-time-axis",hw.picassoScales.time),e}();return{qae:VC(e),ext:qT(e),component(){const t=function({env:e}){var t,n;const{flags:r}=e,o=null===(t=e.anything)||void 0===t||null===(n=t.sense)||void 0===n?void 0:n.isUnsupportedFeature,i=w();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(_C).forEach((t=>{e.add(_C[t])}))}}(e.translator);const a=C(),s=M(),[l,c]=k(),u=E(),d=T(),{qLocaleInfo:p}=d;return N((()=>{c({translator:i,theme:s,embed:a,deviceType:u,localeInfo:p,isUnsupportedFeature:o,flags:r})}),[p,o,i.language(),s.name(),u]),l}({env:e}),{viewState:n,viewCache:r}=function(){const[e]=k((()=>m())),[t]=k((()=>f({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:e,viewState:t}}(),o=function({picasso:e}){const t=L(),n=q(),[r,o]=k();return N((()=>{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}),a=function({picasso:e,chart:t,environment:n,viewState:r,viewCache:o}){const i=R(),a=A(),s=P(),l=I(),c=z(),p=q(),[f,g]=k(),[v,C]=k(),[M,E]=k(),T=B(),L=function(){const[e]=k({}),[t]=k({}),n=function(){var e,t,n,r;const o=D(),i=w(),a=!(null==o||null===(e=o.qSelectionInfo)||void 0===e||!e.qInSelections),s=!(null==o||null===(t=o.qHyperCube)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n||null===(r=n[0])||void 0===r||!r.qIsOneAndOnlyOne),[l,c]=k(!1),[u,d]=k(!1),[p,m]=k({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),f=e=>{d("boolean"==typeof e?e:!u)};return O((()=>(m({key:"lasso",action:f,enabled:()=>l,active:()=>u}),{key:"lasso",label:i.get(u?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:XM,hidden:!l||!a||s,active:u,action:f})),[a,s,u,l,i.language()]),{get:()=>p,setAllows:e=>{c(!!e)}}}(),[r,o]=k();return N((()=>{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=>{return t=r[e],Object.keys(YM.prototype).forEach((e=>{t[e]=YM.prototype[e]})),YM.init(t),t;var t})),o(r)}),[]),N((()=>{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 N((()=>{if(!t)return()=>{};const e=L.get(),n=nk({chart:t,actions:e,selections:c});return C(e),E(n),()=>{n.destroy(),L.destroy()}}),[t]),N((()=>{if(!T)return;const e={allowScroll:!T.active,allowInteract:!T.active,allowTooltip:!T.passive,allowSelect:!T.select&&!T.active};L.setAllows(e)}),[T]),N((()=>{if(!M||!n)return;const{theme:c,translator:f,localeInfo:w,flags:C,embed:k}=n,{direction:E="ltr"}=p,T=y({source:i,metaAdditionsFn:QM,experimental:{filter:C.isEnabled("IM_1579_HIDE_DIM_MEA")}});M.setFilteredFields(T.meta.filteredFields);const N=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(T.getLayout())?y({source:T.getLayout()}):void 0,q=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:i,options:p}),D=function(e){const t={};return t.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),t.selectionDimensionIdx=(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}return})(e.getHyperCube()),t.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,t.selectionDimensionProp=e=>void 0===t.selectionDimensionIdx||void 0!==e&&t.selectionDimensionIdx!==e?{}:{selectionDimension:{field:t.selectionDimensionIdx}},t}(T),O=b({chart:t,layoutService:T,config:{logicalSize:q,rtl:"rtl"===E},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),R=x({theme:c,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),A=hw.model({model:a,layoutService:T,viewCache:o,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(we).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");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")}}}))}(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=re(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:ZM.SCALE.REDUCED.MAJOR,minor:ZM.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=re(!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:a,layoutService:T,viewModel:D});!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:T,viewState:r,viewStateOptions:null==p?void 0:p.viewState});const I=ok({picasso:e,model:a,app:s,translator:f,localeInfo:w,theme:c,continuousDataModel:A,layoutService:T,legendLayoutService:N,reducedDataModel:P}),z=(({layoutService:e,viewState:t,colorModel:n,chart:r,env:o,keys:{colorScale:i},isEnabled:a=(()=>!1)})=>{const{translator:s}=o,l=[AM],c=[],u=[],d=function(e,t){if(e.meta.isContinuous)return function(e,t){return{generate:(e,n,r)=>{const o=[],i=qM(e),{min:a,max:s}=t.get("zoom"),l=(s-a)/100;if(l>0){const t=t=>{const a=i({dimValue:t,value:t,qTrendLine:e});a.layerId=n,a.measureIndex=r,a.dimValue=t,o.push(a)};let c=a;for(let e=a;e<=s;e+=l)t(e),c=e;c!==s&&t(s)}return o},calculate:(e,t)=>qM(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);if(e.meta.mode.K)return function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qData[0].qSubNodes,s=i.qArea.qTop,l=NM[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:LM}}(e);return function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qMatrix,s=i.qArea.qTop,l=NM[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,NM[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:LM}}(e)}(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(c.push(...e.qTrendLines),u.push(...e.qTrendLines.map((()=>t))))}));return{query:{hasTrendLines:()=>!!c.length&&a(),getData:()=>l,getStroke:h((e=>{const{style:t}=c[e]||{},o=n.settings();if(t.autoColor){if("measure"===o.mode){const t=u[e],n=r.scale(i)(t);return RM(n)?function(e){const t=Mt(e);t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5;return t.toString()}(n):function(e){const t=Mt(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(OM)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"})),getLineDash:e=>{const{style:t}=c[e]||{};return t.lineDash},getLabel:e=>(c[e]||{}).label,getType:e=>{const{qType:t}=c[e]||{};return s.get(DM.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return c.forEach((r=>{const o=d.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 d.calculate(r,t,n)}},command:{update:()=>{l.length=0,c.forEach(((e,t)=>{const n=d.generate(e,t,u[t]);l.push(...n)}))}}}})({layoutService:T,viewState:r,colorModel:{settings:()=>I.getMain().getSettings(),resolveUIColor:e=>I.getMain().getPaletteColor(e)},chart:t,env:n,keys:{colorScale:ZM.SCALE.MAIN.COLOR},isEnabled:()=>!T.meta.isGroupedByDimension&&(!T.meta.isStackedByDimension||C.isEnabled("TRENDLINES_STACKED_DIM"))&&!T.meta.isDimensionless});OC.attrExpr.updateProperties(a,i);const B=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:kC,miniChartToken:{},embed:s}}({layout:i,app:s,model:a,picasso:e,chart:t,translator:f,localeInfo:w,embed:k,extractDimsAndNode:ek.extractDimsAndNode});let F;T.meta.isDiscrete&&(F=function({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:o,dockService:i,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:p="/qHyperCubeDef",getRect:f,axisKey:h,renderer:g,areaBuffer:v,processDataPage:y=(()=>{})}={}}){const b=m(),x=function({qMode:e}){switch(e){case"S":default:return ZC;case"K":return QC;case"T":return eM}}({qMode:o.getHyperCubeValue("qMode")}),S=function({state:e,contains:t}){return e.set(tM,[]),{add:t=>{const n=e.get(tM);n.length=0,n.push(t)},getCurrent:()=>e.get(tM)[0],getAll:()=>e.get(tM),contains:n=>t(e.get(tM)[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:o,dataStore:S,composition:x});const w=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:v}),C=function({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:o=lM,definitionPath:i,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:o,process:i,connectionless:a,processDataPage:s}){return(l,{onProcessing:c}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const o=n.release(r.qArea,l),s=i.isProcessing();if(!o&&s&&i.cancel(),!o||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());i.isProcessing()&&c&&c();const u=r(l);return i(o(u)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:aM({layoutService:r}),request:c({layoutService:r,definitionPath:i}),process:sM(n),connectionless:r.meta.isSnapshot,processDataPage:a}),p=u(((e,{onProcessing:t,onData:n})=>{d(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==UC)throw e}))}),50);return function(e,{onProcessing:t=$C,onDataPage:n=$C}={}){p(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),o.command.update(),n(e)}})}}({dataStore:S,composition:x,enigmaModel:r,layoutService:o,trendLineModel:a,definitionPath:p,processDataPage:y}),M=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:p,rtl:m}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const f=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:p}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;if(t)return cM;if(!n)return uM;return r?fM:vM}({layoutService:r}),m=()=>"horizontal"===o.meta.major.orientation?t().width:t().height,f=e=>e?m()/e:0,h=(e,t)=>-(e-t)*f(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:yM({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(KC/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return f(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,o=Math.min(0,Math.max(e,h(n,r))),i=r?Math.abs(r*o/m()):0;return{start:{pixel:o,item:i},end:{item:Math.min(i+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return h(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const o=e/n*t,i=Math.abs(r)/o;return[i,i+e/o]}({viewSize:m(),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=p({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:m(),upperBound:h(t.inTotal,t.inView)});return"horizontal"===o.meta.major.orientation&&c?function(e){return[1-e[1],1-e[0]]}(i):i},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=h(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*f(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(f(r)*n)}}}}({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:i,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:m}),h=()=>{const e=f.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=f.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},v=({items:e})=>{const t=i.getLayoutValue("scrollStartPos"),n=p.get("scrollOffset");if(void 0===n)return 1===t?f.getUpperBound({items:e}):0;if("number"==typeof n)return f.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:o}=n,a=1===t&&o?o-e.inView:r;return f.convert.itemToPixelOffset({itemOffset:a,items:e})},y=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=f.getArea({itemOffset:i.start.item,items:r});if(y(a))return void((f.validate.offset({pixelOffset:e,items:r})||p.get("scrollOffset").start!==i.start.item)&&(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:i.start,items:r})),p.preventSet("viewRange",f.getViewRange({pixelOffset:i.start.pixel,items:r})),p.set("scrollOffset",{start:i.start.item,end:i.end.item})));p.preventSet("viewRange",f.getViewRange({pixelOffset:i.start.pixel,items:r}));const s=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:i.start,items:r})),p.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",f.getItemSize({items:i}));const a=v({items:i}),c=g({pixelOffset:a,items:i});p.preventSet("viewRange",f.getViewRange({pixelOffset:c.start.pixel,items:i}));const u=f.getArea({itemOffset:c.start.item,items:i});return new Promise((e=>{o(u,{onDataPage:()=>{n.set("scaleRange",f.getScaleRange({offsets:c.start,items:i})),p.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=f.convert.relativeToPixelOffset({relativeOffset:e,items:t});b(r)}}}({chart:e,componentKey:n,state:b,dataStore:S,pageData:C,layoutService:o,dockService:i,itemWidths:s,getRect:f,axisKey:h,renderer:g,areaBuffer:w,viewState:l,rtl:c}),k=function({layoutService:e,dataStore:t}){return function(n){const r=d(n,""+e.refs.dataPages);r.length=0,r.push(t.getCurrent())}}({layoutService:o,dataStore:S});return{interactions:iM({chart:e,actions:t,componentKey:n,dockService:i,rtl:c,scroller:M}),query:{getCanScroll:()=>M.enabled(),getItemSize:()=>M.itemSize(),getScaleRange:()=>M.scaleRange(),getCurrentDataPage:()=>S.getCurrent()},command:{initialize:()=>M.initialize(),scrollTo:e=>M.scrollToRelative(e),setSnapshotData:e=>k(e)}}}({chart:t,actions:v,componentKey:ZM.COMPONENT.BAR,enigmaModel:a,layoutService:T,dockService:O,trendLineModel:z,itemWidths:JM,viewState:r,rtl:"rtl"===E,options:{axisKey:ZM.COMPONENT.BAR_AXIS,renderer:e.renderer("svg")()}}));const H=function({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:o}=e.meta,i=e.getLayout(),a="K"===i.qHyperCube.qMode,s=xe.dimensionless(i),l=Ra.getMeasureRefLines(i),c=Ra.getDimensionRefLines(i,s),u=Ra.getMeasureRefLineLabels(i),d=Ra.getDimensionRefLineLabels(i,s);let p={},m={};const f=t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:o}=n;return Ra.isOutOfRange({value:t,qMin:r,qMax:o})}return!1},h=t=>{if(!m[t])return!1;if(!n&&o){const n={valueInfo:m[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",o=e.getHyperCubeValue(r);return Ra.isOutOfDataPages({label:n,dataPages:o})}return!0},g=()=>!(!c||!c.length)&&!c.every((t=>{const n=Ra.getInputValue({refLineLayout:t,layoutService:e});return f(n)||h(n)})),v={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:m,dimensionValuesInfo:p,query:{getRefLines:e=>Ra.getRefLines(i,e),getRefLineLabels:e=>Ra.getRefLineLabels(i,e)},update:()=>{m=v.dimensionRefLineInfo,g()&&(p=Ra.getDimensionValuesInfo({layout:i,canBeContinuous:r,discreteModel:t,layoutService:e}),v.dimensionValuesInfo=p,c.forEach((t=>{const n=Ra.getInputValue({refLineLayout:t,layoutService:e});p[n]&&(m[n]?(m[n].innerValues=p[n].innerValues,m[n].minOrder=Math.min(m[n].minOrder,p[n].minOrder),m[n].maxOrder=Math.max(m[n].maxOrder,p[n].maxOrder),m[n].isMinOrderOk=m[n].isMinOrderOk||p[n].isMinOrderOk,m[n].isMaxOrderOk=m[n].isMaxOrderOk||p[n].isMaxOrderOk):m[n]={id:p[n].id,qText:p[n].qText,innerValues:p[n].innerValues,minOrder:p[n].minOrder,maxOrder:p[n].maxOrder,isMinOrderOk:p[n].isMinOrderOk,isMaxOrderOk:p[n].isMaxOrderOk},m[n].numInnerValues=(m[n].maxOrder||0)-(m[n].minOrder||0)+1)})))}};return v.update(),v}({layoutService:T,discreteModel:F}),j=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:ZM.SCALE.MAIN.MINOR,MAJOR:ZM.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:ZM.COMPONENT.BAR,BAR_AXIS:ZM.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:ZM.COLLECTION.MAIN}}}}(T),W=S({picassoInstance:e,plugins:l||[],pluginArgs:j});L.setContext({discrete:F,layoutService:T}),g({discrete:F,continuous:hw,legendLayoutService:N,layoutService:T,viewModel:D,dockService:O,themeService:R,continuousDataModel:A,reducedDataModel:P,colorService:I,trendLineModel:z,refLineModel:H,pluginService:W,customTooltipModel:B,selectionService:M,logicalSize:q})}),[M,p,n,i]),f}({picasso:i,chart:o,environment:t,viewState:n,viewCache:r}),s=function({env:e,services:t}){const n=P(),r=A(),o=V(),[i,a]=H((async()=>{if(!e||!t)return Promise.resolve();const{flags:i}=e,{layoutService:a}=t,{isSnapshot:s,isStacked:l,isContinuous:c}=a.meta,u=[];return s||u.push(r.getEffectiveProperties()),Promise.all(u).then((async e=>{const t=e[0]||void 0;if(i.isEnabled("IM_1579_HIDE_DIM_MEA")&&null!=t&&t.qHyperCubeDef){const e=a.getLayout(),i=re(!0,{},t);if((({properties:e,layout:t,isStacked:n,isContinuous:r,model:o})=>{var i,a;const s=t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),l=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),c=re(!0,{},e);((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&&(n.color.mode="primary"))})(s,l,e),s.length>1&&n&&!r&&"S"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="K");s.length<2&&"K"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="S");if(null===(i=o.colorSupport)||void 0===i||null===(a=i.colorByUpdater)||void 0===a||a.call(i,e,"qHyperCubeDef.",t),JSON.stringify(c)===JSON.stringify(e))return!1;return e.hash=Math.random(),!0})({properties:t,layout:e,isStacked:l,isContinuous:c,model:r}))return o.pending(),(e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))})(e)?r.setProperties(t).then((()=>{n.clearUndoBuffer()})):void await((e,t,n)=>{if(!e)return Promise.resolve();let r=ia.generate(t,n);if(re(!0,t,n),r&&r.length)return r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0);return Promise.resolve()})(r,i,t);o.restore()}return{properties:t}}))}),[e,t]);if(a&&!a.isHandled)throw a;return i}({env:e,services:a});!function({picasso:e,chart:t,services:n,environment:r,viewState:o,viewCache:i,bootstrapped:a}){const{width:s,height:l}=F(),u=A(),d=z(),p=q(),[m,f]=k(),[g,v]=k(),[y,b]=k(),[x,S]=k(),w=P();function C(a={}){const{selectionService:s,refLineModel:l,discrete:f,reducedDataModel:g,continuousDataModel:v,trendLineModel:y,pluginService:b,colorService:x,viewModel:S,dockService:C,themeService:M,customTooltipModel:k,layoutService:E,logicalSize:T}=n,N=s.custom.getActions(),L=e.data("q")(m.prepPicassoDataSet()),q={picasso:e,ds:L,rtl:"rtl"===(null==p?void 0:p.direction),model:u,app:w,chart:t,actions:N,localeInfo:r.localeInfo,logicalSize:T,flags:r.flags,translator:r.translator,selections:d,isLocked:s.getIsSelectionLocked,viewCache:i,viewState:o,layoutService:E,dockService:C,viewModel:S,colorService:x,selectionService:s,themeService:M,trendLineModel:y,discrete:f,continuousDataModel:v,reducedDataModel:g.model(),customTooltipModel:k,debouncer:c,refLineModel:l,pluginService:b,...a};return((e,t,n)=>{var r;const{layoutService:o,dockService:i,colorService:a,chart:s,actions:l,discrete:c,continuousDataModel:u,reducedDataModel:d,viewModel:p,viewState:m,viewCache:f,themeService:g,refLineModel:v,pluginService:y,rtl:b,logicalSize:x}=t,{localeInfo:S}=n,w=function({layout:e},t,n){const r=function(e,t){if(e.qHyperCube.qSize.qcx*e.qHyperCube.qSize.qcy==0)return"NoDataExist";if(e.qHyperCube.qMeasureInfo.every(pE))return"OnlyNanData";let n=!1;if(t.layoutService.meta.isContinuous&&2===e.qHyperCube.qDimensionInfo.length){const t=e.qHyperCube.qDimensionInfo[1];n=Rk.getDimensionSize(t)>me.maxNumberOfLines}return!!n&&"LimitedData"}(e,t),{fontFamily:o}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:o}=t,{rtl:i}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:ae[e].alignment},settings:{label:o.get("Object.Disclaimer."+e),rtl:i},style:r}}(r,t,{rtl:n},{fontFamily:o})}({layout:e},t,b);if(w&&"center"===w.layout.dock)return{components:[w]};const C=function(e,{picasso:t,discrete:n,layoutService:r,dockService:o,viewModel:i,viewCache:a,reducedDataModel:s,colorService:l,themeService:c,viewState:u,chart:d},{localeInfo:p,rtl:m}){const{meta:f}=r,{fields:g}=i,v=()=>{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")?((e,t)=>{if("vertical"===e)return"near"===t||"left"===t?0:1;return"near"===t||"bottom"===t?1:0})(o.meta.minor.orientation,o.meta.minor.dock):.5,b={},x="vertical"===o.meta.minor.orientation&&m,S=l.getMain().getScales(),w=l.getMini().getScales();if(Object.assign(b,S,{reducedFill:w.reducedFill}),b[ZM.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,layoutService:o,themeService:i},{rtl:a}){const s=function({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:u}=function(e){let{min:t,max:n}=e.get("minorMinMax");t===n&&0===t&&(t-=1,n+=1);return{min:t,max:n}}(t),d=h((()=>{const d=function(e,t,n){let r;e?r=n.meta.chart.size:({rect:r}=t.component(ZM.COMPONENT.BAR));return"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),p=function(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return qE;case 1:return DE;case 2:return OE;default:return 125*t}}(t);return Math.max(1,Math.round(e/n))}(d,r),m=function(e,t,n){const r=Vr().domain([e,t]);return r.nice(n),r}(c,u,p);let f,h,g=[];"SPARK"===n.meta.chart.mode?({roundedMin:f,roundedMax:h}=function(e,t){return{roundedMin:e,roundedMax:t}}(c,u)):(({roundedMin:f,roundedMax:h,ticks:g}=function(e,t,n,r,o,i,a,s){const l=i.formatter(ZM.FORMATTER.MINOR),c=s.getStyles(),u="horizontal"===a.meta.major.orientation?"height":"width",d=e=>LE({text:e,fontSize:c.axis.label.name.fontSize,fontFamily:c.axis.label.name.fontFamily})[u];let[p,m]=e.domain(),f=e.ticks(r);function h(e){const t=o/f.length;return Math.max(...e.map(d))<=t}function g(){const e=f.map(l);return!PE(e)&&h(e)}for(let o=r-1;o>0&&!g();o--)e.domain([t,n]),e.nice(o),[p,m]=e.domain(),f=e.ticks(o);return{roundedMin:p,roundedMax:m,ticks:f}}(m,c,u,p,d,e,n,o)),function(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2,o=e=>Number.isNaN(t)||e>=t,i=e=>Number.isNaN(n)||e<=n;return e.filter((e=>o(e)&&i(e))).length<=r}(g,i,a)&&({roundedMin:f,roundedMax:h,ticks:g}=function(e,t,n,r,o){e.domain([t,n]),e.nice(10);const[i,a]=e.domain();let s=e.ticks(10);const l=function(e){return e.length%2==0}(s),c=function(e){const t=.3,n=Math.round(e.length*t),r=n,o=e.length-n;return e.slice(r,o).some((e=>0===e))}(s),u=c?AE:RE;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(ZM.FORMATTER.MINOR):void 0,p=d?s.map(d):s;PE(p)&&(s=[s[0],s[s.length-1]]);return{roundedMin:i,roundedMax:a,ticks:s}}(m,c,u,s||l,e)));const v=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){if(e&&n.length&&!n.some((e=>e===t)))return n.unshift(t),n.filter((e=>e>=t));return n}(s,i,g),g=function(e,t,n){if(e&&n.length&&!n.some((e=>e===t)))return n.push(t),n.filter((e=>e<=t));return n}(l,a,g);return{roundedMin:f,roundedMax:h,ticks:function(e,t){return[...e.map(zE),...t.map(BE)].sort(IE)}(g,v)}}),(()=>t.get("isPreRender")));return{values:()=>d().ticks,min:()=>s?i:d().roundedMin,max:()=>l?a:d().roundedMax}}({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};o.meta.isStacked||(l.data={source:"qHyperCube",fields:t.minor});return l}({chart:d,viewModel:i,dockService:o,viewCache:a,layoutService:r,themeService:c},{rtl:m}),f.isGroupedByDimension)[ZM.SCALE.MAIN.MAJOR_INNER,ZM.SCALE.MAIN.MAJOR].forEach(((e,t)=>{b[e]={invert:x,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...i.selectionDimensionProp(t),group:f.isGroupedByDimension?{field:g.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:v,align:y}})),i.isDimensionLocked(0)||(b[ZM.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(f.isGroupedByMeasure)b[ZM.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:x,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:v,align:y};else if(f.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(),p=e=>LE({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});o.set("qTimeAxisCache",[]);const m={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()}},f={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:p},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:m},h={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:p},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:m};return{innerTime:f,outerTime:h}}({picasso:t,localeInfo:p,viewState:u,viewModel:i,viewCache:a,themeService:c,layoutService:r},m);b[ZM.SCALE.MAIN.MAJOR_INNER]=e,b[ZM.SCALE.MAIN.MAJOR]=n}else f.isContinuous?b[ZM.SCALE.MAIN.MAJOR]={type:"linear",invert:x,data:{extract:{key:"qHyperCube",field:g.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}:b[ZM.SCALE.MAIN.MAJOR]={invert:x,data:{extract:f.isDimensionless?g.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:f.isDimensionless?"band":void 0,maxPxStep:v,align:y};const{reducedMinor:C,reducedMajor:M}=function(e,t,n){const r=function(e){const t=re(!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};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=re(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=re(!0,{},t,{min:()=>i("continuousMin"),max:()=>i("continuousMax")}));return a}(e,t.major,n);return{reducedMinor:r,reducedMajor:o}}(s,{major:b[ZM.SCALE.MAIN.MAJOR],minor:b[ZM.SCALE.MAIN.MINOR]},{majorScaleInvert:x,maxPxStep:v,align:y,getProp:a.get});f.isDiscrete&&(b[ZM.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,f.isGroupedByDimension&&(b[ZM.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange));return b[s.scales.major]=M,b[s.scales.minor]=C,b}(e,t,{localeInfo:S,rtl:b}),M=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),k=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:m,chart:s,styleReference:"object.barChart",rtl:b,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:M}),E=k.components[0];if(E){const{dock:e}=E.layout;if(C.fillRange&&(["right","left"].includes(e)||b)&&(C.fillRange.invert=!0),"legend-seq"===E.type&&void 0!==p.selectionDimensionIdx&&C.fillRange&&C.fillRange.min<C.fillRange.max){const e=Lk({eventName:"legendRange",key:"legendRangeBrush",targets:[E.key],fillTargets:[E.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:E.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);k.components.push(...e.components),k.interactions.unshift(...e.interactions)}}else C.fillRange&&b&&(C.fillRange.invert=!0);const T=((e,{componentKey:t,collectionKey:n})=>{var r,o,i,a;const{meta:s}=e.layoutService;let l,c;s.isGroupedByDimension?l=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:s.isGroupedByMeasure&&(l=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;s.isContinuous?(c={start:"timeStart",end:"timeEnd"},u=jk(e,t)):s.isStacked&&(c="stack");const d=s.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,p=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)};function m(e){return s.isStacked?.1:p(e)?.01:.3}const f=e.layoutService.getLayoutValue("components",null),h=f?f.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:s.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:s.isContinuous||d?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:ZM.SCALE.MAIN.MAJOR,fn:l,ref:c},minor:{scale:ZM.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:Fk({layoutService:e.layoutService,discrete:e.discrete,componentKey:t}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>p(e)?0:void 0,minHeightPx:m,strokeWidth:null!=h&&null!==(r=h.style)&&void 0!==r&&r.strokeWidth?Bk.BAR.STROKE.WIDTH[h.style.strokeWidth.toUpperCase()]:Bk.BAR.STROKE.WIDTH.NONE,stroke:null!==(o=null==h||null===(i=h.style)||void 0===i||null===(a=i.strokeColor)||void 0===a?void 0:a.color)&&void 0!==o?o:Bk.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}})(t,{componentKey:ZM.COMPONENT.BAR,collectionKey:ZM.COLLECTION.MAIN}),N=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let o=2;r.isContinuous&&(o=jk(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:ZM.SCALE.MAIN.MAJOR},minor:{scale:ZM.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:VE(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,n;return!0===(null===(t=e.data)||void 0===t||null===(n=t.null)||void 0===n?void 0:n.value)?0:1}},inactive:{opacity:e=>{var t,n;return!0===(null===(t=e.data)||void 0===t||null===(n=t.null)||void 0===n?void 0:n.value)?0:.3}}}}]}};r.isContinuous&&(s.settings.major.ref={start:"timeStart",end:"timeEnd"});return s})(t,{componentKey:ZM.COMPONENT.STACK_TOTAL_BAR,collectionKey:ZM.COLLECTION.STACK_TOTAL}),L=function(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:o}=t,i=void 0===n,a=r.getIsSingleSelect(n),s=function(e,t,n){const{layoutService:r,colorService:o}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[Ek(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?ZM.COMPONENT.STACK_TOTAL_BAR:ZM.COMPONENT.BAR,ZM.COMPONENT.BAR_AXIS,ZM.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",ZM.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return ZM.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[ZM.COMPONENT.BAR_AXIS,ZM.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===ZM.COMPONENT.LEGEND_COLOR_CAT))?o.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}(e,i,a);if(i||a)return{components:[...s.components],gestures:[...s.interactions]};const l=function(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=(({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}}))(n);return{interactions:[kk(n,t)],components:[r]}}({key:"lasso",componentTargetKey:ZM.COMPONENT.BAR,components:[t?{key:ZM.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:ZM.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}(e),c=function(e,t){return e.layoutService.meta.isStacked||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:Lk({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",ZM.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:ZM.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,o),u=function(e){return e.layoutService.meta.isContinuous?Lk({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",ZM.COMPONENT.BAR]:["continuous-axis",ZM.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?ZM.SCALE.MAIN.MAJOR_INNER:ZM.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const o=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(ZM.FORMATTER.MINOR),i=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||i?"":"<"}${o(t)}`}},e):{components:[],interactions:[]}}(e),d=function(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:[Nk(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:ZM.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",ZM.COMPONENT.BAR_AXIS,ZM.COMPONENT.BAR],fillTargets:["group-axis",ZM.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},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]}}(t,n,p.selectionDimensionIdx),{isStacked:q}=o.meta;let D;D=d.mode.isContinuous?ZM.COLLECTION.MINI_CONTINUOUS:q?ZM.COLLECTION.MINI_STACK:ZM.COLLECTION.MINI;const O=q?N:T,R=xE(e,t),A=[...R,WE(t,{barComponent:O,type:"max",isStacked:q}),WE(t,{barComponent:O,type:"min",isStacked:q}),Jk(t,{barComponent:O,type:"max",isStacked:q}),Jk(t,{barComponent:O,type:"min",isStacked:q}),Qk(t,{chart:s,barComponent:O,type:"max",scales:C,collectionKey:q?ZM.COLLECTION.STACK_TOTAL:ZM.COLLECTION.MAIN}),Qk(t,{chart:s,barComponent:O,type:"min",scales:C,collectionKey:q?ZM.COLLECTION.STACK_TOTAL:ZM.COLLECTION.MAIN}),...zk(e,t,b,!!R[0]),T,N,FE({layoutService:o,viewModel:p,layout:e,dockService:i}),oT(e,t,b),iT(e,t,b),...aT({environment:n,rtl:b,refLineModel:v,layoutService:o,colorService:a,dockService:i,themeService:g,chart:s}),Qi({viewState:m,viewCache:f,layoutService:o,dockService:i,rtl:b}),NE(T,t,{collectionKey:D}),ww({layoutService:o,dockService:i,discrete:c,continuousDataModel:u,viewState:m,viewCache:f,themeService:g,rtl:b,deviceType:n.deviceType}),...zM({majorScale:ZM.SCALE.MAIN.MAJOR,minorScale:ZM.SCALE.MAIN.MINOR,tooltipOverlay:ZM.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},t),...k.components,sE({layout:e,component:ZM.COMPONENT.BAR,minorScale:C.minor},t,b),eT({layout:e,component:ZM.COMPONENT.STACK_TOTAL_BAR},t,b),nT({layout:e,component:"bar-oob-max",type:"max"},t),nT({layout:e,component:"bar-oob-min",type:"min"},t),...L.components,cE({layout:e},{...t,coloring:a.getMain().getSettings()},b),dE({layout:e},{...t,coloring:a.getMain().getSettings()},b),(!1!==e.showDisclaimer||!t.flags.isEnabled("SHOW_DISCLAIMER"))&&w,jM({tooltip:ZM.COMPONENT.TREND_LINES_TOOLTIP,formatter:ZM.FORMATTER.MINOR,majorScale:ZM.SCALE.MAIN.MAJOR},t,{rtl:b})].filter(Boolean);!function(e){if(!e||0===e.length)return;for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(A);const P=[...k.interactions,...L.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:TE(t,{rtl:b,hammer:{gestures:P}}),scales:C,palettes:a.getMain().getPalettes(),components:y.extendComponents(A),strategy:ue(e,{logicalSize:x,minCenterRatio:0}),formatters:mE(t,C),collections:ZE(e,t)}})(E.getLayout(),q,r)}function M(){if(!t.update)return Promise.resolve();const{discrete:e,layoutService:r}=n;i.set("isPreRender",!0);const o=C(g);m.extractDataPages(),t.update({settings:o,data:y}),i.set("isPreRender",!1),m.insertDataPages();const a=[];return 1!==o.components.length&&r.meta.isDiscrete&&a.push(e.command.initialize()),Promise.all(a)}const[[E,T]=[]]=H((()=>{var s;if(!(e&&t&&n&&r&&o&&i&&a))return Promise.resolve();const{layoutService:l,selectionService:c,refLineModel:u,discrete:d,continuous:p,reducedDataModel:m,continuousDataModel:f,trendLineModel:h,legendLayoutService:g,colorService:v,pluginService:y}=n;if(null==c||null===(s=c.custom)||void 0===s||!s.getActions())return Promise.resolve();const b=()=>{S(Date.now())},x=()=>{g&&g.setDataPages([d.query.getCurrentDataPage()]),u&&u.update(),b()};o.onChanged("scrollOffset",x),o.onChanged("legendScrollOffset",b),o.intercept("zoom",p.event.onZoomIntercept({viewCache:i})),o.onChanged("zoom",p.event.onZoomChange({layoutService:l,continuousDataModel:f},b)),c.setLayout(l.getLayout());const w=[];l.meta.isContinuous&&(f.update(l.getLayout()),w.push(f.initialFetch())),h.command.update(),w.push(m.fetch().then((({reducedCube:e})=>{m.update(e)}))),w.push(Promise.resolve({properties:a.properties}));const C=()=>[y.initialize(),v.initialize(),Ck({reducedDataModel:m,layoutService:l,continuousDataModel:f,trendLineModel:h})];return Promise.all(w).then((e=>Promise.all(C()).then((t=>[e,t.pop()]))))}),[a]);N((()=>{var e;if(null==n||null===(e=n.colorService)||void 0===e||!e.getMain()||!T)return;const{layoutService:t,selectionService:o,reducedDataModel:a,continuousDataModel:s,trendLineModel:l,legendLayoutService:c,colorService:u,viewModel:d}=n;i.set("minorMinMax",T);const p=()=>!t.meta.isContinuous&&(a.model().mode.isReduced||t.meta.isStacked)&&c,m=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():a.model().cube,{field:g}=u.getMain().getSettings(),y=p(),b=y?c.getHyperCube():void 0;o.setBrushAliases({colorField:g,useLegendCube:y,legendAlias:"legendCube/"+g});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:m,miniCube:h,legendCube:b,localeInfo:r.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),S=E[E.length-1];v({localeInfo:r.localeInfo,...S}),f(x)}),[T]),N((()=>{if(!n||!g||!m)return;const e=n.colorService.getMain();if(!e)return;m.prepPicassoDataSet();const t=m.prepPicassoData(e.getData());b(t)}),[g]),N((()=>{var e;null!=n&&null!==(e=n.colorService)&&void 0!==e&&e.getMain()&&t.update&&m&&y&&M().then((()=>{const{layoutService:e,discrete:r,legendLayoutService:o}=n;if(o){1===e.getLayoutValue("scrollStartPos")&&o.setDataPages([r.query.getCurrentDataPage()])}t.update()}))}),[y]),N((()=>{if(!(s&&l&&m&&null!=t&&t.update&&null!=n&&n.colorService.getMain()))return;const{dockService:e,themeService:o}=n;e.update({width:s,height:l}),o.setTheme(r.theme),M().then((()=>{t.update&&t.update()}))}),[s,l]),N((()=>{null!=t&&t.update&&t.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]})}),[x])}({picasso:i,chart:o,services:a,environment:t,viewState:n,viewCache:r,bootstrapped:s}),(({services:e,chart:t,viewState:n})=>{j((r=>{if(!e)return;const{layoutService:o,dockService:i,colorService:a,discrete:s,continuousDataModel:l,reducedDataModel:c}=e,{width:u,height:d}=i.meta.chart.size;return r.snapshotData=r.snapshotData||{},r.snapshotData.content={size:{w:u,h:d}},o.meta.isSnapshot?Promise.resolve():(r.snapshotData.content.chartData={scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Se(t,ZM.COMPONENT.LEGEND_COLOR_CAT)},o.meta.isDiscrete?(s.command.setSnapshotData(r),c.setSnapshotData(r)):l.setSnapshotData(r),a.getMain().getSnapshotData().then((e=>{r.snapshotData.content.chartData={...r.snapshotData.content.chartData,...e}})).catch((()=>{})))})),W((()=>({getViewState(){if(n&&t)return{scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Se(t,ZM.COMPONENT.LEGEND_COLOR_CAT)}}})),[n,t])})({services:a,chart:o,viewState:n})}}}));var U={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function $(e){return U[e]||e}function K(e){return function(t,n,r){var o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((function(t){t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));var n=$(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),(a=a||new e.Manager(r)).add(new e[n](t.options)),Object.keys(t.events).forEach((function(e){t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((function(t){var n=$(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((function(e){return""!==e}))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((function(e){return""!==e}))))})))}function d(){l.forEach((function(e){Object.keys(e.events).forEach((function(t){a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set:function(e){!function(e){s=e.key,i={chart:t,mediator:n,settings:o=e},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off:function(){c=!1,d()},on:function(){c=!0,0===l.length&&u()},destroy:function(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Y=Object.prototype.hasOwnProperty,X=Object.prototype.toString,J=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,Q=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===X.call(e)},ee=function(e){if(!e||"[object Object]"!==X.call(e))return!1;var t,n=Y.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Y.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Y.call(e,t)},te=function(e,t){J&&"__proto__"===t.name?J(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ne=function(e,t){if("__proto__"===t){if(!Y.call(e,t))return;if(Z)return Z(e,t).value}return e[t]},re=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=ne(s,n),s!==(o=ne(t,n))&&(u&&o&&(ee(o)||(i=Q(o)))?(i?(i=!1,a=r&&Q(r)?r:[]):a=r&&ee(r)?r:{},te(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&te(s,{name:n,newValue:o}));return s};const oe="center",ie="bottom";var ae={NoDataExist:{label:"NoDataExist",alignment:oe,default:!0},OnlyNanData:{label:"OnlyNanData",alignment:oe,default:!0},OnlyNegativeOrZeroValues:{label:"OnlyNegativeOrZeroValues",alignment:oe,default:!1},LimitedData:{label:"LimitedData",alignment:ie,default:!1},OnlyNanColor:{label:"OnlyNanColor",alignment:ie,default:!1},NegativeOrZeroValues:{label:"NegativeOrZeroValues",alignment:ie,default:!1},DataRangeIncludingZero:{label:"DataRangeIncludingZero",alignment:ie,default:!1}};const se=[["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}]],le={};se.forEach((([e,{width:t,height:n}])=>{le[e]={width:t,height:n}}));const ce={getLayoutModes:()=>le,getLayoutMode(e,t){let n;for(n=0;n<se.length;++n)if(e>=se[n][1].width&&t>=se[n][1].height)return se[n][0];return"SPARK"}};function ue(e,t){return{layoutModes:ce.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 de=["$date","$timestamp","$time"],pe=["D","TS","T"],me={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>de.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&pe.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(me.hasTimeTag(t)&&me.hasUnknownFormat(t)||me.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&me.isTimeDimension(e,t.qHyperCube.qDimensionInfo[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n,r;const o=null==e||null===(t=e.qHyperCube)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n?void 0:n.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(r=null==o?void 0:o.length)&&void 0!==r?r:0)<1)&&me.canBeContinuousDimension(o[0])},maxNumberOfLines:12},fe=(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},he=(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])},ge=e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},ve=e=>fe(e,"qHyperCube.qDimensionInfo",[]),ye=e=>fe(e,"qHyperCube.qMeasureInfo",[]),be=e=>fe(e,"barGrouping.grouping"),xe={continuous:(e,t=!1)=>!!me.canBeContinuous(e)&&(fe(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!ve(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===be(e)&&(ve(e).length>1||ye(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&ve(e).length>1&&1===ye(e).length},groupedByMeasure(e){return this.grouped(e)&&1===ve(e).length&&ye(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==be(e)||this.continuous(e))&&(ve(e).length>1||ye(e).length>1)},stackedByDimension(e){return this.stacked(e)&&ve(e).length>1&&1===ye(e).length},stackedByMeasure(e){return this.stacked(e)&&1===ve(e).length&&ye(e).length>1},simple:e=>0===ve(e).length||1===ve(e).length&&1===ye(e).length,snapshot:e=>!!fe(e,"snapshotData")};function Se(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const we=e=>{throw e.isHandled=!0,e};const Ce={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":return"far";case"far":return"near";default:return"far"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?Ce.getVerticalDock(t):n?Ce.getOppositeDock(Ce.getHorizontalDock(t)):Ce.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment(e,t){switch(e){case"vertical":return"near"===t||"bottom"===t?1:0;default:return"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 Me=(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 ke={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=ke.getCharacterRatios(e[n]),r.latin+=o.latin,r.cjk+=o.cjk})):e.forEach((e=>{o=ke.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=ke.getTotalCharacterRatios(t,n,r),i=o.latinRatio*e,a=o.cjkRatio*e;return Math.ceil(ke.stringWidthOverMWidth(i)+1.0909090909090908*a)}},Ee="#la-vie-tooltip";function Te(){if(!document.querySelector(Ee)){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 Ne({key:e="tooltip",rtl:t}){return{show:!0,key:e,type:"tooltip",layout:{displayOrder:3},beforeMount(){Te()},beforeUpdate(){Te()},destroyed(){!function(){const e=document.querySelector(Ee);e&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)}()},settings:{appendTo:()=>document.querySelector(Ee),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 Le=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),qe=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),De=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Oe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Le.test(e),isRtlChar:e=>qe.test(e)||De.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Oe.isLtrChar(r))return"ltr";if(Oe.isRtlChar(r))return"rtl"}return"ltr"}},Re={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?Re.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:""+e(t.source.key).field(t.source.field).title(),value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=Oe.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=Oe.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:Oe.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=Oe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=Oe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Re.getColorSymbol(e,t)]:[Re.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=Oe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Oe.detectTextDirection(e.value);let l;return l=o?r?[e.value,Re.getColorSymbol(t,n)]:[Re.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function Ae(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Pe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ie(){}var ze=.7,Be=1/ze,Fe="\\s*([+-]?\\d+)\\s*",He="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",je="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",We=/^#([0-9a-f]{3,8})$/,Ve=new RegExp("^rgb\\("+[Fe,Fe,Fe]+"\\)$"),_e=new RegExp("^rgb\\("+[je,je,je]+"\\)$"),Ue=new RegExp("^rgba\\("+[Fe,Fe,Fe,He]+"\\)$"),$e=new RegExp("^rgba\\("+[je,je,je,He]+"\\)$"),Ke=new RegExp("^hsl\\("+[He,je,je]+"\\)$"),Ge=new RegExp("^hsla\\("+[He,je,je,He]+"\\)$"),Ye={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 Xe(){return this.rgb().formatHex()}function Je(){return this.rgb().formatRgb()}function Ze(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=We.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Qe(t):3===n?new nt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?et(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?et(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=Ve.exec(e))?new nt(t[1],t[2],t[3],1):(t=_e.exec(e))?new nt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ue.exec(e))?et(t[1],t[2],t[3],t[4]):(t=$e.exec(e))?et(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ke.exec(e))?at(t[1],t[2]/100,t[3]/100,1):(t=Ge.exec(e))?at(t[1],t[2]/100,t[3]/100,t[4]):Ye.hasOwnProperty(e)?Qe(Ye[e]):"transparent"===e?new nt(NaN,NaN,NaN,0):null}function Qe(e){return new nt(e>>16&255,e>>8&255,255&e,1)}function et(e,t,n,r){return r<=0&&(e=t=n=NaN),new nt(e,t,n,r)}function tt(e){return e instanceof Ie||(e=Ze(e)),e?new nt((e=e.rgb()).r,e.g,e.b,e.opacity):new nt}function nt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function rt(){return"#"+it(this.r)+it(this.g)+it(this.b)}function ot(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function it(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function at(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new lt(e,t,n,r)}function st(e){if(e instanceof lt)return new lt(e.h,e.s,e.l,e.opacity);if(e instanceof Ie||(e=Ze(e)),!e)return new lt;if(e instanceof lt)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 lt(a,s,l,e.opacity)}function lt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ct(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ae(Ie,Ze,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Xe,formatHex:Xe,formatHsl:function(){return st(this).formatHsl()},formatRgb:Je,toString:Je}),Ae(nt,(function(e,t,n,r){return 1===arguments.length?tt(e):new nt(e,t,n,null==r?1:r)}),Pe(Ie,{brighter:function(e){return e=null==e?Be:Math.pow(Be,e),new nt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?ze:Math.pow(ze,e),new nt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rt,formatHex:rt,formatRgb:ot,toString:ot})),Ae(lt,(function(e,t,n,r){return 1===arguments.length?st(e):new lt(e,t,n,null==r?1:r)}),Pe(Ie,{brighter:function(e){return e=null==e?Be:Math.pow(Be,e),new lt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ze:Math.pow(ze,e),new lt(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 nt(ct(e>=240?e-240:e+120,o,r),ct(e,o,r),ct(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var ut=Math.PI/180,dt=180/Math.PI,pt=.96422,mt=.82521,ft=4/29,ht=6/29,gt=3*ht*ht;function vt(e){if(e instanceof yt)return new yt(e.l,e.a,e.b,e.opacity);if(e instanceof kt)return Et(e);e instanceof nt||(e=tt(e));var t,n,r=wt(e.r),o=wt(e.g),i=wt(e.b),a=bt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=bt((.4360747*r+.3850649*o+.1430804*i)/pt),n=bt((.0139322*r+.0971045*o+.7141733*i)/mt)),new yt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function yt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function bt(e){return e>.008856451679035631?Math.pow(e,1/3):e/gt+ft}function xt(e){return e>ht?e*e*e:gt*(e-ft)}function St(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function wt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ct(e){if(e instanceof kt)return new kt(e.h,e.c,e.l,e.opacity);if(e instanceof yt||(e=vt(e)),0===e.a&&0===e.b)return new kt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*dt;return new kt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Mt(e,t,n,r){return 1===arguments.length?Ct(e):new kt(e,t,n,null==r?1:r)}function kt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Et(e){if(isNaN(e.h))return new yt(e.l,0,0,e.opacity);var t=e.h*ut;return new yt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ae(yt,(function(e,t,n,r){return 1===arguments.length?vt(e):new yt(e,t,n,null==r?1:r)}),Pe(Ie,{brighter:function(e){return new yt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new yt(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 nt(St(3.1338561*(t=pt*xt(t))-1.6168667*(e=1*xt(e))-.4906146*(n=mt*xt(n))),St(-.9787684*t+1.9161415*e+.033454*n),St(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ae(kt,Mt,Pe(Ie,{brighter:function(e){return new kt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new kt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Et(this).rgb()}}));var Tt=-.14861,Nt=1.78277,Lt=-.29227,qt=-.90649,Dt=1.97294,Ot=Dt*qt,Rt=Dt*Nt,At=Nt*Lt-qt*Tt;function Pt(e){if(e instanceof It)return new It(e.h,e.s,e.l,e.opacity);e instanceof nt||(e=tt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(At*r+Ot*t-Rt*n)/-5.9615122912,i=r-o,a=(Dt*(n-o)-Lt*i)/qt,s=Math.sqrt(a*a+i*i)/(Dt*o*(1-o)),l=s?Math.atan2(a,i)*dt-120:NaN;return new It(l<0?l+360:l,s,o,e.opacity)}function It(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ae(It,(function(e,t,n,r){return 1===arguments.length?Pt(e):new It(e,t,n,null==r?1:r)}),Pe(Ie,{brighter:function(e){return e=null==e?Be:Math.pow(Be,e),new It(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ze:Math.pow(ze,e),new It(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*ut,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new nt(255*(t+n*(Tt*r+Nt*o)),255*(t+n*(Lt*r+qt*o)),255*(t+n*(Dt*r)),this.opacity)}}));var zt={isDark:function(e){return Mt(e).l<70}};function Bt(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Ft(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ht(e){return 1===e.length&&(e=function(e){return function(t,n){return Ft(e(t),n)}}(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}var jt=Ht(Ft).right,Wt=Math.sqrt(50),Vt=Math.sqrt(10),_t=Math.sqrt(2);function Ut(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>=Wt?10:i>=Vt?5:i>=_t?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Wt?10:i>=Vt?5:i>=_t?2:1)}function $t(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>=Wt?o*=10:i>=Vt?o*=5:i>=_t&&(o*=2),t<e?-o:o}function Kt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Gt="$";function Yt(){}function Xt(e,t){var n=new Yt;if(e instanceof Yt)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 Jt(){}Yt.prototype=Xt.prototype={constructor:Yt,has:function(e){return Gt+e in this},get:function(e){return this[Gt+e]},set:function(e,t){return this[Gt+e]=t,this},remove:function(e){var t=Gt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Gt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Gt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Gt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Gt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Gt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Gt)return!1;return!0},each:function(e){for(var t in this)t[0]===Gt&&e(this[t],t.slice(1),this)}};var Zt=Xt.prototype;Jt.prototype={constructor:Jt,has:Zt.has,add:function(e){return this[Gt+(e+="")]=e,this},remove:Zt.remove,clear:Zt.clear,values:Zt.keys,size:Zt.size,empty:Zt.empty,each:Zt.each};var Qt=Array.prototype,en=Qt.map,tn=Qt.slice;function nn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function rn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function on(){}var an=.7,sn=1/an,ln="\\s*([+-]?\\d+)\\s*",cn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",un="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dn=/^#([0-9a-f]{3})$/,pn=/^#([0-9a-f]{6})$/,mn=new RegExp("^rgb\\("+[ln,ln,ln]+"\\)$"),fn=new RegExp("^rgb\\("+[un,un,un]+"\\)$"),hn=new RegExp("^rgba\\("+[ln,ln,ln,cn]+"\\)$"),gn=new RegExp("^rgba\\("+[un,un,un,cn]+"\\)$"),vn=new RegExp("^hsl\\("+[cn,un,un]+"\\)$"),yn=new RegExp("^hsla\\("+[cn,un,un,cn]+"\\)$"),bn={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 xn(e){var t;return e=(e+"").trim().toLowerCase(),(t=dn.exec(e))?new kn((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=pn.exec(e))?Sn(parseInt(t[1],16)):(t=mn.exec(e))?new kn(t[1],t[2],t[3],1):(t=fn.exec(e))?new kn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=hn.exec(e))?wn(t[1],t[2],t[3],t[4]):(t=gn.exec(e))?wn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=vn.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]):bn.hasOwnProperty(e)?Sn(bn[e]):"transparent"===e?new kn(NaN,NaN,NaN,0):null}function Sn(e){return new kn(e>>16&255,e>>8&255,255&e,1)}function wn(e,t,n,r){return r<=0&&(e=t=n=NaN),new kn(e,t,n,r)}function Cn(e){return e instanceof on||(e=xn(e)),e?new kn((e=e.rgb()).r,e.g,e.b,e.opacity):new kn}function Mn(e,t,n,r){return 1===arguments.length?Cn(e):new kn(e,t,n,null==r?1:r)}function kn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function En(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Tn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ln(e,t,n,r)}function Nn(e){if(e instanceof Ln)return new Ln(e.h,e.s,e.l,e.opacity);if(e instanceof on||(e=xn(e)),!e)return new Ln;if(e instanceof Ln)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 Ln(a,s,l,e.opacity)}function Ln(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function qn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}nn(on,xn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),nn(kn,Mn,rn(on,{brighter:function(e){return e=null==e?sn:Math.pow(sn,e),new kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?an:Math.pow(an,e),new kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+En(this.r)+En(this.g)+En(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),nn(Ln,(function(e,t,n,r){return 1===arguments.length?Nn(e):new Ln(e,t,n,null==r?1:r)}),rn(on,{brighter:function(e){return e=null==e?sn:Math.pow(sn,e),new Ln(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?an:Math.pow(an,e),new Ln(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 kn(qn(e>=240?e-240:e+120,o,r),qn(e,o,r),qn(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 Dn=Math.PI/180,On=180/Math.PI,Rn=.96422,An=.82521,Pn=4/29,In=6/29,zn=3*In*In;function Bn(e){if(e instanceof Fn)return new Fn(e.l,e.a,e.b,e.opacity);if(e instanceof Un){if(isNaN(e.h))return new Fn(e.l,0,0,e.opacity);var t=e.h*Dn;return new Fn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof kn||(e=Cn(e));var n,r,o=Vn(e.r),i=Vn(e.g),a=Vn(e.b),s=Hn((.2225045*o+.7168786*i+.0606169*a)/1);return o===i&&i===a?n=r=s:(n=Hn((.4360747*o+.3850649*i+.1430804*a)/Rn),r=Hn((.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 Hn(e){return e>.008856451679035631?Math.pow(e,1/3):e/zn+Pn}function jn(e){return e>In?e*e*e:zn*(e-Pn)}function Wn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Vn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _n(e){if(e instanceof Un)return new Un(e.h,e.c,e.l,e.opacity);if(e instanceof Fn||(e=Bn(e)),0===e.a&&0===e.b)return new Un(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*On;return new Un(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Un(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}nn(Fn,(function(e,t,n,r){return 1===arguments.length?Bn(e):new Fn(e,t,n,null==r?1:r)}),rn(on,{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 kn(Wn(3.1338561*(t=Rn*jn(t))-1.6168667*(e=1*jn(e))-.4906146*(n=An*jn(n))),Wn(-.9787684*t+1.9161415*e+.033454*n),Wn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),nn(Un,(function(e,t,n,r){return 1===arguments.length?_n(e):new Un(e,t,n,null==r?1:r)}),rn(on,{brighter:function(e){return new Un(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Un(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Bn(this).rgb()}}));var $n=-.14861,Kn=1.78277,Gn=-.29227,Yn=-.90649,Xn=1.97294,Jn=Xn*Yn,Zn=Xn*Kn,Qn=Kn*Gn-Yn*$n;function er(e){if(e instanceof nr)return new nr(e.h,e.s,e.l,e.opacity);e instanceof kn||(e=Cn(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Qn*r+Jn*t-Zn*n)/(Qn+Jn-Zn),i=r-o,a=(Xn*(n-o)-Gn*i)/Yn,s=Math.sqrt(a*a+i*i)/(Xn*o*(1-o)),l=s?Math.atan2(a,i)*On-120:NaN;return new nr(l<0?l+360:l,s,o,e.opacity)}function tr(e,t,n,r){return 1===arguments.length?er(e):new nr(e,t,n,null==r?1:r)}function nr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function rr(e){return function(){return e}}function or(e,t){return function(n){return e+n*t}}function ir(e){return 1==(e=+e)?ar: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):rr(isNaN(t)?n:t)}}function ar(e,t){var n=t-e;return n?or(e,n):rr(isNaN(e)?t:e)}nn(nr,tr,rn(on,{brighter:function(e){return e=null==e?sn:Math.pow(sn,e),new nr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?an:Math.pow(an,e),new nr(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Dn,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new kn(255*(t+n*($n*r+Kn*o)),255*(t+n*(Gn*r+Yn*o)),255*(t+n*(Xn*r)),this.opacity)}}));var sr=function e(t){var n=ir(t);function r(e,t){var r=n((e=Mn(e)).r,(t=Mn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ar(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 lr(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]=hr(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 cr(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function ur(e,t){return t-=e=+e,function(n){return e+t*n}}function dr(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]=hr(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var pr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mr=new RegExp(pr.source,"g");function fr(e,t){var n,r,o,i=pr.lastIndex=mr.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=pr.exec(e))&&(r=mr.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:ur(n,r)})),i=mr.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 hr(e,t){var n,r=typeof t;return null==t||"boolean"===r?rr(t):("number"===r?ur:"string"===r?(n=xn(t))?(t=n,sr):fr:t instanceof xn?sr:t instanceof Date?cr:Array.isArray(t)?lr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?dr:ur)(e,t)}function gr(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function vr(e){return function t(n){function r(t,r){var o=e((t=tr(t)).h,(r=tr(r)).h),i=ar(t.s,r.s),a=ar(t.l,r.l),s=ar(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 yr(e){return+e}vr((function(e,t){var n=t-e;return n?or(e,n>180||n<-180?n-360*Math.round(n/360):n):rr(isNaN(e)?t:e)})),vr(ar);var br=[0,1];function xr(e){return e}function Sr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function wr(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 Cr(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Sr(o,r),i=n(a,i)):(r=Sr(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]=Sr(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=jt(e,t,1,r)-1;return i[n](o[n](t))}}function kr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Er(e,t){return function(){var e,t,n,r,o,i,a=br,s=br,l=hr,c=xr;function u(){return r=Math.min(a.length,s.length)>2?Mr:Cr,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),ur)))(n)))},d.domain=function(e){return arguments.length?(a=en.call(e,yr),c===xr||(c=wr(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=tn.call(e),u()):s.slice()},d.rangeRound=function(e){return s=tn.call(e),l=gr,u()},d.clamp=function(e){return arguments.length?(c=e?wr(a):xr,d):c!==xr},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 Tr(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 Nr(e){return(e=Tr(Math.abs(e)))?e[1]:NaN}var Lr,qr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Dr(e){return new Or(e)}function Or(e){if(!(t=qr.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 Rr(e,t){var n=Tr(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")}Dr.prototype=Or.prototype,Or.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 Ar={"%":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 Rr(100*e,t)},r:Rr,s:function(e,t){var n=Tr(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Lr=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")+Tr(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 Pr(e){return e}var Ir,zr,Br,Fr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Hr(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)}):Pr,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):Pr,s=e.percent||"%";function l(e){var t=(e=Dr(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,p=e.comma,m=e.precision,f=e.trim,h=e.type;"n"===h?(p=!0,h="g"):Ar[h]||(null==m&&(m=12),f=!0,h="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?o[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",v="$"===c?o[1]:/[%p]/.test(h)?s:"",y=Ar[h],b=/[defgprs%]/.test(h);function x(e){var o,s,c,x=g,S=v;if("c"===h)S=y(e)+S,e="";else{var w=(e=+e)<0;if(e=y(Math.abs(e),m),f&&(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)),w&&0==+e&&(w=!1),x=(w?"("===l?l:"-":"-"===l||"("===l?"":l)+x,S=("s"===h?Fr[8+Lr/3]:"")+S+(w&&"("===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}}p&&!u&&(e=r(e,1/0));var C=x.length+e.length+S.length,M=C<d?new Array(d-C+1).join(t):"";switch(p&&u&&(e=r(M+e,M.length?d-S.length:1/0),M=""),n){case"<":e=x+e+S+M;break;case"=":e=x+M+e+S;break;case"^":e=M.slice(0,C=M.length>>1)+x+e+S+M.slice(C);break;default:e=M+x+e+S}return a(e)}return m=null==m?6:/[gprs]/.test(h)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Dr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Nr(t)/3))),o=Math.pow(10,-r),i=Fr[8+r/3];return function(e){return n(o*e)+i}}}}function jr(e,t,n,r){var o,i=$t(e,t,n);switch((r=Dr(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(Nr(t)/3)))-Nr(Math.abs(e)))}(i,a))||(r.precision=o),Br(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,Nr(t)-Nr(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,-Nr(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return zr(r)}function Wr(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=Ut(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 jr(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=Ut(s,l,n))>0?r=Ut(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Ut(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 Vr(){var e=Er(xr,xr);return e.copy=function(){return kr(e,Vr())},Kt.apply(e,arguments),Wr(e)}Ir=Hr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),zr=Ir.format,Br=Ir.formatPrefix;var _r=new Date,Ur=new Date;function $r(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 $r((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 _r.setTime(+t),Ur.setTime(+r),e(_r),e(Ur),Math.floor(n(_r,Ur))},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 Kr=$r((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Kr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?$r((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Kr:null},Kr.range;var Gr=1e3,Yr=6e4,Xr=36e5,Jr=864e5,Zr=6048e5,Qr=$r((function(e){e.setTime(Math.floor(e/Gr)*Gr)}),(function(e,t){e.setTime(+e+t*Gr)}),(function(e,t){return(t-e)/Gr}),(function(e){return e.getUTCSeconds()}));Qr.range,$r((function(e){e.setTime(Math.floor(e/Yr)*Yr)}),(function(e,t){e.setTime(+e+t*Yr)}),(function(e,t){return(t-e)/Yr}),(function(e){return e.getMinutes()})).range,$r((function(e){var t=e.getTimezoneOffset()*Yr%Xr;t<0&&(t+=Xr),e.setTime(Math.floor((+e-t)/Xr)*Xr+t)}),(function(e,t){e.setTime(+e+t*Xr)}),(function(e,t){return(t-e)/Xr}),(function(e){return e.getHours()})).range;var eo=$r((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())*Yr)/Jr}),(function(e){return e.getDate()-1}));function to(e){return $r((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())*Yr)/Zr}))}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,$r((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var co=$r((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()}));co.every=function(e){return isFinite(e=Math.floor(e))&&e>0?$r((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},co.range;var uo=$r((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Yr)}),(function(e,t){return(t-e)/Yr}),(function(e){return e.getUTCMinutes()}));uo.range;var po=$r((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Xr)}),(function(e,t){return(t-e)/Xr}),(function(e){return e.getUTCHours()}));po.range;var mo=$r((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Jr}),(function(e){return e.getUTCDate()-1}));function fo(e){return $r((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)/Zr}))}mo.range;var ho=fo(0),go=fo(1),vo=fo(2),yo=fo(3),bo=fo(4),xo=fo(5),So=fo(6);ho.range,go.range,vo.range,yo.range,bo.range,xo.range,So.range;var wo=$r((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()}));wo.range;var Co=$r((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 Mo(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 ko(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 Eo(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}Co.every=function(e){return isFinite(e=Math.floor(e))&&e>0?$r((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},Co.range;var To,No,Lo,qo={"-":"",_:" ",0:"0"},Do=/^\s*\d+/,Oo=/^%/,Ro=/[\\^$*+?|[\]().{}]/g;function Ao(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(Ro,"\\$&")}function Io(e){return new RegExp("^(?:"+e.map(Po).join("|")+")","i")}function zo(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Bo(e,t,n){var r=Do.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Fo(e,t,n){var r=Do.exec(t.slice(n,n+1));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.U=+r[0],n+r[0].length):-1}function jo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Wo(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 _o(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 $o(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 Ko(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Go(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 Yo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Xo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Jo(e,t,n){var r=Do.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Zo(e,t,n){var r=Do.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Qo(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 ei(e,t,n){var r=Oo.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ti(e,t,n){var r=Do.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ni(e,t,n){var r=Do.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function ri(e,t){return Ao(e.getDate(),t,2)}function oi(e,t){return Ao(e.getHours(),t,2)}function ii(e,t){return Ao(e.getHours()%12||12,t,2)}function ai(e,t){return Ao(1+eo.count(co(e),e),t,3)}function si(e,t){return Ao(e.getMilliseconds(),t,3)}function li(e,t){return si(e,t)+"000"}function ci(e,t){return Ao(e.getMonth()+1,t,2)}function ui(e,t){return Ao(e.getMinutes(),t,2)}function di(e,t){return Ao(e.getSeconds(),t,2)}function pi(e){var t=e.getDay();return 0===t?7:t}function mi(e,t){return Ao(no.count(co(e),e),t,2)}function fi(e,t){var n=e.getDay();return e=n>=4||0===n?ao(e):ao.ceil(e),Ao(ao.count(co(e),e)+(4===co(e).getDay()),t,2)}function hi(e){return e.getDay()}function gi(e,t){return Ao(ro.count(co(e),e),t,2)}function vi(e,t){return Ao(e.getFullYear()%100,t,2)}function yi(e,t){return Ao(e.getFullYear()%1e4,t,4)}function bi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ao(t/60|0,"0",2)+Ao(t%60,"0",2)}function xi(e,t){return Ao(e.getUTCDate(),t,2)}function Si(e,t){return Ao(e.getUTCHours(),t,2)}function wi(e,t){return Ao(e.getUTCHours()%12||12,t,2)}function Ci(e,t){return Ao(1+mo.count(Co(e),e),t,3)}function Mi(e,t){return Ao(e.getUTCMilliseconds(),t,3)}function ki(e,t){return Mi(e,t)+"000"}function Ei(e,t){return Ao(e.getUTCMonth()+1,t,2)}function Ti(e,t){return Ao(e.getUTCMinutes(),t,2)}function Ni(e,t){return Ao(e.getUTCSeconds(),t,2)}function Li(e){var t=e.getUTCDay();return 0===t?7:t}function qi(e,t){return Ao(ho.count(Co(e),e),t,2)}function Di(e,t){var n=e.getUTCDay();return e=n>=4||0===n?bo(e):bo.ceil(e),Ao(bo.count(Co(e),e)+(4===Co(e).getUTCDay()),t,2)}function Oi(e){return e.getUTCDay()}function Ri(e,t){return Ao(go.count(Co(e),e),t,2)}function Ai(e,t){return Ao(e.getUTCFullYear()%100,t,2)}function Pi(e,t){return Ao(e.getUTCFullYear()%1e4,t,4)}function Ii(){return"+0000"}function zi(){return"%"}function Bi(e){return+e}function Fi(e){return Math.floor(+e/1e3)}!function(e){(To=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=Io(o),u=zo(o),d=Io(i),p=zo(i),m=Io(a),f=zo(a),h=Io(s),g=zo(s),v=Io(l),y=zo(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:ri,e:ri,f:li,H:oi,I:ii,j:ai,L:si,m:ci,M:ui,p:function(e){return o[+(e.getHours()>=12)]},Q:Bi,s:Fi,S:di,u:pi,U:mi,V:fi,w:hi,W:gi,x:null,X:null,y:vi,Y:yi,Z:bi,"%":zi},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:xi,e:xi,f:ki,H:Si,I:wi,j:Ci,L:Mi,m:Ei,M:Ti,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Bi,s:Fi,S:Ni,u:Li,U:qi,V:Di,w:Oi,W:Ri,x:null,X:null,y:Ai,Y:Pi,Z:Ii,"%":zi},S={a:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return M(e,t,n,r)},d:Ko,e:Ko,f:Qo,H:Yo,I:Yo,j:Go,L:Zo,m:$o,M:Xo,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:ti,s:ni,S:Jo,u:Fo,U:Ho,V:jo,w:Bo,W:Wo,x:function(e,t,r){return M(e,n,t,r)},X:function(e,t,n){return M(e,r,t,n)},y:_o,Y:Vo,Z:Uo,"%":ei};function w(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=qo[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=Eo(1900);if(M(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=ko(Eo(i.y))).getUTCDay(),r=o>4||0===o?go.ceil(r):go(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(Eo(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?ko(Eo(i.y)).getUTCDay():t(Eo(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,ko(i)):t(i)}}function M(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 qo?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=w(n,b),b.X=w(r,b),b.c=w(t,b),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",Mo);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,ko);return t.toString=function(){return e},t}}}(e)).format,To.parse,No=To.utcFormat,Lo=To.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 Hi="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||No(Hi),+new Date("2000-01-01T00:00:00.000Z")||Lo(Hi);var ji=1e3,Wi=6e4,Vi=36e5,_i=864e5,Ui=2592e6,$i=31536e6;function Ki(e){return new Date(e)}function Gi(e){return e instanceof Date?+e:+new Date(+e)}function Yi(e,t,n,r,o,i,a,s,l){var c=Er(xr,xr),u=c.invert,d=c.domain,p=l(".%L"),m=l(":%S"),f=l("%I:%M"),h=l("%I %p"),g=l("%a %d"),v=l("%b %d"),y=l("%B"),b=l("%Y"),x=[[a,1,ji],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,Wi],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Vi],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,_i],[r,2,1728e5],[n,1,6048e5],[t,1,Ui],[t,3,7776e6],[e,1,$i]];function S(s){return(a(s)<s?p:i(s)<s?m:o(s)<s?f:r(s)<s?h:t(s)<s?n(s)<s?g:v:e(s)<s?y:b)(s)}function w(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var i=Math.abs(r-n)/t,a=Ht((function(e){return e[2]})).right(x,i);a===x.length?(o=$t(n/$i,r/$i,t),t=e):a?(o=(a=x[i/x[a-1][2]<x[a][2]/i?a-1:a])[1],t=a[0]):(o=Math.max($t(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(en.call(e,Gi)):d().map(Ki)},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=w(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=w(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 kr(c,Yi(e,t,n,r,o,i,a,s,l))},c}const Xi={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"}}},Ji=e=>e+" 12px -12px inset rgba(0, 0, 0, 0.0625)";var Zi={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=Xi[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Ji(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Ji(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 Qi({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 ea;function ta(){ea=ea||document.createElement("canvas").getContext("2d")}const na={measureTextWidth(e){ta();const{width:t}=ea.measureText(e);return t},lineWrap(e,t,n,r){let o,i;ta();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,p=e?e.split(/\s+/):[],m=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(ea.font=n),i=0;i<a.length;i++){for(d=a[i]||"",p=d.split(/\s+/),[m]=p,u="",o=1;o<p.length;o++)if(l=`${m} ${p[o]}`,c=na.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(m),m=p[o]):m=l,"number"==typeof r&&s.length>=r){u=p.slice(o+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(m):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${m} ${u}`}return s},wordWrap(e,t,n,r,o){if(ta(),!e||!e.length)return[];n&&(ea.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||na.measureTextWidth(c)<=t?i.push(c):(s=na.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]?na.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]=na.truncate(i[i.length-1],t,n,o).text):(c=i[i.length-1],c&&c.length>1&&na.measureTextWidth(c)>t&&(i[i.length-1]=na.truncate(c,t,n,o).text)),i},truncate(e,t,n,r="…"){ta();let o,i,a,s,l=e;const c=na.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(ea.font=n),e&&t){if(na.measureTextWidth(l)>t){for(o=Math.min(u,l.length);o>0;o--)if(i=l.substring(0,o-1),a=i.trim()+r,na.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;ta();let i,a=e,s="",l=[];if(na.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),!(na.measureTextWidth(a)<=t));o--);return(!o&&!a||na.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(na.measureTextWidth(s)>t?(s=na.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(ta(),e&&t?(n&&(ea.font=n),na.explodeWord(e,t,r,Math.max(1,na.measureTextWidth("i")))):[]),wrapText(e,t,n,r,o){let i;return Number.isNaN(t)?[e]:(i=r>1?na.lineWrap(e,t,n,r):[e],i=na.wordWrap(i,t,n,r,o),i)},getFontHeight:e=>(ta(),e&&(ea.font=e),1.5*na.measureTextWidth("m")),tokenize(e,t,n,r,o,i,a=1){ta(),t&&(ea.font=t);const s=na.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(i<s)return[];const p=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?p-u:e)}))):c=[Number.isNaN(r)||r<=0?p:Math.min(p,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<p&&(d=d.concat(na.wrapText(e,o,t,c[n])))})):d=na.wrapText(e,o,t,c[0],n),d}},ra={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(re({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},oa=re.bind(null,!0),ia={},{isArray:aa}=Array;function sa(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function la(e){return void 0===e}function ca(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function ua(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]=la(e[r||t])?i:e[t],e=e[r||t]})),e}function da(e,t){let n=!0;if(sa(e)&&sa(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{da(e[r],t[r])||(n=!1)})),n);if(aa(e)&&aa(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!da(e[n],t[n]))return!1;return!0}return e===t}ia.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?oa({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;da(i,a)||ca(t,o)||(la(a)?r.push({op:"add",path:s,value:i}):sa(i)&&sa(a)?r=r.concat(ia.generate(a,i,s)):aa(i)&&aa(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]&&la(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(da(t,o))return r;if(!la(t[0])&&la(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(ia.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=>{la(t[o])&&!ca(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},ia.apply=function(e,t){t.forEach((t=>{let n=ua(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(aa(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(aa(o)&&aa(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(sa(o)&&sa(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!ca(a,e)&&delete a[e]})),oa(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=ua(e,t.from);aa(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(aa(n)?n.splice(+r,1):delete n[r]);var a}))},ia.clone=function(e){return oa({},e)},ia.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},ia.updateObject=function(e,t){Object.keys(e).length?ia.apply(e,ia.generate(e,t)):oa(e,t)};const pa=Math.log(10);function ma(e){return 10**e}const fa={pow10:ma,log:(e,t)=>e<=0||t<=0?NaN:Math.log(e)/Math.log(t),log10:e=>e<=0?NaN:Math.log(e)/pa,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))/pa),r=e/ma(n);return t=r<=1?1:r<=2?2:r<=5?5:10,t*ma(n)*(e<0?-1:1)},getSmallNiceNumber(e){let t,n;if(0===e)return 0;t=Math.floor(Math.log(Math.abs(e))/pa);const r=e/ma(t);return r<1?(n=5,t--):n=r<2?1:r<5?2:5,n*ma(t)*(e<0?-1:1)},getMagnitude(e){if(0===e)return 0;return ma(Math.floor(Math.log(Math.abs(e))/pa))},getFraction(e){if(0===e)return 0;return e/ma(Math.floor(Math.log(Math.abs(e))/pa))},getGoodNumber(e){let t;if(0===e)return 0;const n=Math.floor(Math.log(Math.abs(e))/pa),r=e/ma(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*ma(n)*(e<0?-1:1)},getValueWithOffset:(e,t=0)=>e+Math.abs(e)*t,isNumber:e=>"number"==typeof e&&!Number.isNaN(e)},ha=[[2,4,6],[2,4],[3]],ga=[,[,,[[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 va(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function ya(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)va(e[r],t,n)}!function(){let e,t;for(ya(ha,1,10),e=0;e<ga.length;e++)if(ga[e])for(t=0;t<ga[e].length;t++)Array.isArray(ga[e][t])&&ya(ga[e][t])}();const ba={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=ba.findSegmentPositionMeetMin(e,t);return ba.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=ba.findSegmentPositionMeetMax(e,n);return ba.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=ba.findSegmentPositionMeetMaxThenMin(i,s,(i.center+a.center-r)/2),s=i.position+i.radius+r/2;a.position=ba.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,ba.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)ba.layoutPositionFromMin(e,t,n,r),ba.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=ba.findSegmentPositionMeetMaxThenMin(r,t,n)}}},xa=(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},Sa=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,wa=e=>e.filter(Sa),Ca=(e,t)=>wa(fe(e,t,[])),Ma=e=>Sa(e)&&(!1!==e.showValue||!1!==e.showLabel),ka=e=>e.filter(Ma),Ea=(e,t)=>ka(fe(e,t,[])),Ta=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,Na=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},La=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},qa=({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},Da=({value:e,qMin:t})=>"NaN"!==t&&e<t,Oa=({value:e,qMax:t})=>"NaN"!==t&&e>t,Ra={isRefLineVisible:Sa,getVisibleRefLines:wa,getRefLines:Ca,getMeasureRefLines:e=>Ca(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:Ca(e,"refLine.dimRefLines"),isRefLineLabelVisible:Ma,getVisibleRefLineLabels:ka,getRefLineLabels:Ea,getMeasureRefLineLabels:e=>Ea(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:Ea(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=xa(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=xa(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=xa(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=fe(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():fe(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=fe(l,s?"qData.0.qSubNodes":"qMatrix",[]),u=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),d=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<c.length;e++){const t=c[e],n=e+d,r=t[u];i[r]||(i[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n})}})():o?(()=>{let e;for(let t=0;t<c.length;t++){const n=c[t][0],r=c[t][1],o=t+d,a=n[u];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}]},0===t?0===o&&(i[a].isMinOrderOk=!0):a!==e&&(i[a].isMinOrderOk=!0,i[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<c.length;e++){const t=c[e][0],n=e+d,r=t[u];i[r]||(i[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n})}})(),i},getInputValue:Ta,extractInfoFromInputValue:Na,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Ta({refLineLayout:e,layoutService:n});return Na(r,t,"id")},isDiscreteMinOutOfBounds:La,isDiscreteMaxOutOfBounds:qa,isContinuousMinOutOfBounds:Da,isContinuousMaxOutOfBounds:Oa,isOutOfRange:({value:e,qMin:t,qMax:n})=>Da({value:e,qMin:t})||Oa({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&qa({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&La({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n};function Aa(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r];o.lines=na.tokenize(o.title,t,"… "+o.valueString,3,n),o.maxNumLines=o.lines.length}}function Pa({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=na.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 Ia({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=e.map((e=>Pa({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 za(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const Ba=3,Fa=2;function Ha({inputValue:e,inputValueLabel:t,localeInfo:n}){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const r=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return t.replace(new RegExp(`[0-9e${r}]`,"g"),"").length>0||function(e){if(e.indexOf("e")>-1)return!1;const t=e.indexOf("-");return-1!==t&&(e.lastIndexOf("-")!==t||0!==t)}(t)}const ja=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(Ra.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(Ra.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return Ra.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:Ra.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},Wa={hasEngineFormat:Ha,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:o,rtl:i,isContinuous:a,isDimension:s}){const l=Ra.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 p,m;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");p=e.qMin,m=e.qMax}for(let o=0;o<e.length;o++){const i=e[o],{value:s,align:c,valueInfo:d}=i,f=ja({label:i,dataPages:u,qMin:p,qMax:m});i.scaledValue=1===f?l?-.1:1.1:-1===f?l?1.1:-.1:Ra.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=Ha({inputValue:s,inputValueLabel:l,localeInfo:o})?l:t?t(a):a,r.valueString=`${Oe.lrm}(${i})${Oe.lrm}`,r.title=Wa.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;i=Ha({inputValue:a,inputValueLabel:s,localeInfo:o})?s:r,n.valueString=`${Oe.lrm}(${i})${Oe.lrm}`,n.title=Wa.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];i=n.valueText,n.valueString=`${Oe.lrm}(${i})${Oe.lrm}`,n.title=Wa.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title).width}},measureLabelMaxLineWidth:(e,t)=>Math.max(...e.lines.map((e=>t(e).width))),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=Wa.getTotalNumLines(e)-r;if(t<=0)return;Wa.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,Wa.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,font:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:p,layoutService:m,isContinuous:f,isDimension:h}){const g=e.map((e=>e)),v=n;Wa.calculateLabelPositions({labels:e,scale:t,size:v,layoutService:m,orientation:u,rtl:p,isContinuous:f,isDimension:h}),za(e,"center"),Wa.addLabelsNeighborInfo(e,r,o,i),Aa(e,a,s),Wa.reduceTotalMaxNumLines(g,l,o-(g.length-1)*i),"vertical"===u&&(Wa.reduceMaxNumLines(e,l,.05*i),function(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r];o.lines.length>o.maxNumLines&&(o.lines=na.tokenize(o.title,t,"… "+o.valueString,o.maxNumLines,n))}}(e,a,s)),Wa.addLabelsSize(e,s,l,d),Wa.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:o,lineHeight:i=15,font:a}){const{majorAxis:s,minorAxis:l}=r,{minorCenter:c}=o,{fontSize:u,fontFamily:d,background:p}=t;let m=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,o=t.map(((t,o)=>{const p={type:"text",text:t,title:Pa({title:e.title,font:a,ellipsis:"… "+e.valueString}),dx:0,dy:0,maxWidth:n,width:n,fontSize:u,fontFamily:d,fill:e.fill,baseline:"central",anchor:"middle"};return p[l]=c,p[s]=e.segment.position,p.y+=(o-(r-1)/2)*i,p}));e.background&&m.push(function({minorCenter:e,majorAxis:t,minorAxis:n,label:r,lineHeight:o,background:i}){const{lines:a}=r,{borderRadius:s=Ba,padding:l={}}=i,{top:c=Fa,bottom:u=Fa,left:d=Fa,right:p=Fa}=l,m=a.length,f={type:"rect",rx:s,ry:s,fill:r.background.fill,width:r.width+(d+p),height:r.height+(c+u)};return f[n]=e,f[t]=r.segment.position,f.x-=r.width/2+d,f.y-=m*o/2+c,f}({minorCenter:c,majorAxis:s,minorAxis:l,label:e,lineHeight:i,background:p})),m=m.concat(o)})),m}};function Va(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 _a(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{font:n,lineHeight:r,top:o,bottom:i,maxLabelWidth:a}=t;let s=1;return Wa.getMaxTextWidth(e)>a&&(Aa(e,n,a),s=Math.max(...e.map((e=>e.lines.length)))),s*r+o+i}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:o}=t;return Math.min(o,Wa.getMaxTextWidth(e))+n+r}(t,n)}function Ua(e,t){return t?e.domain():[0,1]}function $a(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 Ka(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 Ga(e,t){return e>9?t[1]:t[0]}function Ya({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:p,minorAxis:m,minorDimension:f}=s,h=o[f],g=ra.createOob({oob:ra.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:o.width,rendHeight:o.height,flipXY:d,symbol:i}),v="c"+p,y="c"+m,b={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0};b[y]=h/2,b[v]=a;const x={type:"text",text:u>9?"9+":u,title:Ia({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:h,width:h,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle"};return x[m]=h/2,x[p]=a,[g,b,x]}function Xa(e){const t=`normal ${e.fontSize} '${e.fontFamily}'`;return{font:t,lineHeight:na.getFontHeight(t)*(e.lineHeightMultiplicator||1),gap:e.gap||12,maxLabelWidth:e.maxWidth||75,top:e.padding.top||0,bottom:e.padding.bottom||0,left:e.padding.left||0,right:e.padding.right||0}}const Ja=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 Za={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=Ja(this.settings.labels),s=Va(this.chart,this.settings.formatter,e);Wa.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]=Ua(t,n);return $a(e,r,o)}if(r){const t=o.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return $a(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:i,layoutService:n});let d;if(this.measureText=e=>this.renderer.measureText({text:e,fontSize:t.label.fontSize,fontFamily:t.label.fontFamily}),u&&u.length){const e=Xa(t.label),{dock:n}=this.settings.layout;return Wa.measureLabelsWidth(u,this.measureText),d=_a(n,u,e),d}const p=Ka(this.measureText),m=l?Ga(l,p):0,f=c?Ga(c,p):0;return d=Math.max(m,f),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:o,isContinuous:i,isDimension:a,localeInfo:s}=this.settings,l=!!i||r.meta.canBeContinuous,c=Ja(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:p}=n.label,m=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),f=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,m,p),{orientation:h,majorDimension:g}=m,{majorSize:v}=f,{font:y,lineHeight:b,gap:x,maxLabelWidth:S}=Xa(n.label),w=Va(this.chart,this.settings.formatter,e),C=v;Wa.addLabelTitles({labels:c,formatter:w,isContinuous:i,canBeContinuous:l,localeInfo:s}),Wa.calculateLabelPositions({labels:c,scale:e,size:C,layoutService:r,orientation:h,rtl:d,isContinuous:i,isDimension:a});const[M,k]=Ua(e,i),{filteredLabels:E,lowerOobs:T,upperOobs:N,lowerCircleSize:L,upperCircleSize:q,lowerOobSpace:D,upperOobSpace:O}=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:p}=$a(e,t,n,c),m="scaledValue"!==c&&Ra.getInvert({orientation:r,rtl:o,isContinuous:i}),f=function(e,t,n){return n?t:e}(d,u,m),h=function(e,t,n){return n?e:t}(d,u,m),g=f.length,v=h.length,y=Ka(l),b=Ga(g,y),x=Ga(v,y);return{filteredLabels:p,lowerOobs:f,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace: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),upperOobSpace:function(e,t,n,r,o){return("vertical"===r?o.bottom:o.right)+(e>0?t+n:0)}(v,a.oob.size,x,r,s)}}({labels:c,minValue:M,maxValue:k,orientation:h,rtl:d,isContinuous:i,style:n,padding:p,measureText:this.measureText,prop:i?"value":"scaledValue"}),R=D,A=v-O;za(T),za(N);const P=Ya({alignment:0,dockValue:0,oobs:T,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+L/2,areaProps:m,radius:L/2,font:y}),I=Ya({alignment:1,dockValue:1,oobs:N,style:n.oob,rect:this.rect,symbol:t,position:v-(n.oob.size+q/2),areaProps:m,radius:q/2,font:y});Wa.addLabelsInfo({labels:E,scale:e,majorSize:v,lowerLimit:R,upperLimit:A,font:y,lineHeight:b,gap:x,maxLabelWidth:S,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:i,isDimension:a}),ba.layout(E.map((e=>e.segment)),R,A,n.label.gap);const z=E.filter((e=>ba.isInside(e.segment,R,A,i)));return Wa.createLabels({labels:z,style:n.label,maxLabelWidth:S,areaProps:m,area:f,lineHeight:b,font:y,theme:o}).concat([...P,...I])}};const{getInputValue:Qa,extractInfoFromInputValue:es,resolveValue:ts}=Ra;var ns={resolveValue:ts,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Qa({refLineLayout:e,layoutService:n});return es(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Qa({refLineLayout:e,layoutService:n});return es(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:o}=n.meta,i=Qa({refLineLayout:e,layoutService:n});return r[i]&&o?r[i].qText:i},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Qa({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:o}=t;return o[r]}};function rs({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:o,chart:i,scale:a,axis:s,rtl:l,key:c,mainComponentKey:u,path:d,minimumLayoutMode:p}){const m=e?t.dimensionRefLines:d?t.query.getRefLines(d):t.measureRefLines;if(!m.length)return!1;const f={key:c,type:"ref-line",layout:{minimumLayoutMode:p},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}})},h=!(!e||"horizontal"!==o.meta.major.orientation||!l),g=!e||n.meta.isContinuous;return m.forEach((l=>{f.lines[s].push((({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 p,m;const f={dir:l,line:{strokeWidth:(null==t||null===(p=t.style)||void 0===p?void 0:p.lineThickness)||2,strokeDasharray:null==t||null===(m=t.style)||void 0===m?void 0:m.lineType,stroke:o.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(f.scale=s,f.value=t.refLineExpr.value):f.value=()=>{var e;const o=Ra.getScaledPosition({scale:a.scale(s),value:ns.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:ns.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===i.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(o)?void 0:o},f})({isDimension:e,refLineLayout:l,refLineModel:t,layoutService:n,colorModel:r,dockService:o,chart:i,scale:a,axis:s,invert:h,component:u,isContinuous:g}))})),f}const os={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}};function is({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dock:o,scale:i,style:a,formatter:s,theme:l,localeInfo:c,rtl:u,key:d,path:p}){const m=e?t.dimensionRefLineLabels:p?t.query.getRefLineLabels(p):t.measureRefLineLabels;if(!m.length)return[];const f=[],h=!e||n.meta.isContinuous,g=m.map((e=>(({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:o,theme:i,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),l={align:e.align,text:e.label,fill:e.coloredBackground?i.getContrastingColorTo(s):s,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(l.background={fill:s}),a?(l.scale=o,l.value=e.refLineExpr.value):(l.value=()=>ns.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueText=()=>ns.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueInfo=()=>ns.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),l})({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:l,isContinuous:h})));return f.push((({isDimension:e,layoutService:t,style:n,labels:r,scale:o,formatter:i,dock:a,key:s,rtl:l,theme:c,isContinuous:u,localeInfo:d})=>({key:s,type:"reference-line-labels",renderer:"svg",labels:r,formatter:i,scale:o,layoutService:t,layout:{dock:a,rtl:l},theme:c,isContinuous:u,isDimension:e,localeInfo:d,style:{label:{fontFamily:n.referenceLine.label.name.fontFamily,fontSize:n.referenceLine.label.name.fontSize,padding:{top:2,bottom:2,left:l?2:4,right:l?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===a||"right"===a?10:16},oob:{size:8,fill:n.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:n.referenceLine.outOfBounds.fontFamily,fontSize:n.referenceLine.outOfBounds.fontSize,fill:n.referenceLine.outOfBounds.color,background:{fill:n.referenceLine.outOfBounds.backgroundColor}}}}}))({isDimension:e,rtl:u,style:re(!0,os,a),dock:o,key:d,labels:g,scale:i,formatter:s,layoutService:n,theme:l,isContinuous:h,localeInfo:c})),f}const as={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}}};var ss={exports:{}};function ls(){}function cs(){}cs.resetWarningCache=ls;ss.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:cs,resetWarningCache:ls};return n.PropTypes=n,n}();var us={black:"#000",white:"#fff"},ds="#e57373",ps="#f44336",ms="#d32f2f",fs="#ff4081",hs="#f50057",gs="#c51162",vs="#7986cb",ys="#3f51b5",bs="#303f9f",xs={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 Ss(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>n?n:e}function ws(e){if(e.type)return e;if("#"===e.charAt(0))return ws(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb(".concat(n.map((function(e){return parseInt(e,16)})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(["Material-UI: unsupported `".concat(e,"` color."),"We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."].join("\n"));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Cs(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 Ms(e){var t="hsl"===(e=ws(e)).type?ws(function(e){var t=(e=ws(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])),Cs({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 ks(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Ms(e)>.5?Ts(e,t):Ns(e,t)}function Es(e,t){return e=ws(e),t=Ss(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Cs(e)}function Ts(e,t){if(e=ws(e),t=Ss(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 Cs(e)}function Ns(e,t){if(e=ws(e),t=Ss(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 Cs(e)}function Ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qs(){return(qs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ds(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Os(){return(Os=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Rs(e){return(Rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function As(e){return(As="function"==typeof Symbol&&"symbol"===Rs(Symbol.iterator)?function(e){return Rs(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Rs(e)})(e)}function Ps(e){return e&&"object"===As(e)&&!Array.isArray(e)}function Is(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Os({},e):e;return Ps(e)&&Ps(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Ps(t[o])&&o in e?r[o]=Is(e[o],t[o],n):r[o]=t[o])})),r}(ss.exports.element,function(){return null}).isRequired=(ss.exports.element.isRequired,function(){return null});var zs={exports:{}},Bs={};
|
|
8
8
|
/** @license React v16.11.0
|
|
9
9
|
* react-is.production.min.js
|
|
10
10
|
*
|
|
@@ -13,14 +13,14 @@ System.register(["picasso.js","picasso-plugin-q","hammerjs","react","react-dom",
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
Object.defineProperty(zs,"__esModule",{value:!0});var Bs="function"==typeof Symbol&&Symbol.for,Fs=Bs?Symbol.for("react.element"):60103,Hs=Bs?Symbol.for("react.portal"):60106,js=Bs?Symbol.for("react.fragment"):60107,Ws=Bs?Symbol.for("react.strict_mode"):60108,Vs=Bs?Symbol.for("react.profiler"):60114,Us=Bs?Symbol.for("react.provider"):60109,_s=Bs?Symbol.for("react.context"):60110,$s=Bs?Symbol.for("react.async_mode"):60111,Ks=Bs?Symbol.for("react.concurrent_mode"):60111,Gs=Bs?Symbol.for("react.forward_ref"):60112,Ys=Bs?Symbol.for("react.suspense"):60113,Xs=Bs?Symbol.for("react.suspense_list"):60120,Js=Bs?Symbol.for("react.memo"):60115,Zs=Bs?Symbol.for("react.lazy"):60116,Qs=Bs?Symbol.for("react.fundamental"):60117,el=Bs?Symbol.for("react.responder"):60118,tl=Bs?Symbol.for("react.scope"):60119;function nl(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Fs:switch(e=e.type){case $s:case Ks:case js:case Vs:case Ws:case Ys:return e;default:switch(e=e&&e.$$typeof){case _s:case Gs:case Us:return e;default:return t}}case Zs:case Js:case Hs:return t}}}function rl(e){return nl(e)===Ks}zs.typeOf=nl,zs.AsyncMode=$s,zs.ConcurrentMode=Ks,zs.ContextConsumer=_s,zs.ContextProvider=Us,zs.Element=Fs,zs.ForwardRef=Gs,zs.Fragment=js,zs.Lazy=Zs,zs.Memo=Js,zs.Portal=Hs,zs.Profiler=Vs,zs.StrictMode=Ws,zs.Suspense=Ys,zs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===js||e===Ks||e===Vs||e===Ws||e===Ys||e===Xs||"object"==typeof e&&null!==e&&(e.$$typeof===Zs||e.$$typeof===Js||e.$$typeof===Us||e.$$typeof===_s||e.$$typeof===Gs||e.$$typeof===Qs||e.$$typeof===el||e.$$typeof===tl)},zs.isAsyncMode=function(e){return rl(e)||nl(e)===$s},zs.isConcurrentMode=rl,zs.isContextConsumer=function(e){return nl(e)===_s},zs.isContextProvider=function(e){return nl(e)===Us},zs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Fs},zs.isForwardRef=function(e){return nl(e)===Gs},zs.isFragment=function(e){return nl(e)===js},zs.isLazy=function(e){return nl(e)===Zs},zs.isMemo=function(e){return nl(e)===Js},zs.isPortal=function(e){return nl(e)===Hs},zs.isProfiler=function(e){return nl(e)===Vs},zs.isStrictMode=function(e){return nl(e)===Ws},zs.isSuspense=function(e){return nl(e)===Ys},Is.exports=zs,"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),as.exports.oneOfType([as.exports.func,as.exports.PropTypes.object]);var ol=["xs","sm","md","lg","xl"];function il(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=Ds(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=ol.indexOf(t)+1;return r===ol.length?l(e):"@media (min-width:".concat(n[e]).concat(o,") and ")+"(max-width:".concat(n[ol[r]]-a/100).concat(o,")")}return Ls({keys:ol,values:n,up:l,down:function(e){var t=ol.indexOf(e)+1,r=n[ol[t]];return t===ol.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}function al(e,t,n){var r;return Ls({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ls({paddingLeft:t(2),paddingRight:t(2)},n,Ns({},e.up("sm"),Ls({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Ns(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Ns(r,e.up("sm"),{minHeight:64}),r)},n)}var sl={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:cs.white,default:bs[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.08)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.14)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"}},ll={text:{primary:cs.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:bs[800],default:"#303030"},action:{active:cs.white,hover:"rgba(255, 255, 255, 0.1)",hoverOpacity:.1,selected:"rgba(255, 255, 255, 0.2)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)"}};function cl(e,t,n,r){e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ts(e.main,r):"dark"===t&&(e.dark=Es(e.main,1.5*r)))}function ul(e){var t=e.primary,n=void 0===t?{light:gs,main:vs,dark:ys}:t,r=e.secondary,o=void 0===r?{light:ms,main:fs,dark:hs}:r,i=e.error,a=void 0===i?{light:us,main:ds,dark:ps}:i,s=e.type,l=void 0===s?"light":s,c=e.contrastThreshold,u=void 0===c?3:c,d=e.tonalOffset,p=void 0===d?.2:d,m=Ds(e,["primary","secondary","error","type","contrastThreshold","tonalOffset"]);function f(e){return function(e,t){var n=Cs(e),r=Cs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ll.text.primary)>=u?ll.text.primary:sl.text.primary}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;return!(e=Ls({},e)).main&&e[t]&&(e.main=e[t]),cl(e,"light",n,p),cl(e,"dark",r,p),e.contrastText||(e.contrastText=f(e.main)),e}var g={dark:ll,light:sl};return Ps(Ls({common:cs,type:l,primary:h(n),secondary:h(o,"A400","A200","A700"),error:h(a),grey:bs,contrastThreshold:u,getContrastText:f,augmentColor:h,tonalOffset:p},g[l]),m,{clone:!1})}function dl(e){return Math.round(1e5*e)/1e5}var pl={textTransform:"uppercase"},ml='"Roboto", "Helvetica", "Arial", sans-serif';function fl(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?ml:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,p=void 0===d?500:d,m=n.fontWeightBold,f=void 0===m?700:m,h=n.htmlFontSize,g=void 0===h?16:h,v=n.allVariants,y=n.pxToRem,b=Ds(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=y||function(e){return"".concat(e/g*x,"rem")},w=function(e,t,n,r,i){return Ls({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===ml?{letterSpacing:"".concat(dl(r/t),"em")}:{},{},i,{},v)},C={h1:w(l,96,1,-1.5),h2:w(l,60,1,-.5),h3:w(u,48,1.04,0),h4:w(u,34,1.17,.25),h5:w(u,24,1.33,0),h6:w(p,20,1.6,.15),subtitle1:w(u,16,1.75,.15),subtitle2:w(p,14,1.57,.1),body1:w(u,16,1.5,.15),body2:w(u,14,1.43,.15),button:w(p,14,1.75,.4,pl),caption:w(u,12,1.66,.4),overline:w(u,12,2.66,1,pl)};return Ps(Ls({htmlFontSize:g,pxToRem:S,round:dl,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:f},C),b,{clone:!1})}function hl(){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 gl=["none",hl(0,2,1,-1,0,1,1,0,0,1,3,0),hl(0,3,1,-2,0,2,2,0,0,1,5,0),hl(0,3,3,-2,0,3,4,0,0,1,8,0),hl(0,2,4,-1,0,4,5,0,0,1,10,0),hl(0,3,5,-1,0,5,8,0,0,1,14,0),hl(0,3,5,-1,0,6,10,0,0,1,18,0),hl(0,4,5,-2,0,7,10,1,0,2,16,1),hl(0,5,5,-3,0,8,10,1,0,3,14,2),hl(0,5,6,-3,0,9,12,1,0,3,16,2),hl(0,6,6,-3,0,10,14,1,0,4,18,3),hl(0,6,7,-4,0,11,15,1,0,4,20,3),hl(0,7,8,-4,0,12,17,2,0,5,22,4),hl(0,7,8,-4,0,13,19,2,0,5,24,4),hl(0,7,9,-4,0,14,21,2,0,5,26,4),hl(0,8,9,-5,0,15,22,2,0,6,28,5),hl(0,8,10,-5,0,16,24,2,0,6,30,5),hl(0,8,11,-5,0,17,26,2,0,6,32,5),hl(0,9,11,-5,0,18,28,2,0,7,34,6),hl(0,9,12,-6,0,19,29,2,0,7,36,6),hl(0,10,13,-6,0,20,31,3,0,8,38,7),hl(0,10,13,-6,0,21,33,3,0,8,40,7),hl(0,10,14,-6,0,22,35,3,0,8,42,7),hl(0,11,14,-7,0,23,36,3,0,9,44,8),hl(0,11,15,-7,0,24,38,3,0,9,46,8)],vl={borderRadius:4};function yl(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;e="function"==typeof t?t:function(e){return t*e};var n=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 0===n.length?e(1):1===n.length?e(n[0]):n.map((function(t){var n=e(t);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n}var bl={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)"},xl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},Sl=function(e){return"".concat(Math.round(e),"ms")},wl={easing:bl,duration:xl,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?xl.standard:n,o=t.easing,i=void 0===o?bl.easeInOut:o,a=t.delay,s=void 0===a?0:a;return Ds(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Sl(r)," ").concat(i," ").concat("string"==typeof s?s:Sl(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))}},Cl={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ml(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.shadows,l=e.spacing,c=e.typography,u=void 0===c?{}:c,d=Ds(e,["breakpoints","mixins","palette","shadows","spacing","typography"]),p=ul(a),m=il(n),f=yl(l),h=Ls({breakpoints:m,direction:"ltr",mixins:al(m,f,o),overrides:{},palette:p,props:{},shadows:s||gl,typography:fl(p,u),spacing:f},Ps({shape:vl,transitions:wl,zIndex:Cl},d));return h}var kl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",El=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Tl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0;return function(e,t){l+=1;var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==El.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[kl]&&""===a?"".concat(i,"-").concat(l):i}return"".concat(s).concat(o).concat(l)}}function Nl(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}function Ll(){return(Ll=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Dl="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},ql="object"===("undefined"==typeof window?"undefined":Dl(window))&&"object"===("undefined"==typeof document?"undefined":Dl(document))&&9===document.nodeType;function Ol(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rl(e,t,n){return t&&Ol(e.prototype,t),n&&Ol(e,n),e}function Al(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Pl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Il={}.constructor;function zl(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(zl);if(e.constructor!==Il)return e;var t={};for(var n in e)t[n]=zl(e[n]);return t}function Bl(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=zl(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var Fl=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n};function Hl(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=Fl(e[r]," ");else n=Fl(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n}function jl(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Wl(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;if(e&&i++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var l=a[s];for(var c in l){var u=l[c];null!=u&&(r&&(r+="\n"),r+=""+jl(c+": "+Hl(u)+";",i))}}else for(var d in a){var p=a[d];null!=p&&(r&&(r+="\n"),r+=""+jl(d+": "+Hl(p)+";",i))}for(var m in t){var f=t[m];null!=f&&"fallbacks"!==m&&(r&&(r+="\n"),r+=""+jl(m+": "+Hl(f)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),jl(e+" {"+r,--i)+jl("}",i)):r}var Vl=/([[\].#*$><+~=|^:(),"'`\s])/g,Ul="undefined"!=typeof CSS&&CSS.escape,_l=function(e){return Ul?Ul(e):e.replace(Vl,"\\$1")},$l=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Kl=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Pl(Pl(o)),s),o.selectorText="."+_l(o.id)),o}Al(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]=Hl(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ll({},e,{allowEmpty:!0}):e;return Wl(this.selectorText,this.style,n)},Rl(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}($l),Gl={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Kl(e,t,n)}},Yl={indent:1,children:!0},Xl=/@([\w-]+)/,Jl=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(Xl);for(var o in this.at=r?r[1]:"unknown",this.options=n,this.rules=new bc(Ll({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=Yl),null==e.indent&&(e.indent=Yl.indent),null==e.children&&(e.children=Yl.children),!1===e.children)return this.key+" {}";var t=this.rules.toString(e);return t?this.key+" {\n"+t+"\n}":""},e}(),Zl=/@media|@supports\s+/,Ql={onCreateRule:function(e,t,n){return Zl.test(e)?new Jl(e,t,n):null}},ec={indent:1,children:!0},tc=/@keyframes\s+([\w-]+)/,nc=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(tc);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:_l(a(this,i)),this.rules=new bc(Ll({},n,{parent:this})),t)this.rules.add(s,t[s],Ll({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=ec),null==e.indent&&(e.indent=ec.indent),null==e.children&&(e.children=ec.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),rc=/@keyframes\s+/,oc=/\$([\w-]+)/g,ic=function(e,t){return"string"==typeof e?e.replace(oc,(function(e,n){return n in t?t[n]:e})):e},ac=function(e,t,n){var r=e[t],o=ic(r,n);o!==r&&(e[t]=o)},sc={onCreateRule:function(e,t,n){return"string"==typeof e&&rc.test(e)?new nc(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&ac(e,"animation-name",n.keyframes),"animation"in e&&ac(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 ic(e,r.keyframes);default:return e}}},lc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Al(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ll({},e,{allowEmpty:!0}):e;return Wl(this.key,this.style,n)},t}($l),cc={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new lc(e,t,n):null}},uc=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=Wl(this.key,this.style[n]),this.style[n+1]&&(t+="\n");return t}return Wl(this.key,this.style,e)},e}(),dc={onCreateRule:function(e,t,n){return"@font-face"===e?new uc(e,t,n):null}},pc=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Wl(this.key,this.style,e)},e}(),mc={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new pc(e,t,n):null}},fc=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),hc={"@charset":!0,"@import":!0,"@namespace":!0},gc=[Gl,Ql,sc,cc,dc,mc,{onCreateRule:function(e,t,n){return e in hc?new fc(e,t,n):null}}],vc={process:!0},yc={force:!0,process:!0},bc=function(){function e(e){this.map={},this.raw={},this.index=[],this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=Ll({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c},n);this.raw[e]=t,e in this.classes&&(u.selector="."+_l(this.classes[e]));var d=Bl(e,t,u);if(!d)return null;this.register(d);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,d),d},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Kl?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof nc&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Kl?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof nc&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.onUpdate(t,this.get(e),n);else for(var r=0;r<this.index.length;r++)this.onUpdate(t,this.index[r],n)},t.onUpdate=function(t,n,r){void 0===r&&(r=vc);var o=this.options,i=o.jss.plugins,a=o.sheet;if(n.rules instanceof e)n.rules.update(t,r);else{var s=n,l=s.style;if(i.onUpdate(t,n,a,r),r.process&&l&&l!==s.style){for(var c in i.onProcessStyle(s.style,s,a),s.style){var u=s.style[c];u!==l[c]&&s.prop(c,u,yc)}for(var d in l){var p=s.style[d],m=l[d];null==p&&p!==m&&s.prop(d,null,yc)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t},e}(),xc=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Ll({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new bc(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.toString=function(e){return this.rules.toString(e)},e}(),Sc=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),wc=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["attached"]),o="",i=0;i<this.registry.length;i++){var a=this.registry[i];null!=n&&a.attached!==n||(o&&(o+="\n"),o+=a.toString(r))}return o},Rl(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),Cc="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Mc="2f1acc6c3a606b082e5eef5e54414ffb";null==Cc[Mc]&&(Cc[Mc]=0);var kc=Cc[Mc]++,Ec=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")+kc+o+t:i+n.key+"-"+kc+(o?"-"+o:"")+"-"+t}},Tc=function(e){var t;return function(){return t||(t=e()),t}};function Nc(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}}function Lc(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Hl(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(e){return!1}return!0}function Dc(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}}function qc(e,t){return e.selectorText=t,e.selectorText===t}var Oc=Tc((function(){return document.querySelector("head")}));function Rc(e){var t=wc.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=Oc(),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 Ac=Tc((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Pc=function(e,t,n){var r=e.cssRules.length;(void 0===n||n>r)&&(n=r);try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(e){return!1}return e.cssRules[n]},Ic=function(){function e(e){this.getPropertyValue=Nc,this.setProperty=Lc,this.removeProperty=Dc,this.setSelector=qc,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,e&&wc.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=Ac();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=Rc(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 Oc().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){var e=this.element.parentNode;e&&e.removeChild(this.element)},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;return("conditional"!==e.type&&"keyframes"!==e.type||!1!==(o=Pc(n,r.toString({children:!1}),t)))&&(this.insertRules(r.rules,o),o)}if(e.renderable&&e.renderable.parentStyleSheet===this.element.sheet)return e.renderable;var i=e.toString();if(!i)return!1;var a=Pc(n,i,t);return!1!==a&&(this.hasInsertedRules=!0,e.renderable=a,a)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),!0)},t.indexOf=function(e){for(var t=this.element.sheet.cssRules,n=0;n<t.length;n++)if(e===t[n])return n;return-1},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),zc=0,Bc=function(){function e(e){this.id=zc++,this.version="10.0.0",this.plugins=new Sc,this.options={id:{minify:!1},createGenerateId:Ec,Renderer:ql?Ic:null,plugins:[]},this.generateId=Ec({minify:!1});for(var t=0;t<gc.length;t++)this.plugins.use(gc[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=Ll({},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===wc.index?0:wc.index+1);var r=new xc(e,Ll({},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(),wc.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=Ll({},n,{jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=Bl(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();function Fc(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=Fc(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
16
|
+
Object.defineProperty(Bs,"__esModule",{value:!0});var Fs="function"==typeof Symbol&&Symbol.for,Hs=Fs?Symbol.for("react.element"):60103,js=Fs?Symbol.for("react.portal"):60106,Ws=Fs?Symbol.for("react.fragment"):60107,Vs=Fs?Symbol.for("react.strict_mode"):60108,_s=Fs?Symbol.for("react.profiler"):60114,Us=Fs?Symbol.for("react.provider"):60109,$s=Fs?Symbol.for("react.context"):60110,Ks=Fs?Symbol.for("react.async_mode"):60111,Gs=Fs?Symbol.for("react.concurrent_mode"):60111,Ys=Fs?Symbol.for("react.forward_ref"):60112,Xs=Fs?Symbol.for("react.suspense"):60113,Js=Fs?Symbol.for("react.suspense_list"):60120,Zs=Fs?Symbol.for("react.memo"):60115,Qs=Fs?Symbol.for("react.lazy"):60116,el=Fs?Symbol.for("react.fundamental"):60117,tl=Fs?Symbol.for("react.responder"):60118,nl=Fs?Symbol.for("react.scope"):60119;function rl(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Hs:switch(e=e.type){case Ks:case Gs:case Ws:case _s:case Vs:case Xs:return e;default:switch(e=e&&e.$$typeof){case $s:case Ys:case Us:return e;default:return t}}case Qs:case Zs:case js:return t}}}function ol(e){return rl(e)===Gs}Bs.typeOf=rl,Bs.AsyncMode=Ks,Bs.ConcurrentMode=Gs,Bs.ContextConsumer=$s,Bs.ContextProvider=Us,Bs.Element=Hs,Bs.ForwardRef=Ys,Bs.Fragment=Ws,Bs.Lazy=Qs,Bs.Memo=Zs,Bs.Portal=js,Bs.Profiler=_s,Bs.StrictMode=Vs,Bs.Suspense=Xs,Bs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ws||e===Gs||e===_s||e===Vs||e===Xs||e===Js||"object"==typeof e&&null!==e&&(e.$$typeof===Qs||e.$$typeof===Zs||e.$$typeof===Us||e.$$typeof===$s||e.$$typeof===Ys||e.$$typeof===el||e.$$typeof===tl||e.$$typeof===nl)},Bs.isAsyncMode=function(e){return ol(e)||rl(e)===Ks},Bs.isConcurrentMode=ol,Bs.isContextConsumer=function(e){return rl(e)===$s},Bs.isContextProvider=function(e){return rl(e)===Us},Bs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Hs},Bs.isForwardRef=function(e){return rl(e)===Ys},Bs.isFragment=function(e){return rl(e)===Ws},Bs.isLazy=function(e){return rl(e)===Qs},Bs.isMemo=function(e){return rl(e)===Zs},Bs.isPortal=function(e){return rl(e)===js},Bs.isProfiler=function(e){return rl(e)===_s},Bs.isStrictMode=function(e){return rl(e)===Vs},Bs.isSuspense=function(e){return rl(e)===Xs},zs.exports=Bs,"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ss.exports.oneOfType([ss.exports.func,ss.exports.PropTypes.object]);var il=["xs","sm","md","lg","xl"];function al(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=Ds(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=il.indexOf(t)+1;return r===il.length?l(e):"@media (min-width:".concat(n[e]).concat(o,") and ")+"(max-width:".concat(n[il[r]]-a/100).concat(o,")")}return qs({keys:il,values:n,up:l,down:function(e){var t=il.indexOf(e)+1,r=n[il[t]];return t===il.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}function sl(e,t,n){var r;return qs({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return qs({paddingLeft:t(2),paddingRight:t(2)},n,Ls({},e.up("sm"),qs({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Ls(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Ls(r,e.up("sm"),{minHeight:64}),r)},n)}var ll={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:us.white,default:xs[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.08)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.14)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"}},cl={text:{primary:us.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:xs[800],default:"#303030"},action:{active:us.white,hover:"rgba(255, 255, 255, 0.1)",hoverOpacity:.1,selected:"rgba(255, 255, 255, 0.2)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)"}};function ul(e,t,n,r){e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ns(e.main,r):"dark"===t&&(e.dark=Ts(e.main,1.5*r)))}function dl(e){var t=e.primary,n=void 0===t?{light:vs,main:ys,dark:bs}:t,r=e.secondary,o=void 0===r?{light:fs,main:hs,dark:gs}:r,i=e.error,a=void 0===i?{light:ds,main:ps,dark:ms}:i,s=e.type,l=void 0===s?"light":s,c=e.contrastThreshold,u=void 0===c?3:c,d=e.tonalOffset,p=void 0===d?.2:d,m=Ds(e,["primary","secondary","error","type","contrastThreshold","tonalOffset"]);function f(e){return function(e,t){var n=Ms(e),r=Ms(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,cl.text.primary)>=u?cl.text.primary:ll.text.primary}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;return!(e=qs({},e)).main&&e[t]&&(e.main=e[t]),ul(e,"light",n,p),ul(e,"dark",r,p),e.contrastText||(e.contrastText=f(e.main)),e}var g={dark:cl,light:ll};return Is(qs({common:us,type:l,primary:h(n),secondary:h(o,"A400","A200","A700"),error:h(a),grey:xs,contrastThreshold:u,getContrastText:f,augmentColor:h,tonalOffset:p},g[l]),m,{clone:!1})}function pl(e){return Math.round(1e5*e)/1e5}var ml={textTransform:"uppercase"},fl='"Roboto", "Helvetica", "Arial", sans-serif';function hl(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?fl:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,p=void 0===d?500:d,m=n.fontWeightBold,f=void 0===m?700:m,h=n.htmlFontSize,g=void 0===h?16:h,v=n.allVariants,y=n.pxToRem,b=Ds(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=y||function(e){return"".concat(e/g*x,"rem")},w=function(e,t,n,r,i){return qs({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===fl?{letterSpacing:"".concat(pl(r/t),"em")}:{},{},i,{},v)},C={h1:w(l,96,1,-1.5),h2:w(l,60,1,-.5),h3:w(u,48,1.04,0),h4:w(u,34,1.17,.25),h5:w(u,24,1.33,0),h6:w(p,20,1.6,.15),subtitle1:w(u,16,1.75,.15),subtitle2:w(p,14,1.57,.1),body1:w(u,16,1.5,.15),body2:w(u,14,1.43,.15),button:w(p,14,1.75,.4,ml),caption:w(u,12,1.66,.4),overline:w(u,12,2.66,1,ml)};return Is(qs({htmlFontSize:g,pxToRem:S,round:pl,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:f},C),b,{clone:!1})}function gl(){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 vl=["none",gl(0,2,1,-1,0,1,1,0,0,1,3,0),gl(0,3,1,-2,0,2,2,0,0,1,5,0),gl(0,3,3,-2,0,3,4,0,0,1,8,0),gl(0,2,4,-1,0,4,5,0,0,1,10,0),gl(0,3,5,-1,0,5,8,0,0,1,14,0),gl(0,3,5,-1,0,6,10,0,0,1,18,0),gl(0,4,5,-2,0,7,10,1,0,2,16,1),gl(0,5,5,-3,0,8,10,1,0,3,14,2),gl(0,5,6,-3,0,9,12,1,0,3,16,2),gl(0,6,6,-3,0,10,14,1,0,4,18,3),gl(0,6,7,-4,0,11,15,1,0,4,20,3),gl(0,7,8,-4,0,12,17,2,0,5,22,4),gl(0,7,8,-4,0,13,19,2,0,5,24,4),gl(0,7,9,-4,0,14,21,2,0,5,26,4),gl(0,8,9,-5,0,15,22,2,0,6,28,5),gl(0,8,10,-5,0,16,24,2,0,6,30,5),gl(0,8,11,-5,0,17,26,2,0,6,32,5),gl(0,9,11,-5,0,18,28,2,0,7,34,6),gl(0,9,12,-6,0,19,29,2,0,7,36,6),gl(0,10,13,-6,0,20,31,3,0,8,38,7),gl(0,10,13,-6,0,21,33,3,0,8,40,7),gl(0,10,14,-6,0,22,35,3,0,8,42,7),gl(0,11,14,-7,0,23,36,3,0,9,44,8),gl(0,11,15,-7,0,24,38,3,0,9,46,8)],yl={borderRadius:4};function bl(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;e="function"==typeof t?t:function(e){return t*e};var n=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 0===n.length?e(1):1===n.length?e(n[0]):n.map((function(t){var n=e(t);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n}var xl={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)"},Sl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},wl=function(e){return"".concat(Math.round(e),"ms")},Cl={easing:xl,duration:Sl,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?Sl.standard:n,o=t.easing,i=void 0===o?xl.easeInOut:o,a=t.delay,s=void 0===a?0:a;return Ds(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:wl(r)," ").concat(i," ").concat("string"==typeof s?s:wl(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))}},Ml={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function kl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.shadows,l=e.spacing,c=e.typography,u=void 0===c?{}:c,d=Ds(e,["breakpoints","mixins","palette","shadows","spacing","typography"]),p=dl(a),m=al(n),f=bl(l),h=qs({breakpoints:m,direction:"ltr",mixins:sl(m,f,o),overrides:{},palette:p,props:{},shadows:s||vl,typography:hl(p,u),spacing:f},Is({shape:yl,transitions:Cl,zIndex:Ml},d));return h}var El="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Tl=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Nl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0;return function(e,t){l+=1;var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Tl.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[El]&&""===a?"".concat(i,"-").concat(l):i}return"".concat(s).concat(o).concat(l)}}function Ll(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}function ql(){return(ql=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Dl="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},Ol="object"===("undefined"==typeof window?"undefined":Dl(window))&&"object"===("undefined"==typeof document?"undefined":Dl(document))&&9===document.nodeType;function Rl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Al(e,t,n){return t&&Rl(e.prototype,t),n&&Rl(e,n),e}function Pl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Il(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var zl={}.constructor;function Bl(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Bl);if(e.constructor!==zl)return e;var t={};for(var n in e)t[n]=Bl(e[n]);return t}function Fl(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=Bl(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var Hl=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n};function jl(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=Hl(e[r]," ");else n=Hl(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n}function Wl(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Vl(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;if(e&&i++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var l=a[s];for(var c in l){var u=l[c];null!=u&&(r&&(r+="\n"),r+=""+Wl(c+": "+jl(u)+";",i))}}else for(var d in a){var p=a[d];null!=p&&(r&&(r+="\n"),r+=""+Wl(d+": "+jl(p)+";",i))}for(var m in t){var f=t[m];null!=f&&"fallbacks"!==m&&(r&&(r+="\n"),r+=""+Wl(m+": "+jl(f)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),Wl(e+" {"+r,--i)+Wl("}",i)):r}var _l=/([[\].#*$><+~=|^:(),"'`\s])/g,Ul="undefined"!=typeof CSS&&CSS.escape,$l=function(e){return Ul?Ul(e):e.replace(_l,"\\$1")},Kl=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Gl=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Il(Il(o)),s),o.selectorText="."+$l(o.id)),o}Pl(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]=jl(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ql({},e,{allowEmpty:!0}):e;return Vl(this.selectorText,this.style,n)},Al(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}(Kl),Yl={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Gl(e,t,n)}},Xl={indent:1,children:!0},Jl=/@([\w-]+)/,Zl=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(Jl);for(var o in this.at=r?r[1]:"unknown",this.options=n,this.rules=new xc(ql({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=Xl),null==e.indent&&(e.indent=Xl.indent),null==e.children&&(e.children=Xl.children),!1===e.children)return this.key+" {}";var t=this.rules.toString(e);return t?this.key+" {\n"+t+"\n}":""},e}(),Ql=/@media|@supports\s+/,ec={onCreateRule:function(e,t,n){return Ql.test(e)?new Zl(e,t,n):null}},tc={indent:1,children:!0},nc=/@keyframes\s+([\w-]+)/,rc=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(nc);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:$l(a(this,i)),this.rules=new xc(ql({},n,{parent:this})),t)this.rules.add(s,t[s],ql({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=tc),null==e.indent&&(e.indent=tc.indent),null==e.children&&(e.children=tc.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),oc=/@keyframes\s+/,ic=/\$([\w-]+)/g,ac=function(e,t){return"string"==typeof e?e.replace(ic,(function(e,n){return n in t?t[n]:e})):e},sc=function(e,t,n){var r=e[t],o=ac(r,n);o!==r&&(e[t]=o)},lc={onCreateRule:function(e,t,n){return"string"==typeof e&&oc.test(e)?new rc(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&sc(e,"animation-name",n.keyframes),"animation"in e&&sc(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 ac(e,r.keyframes);default:return e}}},cc=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Pl(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ql({},e,{allowEmpty:!0}):e;return Vl(this.key,this.style,n)},t}(Kl),uc={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new cc(e,t,n):null}},dc=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=Vl(this.key,this.style[n]),this.style[n+1]&&(t+="\n");return t}return Vl(this.key,this.style,e)},e}(),pc={onCreateRule:function(e,t,n){return"@font-face"===e?new dc(e,t,n):null}},mc=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Vl(this.key,this.style,e)},e}(),fc={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new mc(e,t,n):null}},hc=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),gc={"@charset":!0,"@import":!0,"@namespace":!0},vc=[Yl,ec,lc,uc,pc,fc,{onCreateRule:function(e,t,n){return e in gc?new hc(e,t,n):null}}],yc={process:!0},bc={force:!0,process:!0},xc=function(){function e(e){this.map={},this.raw={},this.index=[],this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=ql({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c},n);this.raw[e]=t,e in this.classes&&(u.selector="."+$l(this.classes[e]));var d=Fl(e,t,u);if(!d)return null;this.register(d);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,d),d},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Gl?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof rc&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Gl?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof rc&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.onUpdate(t,this.get(e),n);else for(var r=0;r<this.index.length;r++)this.onUpdate(t,this.index[r],n)},t.onUpdate=function(t,n,r){void 0===r&&(r=yc);var o=this.options,i=o.jss.plugins,a=o.sheet;if(n.rules instanceof e)n.rules.update(t,r);else{var s=n,l=s.style;if(i.onUpdate(t,n,a,r),r.process&&l&&l!==s.style){for(var c in i.onProcessStyle(s.style,s,a),s.style){var u=s.style[c];u!==l[c]&&s.prop(c,u,bc)}for(var d in l){var p=s.style[d],m=l[d];null==p&&p!==m&&s.prop(d,null,bc)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t},e}(),Sc=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=ql({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new xc(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.toString=function(e){return this.rules.toString(e)},e}(),wc=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Cc=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["attached"]),o="",i=0;i<this.registry.length;i++){var a=this.registry[i];null!=n&&a.attached!==n||(o&&(o+="\n"),o+=a.toString(r))}return o},Al(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),Mc="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),kc="2f1acc6c3a606b082e5eef5e54414ffb";null==Mc[kc]&&(Mc[kc]=0);var Ec=Mc[kc]++,Tc=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")+Ec+o+t:i+n.key+"-"+Ec+(o?"-"+o:"")+"-"+t}},Nc=function(e){var t;return function(){return t||(t=e()),t}};function Lc(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}}function qc(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=jl(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(e){return!1}return!0}function Dc(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}}function Oc(e,t){return e.selectorText=t,e.selectorText===t}var Rc=Nc((function(){return document.querySelector("head")}));function Ac(e){var t=Cc.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=Rc(),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 Pc=Nc((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ic=function(e,t,n){var r=e.cssRules.length;(void 0===n||n>r)&&(n=r);try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(e){return!1}return e.cssRules[n]},zc=function(){function e(e){this.getPropertyValue=Lc,this.setProperty=qc,this.removeProperty=Dc,this.setSelector=Oc,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,e&&Cc.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=Pc();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=Ac(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 Rc().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){var e=this.element.parentNode;e&&e.removeChild(this.element)},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;return("conditional"!==e.type&&"keyframes"!==e.type||!1!==(o=Ic(n,r.toString({children:!1}),t)))&&(this.insertRules(r.rules,o),o)}if(e.renderable&&e.renderable.parentStyleSheet===this.element.sheet)return e.renderable;var i=e.toString();if(!i)return!1;var a=Ic(n,i,t);return!1!==a&&(this.hasInsertedRules=!0,e.renderable=a,a)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),!0)},t.indexOf=function(e){for(var t=this.element.sheet.cssRules,n=0;n<t.length;n++)if(e===t[n])return n;return-1},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Bc=0,Fc=function(){function e(e){this.id=Bc++,this.version="10.0.0",this.plugins=new wc,this.options={id:{minify:!1},createGenerateId:Tc,Renderer:Ol?zc:null,plugins:[]},this.generateId=Tc({minify:!1});for(var t=0;t<vc.length;t++)this.plugins.use(vc[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=ql({},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===Cc.index?0:Cc.index+1);var r=new Sc(e,ql({},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(),Cc.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=ql({},n,{jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=Fl(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();function Hc(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=Hc(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
17
17
|
/**
|
|
18
18
|
* A better abstraction over CSS.
|
|
19
19
|
*
|
|
20
20
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
21
21
|
* @website https://github.com/cssinjs/jss
|
|
22
22
|
* @license MIT
|
|
23
|
-
*/var Hc="undefined"!=typeof CSS&&CSS&&"number"in CSS,jc=function(e){return new Bc(e)};jc();var Wc=Date.now(),Vc="fnValues"+Wc,Uc="fnStyle"+ ++Wc;function _c(){return(_c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var $c="@global",Kc="@global ",Gc=function(){function e(e,t,n){for(var r in this.type="global",this.at=$c,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new bc(_c({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Yc=function(){function e(e,t,n){this.type="global",this.at=$c,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(Kc.length);this.rule=n.jss.createRule(r,t,_c({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Xc=/\s*,\s*/g;function Jc(e,t){for(var n=e.split(Xc),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Zc(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===$c)return new Gc(e,t,n);if("@"===e[0]&&e.substr(0,Kc.length)===Kc)return new Yc(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e){"style"===e.type&&(function(e){var t=e.options,n=e.style,r=n?n[$c]:null;if(r){for(var o in r)t.sheet.addRule(o,r[o],_c({},t,{selector:Jc(o,e.selector)}));delete n[$c]}}(e),function(e){var t=e.options,n=e.style;for(var r in n)if("@"===r[0]&&r.substr(0,$c.length)===$c){var o=Jc(r.substr($c.length),e.selector);t.sheet.addRule(o,n[r],_c({},t,{selector:o})),delete n[r]}}(e))}}}function Qc(){return(Qc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eu=/\s*,\s*/g,tu=/&/g,nu=/\$([\w-]+)/g;function ru(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(eu),r=e.split(eu),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(tu,a):a+" "+l}return o}function n(e,t,n){if(n)return Qc({},n,{index:n.index+1});var r=e.options.nestingLevel;return r=void 0===r?1:r+1,Qc({},e.options,{nestingLevel:r,index:t.indexOf(e)+1})}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(l,c,a),d){var m=t(u,l.selector);s||(s=e(c,i)),m=m.replace(nu,s),c.addRule(m,r[u],Qc({},a,{selector:m}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var ou=/[A-Z]/g,iu=/^ms-/,au={};function su(e){return"-"+e.toLowerCase()}function lu(e){if(au.hasOwnProperty(e))return au[e];var t=e.replace(ou,su);return au[e]=iu.test(t)?"-"+t:t}function cu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:lu(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(cu):t.fallbacks=cu(e.fallbacks)),t}var uu=Hc&&CSS?CSS.px:"px",du=Hc&&CSS?CSS.ms:"ms",pu=Hc&&CSS?CSS.percent:"%";function mu(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 fu=mu({"animation-delay":du,"animation-duration":du,"background-position":uu,"background-position-x":uu,"background-position-y":uu,"background-size":uu,border:uu,"border-bottom":uu,"border-bottom-left-radius":uu,"border-bottom-right-radius":uu,"border-bottom-width":uu,"border-left":uu,"border-left-width":uu,"border-radius":uu,"border-right":uu,"border-right-width":uu,"border-top":uu,"border-top-left-radius":uu,"border-top-right-radius":uu,"border-top-width":uu,"border-width":uu,margin:uu,"margin-bottom":uu,"margin-left":uu,"margin-right":uu,"margin-top":uu,padding:uu,"padding-bottom":uu,"padding-left":uu,"padding-right":uu,"padding-top":uu,"mask-position-x":uu,"mask-position-y":uu,"mask-size":uu,height:uu,width:uu,"min-height":uu,"max-height":uu,"min-width":uu,"max-width":uu,bottom:uu,left:uu,top:uu,right:uu,"box-shadow":uu,"text-shadow":uu,"column-gap":uu,"column-rule":uu,"column-rule-width":uu,"column-width":uu,"font-size":uu,"font-size-delta":uu,"letter-spacing":uu,"text-indent":uu,"text-stroke":uu,"text-stroke-width":uu,"word-spacing":uu,motion:uu,"motion-offset":uu,outline:uu,"outline-offset":uu,"outline-width":uu,perspective:uu,"perspective-origin-x":pu,"perspective-origin-y":pu,"transform-origin":pu,"transform-origin-x":pu,"transform-origin-y":pu,"transform-origin-z":pu,"transition-delay":du,"transition-duration":du,"vertical-align":uu,"flex-basis":uu,"shape-margin":uu,size:uu,grid:uu,"grid-gap":uu,"grid-row-gap":uu,"grid-column-gap":uu,"grid-template-rows":uu,"grid-template-columns":uu,"grid-auto-rows":uu,"grid-auto-columns":uu,"box-shadow-x":uu,"box-shadow-y":uu,"box-shadow-blur":uu,"box-shadow-spread":uu,"font-line-height":uu,"text-shadow-x":uu,"text-shadow-y":uu,"text-shadow-blur":uu});function hu(e,t,n){if(!t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=hu(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=hu(o,t[o],n);else for(var i in t)t[i]=hu(e+"-"+i,t[i],n);else if("number"==typeof t)return n[e]?""+t+n[e]:fu[e]?"function"==typeof fu[e]?fu[e](t).toString():""+t+fu[e]:t.toString();return t}function gu(e){void 0===e&&(e={});var t=mu(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=hu(r,e[r],t);return e},onChangeValue:function(e,n){return hu(n,e,t)}}}function vu(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var yu="",bu="",xu="",Su=ql&&"ontouchstart"in document.documentElement;if(ql){var wu={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Cu=document.createElement("p").style;for(var Mu in wu)if(Mu+"Transform"in Cu){yu=Mu,bu=wu[Mu];break}"Webkit"===yu&&"msHyphens"in Cu&&(yu="ms",bu=wu.ms,"edge"),"Webkit"===yu&&"-apple-trailing-word"in Cu&&(xu="apple")}var ku=yu,Eu=bu,Tu=xu,Nu=Su;var Lu={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ku?"-webkit-"+e:Eu+e)}},Du={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ku?Eu+"print-"+e:e)}},qu=/[-\s]+(.)?/g;function Ou(e,t){return t?t.toUpperCase():""}function Ru(e){return e.replace(qu,Ou)}function Au(e){return Ru("-"+e)}var Pu,Iu={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ku){var n="mask-image";if(Ru(n)in t)return e;if(ku+Au(n)in t)return Eu+e}return e}},zu={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Tu||Nu?e:Eu+e)}},Bu={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Eu+e)}},Fu={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Eu+e)}},Hu={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ku||"ms"===ku?Eu+e:e)}},ju={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ku||"ms"===ku||"apple"===Tu?Eu+e:e)}},Wu={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ku?"WebkitColumn"+Au(e)in t&&Eu+"column-"+e:"Moz"===ku&&("page"+Au(e)in t&&"page-"+e))}},Vu={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ku)return e;var n=e.replace("-inline","");return ku+Au(n)in t&&Eu+n}},Uu={supportedProperty:function(e,t){return Ru(e)in t&&e}},_u={supportedProperty:function(e,t){var n=Au(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ku+n in t?Eu+e:"Webkit"!==ku&&"Webkit"+n in t&&"-webkit-"+e}},$u={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ku?""+Eu+e:e)}},Ku={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ku?Eu+"scroll-chaining":e)}},Gu={"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"},Yu={supportedProperty:function(e,t){var n=Gu[e];return!!n&&(ku+Au(n)in t&&Eu+n)}},Xu={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"},Ju=Object.keys(Xu),Zu=function(e){return Eu+e},Qu=[Lu,Du,Iu,zu,Bu,Fu,Hu,ju,Wu,Vu,Uu,_u,$u,Ku,Yu,{supportedProperty:function(e,t,n){var r=n.multiple;if(Ju.indexOf(e)>-1){var o=Xu[e];if(!Array.isArray(o))return ku+Au(o)in t&&Eu+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(ku+Au(o[0])in t))return!1;return o.map(Zu)}return!1}}],ed=Qu.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),td=Qu.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,vu(t.noPrefill)),e}),[]),nd={};if(ql){Pu=document.createElement("p");var rd=window.getComputedStyle(document.documentElement,"");for(var od in rd)isNaN(od)||(nd[rd[od]]=rd[od]);td.forEach((function(e){return delete nd[e]}))}function id(e,t){if(void 0===t&&(t={}),!Pu)return e;if(null!=nd[e])return nd[e];"transition"!==e&&"transform"!==e||(t[e]=e in Pu.style);for(var n=0;n<ed.length&&(nd[e]=ed[n](e,Pu.style,t),!nd[e]);n++);try{Pu.style[e]=""}catch(e){return!1}return nd[e]}var ad,sd={},ld={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},cd=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ud(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?id(t):", "+id(n);return r||(t||n)}function dd(e,t){var n=t;if(!ad||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=sd[r])return sd[r];try{ad.style[e]=n}catch(e){return sd[r]=!1,!1}if(ld[e])n=n.replace(cd,ud);else if(""===ad.style[e]&&("-ms-flex"===(n=Eu+n)&&(ad.style[e]="-ms-flexbox"),ad.style[e]=n,""===ad.style[e]))return sd[r]=!1,!1;return ad.style[e]="",sd[r]=n,sd[r]}function pd(){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=id(n);i&&i!==n&&(o=!0);var a=!1,s=dd(i,Hl(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"===ku?e:"@"+Eu+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return dd(t,Hl(e))||e}}}function md(){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 fd(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Bl(e,{},n);return r[Uc]=t,r},onProcessStyle:function(e,t){if(Vc in t||Uc 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[Vc]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Uc];i&&(o.style=i(e)||{});var a=o[Vc];if(a)for(var s in a)o.prop(s,a[s](e),r)}},Zc(),ru(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=cu(e[t]);return e}return cu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=lu(t);return t===r?e:(n.prop(r,e),null)}},gu(),"undefined"==typeof window?null:pd(),md()]}}function hd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gd(){return(gd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function vd(){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=gd({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}ql&&(ad=document.createElement("p"));var yd=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},bd=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},xd=function(e,t,n){e.get(t).delete(n)},Sd=o.createContext(null);function wd(){return o.useContext(Sd)}var Cd,Md=jc(fd()),kd={disableGeneration:!1,generateClassName:Tl(),jss:Md,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Ed=o.createContext(kd);function Td(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,a=void 0!==i&&i,s=hd(e,["children","injectFirst","disableGeneration"]),l=gd({},o.useContext(Ed),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Cd){var c=document.head;Cd=document.createComment("mui-inject-first"),c.insertBefore(Cd,c.firstChild)}l.jss=jc({plugins:fd().plugins,insertionPoint:Cd})}return o.createElement(Ed.Provider,{value:l},t)}var Nd=-1e9;function Ld(){return Nd+=1}var Dd={};function qd(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=gd({},o);return Object.keys(i).forEach((function(e){a[e]=Ps(a[e],i[e])})),a},options:{}}}function Od(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=vd({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function Rd(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=bd(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},yd(o.sheetsManager,i,r,s));var l=gd({},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=bd(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,gd({link:!1},l))).attach(),o.sheetsCache&&yd(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Fc(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,gd({link:!0},l));p.update(t).attach(),n.dynamicSheet=p,n.classes=vd({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Ad(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function Pd(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=bd(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(xd(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function Id(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}function zd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,a=t.defaultTheme,s=void 0===a?Dd:a,l=hd(t,["name","classNamePrefix","Component","defaultTheme"]),c=qd(e),u=n||r||"makeStyles";return c.options={index:Ld(),name:n,meta:u,classNamePrefix:u},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=wd()||s,r=gd({},o.useContext(Ed),{},l),a=o.useRef(),u=o.useRef();return Id((function(){var o={name:n,state:{},stylesCreator:c,stylesOptions:r,theme:t};return Rd(o,e),u.current=!1,a.current=o,function(){Pd(o)}}),[t,c]),o.useEffect((function(){u.current&&Ad(a.current,e),u.current=!0})),Od(a.current,e.classes,i)}}function Bd(e){var t,n,r="";if(e)if("object"==typeof e)if(e.push)for(t=0;t<e.length;t++)e[t]&&(n=Bd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(n=Bd(t))&&(r&&(r+=" "),r+=n);else"boolean"==typeof e||e.call||(r&&(r+=" "),r+=e);return r}function Fd(){for(var e,t=0,n="";t<arguments.length;)(e=Bd(arguments[t++]))&&(n&&(n+=" "),n+=e);return n}var Hd=Is.exports,jd={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Wd={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Vd={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ud={};function _d(e){return Hd.isMemo(e)?Vd:Ud[e.$$typeof]||jd}Ud[Hd.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var $d=Object.defineProperty,Kd=Object.getOwnPropertyNames,Gd=Object.getOwnPropertySymbols,Yd=Object.getOwnPropertyDescriptor,Xd=Object.getPrototypeOf,Jd=Object.prototype;var Zd=function e(t,n,r){if("string"!=typeof n){if(Jd){var o=Xd(n);o&&o!==Jd&&e(t,o,r)}var i=Kd(n);Gd&&(i=i.concat(Gd(n)));for(var a=_d(t),s=_d(n),l=0;l<i.length;++l){var c=i[l];if(!(Wd[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Yd(n,c);try{$d(t,c,u)}catch(e){}}}return t}return t};function Qd(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function ep(e){var t=e.children,n=e.theme,r=wd(),i=o.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):gd({},e,{},t)}(r,n);return null!=e&&(e[kl]=null!==r),e}),[n,r]);return o.createElement(Sd.Provider,{value:i},t)}function tp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=function(e){var n=o.forwardRef((function(n,r){var i=n.innerRef,a=hd(n,["innerRef"]),s=wd()||t;return o.createElement(e,gd({theme:s,ref:i||r},a))}));return Zd(n,e),n};return n}tp();var np=Ml();function rp(){return wd()||np}function op(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,i=t.withTheme,a=void 0!==i&&i,s=t.name,l=hd(t,["defaultTheme","withTheme","name"]),c=s,u=zd(e,gd({defaultTheme:r,Component:n,name:s||n.displayName,classNamePrefix:c},l)),d=o.forwardRef((function(e,t){e.classes;var i,l=e.innerRef,c=hd(e,["classes","innerRef"]),d=u(e),p=c;return("string"==typeof s||a)&&(i=wd()||r,s&&(p=Nl({theme:i,name:s,props:c})),a&&!p.theme&&(p.theme=i)),o.createElement(n,gd({ref:l||t,classes:d},p))}));return d.defaultProps=n.defaultProps,Zd(d,n),d}}(e,Ls({defaultTheme:np},t))}function ip(e){return e.charAt(0).toUpperCase()+e.slice(1)}tp({defaultTheme:np});var ap=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=e.square,l=void 0!==s&&s,c=e.elevation,u=void 0===c?1:c,d=Ds(e,["classes","className","component","square","elevation"]);return o.createElement(a,Ls({className:Fd(n.root,n["elevation".concat(u)],r,!l&&n.rounded),ref:t},d))})),sp=op((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Ls({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius}},t)}),{name:"MuiPaper"})(ap),lp=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.position,l=void 0===s?"fixed":s,c=Ds(e,["classes","className","color","position"]);return o.createElement(sp,Ls({square:!0,component:"header",elevation:4,className:Fd(n.root,n["position".concat(ip(l))],r,"inherit"!==a&&n["color".concat(ip(a))],{fixed:"mui-fixed"}[l]),ref:t},c))}));op((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static",transform:"translateZ(0)"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText}}}),{name:"MuiAppBar"})(lp);var cp=o.forwardRef((function(e,t){var n=e.alt,r=e.children,i=e.classes,a=e.className,s=e.component,l=void 0===s?"div":s,c=e.imgProps,u=e.sizes,d=e.src,p=e.srcSet,m=e.variant,f=void 0===m?"circle":m,h=Ds(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),g=null,v=d||p;return g=v?o.createElement("img",Ls({alt:n,src:d,srcSet:p,sizes:u,className:i.img},c)):r,o.createElement(l,Ls({className:Fd(i.root,i.system,i[f],a,!v&&i.colorDefault),ref:t},h),g)}));function up(){return(up=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function dp(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 pp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function mp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}op((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover"}}}),{name:"MuiAvatar"})(cp);var fp=!1,hp=o.createContext(null),gp="unmounted",vp="exited",yp="entering",bp="entered",xp="exiting",Sp=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=vp,r.appearStatus=yp):o=bp:o=t.unmountOnExit||t.mountOnEnter?gp:vp,r.state={status:o},r.nextCallback=null,r}pp(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===gp?{status:vp}: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!==yp&&n!==bp&&(t=yp):n!==yp&&n!==bp||(t=xp)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=l.findDOMNode(this);t===yp?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===vp&&this.setState({status:gp})},n.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;!t&&!r||fp?this.safeSetState({status:bp},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,o),this.safeSetState({status:yp},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:bp},(function(){n.props.onEntered(e,o)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!fp?(this.props.onExit(e),this.safeSetState({status:xp},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:vp},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:vp},(function(){t.props.onExited(e)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===gp)return null;var t=this.props,n=t.children,r=dp(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return o.createElement(hp.Provider,{value:null},n(e,r));var i=o.Children.only(n);return o.createElement(hp.Provider,{value:null},o.cloneElement(i,r))},t}(o.Component);function wp(){}Sp.contextType=hp,Sp.propTypes={},Sp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wp,onEntering:wp,onEntered:wp,onExit:wp,onExiting:wp,onExited:wp},Sp.UNMOUNTED=0,Sp.EXITED=1,Sp.ENTERING=2,Sp.ENTERED=3,Sp.EXITING=4;var Cp=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},Mp=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=mp(n.className,r):n.setAttribute("class",mp(n.className&&n.className.baseVal||"",r)));var n,r}))},kp=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){t.removeClasses(e,"exit"),t.addClass(e,n?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=n?"appear":"enter";t.addClass(e,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=n?"appear":"enter";t.removeClasses(e,r),t.addClass(e,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),t.addClass(e,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){t.addClass(e,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){t.removeClasses(e,"exit"),t.addClass(e,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}pp(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"];"appear"===t&&"done"===n&&(r+=" "+this.getClassNames("enter").doneClassName),"active"===n&&e&&e.scrollTop,this.appliedClasses[t][n]=r,Cp(e,r)},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&Mp(e,r),o&&Mp(e,o),i&&Mp(e,i)},n.render=function(){var e=this.props;e.classNames;var t=dp(e,["classNames"]);return o.createElement(Sp,up({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);function Ep(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tp(e,t){var n=Object.create(null);return e&&i.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),n}function Np(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Lp(e,t,n){var r=Tp(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var l=o[i];if(a(l)){var c=i in t,u=i in r,d=t[i],p=a(d)&&!d.props.in;!u||c&&!p?u||!c||p?u&&c&&a(d)&&(o[i]=s(l,{onExited:n.bind(null,l),in:d.props.in,exit:Np(l,"exit",e),enter:Np(l,"enter",e)})):o[i]=s(l,{in:!1}):o[i]=s(l,{onExited:n.bind(null,l),in:!0,exit:Np(l,"exit",e),enter:Np(l,"enter",e)})}})),o}kp.defaultProps={classNames:""},kp.propTypes={};var Dp,qp,Op=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Rp=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ep(Ep(r)));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}pp(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,Tp(n.children,(function(e){return s(e,{onExited:r.bind(null,e),in:!0,appear:Np(e,"appear",n),enter:Np(e,"enter",n),exit:Np(e,"exit",n)})}))):Lp(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Tp(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=up({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=dp(e,["component","childFactory"]),i=this.state.contextValue,a=Op(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(hp.Provider,{value:i},a):o.createElement(hp.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);Rp.propTypes={},Rp.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}pp(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,a=o.Children.toArray(i)[t];a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]&&this.props[e](l.findDOMNode(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,r=dp(e,["children","in"]),i=o.Children.toArray(t),a=i[0],s=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,o.createElement(Rp,r,n?o.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(o.Component)).propTypes={};var Ap="out-in",Pp="in-out",Ip=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},zp=((Dp={})[Ap]=function(e){var t=e.current,n=e.changeState;return o.cloneElement(t,{in:!1,onExited:Ip(t,"onExited",(function(){n(yp,null)}))})},Dp[Pp]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,o.cloneElement(r,{in:!0,onEntered:Ip(r,"onEntered",(function(){n(yp)}))})]},Dp),Bp=((qp={})[Ap]=function(e){var t=e.children,n=e.changeState;return o.cloneElement(t,{in:!0,onEntered:Ip(t,"onEntered",(function(){n(bp,o.cloneElement(t,{in:!0}))}))})},qp[Pp]=function(e){var t=e.current,n=e.children,r=e.changeState;return[o.cloneElement(t,{in:!1,onExited:Ip(t,"onExited",(function(){r(bp,o.cloneElement(n,{in:!0}))}))}),o.cloneElement(n,{in:!0})]},qp),Fp=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:bp,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}pp(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===yp&&e.mode===Pp?{status:yp}:!t.current||(n=t.current,r=e.children,n===r||o.isValidElement(n)&&o.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:o.cloneElement(e.children,{in:!0})}:{status:xp};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,a=i.status,s=i.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case yp:e=Bp[r](l);break;case xp:e=zp[r](l);break;case bp:e=s}return o.createElement(hp.Provider,{value:{isMounting:!this.appeared}},e)},t}(o.Component);Fp.propTypes={},Fp.defaultProps={mode:Ap};var Hp=function(e){return e.scrollTop};function jp(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function Wp(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Vp(e,t){return o.useMemo((function(){return null==e&&null==t?null:function(n){Wp(e,n),Wp(t,n)}}),[e,t])}var Up={entering:{opacity:1},entered:{opacity:1}},_p={enter:xl.enteringScreen,exit:xl.leavingScreen},$p=o.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,a=e.onExit,s=e.style,l=e.timeout,c=void 0===l?_p:l,u=Ds(e,["children","in","onEnter","onExit","style","timeout"]),d=rp(),p=Vp(n.ref,t);return o.createElement(Sp,Ls({appear:!0,in:r,onEnter:function(e,t){Hp(e);var n=jp({style:s,timeout:c},{mode:"enter"});e.style.webkitTransition=d.transitions.create("opacity",n),e.style.transition=d.transitions.create("opacity",n),i&&i(e,t)},onExit:function(e){var t=jp({style:s,timeout:c},{mode:"exit"});e.style.webkitTransition=d.transitions.create("opacity",t),e.style.transition=d.transitions.create("opacity",t),a&&a(e)},timeout:c},u),(function(e,t){return o.cloneElement(n,Ls({style:Ls({opacity:0,visibility:"exited"!==e||r?void 0:"hidden"},Up[e],{},s,{},n.props.style),ref:p},t))}))})),Kp=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.invisible,s=void 0!==a&&a,l=e.open,c=e.transitionDuration,u=Ds(e,["children","classes","className","invisible","open","transitionDuration"]);return o.createElement($p,Ls({in:l,timeout:c},u),o.createElement("div",{className:Fd(r.root,i,s&&r.invisible),"aria-hidden":!0,ref:t},n))})),Gp=op({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Kp),Yp=o.forwardRef((function(e,t){var n=e.anchorOrigin,r=void 0===n?{vertical:"top",horizontal:"right"}:n,i=e.badgeContent,a=e.children,s=e.classes,l=e.className,c=e.color,u=void 0===c?"default":c,d=e.component,p=void 0===d?"span":d,m=e.invisible,f=e.max,h=void 0===f?99:f,g=e.overlap,v=void 0===g?"rectangle":g,y=e.showZero,b=void 0!==y&&y,x=e.variant,S=void 0===x?"standard":x,w=Ds(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),C=m;null==m&&(0===i&&!b||null==i&&"dot"!==S)&&(C=!0);var M="";return"dot"!==S&&(M=i>h?"".concat(h,"+"):i),o.createElement(p,Ls({className:Fd(s.root,l),ref:t},w),a,o.createElement("span",{className:Fd(s.badge,s["".concat(r.horizontal).concat(ip(r.vertical),"}")],s["anchorOrigin".concat(ip(r.vertical)).concat(ip(r.horizontal)).concat(ip(v))],"default"!==u&&s["color".concat(ip(u))],C&&s.invisible,{dot:s.dot}[S])},M))}));op((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,backgroundColor:e.palette.color,color:e.palette.textColor,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{height:6,minWidth:6,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(Yp);var Xp=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.onChange,c=e.showLabels,u=void 0!==c&&c,d=e.value,p=Ds(e,["children","classes","className","component","onChange","showLabels","value"]);return o.createElement(s,Ls({className:Fd(r.root,i),ref:t},p),o.Children.map(n,(function(e,t){if(!o.isValidElement(e))return null;var n=void 0===e.props.value?t:e.props.value;return o.cloneElement(e,{selected:n===d,showLabel:void 0!==e.props.showLabel?e.props.showLabel:u,value:n,onChange:l})})))}));op((function(e){return{root:{display:"flex",justifyContent:"center",height:56,backgroundColor:e.palette.background.paper}}}),{name:"MuiBottomNavigation"})(Xp);var Jp="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function Zp(e){var t=o.useRef(e);return Jp((function(){t.current=e})),o.useCallback((function(e){return(0,t.current)(e)}),[])}var Qp="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function em(e){var t=e.children,n=e.defer,r=void 0!==n&&n,i=e.fallback,a=void 0===i?null:i,s=o.useState(!1),l=s[0],c=s[1];return Qp((function(){r||c(!0)}),[r]),o.useEffect((function(){r&&c(!0)}),[r]),o.createElement(o.Fragment,null,l?t:a)}var tm=!0,nm=!1,rm=null,om={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 im(e){e.metaKey||e.altKey||e.ctrlKey||(tm=!0)}function am(){tm=!1}function sm(){"hidden"===this.visibilityState&&nm&&(tm=!0)}function lm(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return tm||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!om[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function cm(){nm=!0,window.clearTimeout(rm),rm=window.setTimeout((function(){nm=!1}),100)}function um(){return{isFocusVisible:lm,onBlurVisible:cm,ref:o.useCallback((function(e){var t=l.findDOMNode(e);null!=t&&function(e){e.addEventListener("keydown",im,!0),e.addEventListener("mousedown",am,!0),e.addEventListener("pointerdown",am,!0),e.addEventListener("touchstart",am,!0),e.addEventListener("visibilitychange",sm,!0)}(t.ownerDocument)}),[])}}function dm(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function pm(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||dm(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var mm="undefined"==typeof window?o.useEffect:o.useLayoutEffect;function fm(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,a=e.rippleY,s=e.rippleSize,l=e.in,c=e.onExited,u=void 0===c?function(){}:c,d=e.timeout,p=o.useState(!1),m=p[0],f=p[1],h=Fd(t.ripple,t.rippleVisible,r&&t.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+i},v=Fd(t.child,m&&t.childLeaving,r&&t.childPulsate),y=Zp(u);return mm((function(){if(!l){f(!0);var e=setTimeout(y,d);return function(){clearTimeout(e)}}}),[y,l,d]),o.createElement("span",{className:h,style:g},o.createElement("span",{className:v}))}var hm=o.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,a=e.className,s=Ds(e,["center","classes","className"]),l=o.useState([]),c=l[0],u=l[1],d=o.useRef(0),p=o.useRef(null);o.useEffect((function(){p.current&&(p.current(),p.current=null)}),[c]);var m=o.useRef(!1),f=o.useRef(null),h=o.useRef(null),g=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var v=o.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,a=e.rippleSize,s=e.cb;u((function(e){return[].concat(pm(e),[o.createElement(fm,{key:d.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a})])})),d.current+=1,p.current=s}),[i]),y=o.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,d,p,y=c?null:g.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.clientX?e.clientX:e.touches[0].clientX,S=e.clientY?e.clientY:e.touches[0].clientY;u=Math.round(x-b.left),d=Math.round(S-b.top)}if(s)(p=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(p+=1);else{var w=2*Math.max(Math.abs((y?y.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(w,2)+Math.pow(C,2))}e.touches?(h.current=function(){v({pulsate:i,rippleX:u,rippleY:d,rippleSize:p,cb:n})},f.current=setTimeout((function(){h.current&&(h.current(),h.current=null)}),80)):v({pulsate:i,rippleX:u,rippleY:d,rippleSize:p,cb:n})}}),[r,v]),b=o.useCallback((function(){y({},{pulsate:!0})}),[y]),x=o.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(f.current=setTimeout((function(){x(e,t)})));h.current=null,u((function(e){return e.length>0?e.slice(1):e})),p.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:b,start:y,stop:x}}),[b,y,x]),o.createElement("span",Ls({className:Fd(i.root,a),ref:g},s),o.createElement(Rp,{component:null,exit:!0},c))}));var gm,vm=op((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"})(((gm=o.memo(hm)).muiName="MuiTouchRipple",gm)),ym=o.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,a=void 0!==i&&i,s=e.children,c=e.classes,u=e.className,d=e.component,p=void 0===d?"button":d,m=e.disabled,f=void 0!==m&&m,h=e.disableRipple,g=void 0!==h&&h,v=e.disableTouchRipple,y=void 0!==v&&v,b=e.focusRipple,x=void 0!==b&&b,S=e.focusVisibleClassName,w=e.onBlur,C=e.onClick,M=e.onFocus,k=e.onFocusVisible,E=e.onKeyDown,T=e.onKeyUp,N=e.onMouseDown,L=e.onMouseLeave,D=e.onMouseUp,q=e.onTouchEnd,O=e.onTouchMove,R=e.onTouchStart,A=e.onDragLeave,P=e.tabIndex,I=void 0===P?0:P,z=e.TouchRippleProps,B=e.type,F=void 0===B?"button":B,H=Ds(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),j=o.useRef(null);var W=o.useRef(null),V=o.useState(!1),U=V[0],_=V[1];f&&U&&_(!1);var $=um(),K=$.isFocusVisible,G=$.onBlurVisible,Y=$.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return Zp((function(r){return t&&t(r),!n&&W.current&&W.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){_(!0),j.current.focus()}}}),[]),o.useEffect((function(){U&&x&&!g&&W.current.pulsate()}),[g,x,U]);var J=X("start",N),Z=X("stop",A),Q=X("stop",D),ee=X("stop",(function(e){U&&e.preventDefault(),L&&L(e)})),te=X("start",R),ne=X("stop",q),re=X("stop",O),oe=X("stop",(function(e){U&&(G(e),_(!1)),w&&w(e)}),!1),ie=Zp((function(e){f||(j.current||(j.current=e.currentTarget),K(e)&&(_(!0),k&&k(e)),M&&M(e))})),ae=o.useRef(!1),se=Zp((function(e){x&&!ae.current&&U&&W.current&&" "===e.key&&(ae.current=!0,e.persist(),W.current.stop(e,(function(){W.current.start(e)}))),E&&E(e);var t=l.findDOMNode(j.current);e.target!==e.currentTarget||!p||"button"===p||" "!==e.key&&"Enter"!==e.key||"A"===t.tagName&&t.href||(e.preventDefault(),C&&C(e))})),le=Zp((function(e){x&&" "===e.key&&W.current&&U&&(ae.current=!1,e.persist(),W.current.stop(e,(function(){W.current.pulsate(e)}))),T&&T(e)})),ce=p;"button"===ce&&H.href&&(ce="a");var ue={};"button"===ce?(ue.type=F,ue.disabled=f):("a"===ce&&H.href||(ue.role="button"),ue["aria-disabled"]=f);var de=Vp(r,t),pe=Vp(Y,j),me=Vp(de,pe);return o.createElement(ce,Ls({className:Fd(c.root,u,U&&[c.focusVisible,S],f&&c.disabled),onBlur:oe,onClick:C,onFocus:ie,onKeyDown:se,onKeyUp:le,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:me,tabIndex:f?-1:I},ue,H),s,g||f?null:o.createElement(em,null,o.createElement(vm,Ls({ref:W,center:a},z))))})),bm=op({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(ym),xm=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.icon,a=e.label,s=e.onChange,l=e.onClick,c=e.selected,u=e.showLabel,d=e.value,p=Ds(e,["classes","className","icon","label","onChange","onClick","selected","showLabel","value"]);return o.createElement(bm,Ls({ref:t,className:Fd(n.root,r,c?n.selected:!u&&n.iconOnly),focusRipple:!0,onClick:function(e){s&&s(e,d),l&&l(e)}},p),o.createElement("span",{className:n.wrapper},i,o.createElement("span",{className:Fd(n.label,c?n.selected:!u&&n.iconOnly)},a)))}));function Sm(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function wm(){return(wm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Cm(e){return(Cm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mm(e){return(Mm="function"==typeof Symbol&&"symbol"===Cm(Symbol.iterator)?function(e){return Cm(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Cm(e)})(e)}function km(e,t){return t?Ps(e,t,{clone:!1}):e}op((function(e){return{root:{transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"6px 12px 8px",minWidth:80,maxWidth:168,color:e.palette.text.secondary,flex:"1","&$iconOnly":{paddingTop:16},"&$selected":{paddingTop:6,color:e.palette.primary.main}},selected:{},iconOnly:{},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},label:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s","&$iconOnly":{opacity:0,transitionDelay:"0s"},"&$selected":{fontSize:e.typography.pxToRem(14)}}}}),{name:"MuiBottomNavigationAction"})(xm);var Em={xs:0,sm:600,md:960,lg:1280,xl:1920},Tm={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Em[e],"px)")}};function Nm(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||Tm;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Mm(t)){var o=e.theme.breakpoints||Tm;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function Lm(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Dm(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=Lm(e.theme,o)||{};return Nm(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Lm(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)}))};return a.propTypes={},a.filterProps=[t],a}function qm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?km(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function Om(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Rm=qm(Dm({prop:"border",themeKey:"borders",transform:Om}),Dm({prop:"borderTop",themeKey:"borders",transform:Om}),Dm({prop:"borderRight",themeKey:"borders",transform:Om}),Dm({prop:"borderBottom",themeKey:"borders",transform:Om}),Dm({prop:"borderLeft",themeKey:"borders",transform:Om}),Dm({prop:"borderColor",themeKey:"palette"}),Dm({prop:"borderRadius",themeKey:"shape"}));var Am=qm(Dm({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Dm({prop:"display"}),Dm({prop:"overflow"}),Dm({prop:"textOverflow"}),Dm({prop:"visibility"}),Dm({prop:"whiteSpace"})),Pm=qm(Dm({prop:"flexBasis"}),Dm({prop:"flexDirection"}),Dm({prop:"flexWrap"}),Dm({prop:"justifyContent"}),Dm({prop:"alignItems"}),Dm({prop:"alignContent"}),Dm({prop:"order"}),Dm({prop:"flex"}),Dm({prop:"flexGrow"}),Dm({prop:"flexShrink"}),Dm({prop:"alignSelf"}),Dm({prop:"justifyItems"}),Dm({prop:"justifySelf"})),Im=qm(Dm({prop:"color",themeKey:"palette"}),Dm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),zm=qm(Dm({prop:"position"}),Dm({prop:"zIndex",themeKey:"zIndex"}),Dm({prop:"top"}),Dm({prop:"right"}),Dm({prop:"bottom"}),Dm({prop:"left"})),Bm=Dm({prop:"boxShadow",themeKey:"shadows"});function Fm(e){return e<=1?"".concat(100*e,"%"):e}var Hm=Dm({prop:"width",transform:Fm}),jm=Dm({prop:"maxWidth",transform:Fm}),Wm=Dm({prop:"minWidth",transform:Fm}),Vm=Dm({prop:"height",transform:Fm}),Um=Dm({prop:"maxHeight",transform:Fm}),_m=Dm({prop:"minHeight",transform:Fm});Dm({prop:"size",cssProperty:"width",transform:Fm}),Dm({prop:"size",cssProperty:"height",transform:Fm});var $m=qm(Hm,jm,Wm,Vm,Um,_m);function Km(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Gm={m:"margin",p:"padding"},Ym={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Jm=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!Xm[e])return[e];e=Xm[e]}var t=Km(e.split(""),2),n=t[0],r=t[1],o=Gm[n],i=Ym[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Zm=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Qm(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function ef(e){var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}(e.theme);return Object.keys(e).map((function(n){if(-1===Zm.indexOf(n))return null;var r=Qm(Jm(n),t),o=e[n];return Nm(e,o,r)})).reduce(km,{})}ef.propTypes={},ef.filterProps=Zm;var tf=qm(Dm({prop:"fontFamily",themeKey:"typography"}),Dm({prop:"fontSize",themeKey:"typography"}),Dm({prop:"fontStyle",themeKey:"typography"}),Dm({prop:"fontWeight",themeKey:"typography"}),Dm({prop:"letterSpacing"}),Dm({prop:"lineHeight"}),Dm({prop:"textAlign"})),nf=function(e){var t=function(t){var n=e(t);return t.css?wm({},km(n,e(wm({theme:t.theme},t.css))),{},function(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(t.css,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css"].concat(Sm(e.filterProps)),t}(qm(Rm,Am,Pm,zm,Im,Bm,$m,ef,tf));!function(e){var t=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,a=hd(r,["name"]),s=i,l=zd("function"==typeof t?function(e){return{root:function(n){return t(gd({theme:e},n))}}}:{root:t},gd({Component:e,name:i||e.displayName,classNamePrefix:s},a));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=o.forwardRef((function(t,r){var i=t.children,a=t.className,s=t.clone,c=t.component,u=hd(t,["children","className","clone","component"]),d=Fd(l(t).root,a),p=u;if(n&&(p=Qd(p,n)),s)return o.cloneElement(i,gd({className:Fd(i.props.className,d)},p));if("function"==typeof i)return i(gd({className:d},p));var m=c||e;return o.createElement(m,gd({ref:r,className:d},p),i)}));return Zd(c,e),c}}(e);return function(e,n){return t(e,Ls({defaultTheme:np},n))}}("div")(nf,{name:"MuiBox"});var rf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},of=o.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,a=e.className,s=e.color,l=void 0===s?"initial":s,c=e.component,u=e.display,d=void 0===u?"initial":u,p=e.gutterBottom,m=void 0!==p&&p,f=e.noWrap,h=void 0!==f&&f,g=e.paragraph,v=void 0!==g&&g,y=e.variant,b=void 0===y?"body1":y,x=e.variantMapping,S=void 0===x?rf:x,w=Ds(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=c||(v?"p":S[b]||rf[b])||"span";return o.createElement(C,Ls({className:Fd(i.root,a,"inherit"!==b&&i[b],"initial"!==l&&i["color".concat(ip(l))],h&&i.noWrap,m&&i.gutterBottom,v&&i.paragraph,"inherit"!==r&&i["align".concat(ip(r))],"initial"!==d&&i["display".concat(ip(d))]),ref:t},w))})),af=op((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"})(of),sf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"inherit":a,l=e.component,c=void 0===l?"svg":l,u=e.fontSize,d=void 0===u?"default":u,p=e.htmlColor,m=e.titleAccess,f=e.viewBox,h=void 0===f?"0 0 24 24":f,g=Ds(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(c,Ls({className:Fd(r.root,i,"inherit"!==s&&r["color".concat(ip(s))],"default"!==d&&r["fontSize".concat(ip(d))]),focusable:"false",viewBox:h,color:p,"aria-hidden":m?"false":"true",role:m?"img":"presentation",ref:t},g),n,m?o.createElement("title",null,m):null)}));sf.muiName="SvgIcon";var lf=op((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(sf);function cf(e,t){var n=o.memo(o.forwardRef((function(t,n){return o.createElement(lf,Ls({},t,{ref:n}),e)})));return n.muiName=lf.muiName,n}var uf=cf(o.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var df=op((function(e){return{root:{display:"flex"},icon:{width:24,height:16,backgroundColor:e.palette.grey[100],color:e.palette.grey[700],borderRadius:2,marginLeft:e.spacing(.5),marginRight:e.spacing(.5),cursor:"pointer","&:hover, &:focus":{backgroundColor:e.palette.grey[200]},"&:active":{boxShadow:e.shadows[0],backgroundColor:Ms(e.palette.grey[200],.12)}}}}),{name:"PrivateBreadcrumbCollapsed"})((function(e){var t=e.classes,n=Ds(e,["classes"]);return o.createElement("li",Ls({className:t.root},n),o.createElement(uf,{className:t.icon}))}));var pf=op({root:{display:"flex",userSelect:"none",marginLeft:8,marginRight:8}},{name:"PrivateBreadcrumbSeparator"})((function(e){var t=e.classes,n=e.className,r=Ds(e,["classes","className"]);return o.createElement("li",Ls({"aria-hidden":!0,className:Fd(t.root,n)},r))}));var mf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"nav":a,l=e.itemsAfterCollapse,c=void 0===l?1:l,u=e.itemsBeforeCollapse,d=void 0===u?1:u,p=e.maxItems,m=void 0===p?8:p,f=e.separator,h=void 0===f?"/":f,g=Ds(e,["children","classes","className","component","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),v=o.useState(!1),y=v[0],b=v[1],x=o.Children.toArray(n).filter((function(e){return o.isValidElement(e)})).map((function(e,t){return o.createElement("li",{className:r.li,key:"child-".concat(t)},e)}));return o.createElement(af,Ls({ref:t,component:s,color:"textSecondary",className:Fd(r.root,i)},g),o.createElement("ol",{className:r.ol},function(e,t,n){return e.reduce((function(r,i,a){return a<e.length-1?r=r.concat(i,o.createElement(pf,{key:"separator-".concat(a),className:t},n)):r.push(i),r}),[])}(y||m&&x.length<=m?x:function(e){return d+c>=e.length?e:[].concat(pm(e.slice(0,d)),[o.createElement(df,{key:"ellipsis",onClick:function(){b(!0)}})],pm(e.slice(e.length-c,e.length)))}(x),r.separator,h)))}));op({root:{},ol:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0},li:{listStyle:"none"},separator:{}},{name:"MuiBreadcrumbs"})(mf);var ff=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"button":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,m=void 0!==p&&p,f=e.endIcon,h=e.focusVisibleClassName,g=e.fullWidth,v=void 0!==g&&g,y=e.size,b=void 0===y?"medium":y,x=e.startIcon,S=e.type,w=void 0===S?"button":S,C=e.variant,M=void 0===C?"text":C,k=Ds(e,["children","classes","className","color","component","disabled","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=x&&o.createElement("span",{className:Fd(r.startIcon,r["iconSize".concat(ip(b))])},x),T=f&&o.createElement("span",{className:Fd(r.endIcon,r["iconSize".concat(ip(b))])},f);return o.createElement(bm,Ls({className:Fd(r.root,r[M],i,"inherit"===s?r.colorInherit:"default"!==s&&r["".concat(M).concat(ip(s))],"medium"!==b&&[r["".concat(M,"Size").concat(ip(b))],r["size".concat(ip(b))]],d&&r.disabled,v&&r.fullWidth),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:Fd(r.focusVisible,h),ref:t,type:w},k),o.createElement("span",{className:r.label},E,n,T))})),hf=op((function(e){return{root:Ls({},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:ks(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:ks(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:ks(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(ks(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:ks(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(ks(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:ks(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(ff),gf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"div":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,m=void 0!==p&&p,f=e.disableRipple,h=void 0!==f&&f,g=e.fullWidth,v=void 0!==g&&g,y=e.size,b=void 0===y?"medium":y,x=e.variant,S=void 0===x?"outlined":x,w=Ds(e,["children","classes","className","color","component","disabled","disableFocusRipple","disableRipple","fullWidth","size","variant"]),C=Fd(r.grouped,r["grouped".concat(ip(S))],r["grouped".concat(ip(S)).concat("default"!==s?ip(s):"")],d&&r.disabled);return o.createElement(c,Ls({role:"group",className:Fd(r.root,i,v&&r.fullWidth,{contained:r.contained}[S]),ref:t},w),o.Children.map(n,(function(e){return o.isValidElement(e)?o.cloneElement(e,{className:Fd(C,e.props.className),disabled:e.props.disabled||d,color:e.props.color||s,disableFocusRipple:m,disableRipple:h,fullWidth:v,size:e.props.size||b,variant:e.props.variant||S}):null})))}));op((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},contained:{boxShadow:e.shadows[2]},fullWidth:{width:"100%"},grouped:{minWidth:40,"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedText:{"&:not(:last-child)":{borderRight:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:ks(e.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:ks(e.palette.secondary.main,.5)}},groupedOutlined:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:e.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:e.palette.secondary.main}},groupedContained:{boxShadow:"none","&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.primary.dark)}},groupedContainedSecondary:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.secondary.dark)}},disabled:{}}}),{name:"MuiButtonGroup"})(gf);var vf=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.raised,a=void 0!==i&&i,s=Ds(e,["classes","className","raised"]);return o.createElement(sp,Ls({className:Fd(n.root,r),elevation:a?8:1,ref:t},s))}));op({root:{overflow:"hidden"}},{name:"MuiCard"})(vf);var yf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.focusVisibleClassName,s=Ds(e,["children","classes","className","focusVisibleClassName"]);return o.createElement(bm,Ls({className:Fd(r.root,i),focusVisibleClassName:Fd(a,r.focusVisible),ref:t},s),n,o.createElement("span",{className:r.focusHighlight}))}));op((function(e){return{root:{display:"block",textAlign:"inherit",width:"100%","&:hover $focusHighlight":{opacity:e.palette.action.hoverOpacity},"&$focusVisible $focusHighlight":{opacity:.12}},focusVisible:{},focusHighlight:{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}}}),{name:"MuiCardActionArea"})(yf);var bf=o.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,i=e.classes,a=e.className,s=Ds(e,["disableSpacing","classes","className"]);return o.createElement("div",Ls({className:Fd(i.root,a,!r&&i.spacing),ref:t},s))}));op({root:{display:"flex",alignItems:"center",padding:8},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiCardActions"})(bf);var xf=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=Ds(e,["classes","className","component"]);return o.createElement(a,Ls({className:Fd(n.root,r),ref:t},s))}));op({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(xf);var Sf=o.forwardRef((function(e,t){var n=e.action,r=e.avatar,i=e.classes,a=e.className,s=e.component,l=void 0===s?"div":s,c=e.disableTypography,u=void 0!==c&&c,d=e.subheader,p=e.subheaderTypographyProps,m=e.title,f=e.titleTypographyProps,h=Ds(e,["action","avatar","classes","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"]),g=m;null==g||g.type===af||u||(g=o.createElement(af,Ls({variant:r?"body2":"h5",className:i.title,component:"span",display:"block"},f),g));var v=d;return null==v||v.type===af||u||(v=o.createElement(af,Ls({variant:r?"body2":"body1",className:i.subheader,color:"textSecondary",component:"span",display:"block"},p),v)),o.createElement(l,Ls({className:Fd(i.root,a),ref:t},h),r&&o.createElement("div",{className:i.avatar},r),o.createElement("div",{className:i.content},g,v),n&&o.createElement("div",{className:i.action},n))}));op({root:{display:"flex",alignItems:"center",padding:16},avatar:{flex:"0 0 auto",marginRight:16},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-8,marginRight:-8},content:{flex:"1 1 auto"},title:{},subheader:{}},{name:"MuiCardHeader"})(Sf);var wf=["video","audio","picture","iframe","img"],Cf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.image,c=e.src,u=e.style,d=Ds(e,["children","classes","className","component","image","src","style"]),p=-1!==wf.indexOf(s),m=!p&&l?Ls({backgroundImage:'url("'.concat(l,'")')},u):u;return o.createElement(s,Ls({className:Fd(r.root,i,p&&r.media,-1!=="picture img".indexOf(s)&&r.img),ref:t,style:m,src:p?l||c:void 0},d),n)}));op({root:{display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},media:{width:"100%"},img:{objectFit:"cover"}},{name:"MuiCardMedia"})(Cf);var Mf=o.createContext();function kf(){return o.useContext(Mf)}function Ef(){return o.useContext(Mf)}var Tf=o.forwardRef((function(e,t){var n=e.edge,r=void 0!==n&&n,i=e.children,a=e.classes,s=e.className,l=e.color,c=void 0===l?"default":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,m=void 0!==p&&p,f=e.size,h=void 0===f?"medium":f,g=Ds(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(bm,Ls({className:Fd(a.root,s,"default"!==c&&a["color".concat(ip(c))],d&&a.disabled,{small:a["size".concat(ip(h))]}[h],{start:a.edgeStart,end:a.edgeEnd}[r]),centerRipple:!0,focusRipple:!m,disabled:d,ref:t},g),o.createElement("span",{className:a.label},i))})),Nf=op((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:ks(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:ks(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:ks(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Tf),Lf=o.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,i=e.checkedIcon,a=e.classes,s=e.className,l=e.defaultChecked,c=e.disabled,u=e.icon,d=e.id,p=e.inputProps,m=e.inputRef,f=e.name,h=e.onBlur,g=e.onChange,v=e.onFocus,y=e.readOnly,b=e.required,x=e.tabIndex,S=e.type,w=e.value,C=Ds(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),M=o.useRef(null!=r).current,k=o.useState(Boolean(l)),E=k[0],T=k[1],N=Ef(),L=c;N&&void 0===L&&(L=N.disabled);var D=M?r:E,q="checkbox"===S||"radio"===S;return o.createElement(Nf,Ls({component:"span",className:Fd(a.root,s,D&&a.checked,L&&a.disabled),disabled:L,tabIndex:null,role:void 0,onFocus:function(e){v&&v(e),N&&N.onFocus&&N.onFocus(e)},onBlur:function(e){h&&h(e),N&&N.onBlur&&N.onBlur(e)},ref:t},C),o.createElement("input",Ls({autoFocus:n,checked:r,defaultChecked:l,className:a.input,disabled:L,id:q&&d,name:f,onChange:function(e){var t=e.target.checked;M||T(t),g&&g(e,t)},readOnly:y,ref:m,required:b,tabIndex:x,type:S,value:w},p)),D?i:u)})),Df=op({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(Lf),qf=cf(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),Of=cf(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Rf=cf(o.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"})),Af=o.createElement(Of,null),Pf=o.createElement(qf,null),If=o.createElement(Rf,null),zf=o.forwardRef((function(e,t){var n=e.checkedIcon,r=void 0===n?Af:n,i=e.classes,a=e.color,s=void 0===a?"secondary":a,l=e.icon,c=void 0===l?Pf:l,u=e.indeterminate,d=void 0!==u&&u,p=e.indeterminateIcon,m=void 0===p?If:p,f=e.inputProps,h=Ds(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps"]);return o.createElement(Df,Ls({type:"checkbox",checkedIcon:d?m:r,classes:{root:Fd(i.root,i["color".concat(ip(s))],d&&i.indeterminate),checked:i.checked,disabled:i.disabled},color:s,inputProps:Ls({"data-indeterminate":d},f),icon:d?m:c,ref:t},h))}));op((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:ks(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:ks(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(zf);var Bf=cf(o.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})),Ff=o.forwardRef((function(e,t){var n=e.avatar,r=e.classes,i=e.className,a=e.clickable,s=e.color,l=void 0===s?"default":s,c=e.component,u=e.deleteIcon,d=e.disabled,p=void 0!==d&&d,m=e.icon,f=e.label,h=e.onClick,g=e.onDelete,v=e.onKeyDown,y=e.onKeyUp,b=e.size,x=void 0===b?"medium":b,S=e.variant,w=void 0===S?"default":S,C=Ds(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),M=o.useRef(null),k=Vp(M,t),E=function(e){e.stopPropagation(),g&&g(e)},T=!(!1===a||!h)||a,N="small"===x,L=c||(T?bm:"div"),D=L===bm?{component:"div"}:{},q=null;if(g){var O=Fd("default"!==l&&("default"===w?r["deleteIconColor".concat(ip(l))]:r["deleteIconOutlinedColor".concat(ip(l))]),N&&r.deleteIconSmall);q=u&&o.isValidElement(u)?o.cloneElement(u,{className:Fd(u.props.className,r.deleteIcon,O),onClick:E}):o.createElement(Bf,{className:Fd(r.deleteIcon,O),onClick:E})}var R=null;n&&o.isValidElement(n)&&(R=o.cloneElement(n,{className:Fd(r.avatar,n.props.className,N&&r.avatarSmall,"default"!==l&&r["avatarColor".concat(ip(l))])}));var A=null;return m&&o.isValidElement(m)&&(A=o.cloneElement(m,{className:Fd(r.icon,m.props.className,N&&r.iconSmall,"default"!==l&&r["iconColor".concat(ip(l))])})),o.createElement(L,Ls({role:T||g?"button":void 0,className:Fd(r.root,i,"default"!==l&&[r["color".concat(ip(l))],T&&r["clickableColor".concat(ip(l))],g&&r["deletableColor".concat(ip(l))]],"default"!==w&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[l]],p&&r.disabled,N&&r.sizeSmall,T&&r.clickable,g&&r.deletable),"aria-disabled":!!p||void 0,tabIndex:T||g?0:void 0,onClick:h,onKeyDown:function(e){v&&v(e),e.currentTarget===e.target&&-1!==[" ","Enter","Backspace","Delete","Escape"].indexOf(e.key)&&e.preventDefault()},onKeyUp:function(e){if(y&&y(e),e.currentTarget===e.target){var t=e.key;!g||"Backspace"!==t&&"Delete"!==t?"Escape"===t&&M.current&&M.current.blur():g(e)}},ref:k},D,C),R||A,o.createElement("span",{className:Fd(r.label,N&&r.labelSmall)},f),q)}));op((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=ks(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:Ms(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:Ms(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:Ms(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:Ms(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:Ms(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:Ms(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:ks(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:ks(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:ks(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{display:"flex",alignItems:"center",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:ks(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:ks(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:ks(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:ks(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:ks(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(Ff);var Hf=44;function jf(e){var t,n,r;return t=e,n=0,r=1,e=(Math.min(Math.max(n,t),r)-n)/(r-n),e=(e-=1)*e*e+1}var Wf=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.disableShrink,l=void 0!==s&&s,c=e.size,u=void 0===c?40:c,d=e.style,p=e.thickness,m=void 0===p?3.6:p,f=e.value,h=void 0===f?0:f,g=e.variant,v=void 0===g?"indeterminate":g,y=Ds(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),b={},x={},S={};if("determinate"===v||"static"===v){var w=2*Math.PI*((Hf-m)/2);b.strokeDasharray=w.toFixed(3),S["aria-valuenow"]=Math.round(h),"static"===v?(b.strokeDashoffset="".concat(((100-h)/100*w).toFixed(3),"px"),x.transform="rotate(-90deg)"):(b.strokeDashoffset="".concat((function(e){return e*e}((100-h)/100)*w).toFixed(3),"px"),x.transform="rotate(".concat((270*jf(h/70)).toFixed(3),"deg)"))}return o.createElement("div",Ls({className:Fd(n.root,r,"inherit"!==a&&n["color".concat(ip(a))],{indeterminate:n.indeterminate,static:n.static}[v]),style:Ls({width:u,height:u},x,{},d),ref:t,role:"progressbar"},S,y),o.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(Hf," ").concat(Hf)},o.createElement("circle",{className:Fd(n.circle,l&&n.circleDisableShrink,{indeterminate:n.circleIndeterminate,static:n.circleStatic}[v]),style:b,cx:Hf,cy:Hf,r:(Hf-m)/2,fill:"none",strokeWidth:m})))}));function Vf(e){return e&&e.ownerDocument||document}function Uf(e){return e.substring(2).toLowerCase()}op((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},"@keyframes circular-rotate":{"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(Wf);var _f=o.forwardRef((function(e,t){var n=e.children,r=e.mouseEvent,i=void 0===r?"onClick":r,a=e.touchEvent,s=void 0===a?"onTouchEnd":a,c=e.onClickAway,u=o.useRef(!1),d=o.useRef(null),p=o.useRef(!1);o.useEffect((function(){return p.current=!0,function(){p.current=!1}}),[]);var m=Vp(d,t),f=o.useCallback((function(e){Wp(m,l.findDOMNode(e))}),[m]),h=Vp(n.ref,f),g=Zp((function(e){if(!e.defaultPrevented&&p.current)if(u.current)u.current=!1;else if(d.current){var t=Vf(d.current);t.documentElement&&t.documentElement.contains(e.target)&&!d.current.contains(e.target)&&c(e)}})),v=o.useCallback((function(){u.current=!0}),[]);return o.useEffect((function(){if(!1!==s){var e=Uf(s);return document.addEventListener(e,g),document.addEventListener("touchmove",v),function(){document.removeEventListener(e,g),document.removeEventListener("touchmove",v)}}}),[g,v,s]),o.useEffect((function(){if(!1!==i){var e=Uf(i);return document.addEventListener(e,g),function(){document.removeEventListener(e,g)}}}),[g,i]),o.createElement(o.Fragment,null,o.cloneElement(n,{ref:h}))})),$f=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.collapsedHeight,s=void 0===a?"0px":a,l=e.component,c=void 0===l?"div":l,u=e.in,d=e.onEnter,p=e.onEntered,m=e.onEntering,f=e.onExit,h=e.onExiting,g=e.style,v=e.timeout,y=void 0===v?xl.standard:v,b=Ds(e,["children","classes","className","collapsedHeight","component","in","onEnter","onEntered","onEntering","onExit","onExiting","style","timeout"]),x=rp(),S=o.useRef(),w=o.useRef(null),C=o.useRef();o.useEffect((function(){return function(){clearTimeout(S.current)}}),[]);return o.createElement(Sp,Ls({in:u,onEnter:function(e,t){e.style.height=s,d&&d(e,t)},onEntered:function(e,t){e.style.height="auto",p&&p(e,t)},onEntering:function(e,t){var n=w.current?w.current.clientHeight:0,r=jp({style:g,timeout:y},{mode:"enter"}).duration;if("auto"===y){var o=x.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),C.current=o}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),m&&m(e,t)},onExit:function(e){var t=w.current?w.current.clientHeight:0;e.style.height="".concat(t,"px"),f&&f(e)},onExiting:function(e){var t=w.current?w.current.clientHeight:0,n=jp({style:g,timeout:y},{mode:"exit"}).duration;if("auto"===y){var r=x.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),C.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=s,h&&h(e)},addEndListener:function(e,t){"auto"===y&&(S.current=setTimeout(t,C.current||0))},timeout:"auto"===y?null:y},b),(function(e,a){return o.createElement(c,Ls({className:Fd(r.container,i,{entered:r.entered,exited:!u&&"0px"===s&&r.hidden}[e]),style:Ls({minHeight:s},g),ref:t},a),o.createElement("div",{className:r.wrapper,ref:w},o.createElement("div",{className:r.wrapperInner},n)))}))}));$f.muiSupportAuto=!0;var Kf=op((function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})($f),Gf=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=e.fixed,l=void 0!==s&&s,c=e.maxWidth,u=void 0===c?"lg":c,d=Ds(e,["classes","className","component","fixed","maxWidth"]);return o.createElement(a,Ls({className:Fd(n.root,r,l&&n.fixed,!1!==u&&n["maxWidth".concat(ip(String(u)))]),ref:t},d))}));op((function(e){var t;return{root:(t={width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},Ns(t,e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),Ns(t,e.breakpoints.up("md"),{paddingLeft:e.spacing(4),paddingRight:e.spacing(4)}),t),fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:Ns({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:Ns({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:Ns({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:Ns({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:Ns({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(Gf),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zd(e,Ls({defaultTheme:np},t))}((function(e){return{"@global":{html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:"bolder"},body:Ls({margin:0,color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white},"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"});var Yf="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,Xf=o.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,a=void 0!==i&&i,s=e.onRendered,c=o.useState(null),u=c[0],d=c[1],p=Vp(n.ref,t);return Yf((function(){a||d(function(e){return e="function"==typeof e?e():e,l.findDOMNode(e)}(r)||document.body)}),[r,a]),Yf((function(){if(u&&!a)return Wp(t,u),function(){Wp(t,null)}}),[t,u,a]),Yf((function(){s&&(u||a)&&s()}),[s,u,a]),a?(o.Children.only(n),o.cloneElement(n,{ref:p})):u?l.createPortal(n,u):u}));function Jf(){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 Zf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eh(e,t,n){return t&&Qf(e.prototype,t),n&&Qf(e,n),e}function th(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function nh(e){return Vf(e).defaultView||window}function rh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oh(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function ih(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(pm(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&rh(e,o)}))}function ah(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function sh(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){var a=function(e){var t=Vf(e);return t.body===e?nh(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i),s=i.parentElement,l="HTML"===s.nodeName?s:i;if(r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden",a){var c=th();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(oh(i)+c,"px"),n=Vf(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(oh(e)+c,"px")}))}}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var lh=function(){function e(){Zf(this,e),this.modals=[],this.containers=[]}return eh(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&&rh(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);ih(t,e.mountNode,e.modalRef,r,!0);var o=ah(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=ah(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=sh(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=ah(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&&rh(e.modalRef,!0),ih(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&&rh(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function ch(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,a=void 0!==i&&i,s=e.disableRestoreFocus,c=void 0!==s&&s,u=e.getDoc,d=e.isEnabled,p=e.open,m=o.useRef(),f=o.useRef(null),h=o.useRef(null),g=o.useRef(),v=o.useRef(null),y=o.useCallback((function(e){v.current=l.findDOMNode(e)}),[]),b=Vp(t.ref,y);return o.useMemo((function(){p&&"undefined"!=typeof window&&(g.current=u().activeElement)}),[p]),o.useEffect((function(){if(p){var e=Vf(v.current);r||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){a||!d()||m.current?m.current=!1:v.current&&!v.current.contains(e.activeElement)&&v.current.focus()},n=function(t){!a&&d()&&9===t.keyCode&&e.activeElement===v.current&&(m.current=!0,t.shiftKey?h.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),c||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[r,a,c,d,p]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),o.cloneElement(t,{ref:b}),o.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var uh={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},dh=o.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,a=Ds(e,["invisible","open"]);return i?o.createElement("div",Ls({"aria-hidden":!0,ref:t},a,{style:Ls({},uh.root,{},r?uh.invisible:{},{},a.style)})):null}));var ph=new lh,mh=o.forwardRef((function(e,t){var n=wd(),r=Nl({name:"MuiModal",props:Ls({},e),theme:n}),i=r.BackdropComponent,a=void 0===i?dh:i,s=r.BackdropProps,c=r.children,u=r.closeAfterTransition,d=void 0!==u&&u,p=r.container,m=r.disableAutoFocus,f=void 0!==m&&m,h=r.disableBackdropClick,g=void 0!==h&&h,v=r.disableEnforceFocus,y=void 0!==v&&v,b=r.disableEscapeKeyDown,x=void 0!==b&&b,S=r.disablePortal,w=void 0!==S&&S,C=r.disableRestoreFocus,M=void 0!==C&&C,k=r.disableScrollLock,E=void 0!==k&&k,T=r.hideBackdrop,N=void 0!==T&&T,L=r.keepMounted,D=void 0!==L&&L,q=r.manager,O=void 0===q?ph:q,R=r.onBackdropClick,A=r.onClose,P=r.onEscapeKeyDown,I=r.onRendered,z=r.open,B=Ds(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=o.useState(!0),H=F[0],j=F[1],W=o.useRef({}),V=o.useRef(null),U=o.useRef(null),_=Vp(U,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),K=function(){return Vf(V.current)},G=function(){return W.current.modalRef=U.current,W.current.mountNode=V.current,W.current},Y=function(){O.mount(G(),{disableScrollLock:E}),U.current.scrollTop=0},X=Zp((function(){var e=function(e){return e="function"==typeof e?e():e,l.findDOMNode(e)}(p)||K().body;O.add(G(),e),U.current&&Y()})),J=o.useCallback((function(){return O.isTopModal(G())}),[O]),Z=Zp((function(e){V.current=e,e&&(I&&I(),z&&J()?Y():rh(U.current,!0))})),Q=o.useCallback((function(){O.remove(G())}),[O]);if(o.useEffect((function(){return function(){Q()}}),[Q]),o.useEffect((function(){z?X():$&&d||Q()}),[z,Q,$,d,X]),!D&&!z&&(!$||H))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Cl}),te={};return void 0===c.props.tabIndex&&(te.tabIndex=c.props.tabIndex||"-1"),$&&(te.onEnter=Jf((function(){j(!1)}),c.props.onEnter),te.onExited=Jf((function(){j(!0),d&&Q()}),c.props.onExited)),o.createElement(Xf,{ref:Z,container:p,disablePortal:w},o.createElement("div",Ls({ref:_,onKeyDown:function(e){"Escape"===e.key&&J()&&(e.stopPropagation(),P&&P(e),!x&&A&&A(e,"escapeKeyDown"))},role:"presentation"},B,{style:Ls({},ee.root,{},!z&&H?ee.hidden:{},{},B.style)}),N?null:o.createElement(a,Ls({open:z,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!g&&A&&A(e,"backdropClick"))}},s)),o.createElement(ch,{disableEnforceFocus:y,disableAutoFocus:f,disableRestoreFocus:M,getDoc:K,isEnabled:J,open:z},o.cloneElement(c,te))))})),fh={enter:xl.enteringScreen,exit:xl.leavingScreen},hh=o.forwardRef((function(e,t){var n=e.BackdropProps,r=e.children,i=e.classes,a=e.className,s=e.disableBackdropClick,l=void 0!==s&&s,c=e.disableEscapeKeyDown,u=void 0!==c&&c,d=e.fullScreen,p=void 0!==d&&d,m=e.fullWidth,f=void 0!==m&&m,h=e.maxWidth,g=void 0===h?"sm":h,v=e.onBackdropClick,y=e.onClose,b=e.onEnter,x=e.onEntered,S=e.onEntering,w=e.onEscapeKeyDown,C=e.onExit,M=e.onExited,k=e.onExiting,E=e.open,T=e.PaperComponent,N=void 0===T?sp:T,L=e.PaperProps,D=void 0===L?{}:L,q=e.scroll,O=void 0===q?"paper":q,R=e.TransitionComponent,A=void 0===R?$p:R,P=e.transitionDuration,I=void 0===P?fh:P,z=e.TransitionProps,B=e["aria-describedby"],F=e["aria-labelledby"],H=Ds(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),j=o.useRef();return o.createElement(mh,Ls({className:Fd(i.root,a),BackdropComponent:Gp,BackdropProps:Ls({transitionDuration:I},n),closeAfterTransition:!0,disableBackdropClick:l,disableEscapeKeyDown:u,onEscapeKeyDown:w,onClose:y,open:E,ref:t},H),o.createElement(A,Ls({appear:!0,in:E,timeout:I,onEnter:b,onEntering:S,onEntered:x,onExit:C,onExiting:k,onExited:M,role:"none presentation"},z),o.createElement("div",{className:Fd(i.container,i["scroll".concat(ip(O))]),onClick:function(e){e.target===e.currentTarget&&e.target===j.current&&(j.current=null,v&&v(e),!l&&y&&y(e,"backdropClick"))},onMouseDown:function(e){j.current=e.target}},o.createElement(N,Ls({elevation:24,role:"dialog","aria-describedby":B,"aria-labelledby":F},D,{className:Fd(i.paper,i["paperScroll".concat(ip(O))],i["paperWidth".concat(ip(String(g)))],D.className,p&&i.paperFullScreen,f&&i.paperFullWidth)}),r))))}));op((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Ns({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Ns({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Ns({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Ns({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Ns({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(hh);var gh=o.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,i=e.classes,a=e.className,s=Ds(e,["disableSpacing","classes","className"]);return o.createElement("div",Ls({className:Fd(i.root,a,!r&&i.spacing),ref:t},s))}));op({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiDialogActions"})(gh);var vh=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.dividers,a=void 0!==i&&i,s=Ds(e,["classes","className","dividers"]);return o.createElement("div",Ls({className:Fd(n.root,r,a&&n.dividers),ref:t},s))}));op((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(vh);var yh=o.forwardRef((function(e,t){return o.createElement(af,Ls({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));op({root:{marginBottom:12}},{name:"MuiDialogContentText"})(yh);var bh=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.disableTypography,s=void 0!==a&&a,l=Ds(e,["children","classes","className","disableTypography"]);return o.createElement("div",Ls({className:Fd(r.root,i),ref:t},l),s?n:o.createElement(af,{component:"h2",variant:"h6"},n))}));op({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(bh);var xh=o.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,a=e.className,s=e.component,l=void 0===s?"hr":s,c=e.light,u=void 0!==c&&c,d=e.orientation,p=void 0===d?"horizontal":d,m=e.role,f=void 0===m?"hr"!==l?"separator":void 0:m,h=e.variant,g=void 0===h?"fullWidth":h,v=Ds(e,["absolute","classes","className","component","light","orientation","role","variant"]);return o.createElement(l,Ls({className:Fd(i.root,a,"fullWidth"!==g&&i[g],r&&i.absolute,u&&i.light,{vertical:i.vertical}[p]),role:f,ref:t},v))}));function Sh(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,s=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}function wh(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(-").concat(r.left-i,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(-").concat(r.top-a,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}op((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:ks(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1}}}),{name:"MuiDivider"})(xh);var Ch={enter:xl.enteringScreen,exit:xl.leavingScreen},Mh=o.forwardRef((function(e,t){var n=e.children,r=e.direction,i=void 0===r?"down":r,a=e.in,s=e.onEnter,c=e.onEntering,u=e.onExit,d=e.onExited,p=e.style,m=e.timeout,f=void 0===m?Ch:m,h=Ds(e,["children","direction","in","onEnter","onEntering","onExit","onExited","style","timeout"]),g=rp(),v=o.useRef(null),y=o.useCallback((function(e){v.current=l.findDOMNode(e)}),[]),b=Vp(n.ref,y),x=Vp(b,t),S=o.useCallback((function(){v.current&&wh(i,v.current)}),[i]);return o.useEffect((function(){if(!a&&"down"!==i&&"right"!==i){var e=Sh((function(){v.current&&wh(i,v.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[i,a]),o.useEffect((function(){a||S()}),[a,S]),o.createElement(Sp,Ls({onEnter:function(e,t){var n=v.current;wh(i,n),Hp(n),s&&s(n,t)},onEntering:function(e,t){var n=v.current,r=jp({timeout:f,style:p},{mode:"enter"});n.style.webkitTransition=g.transitions.create("-webkit-transform",Ls({},r,{easing:g.transitions.easing.easeOut})),n.style.transition=g.transitions.create("transform",Ls({},r,{easing:g.transitions.easing.easeOut})),n.style.webkitTransform="none",n.style.transform="none",c&&c(n,t)},onExit:function(){var e=v.current,t=jp({timeout:f,style:p},{mode:"exit"});e.style.webkitTransition=g.transitions.create("-webkit-transform",Ls({},t,{easing:g.transitions.easing.sharp})),e.style.transition=g.transitions.create("transform",Ls({},t,{easing:g.transitions.easing.sharp})),wh(i,e),u&&u(e)},onExited:function(){var e=v.current;e.style.webkitTransition="",e.style.transition="",d&&d(e)},appear:!0,in:a,timeout:f},h),(function(e,t){return o.cloneElement(n,Ls({ref:x,style:Ls({visibility:"exited"!==e||a?void 0:"hidden"},p,{},n.props.style)},t))}))})),kh={left:"right",right:"left",top:"down",bottom:"up"};function Eh(e){return-1!==["left","right"].indexOf(e)}function Th(e,t){return"rtl"===e.direction&&Eh(t)?kh[t]:t}var Nh={enter:xl.enteringScreen,exit:xl.leavingScreen},Lh=o.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,i=e.BackdropProps,a=e.children,s=e.classes,l=e.className,c=e.elevation,u=void 0===c?16:c,d=e.ModalProps,p=(d=void 0===d?{}:d).BackdropProps,m=Ds(d,["BackdropProps"]),f=e.onClose,h=e.open,g=void 0!==h&&h,v=e.PaperProps,y=e.SlideProps,b=e.transitionDuration,x=void 0===b?Nh:b,S=e.variant,w=void 0===S?"temporary":S,C=Ds(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","transitionDuration","variant"]),M=rp(),k=o.useRef(!1);o.useEffect((function(){k.current=!0}),[]);var E=Th(M,r),T=o.createElement(sp,Ls({elevation:"temporary"===w?u:0,square:!0,className:Fd(s.paper,s["paperAnchor".concat(ip(E))],"temporary"!==w&&s["paperAnchorDocked".concat(ip(E))])},v),a);if("permanent"===w)return o.createElement("div",Ls({className:Fd(s.root,s.docked,l),ref:t},C),T);var N=o.createElement(Mh,Ls({in:g,direction:kh[E],timeout:x,appear:k.current},y),T);return"persistent"===w?o.createElement("div",Ls({className:Fd(s.root,s.docked,l),ref:t},C),N):o.createElement(mh,Ls({BackdropProps:Ls({},i,{},p,{transitionDuration:x}),BackdropComponent:Gp,className:Fd(s.root,s.modal,l),open:g,onClose:f,ref:t},C,m),N)})),Dh=op((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(Lh);function qh(e){return function(e){if(Array.isArray(e))return e}(e)||dm(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Oh=o.createContext({}),Rh=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.defaultExpanded,s=void 0!==a&&a,l=e.disabled,c=void 0!==l&&l,u=e.expanded,d=e.onChange,p=e.square,m=void 0!==p&&p,f=e.TransitionComponent,h=void 0===f?Kf:f,g=e.TransitionProps,v=Ds(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),y=o.useRef(null!=u).current,b=o.useState(s),x=b[0],S=b[1],w=y?u:x,C=o.useCallback((function(e){y||S(!w),d&&d(e,!w)}),[w,y,d]),M=qh(o.Children.toArray(n)),k=M[0],E=M.slice(1),T=o.useMemo((function(){return{expanded:w,disabled:c,toggle:C}}),[w,c,C]);return o.createElement(sp,Ls({className:Fd(r.root,i,w&&r.expanded,c&&r.disabled,!m&&r.rounded),ref:t,square:m},v),o.createElement(Oh.Provider,{value:T},k),o.createElement(h,Ls({in:w,timeout:"auto"},g),o.createElement("div",{"aria-labelledby":k.props.id,id:k.props["aria-controls"],role:"region"},E)))}));op((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiExpansionPanel"})(Rh);var Ah=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disableSpacing,a=void 0!==i&&i,s=Ds(e,["classes","className","disableSpacing"]);return o.createElement("div",Ls({className:Fd(n.root,r,!a&&n.spacing),ref:t},s))}));op({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiExpansionPanelActions"})(Ah);var Ph=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ds(e,["classes","className"]);return o.createElement("div",Ls({className:Fd(n.root,r),ref:t},i))}));op({root:{display:"flex",padding:"8px 24px 24px"}},{name:"MuiExpansionPanelDetails"})(Ph);var Ih=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.expandIcon,s=e.IconButtonProps,l=e.onBlur,c=e.onClick,u=e.onFocusVisible,d=Ds(e,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),p=o.useState(!1),m=p[0],f=p[1],h=o.useContext(Oh),g=h.disabled,v=void 0!==g&&g,y=h.expanded,b=h.toggle;return o.createElement(bm,Ls({focusRipple:!1,disableRipple:!0,disabled:v,component:"div","aria-expanded":y,className:Fd(r.root,i,v&&r.disabled,y&&r.expanded,m&&r.focused),onFocusVisible:function(e){f(!0),u&&u(e)},onBlur:function(e){f(!1),l&&l(e)},onClick:function(e){b&&b(e),c&&c(e)},ref:t},d),o.createElement("div",{className:Fd(r.content,y&&r.expanded)},n),a&&o.createElement(Nf,Ls({className:Fd(r.expandIcon,y&&r.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},s),a))}));op((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:"0 24px 0 24px","&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:e.palette.grey[300]},"&$disabled":{opacity:.38}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiExpansionPanelSummary"})(Ih);var zh=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"button":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,m=void 0!==p&&p,f=e.focusVisibleClassName,h=e.size,g=void 0===h?"large":h,v=e.variant,y=void 0===v?"round":v,b=Ds(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return o.createElement(bm,Ls({className:Fd(r.root,i,"round"!==y&&r.extended,"large"!==g&&r["size".concat(ip(g))],d&&r.disabled,{primary:r.primary,secondary:r.secondary,inherit:r.colorInherit}[s]),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:Fd(r.focusVisible,f),ref:t},b),o.createElement("span",{className:r.label},n))}));function Bh(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}function Fh(e,t){return parseInt(e[t],10)||0}op((function(e){return{root:Ls({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&$focusVisible":{boxShadow:e.shadows[6]},"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(zh);var Hh="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,jh={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Wh=o.forwardRef((function(e,t){var n=e.onChange,r=e.rows,i=e.rowsMax,a=e.style,s=e.value,l=Ds(e,["onChange","rows","rowsMax","style","value"]),c=o.useRef(null!=s).current,u=o.useRef(null),d=Vp(t,u),p=o.useRef(null),m=o.useState({}),f=m[0],h=m[1],g=o.useCallback((function(){var t=u.current,n=window.getComputedStyle(t),o=p.current;o.style.width=n.width,o.value=t.value||e.placeholder||"x";var a=n["box-sizing"],s=Fh(n,"padding-bottom")+Fh(n,"padding-top"),l=Fh(n,"border-bottom-width")+Fh(n,"border-top-width"),c=o.scrollHeight-s;o.value="x";var d=o.scrollHeight-s,m=c;null!=r&&(m=Math.max(Number(r)*d,m)),null!=i&&(m=Math.min(Number(i)*d,m));var f=(m=Math.max(m,d))+("border-box"===a?s+l:0),g=Math.abs(m-c)<=1;h((function(e){return f>0&&Math.abs((e.outerHeightStyle||0)-f)>1||e.overflow!==g?{overflow:g,outerHeightStyle:f}:e}))}),[r,i,e.placeholder]);o.useEffect((function(){var e=Sh((function(){g()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[g]),Hh((function(){g()}));return o.createElement(o.Fragment,null,o.createElement("textarea",Ls({value:s,onChange:function(e){c||g(),n&&n(e)},ref:d,rows:r||1,style:Ls({height:f.outerHeightStyle,overflow:f.overflow?"hidden":null},a)},l)),o.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Ls({},jh,{},a)}))}));function Vh(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Uh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Vh(e.value)&&""!==e.value||t&&Vh(e.defaultValue)&&""!==e.defaultValue)}var _h="undefined"==typeof window?o.useEffect:o.useLayoutEffect,$h=o.forwardRef((function(e,t){var n=e["aria-describedby"],r=e.autoComplete,i=e.autoFocus,a=e.classes,s=e.className;e.color;var l=e.defaultValue,c=e.disabled,u=e.endAdornment;e.error;var d=e.fullWidth,p=void 0!==d&&d,m=e.id,f=e.inputComponent,h=void 0===f?"input":f,g=e.inputProps,v=void 0===g?{}:g,y=e.inputRef;e.margin;var b=e.multiline,x=void 0!==b&&b,S=e.name,w=e.onBlur,C=e.onChange,M=e.onClick,k=e.onFocus,E=e.onKeyDown,T=e.onKeyUp,N=e.placeholder,L=e.readOnly,D=e.renderSuffix,q=e.rows,O=e.rowsMax,R=e.select,A=void 0!==R&&R,P=e.startAdornment,I=e.type,z=void 0===I?"text":I,B=e.value,F=Ds(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","select","startAdornment","type","value"]),H=null!=v.value?v.value:B,j=o.useRef(null!=H).current,W=o.useRef(),V=o.useCallback((function(e){}),[]),U=Vp(v.ref,V),_=Vp(y,U),$=Vp(W,_),K=o.useState(!1),G=K[0],Y=K[1],X=kf(),J=Bh({props:e,muiFormControl:X,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});J.focused=X?X.focused:G,o.useEffect((function(){!X&&c&&G&&(Y(!1),w&&w())}),[X,c,G,w]);var Z=X&&X.onFilled,Q=X&&X.onEmpty,ee=o.useCallback((function(e){Uh(e)?Z&&Z():Q&&Q()}),[Z,Q]);_h((function(){j&&ee({value:H})}),[H,ee,j]);o.useEffect((function(){ee(W.current)}),[]);var te=h,ne=Ls({},v,{ref:$});"string"!=typeof te?ne=Ls({inputRef:$,type:z},ne,{ref:null}):x?q&&!O?te="textarea":(ne=Ls({rows:q,rowsMax:O},ne),te=Wh):ne=Ls({type:z},ne);return o.useEffect((function(){X&&X.setAdornedStart(Boolean(P))}),[X,P]),o.createElement("div",Ls({className:Fd(a.root,a["color".concat(ip(J.color||"primary"))],s,J.disabled&&a.disabled,J.error&&a.error,p&&a.fullWidth,J.focused&&a.focused,X&&a.formControl,x&&a.multiline,P&&a.adornedStart,u&&a.adornedEnd,{dense:a.marginDense}[J.margin]),onClick:function(e){W.current&&e.currentTarget===e.target&&W.current.focus(),M&&M(e)},ref:t},F),P,o.createElement(Mf.Provider,{value:null},o.createElement(te,Ls({"aria-invalid":J.error,"aria-describedby":n,autoComplete:r,autoFocus:i,defaultValue:l,disabled:J.disabled,id:m,onAnimationStart:function(e){ee(-1!==e.animationName.indexOf("auto-fill-cancel")?W.current:{value:"x"})},name:S,placeholder:N,readOnly:L,required:J.required,rows:q,value:H,onKeyDown:E,onKeyUp:T},ne,{className:Fd(a.input,v.className,J.disabled&&a.disabled,x&&a.inputMultiline,A&&a.inputSelect,J.hiddenLabel&&a.inputHiddenLabel,P&&a.inputAdornedStart,u&&a.inputAdornedEnd,{search:a.inputTypeSearch}[z],{dense:a.inputMarginDense}[J.margin]),onBlur:function(e){w&&w(e),v.onBlur&&v.onBlur(e),X&&X.onBlur?X.onBlur(e):Y(!1)},onChange:function(e){if(!j){var t=e.target||W.current;if(null==t)throw new TypeError("Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://material-ui.com/r/input-component-ref-interface for more info.");ee({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];v.onChange&&v.onChange.apply(v,[e].concat(r)),C&&C.apply(void 0,[e].concat(r))},onFocus:function(e){J.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),X&&X.onFocus?X.onFocus(e):Y(!0))}}))),u,D?D(Ls({},J,{startAdornment:P})):null)})),Kh=op((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{root:{fontFamily:e.typography.fontFamily,color:e.palette.text.primary,fontSize:e.typography.pxToRem(16),lineHeight:"1.1875em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}},formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1875em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"$auto-fill-cancel","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"$auto-fill"}},"@keyframes auto-fill":{from:{}},"@keyframes auto-fill-cancel":{from:{}},inputMarginDense:{paddingTop:3},inputSelect:{paddingRight:24},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})($h),Gh=o.forwardRef((function(e,t){var n=e.disableUnderline,r=e.classes,i=e.fullWidth,a=void 0!==i&&i,s=e.inputComponent,l=void 0===s?"input":s,c=e.multiline,u=void 0!==c&&c,d=e.type,p=void 0===d?"text":d,m=Ds(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(Kh,Ls({classes:Ls({},r,{root:Fd(r.root,!n&&r.underline),underline:null}),fullWidth:a,inputComponent:l,multiline:u,ref:t,type:p},m))}));Gh.muiName="Input";var Yh=op((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===e.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===e.palette.type?"#fff":null,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputSelect:{paddingRight:24},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(Gh);function Xh(e,t){return o.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var Jh=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.disabled,c=void 0!==l&&l,u=e.error,d=void 0!==u&&u,p=e.fullWidth,m=void 0!==p&&p,f=e.hiddenLabel,h=void 0!==f&&f,g=e.margin,v=void 0===g?"none":g,y=e.color,b=void 0===y?"primary":y,x=e.required,S=void 0!==x&&x,w=e.variant,C=void 0===w?"standard":w,M=Ds(e,["children","classes","className","component","disabled","error","fullWidth","hiddenLabel","margin","color","required","variant"]),k=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){if(Xh(t,["Input","Select"])){var n=Xh(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),E=k[0],T=k[1],N=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){Xh(t,["Input","Select"])&&Uh(t.props,!0)&&(e=!0)})),e})),L=N[0],D=N[1],q=o.useState(!1),O=q[0],R=q[1];c&&O&&R(!1);var A=o.useCallback((function(){D(!0)}),[]),P={adornedStart:E,setAdornedStart:T,color:b,disabled:c,error:d,filled:L,focused:O,hiddenLabel:h,margin:v,onBlur:function(){R(!1)},onEmpty:o.useCallback((function(){D(!1)}),[]),onFilled:A,onFocus:function(){R(!0)},registerEffect:undefined,required:S,variant:C};return o.createElement(Mf.Provider,{value:P},o.createElement(s,Ls({className:Fd(r.root,i,"none"!==v&&r["margin".concat(ip(v))],m&&r.fullWidth),ref:t},M),n))})),Zh=op({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(Jh),Qh=o.forwardRef((function(e,t){e.checked;var n=e.classes,r=e.className,i=e.control,a=e.disabled;e.inputRef;var s=e.label,l=e.labelPlacement,c=void 0===l?"end":l;e.name,e.onChange,e.value;var u=Ds(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),d=Ef(),p=a;void 0===p&&void 0!==i.props.disabled&&(p=i.props.disabled),void 0===p&&d&&(p=d.disabled);var m={disabled:p};return["checked","name","onChange","value","inputRef"].forEach((function(t){void 0===i.props[t]&&void 0!==e[t]&&(m[t]=e[t])})),o.createElement("label",Ls({className:Fd(n.root,r,"end"!==c&&n["labelPlacement".concat(ip(c))],p&&n.disabled),ref:t},u),o.cloneElement(i,m),o.createElement(af,{component:"span",className:Fd(n.label,p&&n.disabled)},s))}));op((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(Qh);var eg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.row,a=void 0!==i&&i,s=Ds(e,["classes","className","row"]);return o.createElement("div",Ls({className:Fd(n.root,r,a&&n.row),ref:t},s))})),tg=op({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(eg),ng=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"p":i;e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant;var s=Ds(e,["classes","className","component","disabled","error","filled","focused","margin","required","variant"]),l=Bh({props:e,muiFormControl:Ef(),states:["variant","margin","disabled","error","filled","focused","required"]});return o.createElement(a,Ls({className:Fd(n.root,("filled"===l.variant||"outlined"===l.variant)&&n.contained,r,l.disabled&&n.disabled,l.error&&n.error,l.filled&&n.filled,l.focused&&n.focused,l.required&&n.required,{dense:n.marginDense}[l.margin]),ref:t},s))})),rg=op((function(e){return{root:Ls({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:8,lineHeight:"1em",minHeight:"1em",margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{margin:"8px 14px 0"},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(ng),og=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className;e.color;var a=e.component,s=void 0===a?"label":a;e.disabled,e.error,e.filled,e.focused,e.required;var l=Ds(e,["children","classes","className","color","component","disabled","error","filled","focused","required"]),c=Bh({props:e,muiFormControl:Ef(),states:["color","required","focused","disabled","error","filled"]});return o.createElement(s,Ls({className:Fd(r.root,r["color".concat(ip(c.color||"primary"))],i,c.disabled&&r.disabled,c.error&&r.error,c.filled&&r.filled,c.focused&&r.focused,c.required&&r.required),ref:t},l),n,c.required&&o.createElement("span",{className:Fd(r.asterisk,c.error&&r.error)}," ","*"))})),ig=op((function(e){return{root:Ls({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(og),ag=[0,1,2,3,4,5,6,7,8,9,10],sg=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function lg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var cg=o.forwardRef((function(e,t){var n=e.alignContent,r=void 0===n?"stretch":n,i=e.alignItems,a=void 0===i?"stretch":i,s=e.classes,l=e.className,c=e.component,u=void 0===c?"div":c,d=e.container,p=void 0!==d&&d,m=e.direction,f=void 0===m?"row":m,h=e.item,g=void 0!==h&&h,v=e.justify,y=void 0===v?"flex-start":v,b=e.lg,x=void 0!==b&&b,S=e.md,w=void 0!==S&&S,C=e.sm,M=void 0!==C&&C,k=e.spacing,E=void 0===k?0:k,T=e.wrap,N=void 0===T?"wrap":T,L=e.xl,D=void 0!==L&&L,q=e.xs,O=void 0!==q&&q,R=e.zeroMinWidth,A=void 0!==R&&R,P=Ds(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),I=Fd(s.root,l,p&&[s.container,0!==E&&s["spacing-xs-".concat(String(E))]],g&&s.item,A&&s.zeroMinWidth,"row"!==f&&s["direction-xs-".concat(String(f))],"wrap"!==N&&s["wrap-xs-".concat(String(N))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==r&&s["align-content-xs-".concat(String(r))],"flex-start"!==y&&s["justify-xs-".concat(String(y))],!1!==O&&s["grid-xs-".concat(String(O))],!1!==M&&s["grid-sm-".concat(String(M))],!1!==w&&s["grid-md-".concat(String(w))],!1!==x&&s["grid-lg-".concat(String(x))],!1!==D&&s["grid-xl-".concat(String(D))]);return o.createElement(u,Ls({className:I,ref:t},P))}));op((function(e){return Ls({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return ag.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(lg(o,2)),width:"calc(100% + ".concat(lg(o),")"),"& > $item":{padding:lg(o,2)}})})),n}(e,"xs"),{},e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};sg.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Ls(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(cg);var ug=o.forwardRef((function(e,t){var n=e.cellHeight,r=void 0===n?180:n,i=e.children,a=e.classes,s=e.className,l=e.cols,c=void 0===l?2:l,u=e.component,d=void 0===u?"ul":u,p=e.spacing,m=void 0===p?4:p,f=e.style,h=Ds(e,["cellHeight","children","classes","className","cols","component","spacing","style"]);return o.createElement(d,Ls({className:Fd(a.root,s),ref:t,style:Ls({margin:-m/2},f)},h),o.Children.map(i,(function(e){if(!o.isValidElement(e))return null;var t=e.props.cols||1,n=e.props.rows||1;return o.cloneElement(e,{style:Ls({width:"".concat(100/c*t,"%"),height:"auto"===r?"auto":r*n+m,padding:m/2},e.props.style)})})))}));op({root:{display:"flex",flexWrap:"wrap",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"}},{name:"MuiGridList"})(ug);var dg=function(e,t){var n,r,o,i;e&&e.complete&&(e.width/e.height>e.parentElement.offsetWidth/e.parentElement.offsetHeight?((n=e.classList).remove.apply(n,pm(t.imgFullWidth.split(" "))),(r=e.classList).add.apply(r,pm(t.imgFullHeight.split(" ")))):((o=e.classList).remove.apply(o,pm(t.imgFullHeight.split(" "))),(i=e.classList).add.apply(i,pm(t.imgFullWidth.split(" ")))))};var pg=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className;e.cols;var a=e.component,s=void 0===a?"li":a;e.rows;var l=Ds(e,["children","classes","className","cols","component","rows"]),c=o.useRef(null);return o.useEffect((function(){!function(e,t){e&&(e.complete?dg(e,t):e.addEventListener("load",(function(){dg(e,t)})))}(c.current,r)})),o.useEffect((function(){var e=Sh((function(){dg(c.current,r)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[r]),o.createElement(s,Ls({className:Fd(r.root,i),ref:t},l),o.createElement("div",{className:r.tile},o.Children.map(n,(function(e){return o.isValidElement(e)?"img"===e.type||Xh(e,["Image"])?o.cloneElement(e,{ref:c}):e:null}))))}));op({root:{boxSizing:"border-box",flexShrink:0},tile:{position:"relative",display:"block",height:"100%",overflow:"hidden"},imgFullHeight:{height:"100%",transform:"translateX(-50%)",position:"relative",left:"50%"},imgFullWidth:{width:"100%",position:"relative",transform:"translateY(-50%)",top:"50%"}},{name:"MuiGridListTile"})(pg);var mg=o.forwardRef((function(e,t){var n=e.actionIcon,r=e.actionPosition,i=void 0===r?"right":r,a=e.classes,s=e.className,l=e.subtitle,c=e.title,u=e.titlePosition,d=void 0===u?"bottom":u,p=Ds(e,["actionIcon","actionPosition","classes","className","subtitle","title","titlePosition"]),m=n&&i;return o.createElement("div",Ls({className:Fd(a.root,s,"top"===d?a.titlePositionTop:a.titlePositionBottom,l&&a.rootSubtitle),ref:t},p),o.createElement("div",{className:Fd(a.titleWrap,{left:a.titleWrapActionPosLeft,right:a.titleWrapActionPosRight}[m])},o.createElement("div",{className:a.title},c),l?o.createElement("div",{className:a.subtitle},l):null),n?o.createElement("div",{className:Fd(a.actionIcon,{left:a.actionIconActionPosLeft}[m])},n):null)}));function fg(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}op((function(e){return{root:{position:"absolute",left:0,right:0,height:48,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily},titlePositionBottom:{bottom:0},titlePositionTop:{top:0},rootSubtitle:{height:68},titleWrap:{flexGrow:1,marginLeft:16,marginRight:16,color:e.palette.common.white,overflow:"hidden"},titleWrapActionPosLeft:{marginLeft:0},titleWrapActionPosRight:{marginRight:0},title:{fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},subtitle:{fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},actionIcon:{},actionIconActionPosLeft:{order:-1}}}),{name:"MuiGridListTileBar"})(mg);var hg={entering:{opacity:1,transform:fg(1)},entered:{opacity:1,transform:"none"}},gg=o.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,a=e.onExit,s=e.style,l=e.timeout,c=void 0===l?"auto":l,u=Ds(e,["children","in","onEnter","onExit","style","timeout"]),d=o.useRef(),p=o.useRef(),m=Vp(n.ref,t),f=rp();return o.useEffect((function(){return function(){clearTimeout(d.current)}}),[]),o.createElement(Sp,Ls({appear:!0,in:r,onEnter:function(e,t){Hp(e);var n,r=jp({style:s,timeout:c},{mode:"enter"}),o=r.duration,a=r.delay;"auto"===c?(n=f.transitions.getAutoHeightDuration(e.clientHeight),p.current=n):n=o,e.style.transition=[f.transitions.create("opacity",{duration:n,delay:a}),f.transitions.create("transform",{duration:.666*n,delay:a})].join(","),i&&i(e,t)},onExit:function(e){var t,n=jp({style:s,timeout:c},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===c?(t=f.transitions.getAutoHeightDuration(e.clientHeight),p.current=t):t=r,e.style.transition=[f.transitions.create("opacity",{duration:t,delay:o}),f.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=fg(.75),a&&a(e)},addEndListener:function(e,t){"auto"===c&&(d.current=setTimeout(t,p.current||0))},timeout:"auto"===c?null:c},u),(function(e,t){return o.cloneElement(n,Ls({style:Ls({opacity:0,transform:fg(.75),visibility:"exited"!==e||r?void 0:"hidden"},hg[e],{},s,{},n.props.style),ref:m},t))}))}));gg.muiSupportAuto=!0;var vg=!1;function yg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=wd(),r=Nl({theme:n,name:"MuiUseMediaQuery",props:{}}),i="function"==typeof e?e(n):e;i=i.replace(/^@media( ?)/m,"");var a="undefined"!=typeof window&&void 0!==window.matchMedia,s=Ls({},r,{},t),l=s.defaultMatches,c=void 0!==l&&l,u=s.noSsr,d=void 0!==u&&u,p=s.ssrMatchMedia,m=void 0===p?null:p,f=o.useState((function(){return(vg||d)&&a?window.matchMedia(i).matches:m?m(i).matches:c})),h=f[0],g=f[1];return o.useEffect((function(){var e=!0;if(vg=!0,a){var t=window.matchMedia(i),n=function(){e&&g(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[i,a]),h}var bg=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?ol.indexOf(e)<=ol.indexOf(t):ol.indexOf(e)<ol.indexOf(t)},xg=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?ol.indexOf(t)<=ol.indexOf(e):ol.indexOf(t)<ol.indexOf(e)},Sg="undefined"==typeof window?o.useEffect:o.useLayoutEffect;function wg(e){var t=e.children,n=e.only,r=e.width,o=rp(),i=!0;if(n)if(Array.isArray(n))for(var a=0;a<n.length;a+=1){if(r===n[a]){i=!1;break}}else n&&r===n&&(i=!1);if(i)for(var s=0;s<o.breakpoints.keys.length;s+=1){var l=o.breakpoints.keys[s],c=e["".concat(l,"Up")],u=e["".concat(l,"Down")];if(c&&bg(l,r)||u&&xg(l,r)){i=!1;break}}return i?t:null}wg.propTypes={children:as.exports.node,className:as.exports.string,implementation:as.exports.oneOf(["js","css"]),initialWidth:as.exports.oneOf(["xs","sm","md","lg","xl"]),lgDown:as.exports.bool,lgUp:as.exports.bool,mdDown:as.exports.bool,mdUp:as.exports.bool,only:as.exports.oneOfType([as.exports.oneOf(["xs","sm","md","lg","xl"]),as.exports.arrayOf(as.exports.oneOf(["xs","sm","md","lg","xl"]))]),smDown:as.exports.bool,smUp:as.exports.bool,width:as.exports.string.isRequired,xlDown:as.exports.bool,xlUp:as.exports.bool,xsDown:as.exports.bool,xsUp:as.exports.bool},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,r=void 0!==n&&n,i=e.noSSR,a=void 0!==i&&i,s=e.initialWidth;function l(e){var n=rp(),i=e.theme||n,l=Nl({theme:i,name:"MuiWithWidth",props:Ls({},e)}),c=l.initialWidth,u=l.width,d=Ds(l,["initialWidth","width"]),p=o.useState(!1),m=p[0],f=p[1];Sg((function(){f(!0)}),[]);var h=pm(i.breakpoints.keys).reverse().reduce((function(e,t){var n=yg(i.breakpoints.up(t));return!e&&n?t:e}),null),g=Ls({width:u||(m||a?h:void 0)||c||s},r?{theme:i}:{},{},d);return void 0===g.width?null:o.createElement(t,g)}return Zd(l,t),l}}()(wg);op((function(e){var t={display:"none"};return e.breakpoints.keys.reduce((function(n,r){return n["only".concat(ip(r))]=Ns({},e.breakpoints.only(r),t),n["".concat(r,"Up")]=Ns({},e.breakpoints.up(r),t),n["".concat(r,"Down")]=Ns({},e.breakpoints.down(r),t),n}),{})}),{name:"PrivateHiddenCss"})((function(e){var t=e.children,n=e.classes,r=e.className;e.lgDown,e.lgUp,e.mdDown,e.mdUp;var i=e.only;e.smDown,e.smUp,e.xlDown,e.xlUp,e.xsDown,e.xsUp,Ds(e,["children","classes","className","lgDown","lgUp","mdDown","mdUp","only","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);var a=rp(),s=[];r&&s.push(r);for(var l=0;l<a.breakpoints.keys.length;l+=1){var c=a.breakpoints.keys[l],u=e["".concat(c,"Up")],d=e["".concat(c,"Down")];u&&s.push(n["".concat(c,"Up")]),d&&s.push(n["".concat(c,"Down")])}return i&&(Array.isArray(i)?i:[i]).forEach((function(e){s.push(n["only".concat(ip(e))])})),o.createElement("div",{className:s.join(" ")},t)}));var Cg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"inherit":i,s=e.component,l=void 0===s?"span":s,c=e.fontSize,u=void 0===c?"default":c,d=Ds(e,["classes","className","color","component","fontSize"]);return o.createElement(l,Ls({className:Fd("material-icons",n.root,r,"inherit"!==a&&n["color".concat(ip(a))],"default"!==u&&n["fontSize".concat(ip(u))]),"aria-hidden":!0,ref:t},d))}));Cg.muiName="Icon",op((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(Cg);var Mg=o.forwardRef((function(e,t){var n=e.disableUnderline,r=e.classes,i=e.fullWidth,a=void 0!==i&&i,s=e.inputComponent,l=void 0===s?"input":s,c=e.multiline,u=void 0!==c&&c,d=e.type,p=void 0===d?"text":d,m=Ds(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(Kh,Ls({classes:Ls({},r,{root:Fd(r.root,!n&&r.underline),underline:null}),fullWidth:a,inputComponent:l,multiline:u,ref:t,type:p},m))}));Mg.muiName="Input";var kg=op((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(Mg),Eg=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.disablePointerEvents,c=void 0!==l&&l,u=e.disableTypography,d=void 0!==u&&u,p=e.position,m=e.variant,f=Ds(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),h=kf()||{},g=m;return m&&h.variant,h&&!g&&(g=h.variant),o.createElement(Mf.Provider,{value:null},o.createElement(s,Ls({className:Fd(r.root,i,c&&r.disablePointerEvents,h.hiddenLabel&&r.hiddenLabel,{filled:r.filled}[g],{start:r.positionStart,end:r.positionEnd}[p],{dense:r.marginDense}[h.margin]),ref:t},f),"string"!=typeof n||d?n:o.createElement(af,{color:"textSecondary"},n)))}));op({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(Eg);var Tg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disableAnimation,a=void 0!==i&&i;e.margin;var s=e.shrink;e.variant;var l=Ds(e,["classes","className","disableAnimation","margin","shrink","variant"]),c=Ef(),u=s;void 0===u&&c&&(u=c.filled||c.focused||c.adornedStart);var d=Bh({props:e,muiFormControl:c,states:["margin","variant"]});return o.createElement(ig,Ls({"data-shrink":u,className:Fd(n.root,r,c&&n.formControl,!a&&n.animated,u&&n.shrink,{dense:n.marginDense}[d.margin],{filled:n.filled,outlined:n.outlined}[d.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},l))})),Ng=op((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(Tg),Lg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.value,l=e.valueBuffer,c=e.variant,u=void 0===c?"indeterminate":c,d=Ds(e,["classes","className","color","value","valueBuffer","variant"]),p=rp(),m={},f={bar1:{},bar2:{}};if(("determinate"===u||"buffer"===u)&&void 0!==s){m["aria-valuenow"]=Math.round(s);var h=s-100;"rtl"===p.direction&&(h=-h),f.bar1.transform="translateX(".concat(h,"%)")}if("buffer"===u&&void 0!==l){var g=(l||0)-100;"rtl"===p.direction&&(g=-g),f.bar2.transform="translateX(".concat(g,"%)")}return o.createElement("div",Ls({className:Fd(n.root,n["color".concat(ip(a))],r,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[u]),role:"progressbar"},m,{ref:t},d),"buffer"===u?o.createElement("div",{className:Fd(n.dashed,n["dashedColor".concat(ip(a))])}):null,o.createElement("div",{className:Fd(n.bar,n["barColor".concat(ip(a))],("indeterminate"===u||"query"===u)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[u]),style:f.bar1}),"determinate"===u?null:o.createElement("div",{className:Fd(n.bar,("indeterminate"===u||"query"===u)&&n.bar2Indeterminate,"buffer"===u?[n["color".concat(ip(a))],n.bar2Buffer]:n["barColor".concat(ip(a))]),style:f.bar2}))})),Dg=op((function(e){var t=function(t){return"light"===e.palette.type?Ts(t,.62):Es(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0px -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0px -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite",animationDelay:"1.15s"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0px -23px"},"50%":{opacity:0,backgroundPosition:"0px -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(Lg),qg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.component,l=void 0===s?"a":s,c=e.onBlur,u=e.onFocus,d=e.TypographyClasses,p=e.underline,m=void 0===p?"hover":p,f=e.variant,h=void 0===f?"inherit":f,g=Ds(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),v=um(),y=v.isFocusVisible,b=v.onBlurVisible,x=v.ref,S=o.useState(!1),w=S[0],C=S[1],M=Vp(t,x);return o.createElement(af,Ls({className:Fd(n.root,n["underline".concat(ip(m))],r,w&&n.focusVisible,{button:n.button}[l]),classes:d,color:a,component:l,onBlur:function(e){w&&(b(),C(!1)),c&&c(e)},onFocus:function(e){y(e)&&C(!0),u&&u(e)},ref:M,variant:h},g))}));op({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(qg);var Og=o.createContext({}),Rg=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"ul":a,l=e.dense,c=void 0!==l&&l,u=e.disablePadding,d=void 0!==u&&u,p=e.subheader,m=Ds(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=o.useMemo((function(){return{dense:c}}),[c]);return o.createElement(Og.Provider,{value:f},o.createElement(s,Ls({className:Fd(r.root,i,c&&r.dense,!d&&r.padding,p&&r.subheader),ref:t},m),p,n))})),Ag=op({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Rg),Pg="undefined"==typeof window?o.useEffect:o.useLayoutEffect,Ig=o.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,a=void 0!==i&&i,s=e.button,c=void 0!==s&&s,u=e.children,d=e.classes,p=e.className,m=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,g=e.ContainerProps,v=(g=void 0===g?{}:g).className,y=Ds(g,["className"]),b=e.dense,x=e.disabled,S=void 0!==x&&x,w=e.disableGutters,C=void 0!==w&&w,M=e.divider,k=void 0!==M&&M,E=e.focusVisibleClassName,T=e.selected,N=void 0!==T&&T,L=Ds(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=o.useContext(Og),q={dense:b||D.dense||!1,alignItems:r},O=o.useRef(null);Pg((function(){a&&O.current&&O.current.focus()}),[a]);var R=o.Children.toArray(u),A=R.length&&Xh(R[R.length-1],["ListItemSecondaryAction"]),P=Vp(o.useCallback((function(e){O.current=l.findDOMNode(e)}),[]),t),I=Ls({className:Fd(d.root,p,q.dense&&d.dense,!C&&d.gutters,k&&d.divider,S&&d.disabled,c&&d.button,"center"!==r&&d.alignItemsFlexStart,A&&d.secondaryAction,N&&d.selected),disabled:S},L),z=m||"li";return c&&(I.component=m||"div",I.focusVisibleClassName=Fd(d.focusVisible,E),z=bm),A?(z=I.component||m?z:"div","li"===h&&("li"===z?z="div":"li"===I.component&&(I.component="div")),o.createElement(Og.Provider,{value:q},o.createElement(h,Ls({className:Fd(d.container,v),ref:P},y),o.createElement(z,I,R),R.pop()))):o.createElement(Og.Provider,{value:q},o.createElement(z,Ls({ref:P},I),R))})),zg=op((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"})(Ig),Bg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ds(e,["classes","className"]),a=o.useContext(Og);return o.createElement("div",Ls({className:Fd(n.root,r,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},i))}));op({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(Bg);var Fg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ds(e,["classes","className"]),a=o.useContext(Og);return o.createElement("div",Ls({className:Fd(n.root,r,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},i))})),Hg=op((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Fg),jg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ds(e,["classes","className"]);return o.createElement("div",Ls({className:Fd(n.root,r),ref:t},i))}));jg.muiName="ListItemSecondaryAction",op({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(jg);var Wg=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.disableTypography,s=void 0!==a&&a,l=e.inset,c=void 0!==l&&l,u=e.primary,d=e.primaryTypographyProps,p=e.secondary,m=e.secondaryTypographyProps,f=Ds(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),h=o.useContext(Og).dense,g=null!=u?u:n;null==g||g.type===af||s||(g=o.createElement(af,Ls({variant:h?"body2":"body1",className:r.primary,component:"span"},d),g));var v=p;return null==v||v.type===af||s||(v=o.createElement(af,Ls({variant:"body2",className:r.secondary,color:"textSecondary"},m),v)),o.createElement("div",Ls({className:Fd(r.root,i,h&&r.dense,c&&r.inset,g&&v&&r.multiline),ref:t},f),g,v)})),Vg=op({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Wg),Ug=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"li":s,c=e.disableGutters,u=void 0!==c&&c,d=e.disableSticky,p=void 0!==d&&d,m=e.inset,f=void 0!==m&&m,h=Ds(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return o.createElement(l,Ls({className:Fd(n.root,r,"default"!==a&&n["color".concat(ip(a))],f&&n.inset,!p&&n.sticky,!u&&n.gutters),ref:t},h))}));function _g(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function $g(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Kg(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Gg(e){return"function"==typeof e?e():e}op((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(Ug);var Yg=o.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,a=void 0===i?{vertical:"top",horizontal:"left"}:i,s=e.anchorPosition,c=e.anchorReference,u=void 0===c?"anchorEl":c,d=e.children,p=e.classes,m=e.className,f=e.container,h=e.elevation,g=void 0===h?8:h,v=e.getContentAnchorEl,y=e.marginThreshold,b=void 0===y?16:y,x=e.onEnter,S=e.onEntered,w=e.onEntering,C=e.onExit,M=e.onExited,k=e.onExiting,E=e.open,T=e.PaperProps,N=void 0===T?{}:T,L=e.transformOrigin,D=void 0===L?{vertical:"top",horizontal:"left"}:L,q=e.TransitionComponent,O=void 0===q?gg:q,R=e.transitionDuration,A=void 0===R?"auto":R,P=e.TransitionProps,I=void 0===P?{}:P,z=Ds(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"]),B=o.useRef(),F=o.useCallback((function(e){if("anchorPosition"===u)return s;var t=Gg(r),n=(t instanceof nh(t).Element?t:Vf(B.current).body).getBoundingClientRect(),o=0===e?a.vertical:"center";return{top:n.top+_g(n,o),left:n.left+$g(n,a.horizontal)}}),[r,a.horizontal,a.vertical,s,u]),H=o.useCallback((function(e){var t=0;if(v&&"anchorEl"===u){var n=v(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[a.vertical,u,v]),j=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:_g(e,D.vertical)+t,horizontal:$g(e,D.horizontal)}}),[D.horizontal,D.vertical]),W=o.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},o=j(n,t);if("none"===u)return{top:null,left:null,transformOrigin:Kg(o)};var i=F(t),a=i.top-o.vertical,s=i.left-o.horizontal,l=a+n.height,c=s+n.width,d=nh(Gg(r)),p=d.innerHeight-b,m=d.innerWidth-b;if(a<b){var f=a-b;a-=f,o.vertical+=f}else if(l>p){var h=l-p;a-=h,o.vertical+=h}if(s<b){var g=s-b;s-=g,o.horizontal+=g}else if(c>m){var v=c-m;s-=v,o.horizontal+=v}return{top:"".concat(a,"px"),left:"".concat(s,"px"),transformOrigin:Kg(o)}}),[r,u,F,H,j,b]),V=o.useCallback((function(e){var t=W(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[W]),U=o.useCallback((function(e){B.current=l.findDOMNode(e)}),[]),_=o.useMemo((function(){if(E)return Sh((function(){V(B.current)}))}),[E,V]);o.useImperativeHandle(n,(function(){return E?{updatePosition:_}:null}),[E,_]),o.useEffect((function(){if(_)return window.addEventListener("resize",_),function(){window.removeEventListener("resize",_),_.clear()}}),[_]);var $=A;"auto"!==A||O.muiSupportAuto||($=void 0);var K=f||(r?Vf(Gg(r)).body:void 0);return o.createElement(mh,Ls({container:K,open:E,ref:t,BackdropProps:{invisible:!0},className:Fd(p.root,m)},z),o.createElement(O,Ls({appear:!0,in:E,onEnter:x,onEntered:S,onExit:C,onExited:M,onExiting:k,timeout:$},I,{onEntering:Jf((function(e,t){w&&w(e,t),V(e)}),I.onEntering)}),o.createElement(sp,Ls({elevation:g,ref:U},N,{className:Fd(p.paper,N.className)}),d)))})),Xg=op({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Yg);function Jg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Zg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Qg(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),void 0!==n&&(0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join(""))))}function ev(e,t,n,r,o){for(var i=!1,a=r(e,t,!!t&&n);a;){if(a===e.firstChild){if(i)return!1;i=!0}if(a.hasAttribute("tabindex")&&!a.disabled&&"true"!==a.getAttribute("aria-disabled")&&Qg(a,o))return a.focus(),!0;a=r(e,a,n)}return!1}var tv="undefined"==typeof window?o.useEffect:o.useLayoutEffect,nv=o.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,i=void 0!==r&&r,a=e.autoFocusItem,s=void 0!==a&&a,c=e.children,u=e.className,d=e.onKeyDown,p=e.disableListWrap,m=void 0!==p&&p,f=e.variant,h=void 0===f?"selectedMenu":f,g=Ds(e,["actions","autoFocus","autoFocusItem","children","className","onKeyDown","disableListWrap","variant"]),v=o.useRef(null),y=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});tv((function(){i&&v.current.focus()}),[i]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!v.current.style.width;if(e.clientHeight<v.current.clientHeight&&n){var r="".concat(th(),"px");v.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,v.current.style.width="calc(100% + ".concat(r,")")}return v.current}}}),[]);var b=Vp(o.useCallback((function(e){v.current=l.findDOMNode(e)}),[]),t),x=-1;o.Children.forEach(c,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===h&&e.props.selected||-1===x)&&(x=t))}));var S=o.Children.map(c,(function(e,t){if(t===x){var n={};if(s&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(n.tabIndex=0),null!==n)return o.cloneElement(e,n)}return e}));return o.createElement(Ag,Ls({role:"menu",ref:b,className:u,onKeyDown:function(e){var t=v.current,n=e.key,r=Vf(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ev(t,r,m,Jg);else if("ArrowUp"===n)e.preventDefault(),ev(t,r,m,Zg);else if("Home"===n)e.preventDefault(),ev(t,null,m,Jg);else if("End"===n)e.preventDefault(),ev(t,null,m,Zg);else if(1===n.length){var o=y.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&Qg(r,o);o.previousKeyMatched&&(s||ev(t,r,!1,Jg,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:i?0:-1},g),S)})),rv={vertical:"top",horizontal:"right"},ov={vertical:"top",horizontal:"left"},iv=o.forwardRef((function(e,t){var n=e.autoFocus,r=void 0===n||n,i=e.children,a=e.classes,s=e.disableAutoFocusItem,c=void 0!==s&&s,u=e.MenuListProps,d=void 0===u?{}:u,p=e.onClose,m=e.onEntering,f=e.open,h=e.PaperProps,g=void 0===h?{}:h,v=e.PopoverClasses,y=e.transitionDuration,b=void 0===y?"auto":y,x=e.variant,S=void 0===x?"selectedMenu":x,w=Ds(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),C=rp(),M=r&&!c&&f,k=o.useRef(null),E=o.useRef(null),T=-1;o.Children.map(i,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("menu"!==S&&e.props.selected||-1===T)&&(T=t))}));var N=o.Children.map(i,(function(e,t){return t===T?o.cloneElement(e,{ref:function(t){E.current=l.findDOMNode(t),Wp(e.ref,t)}}):e}));return o.createElement(Xg,Ls({getContentAnchorEl:function(){return E.current},classes:v,onClose:p,onEntering:function(e,t){k.current&&k.current.adjustStyleForScrollbar(e,C),m&&m(e,t)},anchorOrigin:"rtl"===C.direction?rv:ov,transformOrigin:"rtl"===C.direction?rv:ov,PaperProps:Ls({},g,{classes:Ls({},g.classes,{root:a.paper})}),open:f,ref:t,transitionDuration:b},w),o.createElement(nv,Ls({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:k,autoFocus:r&&(-1===T||c),autoFocusItem:M,variant:S},d,{className:Fd(a.list,d.className)}),N))})),av=op({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(iv),sv=o.forwardRef((function(e,t){var n,r=e.classes,i=e.className,a=e.component,s=void 0===a?"li":a,l=e.disableGutters,c=void 0!==l&&l,u=e.role,d=void 0===u?"menuitem":u,p=e.selected,m=e.tabIndex,f=Ds(e,["classes","className","component","disableGutters","role","selected","tabIndex"]);return e.disabled||(n=void 0!==m?m:-1),o.createElement(zg,Ls({button:!0,role:d,tabIndex:n,component:s,selected:p,disableGutters:c,classes:{dense:r.dense},className:Fd(r.root,i,p&&r.selected,!c&&r.gutters),ref:t},f))})),lv=op((function(e){return{root:Ls({},e.typography.body1,Ns({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Ls({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(sv),cv=o.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,i=e.backButton,a=e.classes,s=e.className,l=e.LinearProgressProps,c=e.nextButton,u=e.position,d=void 0===u?"bottom":u,p=e.steps,m=e.variant,f=void 0===m?"dots":m,h=Ds(e,["activeStep","backButton","classes","className","LinearProgressProps","nextButton","position","steps","variant"]);return o.createElement(sp,Ls({square:!0,elevation:0,className:Fd(a.root,a["position".concat(ip(d))],s),ref:t},h),i,"text"===f&&o.createElement(o.Fragment,null,r+1," / ",p),"dots"===f&&o.createElement("div",{className:a.dots},pm(new Array(p)).map((function(e,t){return o.createElement("div",{key:t,className:Fd(a.dot,t===r&&a.dotActive)})}))),"progress"===f&&o.createElement(Dg,Ls({className:a.progress,variant:"determinate",value:Math.ceil(r/(p-1)*100)},l)),c)}));op((function(e){return{root:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:e.palette.background.default,padding:8},positionBottom:{position:"fixed",bottom:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionTop:{position:"fixed",top:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionStatic:{},dots:{display:"flex",flexDirection:"row"},dot:{backgroundColor:e.palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},dotActive:{backgroundColor:e.palette.primary.main},progress:{width:"50%"}}}),{name:"MuiMobileStepper"})(cv);var uv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disabled,a=e.IconComponent,s=e.inputRef,l=e.variant,c=void 0===l?"standard":l,u=Ds(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return o.createElement(o.Fragment,null,o.createElement("select",Ls({className:Fd(n.root,n.select,n[c],r,i&&n.disabled),disabled:i,ref:s||t},u)),e.multiple?null:o.createElement(a,{className:Fd(n.icon,n["icon".concat(ip(c))])}))})),dv=cf(o.createElement("path",{d:"M7 10l5 5 5-5z"})),pv=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper}},filled:{},outlined:{borderRadius:e.shape.borderRadius},selectMenu:{height:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",color:e.palette.action.active,pointerEvents:"none"},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7}}},mv=o.createElement(kg,null),fv=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.IconComponent,a=void 0===i?dv:i,s=e.input,l=void 0===s?mv:s,c=e.inputProps;e.variant;var u=Ds(e,["children","classes","IconComponent","input","inputProps","variant"]),d=Bh({props:e,muiFormControl:Ef(),states:["variant"]});return o.cloneElement(l,Ls({inputComponent:uv,select:!0,inputProps:Ls({children:n,classes:r,IconComponent:a,variant:d.variant,type:void 0},c,{},l?l.props.inputProps:{}),ref:t},u))}));fv.muiName="Select",op(pv,{name:"MuiNativeSelect"})(fv);var hv=o.forwardRef((function(e,t){e.children;var n=e.classes,r=e.className,i=e.labelWidth,a=e.notched,s=e.style,l=Ds(e,["children","classes","className","labelWidth","notched","style"]),c="rtl"===rp().direction?"right":"left",u=i>0?.75*i+8:0;return o.createElement("fieldset",Ls({"aria-hidden":!0,style:Ls(Ns({},"padding".concat(ip(c)),8+(a?0:u/2)),s),className:Fd(n.root,r),ref:t},l),o.createElement("legend",{className:n.legend,style:{width:a?u:.01}},o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),gv=op((function(e){var t="rtl"===e.direction?"right":"left";return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:0,pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,transition:e.transitions.create(["padding-".concat(t),"border-color","border-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}}}),{name:"PrivateNotchedOutline"})(hv),vv=o.forwardRef((function(e,t){var n=e.classes,r=e.fullWidth,i=void 0!==r&&r,a=e.inputComponent,s=void 0===a?"input":a,l=e.labelWidth,c=void 0===l?0:l,u=e.multiline,d=void 0!==u&&u,p=e.notched,m=e.type,f=void 0===m?"text":m,h=Ds(e,["classes","fullWidth","inputComponent","labelWidth","multiline","notched","type"]);return o.createElement(Kh,Ls({renderSuffix:function(e){return o.createElement(gv,{className:n.notchedOutline,labelWidth:c,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Ls({},n,{root:Fd(n.root,n.underline),notchedOutline:null}),fullWidth:i,inputComponent:s,multiline:d,ref:t,type:f},h))}));vv.muiName="Input";var yv=op((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===e.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===e.palette.type?"#fff":null,borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputSelect:{paddingRight:24},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(vv),bv="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,xv=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(bv&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();
|
|
23
|
+
*/var jc="undefined"!=typeof CSS&&CSS&&"number"in CSS,Wc=function(e){return new Fc(e)};Wc();var Vc=Date.now(),_c="fnValues"+Vc,Uc="fnStyle"+ ++Vc;function $c(){return($c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Kc="@global",Gc="@global ",Yc=function(){function e(e,t,n){for(var r in this.type="global",this.at=Kc,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new xc($c({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Xc=function(){function e(e,t,n){this.type="global",this.at=Kc,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(Gc.length);this.rule=n.jss.createRule(r,t,$c({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Jc=/\s*,\s*/g;function Zc(e,t){for(var n=e.split(Jc),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Qc(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Kc)return new Yc(e,t,n);if("@"===e[0]&&e.substr(0,Gc.length)===Gc)return new Xc(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e){"style"===e.type&&(function(e){var t=e.options,n=e.style,r=n?n[Kc]:null;if(r){for(var o in r)t.sheet.addRule(o,r[o],$c({},t,{selector:Zc(o,e.selector)}));delete n[Kc]}}(e),function(e){var t=e.options,n=e.style;for(var r in n)if("@"===r[0]&&r.substr(0,Kc.length)===Kc){var o=Zc(r.substr(Kc.length),e.selector);t.sheet.addRule(o,n[r],$c({},t,{selector:o})),delete n[r]}}(e))}}}function eu(){return(eu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var tu=/\s*,\s*/g,nu=/&/g,ru=/\$([\w-]+)/g;function ou(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(tu),r=e.split(tu),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(nu,a):a+" "+l}return o}function n(e,t,n){if(n)return eu({},n,{index:n.index+1});var r=e.options.nestingLevel;return r=void 0===r?1:r+1,eu({},e.options,{nestingLevel:r,index:t.indexOf(e)+1})}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(l,c,a),d){var m=t(u,l.selector);s||(s=e(c,i)),m=m.replace(ru,s),c.addRule(m,r[u],eu({},a,{selector:m}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var iu=/[A-Z]/g,au=/^ms-/,su={};function lu(e){return"-"+e.toLowerCase()}function cu(e){if(su.hasOwnProperty(e))return su[e];var t=e.replace(iu,lu);return su[e]=au.test(t)?"-"+t:t}function uu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:cu(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(uu):t.fallbacks=uu(e.fallbacks)),t}var du=jc&&CSS?CSS.px:"px",pu=jc&&CSS?CSS.ms:"ms",mu=jc&&CSS?CSS.percent:"%";function fu(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 hu=fu({"animation-delay":pu,"animation-duration":pu,"background-position":du,"background-position-x":du,"background-position-y":du,"background-size":du,border:du,"border-bottom":du,"border-bottom-left-radius":du,"border-bottom-right-radius":du,"border-bottom-width":du,"border-left":du,"border-left-width":du,"border-radius":du,"border-right":du,"border-right-width":du,"border-top":du,"border-top-left-radius":du,"border-top-right-radius":du,"border-top-width":du,"border-width":du,margin:du,"margin-bottom":du,"margin-left":du,"margin-right":du,"margin-top":du,padding:du,"padding-bottom":du,"padding-left":du,"padding-right":du,"padding-top":du,"mask-position-x":du,"mask-position-y":du,"mask-size":du,height:du,width:du,"min-height":du,"max-height":du,"min-width":du,"max-width":du,bottom:du,left:du,top:du,right:du,"box-shadow":du,"text-shadow":du,"column-gap":du,"column-rule":du,"column-rule-width":du,"column-width":du,"font-size":du,"font-size-delta":du,"letter-spacing":du,"text-indent":du,"text-stroke":du,"text-stroke-width":du,"word-spacing":du,motion:du,"motion-offset":du,outline:du,"outline-offset":du,"outline-width":du,perspective:du,"perspective-origin-x":mu,"perspective-origin-y":mu,"transform-origin":mu,"transform-origin-x":mu,"transform-origin-y":mu,"transform-origin-z":mu,"transition-delay":pu,"transition-duration":pu,"vertical-align":du,"flex-basis":du,"shape-margin":du,size:du,grid:du,"grid-gap":du,"grid-row-gap":du,"grid-column-gap":du,"grid-template-rows":du,"grid-template-columns":du,"grid-auto-rows":du,"grid-auto-columns":du,"box-shadow-x":du,"box-shadow-y":du,"box-shadow-blur":du,"box-shadow-spread":du,"font-line-height":du,"text-shadow-x":du,"text-shadow-y":du,"text-shadow-blur":du});function gu(e,t,n){if(!t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=gu(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=gu(o,t[o],n);else for(var i in t)t[i]=gu(e+"-"+i,t[i],n);else if("number"==typeof t)return n[e]?""+t+n[e]:hu[e]?"function"==typeof hu[e]?hu[e](t).toString():""+t+hu[e]:t.toString();return t}function vu(e){void 0===e&&(e={});var t=fu(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=gu(r,e[r],t);return e},onChangeValue:function(e,n){return gu(n,e,t)}}}function yu(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var bu="",xu="",Su="",wu=Ol&&"ontouchstart"in document.documentElement;if(Ol){var Cu={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Mu=document.createElement("p").style;for(var ku in Cu)if(ku+"Transform"in Mu){bu=ku,xu=Cu[ku];break}"Webkit"===bu&&"msHyphens"in Mu&&(bu="ms",xu=Cu.ms,"edge"),"Webkit"===bu&&"-apple-trailing-word"in Mu&&(Su="apple")}var Eu=bu,Tu=xu,Nu=Su,Lu=wu;var qu={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Eu?"-webkit-"+e:Tu+e)}},Du={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Eu?Tu+"print-"+e:e)}},Ou=/[-\s]+(.)?/g;function Ru(e,t){return t?t.toUpperCase():""}function Au(e){return e.replace(Ou,Ru)}function Pu(e){return Au("-"+e)}var Iu,zu={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Eu){var n="mask-image";if(Au(n)in t)return e;if(Eu+Pu(n)in t)return Tu+e}return e}},Bu={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Nu||Lu?e:Tu+e)}},Fu={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Tu+e)}},Hu={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Tu+e)}},ju={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Eu||"ms"===Eu?Tu+e:e)}},Wu={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Eu||"ms"===Eu||"apple"===Nu?Tu+e:e)}},Vu={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Eu?"WebkitColumn"+Pu(e)in t&&Tu+"column-"+e:"Moz"===Eu&&("page"+Pu(e)in t&&"page-"+e))}},_u={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Eu)return e;var n=e.replace("-inline","");return Eu+Pu(n)in t&&Tu+n}},Uu={supportedProperty:function(e,t){return Au(e)in t&&e}},$u={supportedProperty:function(e,t){var n=Pu(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Eu+n in t?Tu+e:"Webkit"!==Eu&&"Webkit"+n in t&&"-webkit-"+e}},Ku={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Eu?""+Tu+e:e)}},Gu={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Eu?Tu+"scroll-chaining":e)}},Yu={"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"},Xu={supportedProperty:function(e,t){var n=Yu[e];return!!n&&(Eu+Pu(n)in t&&Tu+n)}},Ju={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"},Zu=Object.keys(Ju),Qu=function(e){return Tu+e},ed=[qu,Du,zu,Bu,Fu,Hu,ju,Wu,Vu,_u,Uu,$u,Ku,Gu,Xu,{supportedProperty:function(e,t,n){var r=n.multiple;if(Zu.indexOf(e)>-1){var o=Ju[e];if(!Array.isArray(o))return Eu+Pu(o)in t&&Tu+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Eu+Pu(o[0])in t))return!1;return o.map(Qu)}return!1}}],td=ed.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),nd=ed.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,yu(t.noPrefill)),e}),[]),rd={};if(Ol){Iu=document.createElement("p");var od=window.getComputedStyle(document.documentElement,"");for(var id in od)isNaN(id)||(rd[od[id]]=od[id]);nd.forEach((function(e){return delete rd[e]}))}function ad(e,t){if(void 0===t&&(t={}),!Iu)return e;if(null!=rd[e])return rd[e];"transition"!==e&&"transform"!==e||(t[e]=e in Iu.style);for(var n=0;n<td.length&&(rd[e]=td[n](e,Iu.style,t),!rd[e]);n++);try{Iu.style[e]=""}catch(e){return!1}return rd[e]}var sd,ld={},cd={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ud=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function dd(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?ad(t):", "+ad(n);return r||(t||n)}function pd(e,t){var n=t;if(!sd||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ld[r])return ld[r];try{sd.style[e]=n}catch(e){return ld[r]=!1,!1}if(cd[e])n=n.replace(ud,dd);else if(""===sd.style[e]&&("-ms-flex"===(n=Tu+n)&&(sd.style[e]="-ms-flexbox"),sd.style[e]=n,""===sd.style[e]))return ld[r]=!1,!1;return sd.style[e]="",ld[r]=n,ld[r]}function md(){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=ad(n);i&&i!==n&&(o=!0);var a=!1,s=pd(i,jl(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"===Eu?e:"@"+Tu+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return pd(t,jl(e))||e}}}function fd(){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 hd(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Fl(e,{},n);return r[Uc]=t,r},onProcessStyle:function(e,t){if(_c in t||Uc 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[_c]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Uc];i&&(o.style=i(e)||{});var a=o[_c];if(a)for(var s in a)o.prop(s,a[s](e),r)}},Qc(),ou(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=uu(e[t]);return e}return uu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=cu(t);return t===r?e:(n.prop(r,e),null)}},vu(),"undefined"==typeof window?null:md(),fd()]}}function gd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vd(){return(vd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function yd(){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=vd({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Ol&&(sd=document.createElement("p"));var bd=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},xd=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},Sd=function(e,t,n){e.get(t).delete(n)},wd=o.createContext(null);function Cd(){return o.useContext(wd)}var Md,kd=Wc(hd()),Ed={disableGeneration:!1,generateClassName:Nl(),jss:kd,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Td=o.createContext(Ed);function Nd(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,a=void 0!==i&&i,s=gd(e,["children","injectFirst","disableGeneration"]),l=vd({},o.useContext(Td),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Md){var c=document.head;Md=document.createComment("mui-inject-first"),c.insertBefore(Md,c.firstChild)}l.jss=Wc({plugins:hd().plugins,insertionPoint:Md})}return o.createElement(Td.Provider,{value:l},t)}var Ld=-1e9;function qd(){return Ld+=1}var Dd={};function Od(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=vd({},o);return Object.keys(i).forEach((function(e){a[e]=Is(a[e],i[e])})),a},options:{}}}function Rd(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=yd({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function Ad(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=xd(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},bd(o.sheetsManager,i,r,s));var l=vd({},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=xd(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,vd({link:!1},l))).attach(),o.sheetsCache&&bd(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Hc(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,vd({link:!0},l));p.update(t).attach(),n.dynamicSheet=p,n.classes=yd({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Pd(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function Id(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=xd(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Sd(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function zd(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}function Bd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,a=t.defaultTheme,s=void 0===a?Dd:a,l=gd(t,["name","classNamePrefix","Component","defaultTheme"]),c=Od(e),u=n||r||"makeStyles";return c.options={index:qd(),name:n,meta:u,classNamePrefix:u},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Cd()||s,r=vd({},o.useContext(Td),{},l),a=o.useRef(),u=o.useRef();return zd((function(){var o={name:n,state:{},stylesCreator:c,stylesOptions:r,theme:t};return Ad(o,e),u.current=!1,a.current=o,function(){Id(o)}}),[t,c]),o.useEffect((function(){u.current&&Pd(a.current,e),u.current=!0})),Rd(a.current,e.classes,i)}}function Fd(e){var t,n,r="";if(e)if("object"==typeof e)if(e.push)for(t=0;t<e.length;t++)e[t]&&(n=Fd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(n=Fd(t))&&(r&&(r+=" "),r+=n);else"boolean"==typeof e||e.call||(r&&(r+=" "),r+=e);return r}function Hd(){for(var e,t=0,n="";t<arguments.length;)(e=Fd(arguments[t++]))&&(n&&(n+=" "),n+=e);return n}var jd=zs.exports,Wd={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vd={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_d={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ud={};function $d(e){return jd.isMemo(e)?_d:Ud[e.$$typeof]||Wd}Ud[jd.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var Kd=Object.defineProperty,Gd=Object.getOwnPropertyNames,Yd=Object.getOwnPropertySymbols,Xd=Object.getOwnPropertyDescriptor,Jd=Object.getPrototypeOf,Zd=Object.prototype;var Qd=function e(t,n,r){if("string"!=typeof n){if(Zd){var o=Jd(n);o&&o!==Zd&&e(t,o,r)}var i=Gd(n);Yd&&(i=i.concat(Yd(n)));for(var a=$d(t),s=$d(n),l=0;l<i.length;++l){var c=i[l];if(!(Vd[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Xd(n,c);try{Kd(t,c,u)}catch(e){}}}return t}return t};function ep(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function tp(e){var t=e.children,n=e.theme,r=Cd(),i=o.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):vd({},e,{},t)}(r,n);return null!=e&&(e[El]=null!==r),e}),[n,r]);return o.createElement(wd.Provider,{value:i},t)}function np(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=function(e){var n=o.forwardRef((function(n,r){var i=n.innerRef,a=gd(n,["innerRef"]),s=Cd()||t;return o.createElement(e,vd({theme:s,ref:i||r},a))}));return Qd(n,e),n};return n}np();var rp=kl();function op(){return Cd()||rp}function ip(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,i=t.withTheme,a=void 0!==i&&i,s=t.name,l=gd(t,["defaultTheme","withTheme","name"]),c=s,u=Bd(e,vd({defaultTheme:r,Component:n,name:s||n.displayName,classNamePrefix:c},l)),d=o.forwardRef((function(e,t){e.classes;var i,l=e.innerRef,c=gd(e,["classes","innerRef"]),d=u(e),p=c;return("string"==typeof s||a)&&(i=Cd()||r,s&&(p=Ll({theme:i,name:s,props:c})),a&&!p.theme&&(p.theme=i)),o.createElement(n,vd({ref:l||t,classes:d},p))}));return d.defaultProps=n.defaultProps,Qd(d,n),d}}(e,qs({defaultTheme:rp},t))}function ap(e){return e.charAt(0).toUpperCase()+e.slice(1)}np({defaultTheme:rp});var sp=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=e.square,l=void 0!==s&&s,c=e.elevation,u=void 0===c?1:c,d=Ds(e,["classes","className","component","square","elevation"]);return o.createElement(a,qs({className:Hd(n.root,n["elevation".concat(u)],r,!l&&n.rounded),ref:t},d))})),lp=ip((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),qs({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius}},t)}),{name:"MuiPaper"})(sp),cp=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.position,l=void 0===s?"fixed":s,c=Ds(e,["classes","className","color","position"]);return o.createElement(lp,qs({square:!0,component:"header",elevation:4,className:Hd(n.root,n["position".concat(ap(l))],r,"inherit"!==a&&n["color".concat(ap(a))],{fixed:"mui-fixed"}[l]),ref:t},c))}));ip((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static",transform:"translateZ(0)"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText}}}),{name:"MuiAppBar"})(cp);var up=o.forwardRef((function(e,t){var n=e.alt,r=e.children,i=e.classes,a=e.className,s=e.component,l=void 0===s?"div":s,c=e.imgProps,u=e.sizes,d=e.src,p=e.srcSet,m=e.variant,f=void 0===m?"circle":m,h=Ds(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),g=null,v=d||p;return g=v?o.createElement("img",qs({alt:n,src:d,srcSet:p,sizes:u,className:i.img},c)):r,o.createElement(l,qs({className:Hd(i.root,i.system,i[f],a,!v&&i.colorDefault),ref:t},h),g)}));function dp(){return(dp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pp(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 mp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function fp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}ip((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover"}}}),{name:"MuiAvatar"})(up);var hp=!1,gp=o.createContext(null),vp="unmounted",yp="exited",bp="entering",xp="entered",Sp="exiting",wp=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=yp,r.appearStatus=bp):o=xp:o=t.unmountOnExit||t.mountOnEnter?vp:yp,r.state={status:o},r.nextCallback=null,r}mp(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===vp?{status:yp}: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!==bp&&n!==xp&&(t=bp):n!==bp&&n!==xp||(t=Sp)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=l.findDOMNode(this);t===bp?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===yp&&this.setState({status:vp})},n.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;!t&&!r||hp?this.safeSetState({status:xp},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,o),this.safeSetState({status:bp},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:xp},(function(){n.props.onEntered(e,o)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!hp?(this.props.onExit(e),this.safeSetState({status:Sp},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:yp},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:yp},(function(){t.props.onExited(e)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===vp)return null;var t=this.props,n=t.children,r=pp(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return o.createElement(gp.Provider,{value:null},n(e,r));var i=o.Children.only(n);return o.createElement(gp.Provider,{value:null},o.cloneElement(i,r))},t}(o.Component);function Cp(){}wp.contextType=gp,wp.propTypes={},wp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cp,onEntering:Cp,onEntered:Cp,onExit:Cp,onExiting:Cp,onExited:Cp},wp.UNMOUNTED=0,wp.EXITED=1,wp.ENTERING=2,wp.ENTERED=3,wp.EXITING=4;var Mp=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},kp=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=fp(n.className,r):n.setAttribute("class",fp(n.className&&n.className.baseVal||"",r)));var n,r}))},Ep=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){t.removeClasses(e,"exit"),t.addClass(e,n?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=n?"appear":"enter";t.addClass(e,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=n?"appear":"enter";t.removeClasses(e,r),t.addClass(e,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),t.addClass(e,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){t.addClass(e,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){t.removeClasses(e,"exit"),t.addClass(e,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}mp(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"];"appear"===t&&"done"===n&&(r+=" "+this.getClassNames("enter").doneClassName),"active"===n&&e&&e.scrollTop,this.appliedClasses[t][n]=r,Mp(e,r)},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&kp(e,r),o&&kp(e,o),i&&kp(e,i)},n.render=function(){var e=this.props;e.classNames;var t=pp(e,["classNames"]);return o.createElement(wp,dp({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);function Tp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Np(e,t){var n=Object.create(null);return e&&i.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),n}function Lp(e,t,n){return null!=n[t]?n[t]:e.props[t]}function qp(e,t,n){var r=Np(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var l=o[i];if(a(l)){var c=i in t,u=i in r,d=t[i],p=a(d)&&!d.props.in;!u||c&&!p?u||!c||p?u&&c&&a(d)&&(o[i]=s(l,{onExited:n.bind(null,l),in:d.props.in,exit:Lp(l,"exit",e),enter:Lp(l,"enter",e)})):o[i]=s(l,{in:!1}):o[i]=s(l,{onExited:n.bind(null,l),in:!0,exit:Lp(l,"exit",e),enter:Lp(l,"enter",e)})}})),o}Ep.defaultProps={classNames:""},Ep.propTypes={};var Dp,Op,Rp=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ap=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Tp(Tp(r)));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}mp(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Np(n.children,(function(e){return s(e,{onExited:r.bind(null,e),in:!0,appear:Lp(e,"appear",n),enter:Lp(e,"enter",n),exit:Lp(e,"exit",n)})}))):qp(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Np(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=dp({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=pp(e,["component","childFactory"]),i=this.state.contextValue,a=Rp(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(gp.Provider,{value:i},a):o.createElement(gp.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);Ap.propTypes={},Ap.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}mp(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,a=o.Children.toArray(i)[t];a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]&&this.props[e](l.findDOMNode(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,r=pp(e,["children","in"]),i=o.Children.toArray(t),a=i[0],s=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,o.createElement(Ap,r,n?o.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(o.Component)).propTypes={};var Pp="out-in",Ip="in-out",zp=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},Bp=((Dp={})[Pp]=function(e){var t=e.current,n=e.changeState;return o.cloneElement(t,{in:!1,onExited:zp(t,"onExited",(function(){n(bp,null)}))})},Dp[Ip]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,o.cloneElement(r,{in:!0,onEntered:zp(r,"onEntered",(function(){n(bp)}))})]},Dp),Fp=((Op={})[Pp]=function(e){var t=e.children,n=e.changeState;return o.cloneElement(t,{in:!0,onEntered:zp(t,"onEntered",(function(){n(xp,o.cloneElement(t,{in:!0}))}))})},Op[Ip]=function(e){var t=e.current,n=e.children,r=e.changeState;return[o.cloneElement(t,{in:!1,onExited:zp(t,"onExited",(function(){r(xp,o.cloneElement(n,{in:!0}))}))}),o.cloneElement(n,{in:!0})]},Op),Hp=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:xp,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}mp(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===bp&&e.mode===Ip?{status:bp}:!t.current||(n=t.current,r=e.children,n===r||o.isValidElement(n)&&o.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:o.cloneElement(e.children,{in:!0})}:{status:Sp};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,a=i.status,s=i.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case bp:e=Fp[r](l);break;case Sp:e=Bp[r](l);break;case xp:e=s}return o.createElement(gp.Provider,{value:{isMounting:!this.appeared}},e)},t}(o.Component);Hp.propTypes={},Hp.defaultProps={mode:Pp};var jp=function(e){return e.scrollTop};function Wp(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function Vp(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function _p(e,t){return o.useMemo((function(){return null==e&&null==t?null:function(n){Vp(e,n),Vp(t,n)}}),[e,t])}var Up={entering:{opacity:1},entered:{opacity:1}},$p={enter:Sl.enteringScreen,exit:Sl.leavingScreen},Kp=o.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,a=e.onExit,s=e.style,l=e.timeout,c=void 0===l?$p:l,u=Ds(e,["children","in","onEnter","onExit","style","timeout"]),d=op(),p=_p(n.ref,t);return o.createElement(wp,qs({appear:!0,in:r,onEnter:function(e,t){jp(e);var n=Wp({style:s,timeout:c},{mode:"enter"});e.style.webkitTransition=d.transitions.create("opacity",n),e.style.transition=d.transitions.create("opacity",n),i&&i(e,t)},onExit:function(e){var t=Wp({style:s,timeout:c},{mode:"exit"});e.style.webkitTransition=d.transitions.create("opacity",t),e.style.transition=d.transitions.create("opacity",t),a&&a(e)},timeout:c},u),(function(e,t){return o.cloneElement(n,qs({style:qs({opacity:0,visibility:"exited"!==e||r?void 0:"hidden"},Up[e],{},s,{},n.props.style),ref:p},t))}))})),Gp=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.invisible,s=void 0!==a&&a,l=e.open,c=e.transitionDuration,u=Ds(e,["children","classes","className","invisible","open","transitionDuration"]);return o.createElement(Kp,qs({in:l,timeout:c},u),o.createElement("div",{className:Hd(r.root,i,s&&r.invisible),"aria-hidden":!0,ref:t},n))})),Yp=ip({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Gp),Xp=o.forwardRef((function(e,t){var n=e.anchorOrigin,r=void 0===n?{vertical:"top",horizontal:"right"}:n,i=e.badgeContent,a=e.children,s=e.classes,l=e.className,c=e.color,u=void 0===c?"default":c,d=e.component,p=void 0===d?"span":d,m=e.invisible,f=e.max,h=void 0===f?99:f,g=e.overlap,v=void 0===g?"rectangle":g,y=e.showZero,b=void 0!==y&&y,x=e.variant,S=void 0===x?"standard":x,w=Ds(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),C=m;null==m&&(0===i&&!b||null==i&&"dot"!==S)&&(C=!0);var M="";return"dot"!==S&&(M=i>h?"".concat(h,"+"):i),o.createElement(p,qs({className:Hd(s.root,l),ref:t},w),a,o.createElement("span",{className:Hd(s.badge,s["".concat(r.horizontal).concat(ap(r.vertical),"}")],s["anchorOrigin".concat(ap(r.vertical)).concat(ap(r.horizontal)).concat(ap(v))],"default"!==u&&s["color".concat(ap(u))],C&&s.invisible,{dot:s.dot}[S])},M))}));ip((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,backgroundColor:e.palette.color,color:e.palette.textColor,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{height:6,minWidth:6,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(Xp);var Jp=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.onChange,c=e.showLabels,u=void 0!==c&&c,d=e.value,p=Ds(e,["children","classes","className","component","onChange","showLabels","value"]);return o.createElement(s,qs({className:Hd(r.root,i),ref:t},p),o.Children.map(n,(function(e,t){if(!o.isValidElement(e))return null;var n=void 0===e.props.value?t:e.props.value;return o.cloneElement(e,{selected:n===d,showLabel:void 0!==e.props.showLabel?e.props.showLabel:u,value:n,onChange:l})})))}));ip((function(e){return{root:{display:"flex",justifyContent:"center",height:56,backgroundColor:e.palette.background.paper}}}),{name:"MuiBottomNavigation"})(Jp);var Zp="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function Qp(e){var t=o.useRef(e);return Zp((function(){t.current=e})),o.useCallback((function(e){return(0,t.current)(e)}),[])}var em="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function tm(e){var t=e.children,n=e.defer,r=void 0!==n&&n,i=e.fallback,a=void 0===i?null:i,s=o.useState(!1),l=s[0],c=s[1];return em((function(){r||c(!0)}),[r]),o.useEffect((function(){r&&c(!0)}),[r]),o.createElement(o.Fragment,null,l?t:a)}var nm=!0,rm=!1,om=null,im={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 am(e){e.metaKey||e.altKey||e.ctrlKey||(nm=!0)}function sm(){nm=!1}function lm(){"hidden"===this.visibilityState&&rm&&(nm=!0)}function cm(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return nm||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!im[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function um(){rm=!0,window.clearTimeout(om),om=window.setTimeout((function(){rm=!1}),100)}function dm(){return{isFocusVisible:cm,onBlurVisible:um,ref:o.useCallback((function(e){var t=l.findDOMNode(e);null!=t&&function(e){e.addEventListener("keydown",am,!0),e.addEventListener("mousedown",sm,!0),e.addEventListener("pointerdown",sm,!0),e.addEventListener("touchstart",sm,!0),e.addEventListener("visibilitychange",lm,!0)}(t.ownerDocument)}),[])}}function pm(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function mm(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||pm(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var fm="undefined"==typeof window?o.useEffect:o.useLayoutEffect;function hm(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,a=e.rippleY,s=e.rippleSize,l=e.in,c=e.onExited,u=void 0===c?function(){}:c,d=e.timeout,p=o.useState(!1),m=p[0],f=p[1],h=Hd(t.ripple,t.rippleVisible,r&&t.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+i},v=Hd(t.child,m&&t.childLeaving,r&&t.childPulsate),y=Qp(u);return fm((function(){if(!l){f(!0);var e=setTimeout(y,d);return function(){clearTimeout(e)}}}),[y,l,d]),o.createElement("span",{className:h,style:g},o.createElement("span",{className:v}))}var gm=o.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,a=e.className,s=Ds(e,["center","classes","className"]),l=o.useState([]),c=l[0],u=l[1],d=o.useRef(0),p=o.useRef(null);o.useEffect((function(){p.current&&(p.current(),p.current=null)}),[c]);var m=o.useRef(!1),f=o.useRef(null),h=o.useRef(null),g=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var v=o.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,a=e.rippleSize,s=e.cb;u((function(e){return[].concat(mm(e),[o.createElement(hm,{key:d.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a})])})),d.current+=1,p.current=s}),[i]),y=o.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,d,p,y=c?null:g.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.clientX?e.clientX:e.touches[0].clientX,S=e.clientY?e.clientY:e.touches[0].clientY;u=Math.round(x-b.left),d=Math.round(S-b.top)}if(s)(p=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(p+=1);else{var w=2*Math.max(Math.abs((y?y.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(w,2)+Math.pow(C,2))}e.touches?(h.current=function(){v({pulsate:i,rippleX:u,rippleY:d,rippleSize:p,cb:n})},f.current=setTimeout((function(){h.current&&(h.current(),h.current=null)}),80)):v({pulsate:i,rippleX:u,rippleY:d,rippleSize:p,cb:n})}}),[r,v]),b=o.useCallback((function(){y({},{pulsate:!0})}),[y]),x=o.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(f.current=setTimeout((function(){x(e,t)})));h.current=null,u((function(e){return e.length>0?e.slice(1):e})),p.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:b,start:y,stop:x}}),[b,y,x]),o.createElement("span",qs({className:Hd(i.root,a),ref:g},s),o.createElement(Ap,{component:null,exit:!0},c))}));var vm,ym=ip((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"})(((vm=o.memo(gm)).muiName="MuiTouchRipple",vm)),bm=o.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,a=void 0!==i&&i,s=e.children,c=e.classes,u=e.className,d=e.component,p=void 0===d?"button":d,m=e.disabled,f=void 0!==m&&m,h=e.disableRipple,g=void 0!==h&&h,v=e.disableTouchRipple,y=void 0!==v&&v,b=e.focusRipple,x=void 0!==b&&b,S=e.focusVisibleClassName,w=e.onBlur,C=e.onClick,M=e.onFocus,k=e.onFocusVisible,E=e.onKeyDown,T=e.onKeyUp,N=e.onMouseDown,L=e.onMouseLeave,q=e.onMouseUp,D=e.onTouchEnd,O=e.onTouchMove,R=e.onTouchStart,A=e.onDragLeave,P=e.tabIndex,I=void 0===P?0:P,z=e.TouchRippleProps,B=e.type,F=void 0===B?"button":B,H=Ds(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),j=o.useRef(null);var W=o.useRef(null),V=o.useState(!1),_=V[0],U=V[1];f&&_&&U(!1);var $=dm(),K=$.isFocusVisible,G=$.onBlurVisible,Y=$.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return Qp((function(r){return t&&t(r),!n&&W.current&&W.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){U(!0),j.current.focus()}}}),[]),o.useEffect((function(){_&&x&&!g&&W.current.pulsate()}),[g,x,_]);var J=X("start",N),Z=X("stop",A),Q=X("stop",q),ee=X("stop",(function(e){_&&e.preventDefault(),L&&L(e)})),te=X("start",R),ne=X("stop",D),re=X("stop",O),oe=X("stop",(function(e){_&&(G(e),U(!1)),w&&w(e)}),!1),ie=Qp((function(e){f||(j.current||(j.current=e.currentTarget),K(e)&&(U(!0),k&&k(e)),M&&M(e))})),ae=o.useRef(!1),se=Qp((function(e){x&&!ae.current&&_&&W.current&&" "===e.key&&(ae.current=!0,e.persist(),W.current.stop(e,(function(){W.current.start(e)}))),E&&E(e);var t=l.findDOMNode(j.current);e.target!==e.currentTarget||!p||"button"===p||" "!==e.key&&"Enter"!==e.key||"A"===t.tagName&&t.href||(e.preventDefault(),C&&C(e))})),le=Qp((function(e){x&&" "===e.key&&W.current&&_&&(ae.current=!1,e.persist(),W.current.stop(e,(function(){W.current.pulsate(e)}))),T&&T(e)})),ce=p;"button"===ce&&H.href&&(ce="a");var ue={};"button"===ce?(ue.type=F,ue.disabled=f):("a"===ce&&H.href||(ue.role="button"),ue["aria-disabled"]=f);var de=_p(r,t),pe=_p(Y,j),me=_p(de,pe);return o.createElement(ce,qs({className:Hd(c.root,u,_&&[c.focusVisible,S],f&&c.disabled),onBlur:oe,onClick:C,onFocus:ie,onKeyDown:se,onKeyUp:le,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:me,tabIndex:f?-1:I},ue,H),s,g||f?null:o.createElement(tm,null,o.createElement(ym,qs({ref:W,center:a},z))))})),xm=ip({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(bm),Sm=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.icon,a=e.label,s=e.onChange,l=e.onClick,c=e.selected,u=e.showLabel,d=e.value,p=Ds(e,["classes","className","icon","label","onChange","onClick","selected","showLabel","value"]);return o.createElement(xm,qs({ref:t,className:Hd(n.root,r,c?n.selected:!u&&n.iconOnly),focusRipple:!0,onClick:function(e){s&&s(e,d),l&&l(e)}},p),o.createElement("span",{className:n.wrapper},i,o.createElement("span",{className:Hd(n.label,c?n.selected:!u&&n.iconOnly)},a)))}));function wm(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Cm(){return(Cm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Mm(e){return(Mm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function km(e){return(km="function"==typeof Symbol&&"symbol"===Mm(Symbol.iterator)?function(e){return Mm(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Mm(e)})(e)}function Em(e,t){return t?Is(e,t,{clone:!1}):e}ip((function(e){return{root:{transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"6px 12px 8px",minWidth:80,maxWidth:168,color:e.palette.text.secondary,flex:"1","&$iconOnly":{paddingTop:16},"&$selected":{paddingTop:6,color:e.palette.primary.main}},selected:{},iconOnly:{},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},label:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s","&$iconOnly":{opacity:0,transitionDelay:"0s"},"&$selected":{fontSize:e.typography.pxToRem(14)}}}}),{name:"MuiBottomNavigationAction"})(Sm);var Tm={xs:0,sm:600,md:960,lg:1280,xl:1920},Nm={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Tm[e],"px)")}};function Lm(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||Nm;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===km(t)){var o=e.theme.breakpoints||Nm;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function qm(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Dm(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=qm(e.theme,o)||{};return Lm(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=qm(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)}))};return a.propTypes={},a.filterProps=[t],a}function Om(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?Em(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function Rm(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Am=Om(Dm({prop:"border",themeKey:"borders",transform:Rm}),Dm({prop:"borderTop",themeKey:"borders",transform:Rm}),Dm({prop:"borderRight",themeKey:"borders",transform:Rm}),Dm({prop:"borderBottom",themeKey:"borders",transform:Rm}),Dm({prop:"borderLeft",themeKey:"borders",transform:Rm}),Dm({prop:"borderColor",themeKey:"palette"}),Dm({prop:"borderRadius",themeKey:"shape"}));var Pm=Om(Dm({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Dm({prop:"display"}),Dm({prop:"overflow"}),Dm({prop:"textOverflow"}),Dm({prop:"visibility"}),Dm({prop:"whiteSpace"})),Im=Om(Dm({prop:"flexBasis"}),Dm({prop:"flexDirection"}),Dm({prop:"flexWrap"}),Dm({prop:"justifyContent"}),Dm({prop:"alignItems"}),Dm({prop:"alignContent"}),Dm({prop:"order"}),Dm({prop:"flex"}),Dm({prop:"flexGrow"}),Dm({prop:"flexShrink"}),Dm({prop:"alignSelf"}),Dm({prop:"justifyItems"}),Dm({prop:"justifySelf"})),zm=Om(Dm({prop:"color",themeKey:"palette"}),Dm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),Bm=Om(Dm({prop:"position"}),Dm({prop:"zIndex",themeKey:"zIndex"}),Dm({prop:"top"}),Dm({prop:"right"}),Dm({prop:"bottom"}),Dm({prop:"left"})),Fm=Dm({prop:"boxShadow",themeKey:"shadows"});function Hm(e){return e<=1?"".concat(100*e,"%"):e}var jm=Dm({prop:"width",transform:Hm}),Wm=Dm({prop:"maxWidth",transform:Hm}),Vm=Dm({prop:"minWidth",transform:Hm}),_m=Dm({prop:"height",transform:Hm}),Um=Dm({prop:"maxHeight",transform:Hm}),$m=Dm({prop:"minHeight",transform:Hm});Dm({prop:"size",cssProperty:"width",transform:Hm}),Dm({prop:"size",cssProperty:"height",transform:Hm});var Km=Om(jm,Wm,Vm,_m,Um,$m);function Gm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ym={m:"margin",p:"padding"},Xm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Zm=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!Jm[e])return[e];e=Jm[e]}var t=Gm(e.split(""),2),n=t[0],r=t[1],o=Ym[n],i=Xm[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Qm=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function ef(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function tf(e){var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}(e.theme);return Object.keys(e).map((function(n){if(-1===Qm.indexOf(n))return null;var r=ef(Zm(n),t),o=e[n];return Lm(e,o,r)})).reduce(Em,{})}tf.propTypes={},tf.filterProps=Qm;var nf=Om(Dm({prop:"fontFamily",themeKey:"typography"}),Dm({prop:"fontSize",themeKey:"typography"}),Dm({prop:"fontStyle",themeKey:"typography"}),Dm({prop:"fontWeight",themeKey:"typography"}),Dm({prop:"letterSpacing"}),Dm({prop:"lineHeight"}),Dm({prop:"textAlign"})),rf=function(e){var t=function(t){var n=e(t);return t.css?Cm({},Em(n,e(Cm({theme:t.theme},t.css))),{},function(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(t.css,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css"].concat(wm(e.filterProps)),t}(Om(Am,Pm,Im,Bm,zm,Fm,Km,tf,nf));!function(e){var t=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,a=gd(r,["name"]),s=i,l=Bd("function"==typeof t?function(e){return{root:function(n){return t(vd({theme:e},n))}}}:{root:t},vd({Component:e,name:i||e.displayName,classNamePrefix:s},a));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=o.forwardRef((function(t,r){var i=t.children,a=t.className,s=t.clone,c=t.component,u=gd(t,["children","className","clone","component"]),d=Hd(l(t).root,a),p=u;if(n&&(p=ep(p,n)),s)return o.cloneElement(i,vd({className:Hd(i.props.className,d)},p));if("function"==typeof i)return i(vd({className:d},p));var m=c||e;return o.createElement(m,vd({ref:r,className:d},p),i)}));return Qd(c,e),c}}(e);return function(e,n){return t(e,qs({defaultTheme:rp},n))}}("div")(rf,{name:"MuiBox"});var of={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},af=o.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,a=e.className,s=e.color,l=void 0===s?"initial":s,c=e.component,u=e.display,d=void 0===u?"initial":u,p=e.gutterBottom,m=void 0!==p&&p,f=e.noWrap,h=void 0!==f&&f,g=e.paragraph,v=void 0!==g&&g,y=e.variant,b=void 0===y?"body1":y,x=e.variantMapping,S=void 0===x?of:x,w=Ds(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=c||(v?"p":S[b]||of[b])||"span";return o.createElement(C,qs({className:Hd(i.root,a,"inherit"!==b&&i[b],"initial"!==l&&i["color".concat(ap(l))],h&&i.noWrap,m&&i.gutterBottom,v&&i.paragraph,"inherit"!==r&&i["align".concat(ap(r))],"initial"!==d&&i["display".concat(ap(d))]),ref:t},w))})),sf=ip((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"})(af),lf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"inherit":a,l=e.component,c=void 0===l?"svg":l,u=e.fontSize,d=void 0===u?"default":u,p=e.htmlColor,m=e.titleAccess,f=e.viewBox,h=void 0===f?"0 0 24 24":f,g=Ds(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(c,qs({className:Hd(r.root,i,"inherit"!==s&&r["color".concat(ap(s))],"default"!==d&&r["fontSize".concat(ap(d))]),focusable:"false",viewBox:h,color:p,"aria-hidden":m?"false":"true",role:m?"img":"presentation",ref:t},g),n,m?o.createElement("title",null,m):null)}));lf.muiName="SvgIcon";var cf=ip((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(lf);function uf(e,t){var n=o.memo(o.forwardRef((function(t,n){return o.createElement(cf,qs({},t,{ref:n}),e)})));return n.muiName=cf.muiName,n}var df=uf(o.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var pf=ip((function(e){return{root:{display:"flex"},icon:{width:24,height:16,backgroundColor:e.palette.grey[100],color:e.palette.grey[700],borderRadius:2,marginLeft:e.spacing(.5),marginRight:e.spacing(.5),cursor:"pointer","&:hover, &:focus":{backgroundColor:e.palette.grey[200]},"&:active":{boxShadow:e.shadows[0],backgroundColor:ks(e.palette.grey[200],.12)}}}}),{name:"PrivateBreadcrumbCollapsed"})((function(e){var t=e.classes,n=Ds(e,["classes"]);return o.createElement("li",qs({className:t.root},n),o.createElement(df,{className:t.icon}))}));var mf=ip({root:{display:"flex",userSelect:"none",marginLeft:8,marginRight:8}},{name:"PrivateBreadcrumbSeparator"})((function(e){var t=e.classes,n=e.className,r=Ds(e,["classes","className"]);return o.createElement("li",qs({"aria-hidden":!0,className:Hd(t.root,n)},r))}));var ff=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"nav":a,l=e.itemsAfterCollapse,c=void 0===l?1:l,u=e.itemsBeforeCollapse,d=void 0===u?1:u,p=e.maxItems,m=void 0===p?8:p,f=e.separator,h=void 0===f?"/":f,g=Ds(e,["children","classes","className","component","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),v=o.useState(!1),y=v[0],b=v[1],x=o.Children.toArray(n).filter((function(e){return o.isValidElement(e)})).map((function(e,t){return o.createElement("li",{className:r.li,key:"child-".concat(t)},e)}));return o.createElement(sf,qs({ref:t,component:s,color:"textSecondary",className:Hd(r.root,i)},g),o.createElement("ol",{className:r.ol},function(e,t,n){return e.reduce((function(r,i,a){return a<e.length-1?r=r.concat(i,o.createElement(mf,{key:"separator-".concat(a),className:t},n)):r.push(i),r}),[])}(y||m&&x.length<=m?x:function(e){return d+c>=e.length?e:[].concat(mm(e.slice(0,d)),[o.createElement(pf,{key:"ellipsis",onClick:function(){b(!0)}})],mm(e.slice(e.length-c,e.length)))}(x),r.separator,h)))}));ip({root:{},ol:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0},li:{listStyle:"none"},separator:{}},{name:"MuiBreadcrumbs"})(ff);var hf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"button":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,m=void 0!==p&&p,f=e.endIcon,h=e.focusVisibleClassName,g=e.fullWidth,v=void 0!==g&&g,y=e.size,b=void 0===y?"medium":y,x=e.startIcon,S=e.type,w=void 0===S?"button":S,C=e.variant,M=void 0===C?"text":C,k=Ds(e,["children","classes","className","color","component","disabled","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=x&&o.createElement("span",{className:Hd(r.startIcon,r["iconSize".concat(ap(b))])},x),T=f&&o.createElement("span",{className:Hd(r.endIcon,r["iconSize".concat(ap(b))])},f);return o.createElement(xm,qs({className:Hd(r.root,r[M],i,"inherit"===s?r.colorInherit:"default"!==s&&r["".concat(M).concat(ap(s))],"medium"!==b&&[r["".concat(M,"Size").concat(ap(b))],r["size".concat(ap(b))]],d&&r.disabled,v&&r.fullWidth),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:Hd(r.focusVisible,h),ref:t,type:w},k),o.createElement("span",{className:r.label},E,n,T))})),gf=ip((function(e){return{root:qs({},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:Es(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:Es(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Es(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Es(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Es(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Es(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Es(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(hf),vf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"div":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,m=void 0!==p&&p,f=e.disableRipple,h=void 0!==f&&f,g=e.fullWidth,v=void 0!==g&&g,y=e.size,b=void 0===y?"medium":y,x=e.variant,S=void 0===x?"outlined":x,w=Ds(e,["children","classes","className","color","component","disabled","disableFocusRipple","disableRipple","fullWidth","size","variant"]),C=Hd(r.grouped,r["grouped".concat(ap(S))],r["grouped".concat(ap(S)).concat("default"!==s?ap(s):"")],d&&r.disabled);return o.createElement(c,qs({role:"group",className:Hd(r.root,i,v&&r.fullWidth,{contained:r.contained}[S]),ref:t},w),o.Children.map(n,(function(e){return o.isValidElement(e)?o.cloneElement(e,{className:Hd(C,e.props.className),disabled:e.props.disabled||d,color:e.props.color||s,disableFocusRipple:m,disableRipple:h,fullWidth:v,size:e.props.size||b,variant:e.props.variant||S}):null})))}));ip((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},contained:{boxShadow:e.shadows[2]},fullWidth:{width:"100%"},grouped:{minWidth:40,"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedText:{"&:not(:last-child)":{borderRight:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:Es(e.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:Es(e.palette.secondary.main,.5)}},groupedOutlined:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:e.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:e.palette.secondary.main}},groupedContained:{boxShadow:"none","&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.primary.dark)}},groupedContainedSecondary:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.secondary.dark)}},disabled:{}}}),{name:"MuiButtonGroup"})(vf);var yf=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.raised,a=void 0!==i&&i,s=Ds(e,["classes","className","raised"]);return o.createElement(lp,qs({className:Hd(n.root,r),elevation:a?8:1,ref:t},s))}));ip({root:{overflow:"hidden"}},{name:"MuiCard"})(yf);var bf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.focusVisibleClassName,s=Ds(e,["children","classes","className","focusVisibleClassName"]);return o.createElement(xm,qs({className:Hd(r.root,i),focusVisibleClassName:Hd(a,r.focusVisible),ref:t},s),n,o.createElement("span",{className:r.focusHighlight}))}));ip((function(e){return{root:{display:"block",textAlign:"inherit",width:"100%","&:hover $focusHighlight":{opacity:e.palette.action.hoverOpacity},"&$focusVisible $focusHighlight":{opacity:.12}},focusVisible:{},focusHighlight:{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}}}),{name:"MuiCardActionArea"})(bf);var xf=o.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,i=e.classes,a=e.className,s=Ds(e,["disableSpacing","classes","className"]);return o.createElement("div",qs({className:Hd(i.root,a,!r&&i.spacing),ref:t},s))}));ip({root:{display:"flex",alignItems:"center",padding:8},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiCardActions"})(xf);var Sf=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=Ds(e,["classes","className","component"]);return o.createElement(a,qs({className:Hd(n.root,r),ref:t},s))}));ip({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(Sf);var wf=o.forwardRef((function(e,t){var n=e.action,r=e.avatar,i=e.classes,a=e.className,s=e.component,l=void 0===s?"div":s,c=e.disableTypography,u=void 0!==c&&c,d=e.subheader,p=e.subheaderTypographyProps,m=e.title,f=e.titleTypographyProps,h=Ds(e,["action","avatar","classes","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"]),g=m;null==g||g.type===sf||u||(g=o.createElement(sf,qs({variant:r?"body2":"h5",className:i.title,component:"span",display:"block"},f),g));var v=d;return null==v||v.type===sf||u||(v=o.createElement(sf,qs({variant:r?"body2":"body1",className:i.subheader,color:"textSecondary",component:"span",display:"block"},p),v)),o.createElement(l,qs({className:Hd(i.root,a),ref:t},h),r&&o.createElement("div",{className:i.avatar},r),o.createElement("div",{className:i.content},g,v),n&&o.createElement("div",{className:i.action},n))}));ip({root:{display:"flex",alignItems:"center",padding:16},avatar:{flex:"0 0 auto",marginRight:16},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-8,marginRight:-8},content:{flex:"1 1 auto"},title:{},subheader:{}},{name:"MuiCardHeader"})(wf);var Cf=["video","audio","picture","iframe","img"],Mf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.image,c=e.src,u=e.style,d=Ds(e,["children","classes","className","component","image","src","style"]),p=-1!==Cf.indexOf(s),m=!p&&l?qs({backgroundImage:'url("'.concat(l,'")')},u):u;return o.createElement(s,qs({className:Hd(r.root,i,p&&r.media,-1!=="picture img".indexOf(s)&&r.img),ref:t,style:m,src:p?l||c:void 0},d),n)}));ip({root:{display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},media:{width:"100%"},img:{objectFit:"cover"}},{name:"MuiCardMedia"})(Mf);var kf=o.createContext();function Ef(){return o.useContext(kf)}function Tf(){return o.useContext(kf)}var Nf=o.forwardRef((function(e,t){var n=e.edge,r=void 0!==n&&n,i=e.children,a=e.classes,s=e.className,l=e.color,c=void 0===l?"default":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,m=void 0!==p&&p,f=e.size,h=void 0===f?"medium":f,g=Ds(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(xm,qs({className:Hd(a.root,s,"default"!==c&&a["color".concat(ap(c))],d&&a.disabled,{small:a["size".concat(ap(h))]}[h],{start:a.edgeStart,end:a.edgeEnd}[r]),centerRipple:!0,focusRipple:!m,disabled:d,ref:t},g),o.createElement("span",{className:a.label},i))})),Lf=ip((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Es(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Es(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Es(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Nf),qf=o.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,i=e.checkedIcon,a=e.classes,s=e.className,l=e.defaultChecked,c=e.disabled,u=e.icon,d=e.id,p=e.inputProps,m=e.inputRef,f=e.name,h=e.onBlur,g=e.onChange,v=e.onFocus,y=e.readOnly,b=e.required,x=e.tabIndex,S=e.type,w=e.value,C=Ds(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),M=o.useRef(null!=r).current,k=o.useState(Boolean(l)),E=k[0],T=k[1],N=Tf(),L=c;N&&void 0===L&&(L=N.disabled);var q=M?r:E,D="checkbox"===S||"radio"===S;return o.createElement(Lf,qs({component:"span",className:Hd(a.root,s,q&&a.checked,L&&a.disabled),disabled:L,tabIndex:null,role:void 0,onFocus:function(e){v&&v(e),N&&N.onFocus&&N.onFocus(e)},onBlur:function(e){h&&h(e),N&&N.onBlur&&N.onBlur(e)},ref:t},C),o.createElement("input",qs({autoFocus:n,checked:r,defaultChecked:l,className:a.input,disabled:L,id:D&&d,name:f,onChange:function(e){var t=e.target.checked;M||T(t),g&&g(e,t)},readOnly:y,ref:m,required:b,tabIndex:x,type:S,value:w},p)),q?i:u)})),Df=ip({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(qf),Of=uf(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),Rf=uf(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Af=uf(o.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"})),Pf=o.createElement(Rf,null),If=o.createElement(Of,null),zf=o.createElement(Af,null),Bf=o.forwardRef((function(e,t){var n=e.checkedIcon,r=void 0===n?Pf:n,i=e.classes,a=e.color,s=void 0===a?"secondary":a,l=e.icon,c=void 0===l?If:l,u=e.indeterminate,d=void 0!==u&&u,p=e.indeterminateIcon,m=void 0===p?zf:p,f=e.inputProps,h=Ds(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps"]);return o.createElement(Df,qs({type:"checkbox",checkedIcon:d?m:r,classes:{root:Hd(i.root,i["color".concat(ap(s))],d&&i.indeterminate),checked:i.checked,disabled:i.disabled},color:s,inputProps:qs({"data-indeterminate":d},f),icon:d?m:c,ref:t},h))}));ip((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Es(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Es(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(Bf);var Ff=uf(o.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})),Hf=o.forwardRef((function(e,t){var n=e.avatar,r=e.classes,i=e.className,a=e.clickable,s=e.color,l=void 0===s?"default":s,c=e.component,u=e.deleteIcon,d=e.disabled,p=void 0!==d&&d,m=e.icon,f=e.label,h=e.onClick,g=e.onDelete,v=e.onKeyDown,y=e.onKeyUp,b=e.size,x=void 0===b?"medium":b,S=e.variant,w=void 0===S?"default":S,C=Ds(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),M=o.useRef(null),k=_p(M,t),E=function(e){e.stopPropagation(),g&&g(e)},T=!(!1===a||!h)||a,N="small"===x,L=c||(T?xm:"div"),q=L===xm?{component:"div"}:{},D=null;if(g){var O=Hd("default"!==l&&("default"===w?r["deleteIconColor".concat(ap(l))]:r["deleteIconOutlinedColor".concat(ap(l))]),N&&r.deleteIconSmall);D=u&&o.isValidElement(u)?o.cloneElement(u,{className:Hd(u.props.className,r.deleteIcon,O),onClick:E}):o.createElement(Ff,{className:Hd(r.deleteIcon,O),onClick:E})}var R=null;n&&o.isValidElement(n)&&(R=o.cloneElement(n,{className:Hd(r.avatar,n.props.className,N&&r.avatarSmall,"default"!==l&&r["avatarColor".concat(ap(l))])}));var A=null;return m&&o.isValidElement(m)&&(A=o.cloneElement(m,{className:Hd(r.icon,m.props.className,N&&r.iconSmall,"default"!==l&&r["iconColor".concat(ap(l))])})),o.createElement(L,qs({role:T||g?"button":void 0,className:Hd(r.root,i,"default"!==l&&[r["color".concat(ap(l))],T&&r["clickableColor".concat(ap(l))],g&&r["deletableColor".concat(ap(l))]],"default"!==w&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[l]],p&&r.disabled,N&&r.sizeSmall,T&&r.clickable,g&&r.deletable),"aria-disabled":!!p||void 0,tabIndex:T||g?0:void 0,onClick:h,onKeyDown:function(e){v&&v(e),e.currentTarget===e.target&&-1!==[" ","Enter","Backspace","Delete","Escape"].indexOf(e.key)&&e.preventDefault()},onKeyUp:function(e){if(y&&y(e),e.currentTarget===e.target){var t=e.key;!g||"Backspace"!==t&&"Delete"!==t?"Escape"===t&&M.current&&M.current.blur():g(e)}},ref:k},q,C),R||A,o.createElement("span",{className:Hd(r.label,N&&r.labelSmall)},f),D)}));ip((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=Es(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:ks(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:ks(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:ks(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:ks(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:ks(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:ks(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Es(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Es(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Es(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{display:"flex",alignItems:"center",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Es(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:Es(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:Es(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:Es(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:Es(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(Hf);var jf=44;function Wf(e){var t,n,r;return t=e,n=0,r=1,e=(Math.min(Math.max(n,t),r)-n)/(r-n),e=(e-=1)*e*e+1}var Vf=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.disableShrink,l=void 0!==s&&s,c=e.size,u=void 0===c?40:c,d=e.style,p=e.thickness,m=void 0===p?3.6:p,f=e.value,h=void 0===f?0:f,g=e.variant,v=void 0===g?"indeterminate":g,y=Ds(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),b={},x={},S={};if("determinate"===v||"static"===v){var w=2*Math.PI*((jf-m)/2);b.strokeDasharray=w.toFixed(3),S["aria-valuenow"]=Math.round(h),"static"===v?(b.strokeDashoffset="".concat(((100-h)/100*w).toFixed(3),"px"),x.transform="rotate(-90deg)"):(b.strokeDashoffset="".concat((function(e){return e*e}((100-h)/100)*w).toFixed(3),"px"),x.transform="rotate(".concat((270*Wf(h/70)).toFixed(3),"deg)"))}return o.createElement("div",qs({className:Hd(n.root,r,"inherit"!==a&&n["color".concat(ap(a))],{indeterminate:n.indeterminate,static:n.static}[v]),style:qs({width:u,height:u},x,{},d),ref:t,role:"progressbar"},S,y),o.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(jf," ").concat(jf)},o.createElement("circle",{className:Hd(n.circle,l&&n.circleDisableShrink,{indeterminate:n.circleIndeterminate,static:n.circleStatic}[v]),style:b,cx:jf,cy:jf,r:(jf-m)/2,fill:"none",strokeWidth:m})))}));function _f(e){return e&&e.ownerDocument||document}function Uf(e){return e.substring(2).toLowerCase()}ip((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},"@keyframes circular-rotate":{"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(Vf);var $f=o.forwardRef((function(e,t){var n=e.children,r=e.mouseEvent,i=void 0===r?"onClick":r,a=e.touchEvent,s=void 0===a?"onTouchEnd":a,c=e.onClickAway,u=o.useRef(!1),d=o.useRef(null),p=o.useRef(!1);o.useEffect((function(){return p.current=!0,function(){p.current=!1}}),[]);var m=_p(d,t),f=o.useCallback((function(e){Vp(m,l.findDOMNode(e))}),[m]),h=_p(n.ref,f),g=Qp((function(e){if(!e.defaultPrevented&&p.current)if(u.current)u.current=!1;else if(d.current){var t=_f(d.current);t.documentElement&&t.documentElement.contains(e.target)&&!d.current.contains(e.target)&&c(e)}})),v=o.useCallback((function(){u.current=!0}),[]);return o.useEffect((function(){if(!1!==s){var e=Uf(s);return document.addEventListener(e,g),document.addEventListener("touchmove",v),function(){document.removeEventListener(e,g),document.removeEventListener("touchmove",v)}}}),[g,v,s]),o.useEffect((function(){if(!1!==i){var e=Uf(i);return document.addEventListener(e,g),function(){document.removeEventListener(e,g)}}}),[g,i]),o.createElement(o.Fragment,null,o.cloneElement(n,{ref:h}))})),Kf=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.collapsedHeight,s=void 0===a?"0px":a,l=e.component,c=void 0===l?"div":l,u=e.in,d=e.onEnter,p=e.onEntered,m=e.onEntering,f=e.onExit,h=e.onExiting,g=e.style,v=e.timeout,y=void 0===v?Sl.standard:v,b=Ds(e,["children","classes","className","collapsedHeight","component","in","onEnter","onEntered","onEntering","onExit","onExiting","style","timeout"]),x=op(),S=o.useRef(),w=o.useRef(null),C=o.useRef();o.useEffect((function(){return function(){clearTimeout(S.current)}}),[]);return o.createElement(wp,qs({in:u,onEnter:function(e,t){e.style.height=s,d&&d(e,t)},onEntered:function(e,t){e.style.height="auto",p&&p(e,t)},onEntering:function(e,t){var n=w.current?w.current.clientHeight:0,r=Wp({style:g,timeout:y},{mode:"enter"}).duration;if("auto"===y){var o=x.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),C.current=o}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),m&&m(e,t)},onExit:function(e){var t=w.current?w.current.clientHeight:0;e.style.height="".concat(t,"px"),f&&f(e)},onExiting:function(e){var t=w.current?w.current.clientHeight:0,n=Wp({style:g,timeout:y},{mode:"exit"}).duration;if("auto"===y){var r=x.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),C.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=s,h&&h(e)},addEndListener:function(e,t){"auto"===y&&(S.current=setTimeout(t,C.current||0))},timeout:"auto"===y?null:y},b),(function(e,a){return o.createElement(c,qs({className:Hd(r.container,i,{entered:r.entered,exited:!u&&"0px"===s&&r.hidden}[e]),style:qs({minHeight:s},g),ref:t},a),o.createElement("div",{className:r.wrapper,ref:w},o.createElement("div",{className:r.wrapperInner},n)))}))}));Kf.muiSupportAuto=!0;var Gf=ip((function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(Kf),Yf=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=e.fixed,l=void 0!==s&&s,c=e.maxWidth,u=void 0===c?"lg":c,d=Ds(e,["classes","className","component","fixed","maxWidth"]);return o.createElement(a,qs({className:Hd(n.root,r,l&&n.fixed,!1!==u&&n["maxWidth".concat(ap(String(u)))]),ref:t},d))}));ip((function(e){var t;return{root:(t={width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},Ls(t,e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),Ls(t,e.breakpoints.up("md"),{paddingLeft:e.spacing(4),paddingRight:e.spacing(4)}),t),fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:Ls({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:Ls({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:Ls({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:Ls({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:Ls({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(Yf),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Bd(e,qs({defaultTheme:rp},t))}((function(e){return{"@global":{html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:"bolder"},body:qs({margin:0,color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white},"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"});var Xf="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,Jf=o.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,a=void 0!==i&&i,s=e.onRendered,c=o.useState(null),u=c[0],d=c[1],p=_p(n.ref,t);return Xf((function(){a||d(function(e){return e="function"==typeof e?e():e,l.findDOMNode(e)}(r)||document.body)}),[r,a]),Xf((function(){if(u&&!a)return Vp(t,u),function(){Vp(t,null)}}),[t,u,a]),Xf((function(){s&&(u||a)&&s()}),[s,u,a]),a?(o.Children.only(n),o.cloneElement(n,{ref:p})):u?l.createPortal(n,u):u}));function Zf(){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 Qf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function th(e,t,n){return t&&eh(e.prototype,t),n&&eh(e,n),e}function nh(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function rh(e){return _f(e).defaultView||window}function oh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ih(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function ah(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(mm(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&oh(e,o)}))}function sh(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function lh(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){var a=function(e){var t=_f(e);return t.body===e?rh(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i),s=i.parentElement,l="HTML"===s.nodeName?s:i;if(r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden",a){var c=nh();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(ih(i)+c,"px"),n=_f(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(ih(e)+c,"px")}))}}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var ch=function(){function e(){Qf(this,e),this.modals=[],this.containers=[]}return th(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&&oh(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);ah(t,e.mountNode,e.modalRef,r,!0);var o=sh(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=sh(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=lh(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=sh(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&&oh(e.modalRef,!0),ah(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&&oh(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function uh(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,a=void 0!==i&&i,s=e.disableRestoreFocus,c=void 0!==s&&s,u=e.getDoc,d=e.isEnabled,p=e.open,m=o.useRef(),f=o.useRef(null),h=o.useRef(null),g=o.useRef(),v=o.useRef(null),y=o.useCallback((function(e){v.current=l.findDOMNode(e)}),[]),b=_p(t.ref,y);return o.useMemo((function(){p&&"undefined"!=typeof window&&(g.current=u().activeElement)}),[p]),o.useEffect((function(){if(p){var e=_f(v.current);r||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){a||!d()||m.current?m.current=!1:v.current&&!v.current.contains(e.activeElement)&&v.current.focus()},n=function(t){!a&&d()&&9===t.keyCode&&e.activeElement===v.current&&(m.current=!0,t.shiftKey?h.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),c||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[r,a,c,d,p]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),o.cloneElement(t,{ref:b}),o.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var dh={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},ph=o.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,a=Ds(e,["invisible","open"]);return i?o.createElement("div",qs({"aria-hidden":!0,ref:t},a,{style:qs({},dh.root,{},r?dh.invisible:{},{},a.style)})):null}));var mh=new ch,fh=o.forwardRef((function(e,t){var n=Cd(),r=Ll({name:"MuiModal",props:qs({},e),theme:n}),i=r.BackdropComponent,a=void 0===i?ph:i,s=r.BackdropProps,c=r.children,u=r.closeAfterTransition,d=void 0!==u&&u,p=r.container,m=r.disableAutoFocus,f=void 0!==m&&m,h=r.disableBackdropClick,g=void 0!==h&&h,v=r.disableEnforceFocus,y=void 0!==v&&v,b=r.disableEscapeKeyDown,x=void 0!==b&&b,S=r.disablePortal,w=void 0!==S&&S,C=r.disableRestoreFocus,M=void 0!==C&&C,k=r.disableScrollLock,E=void 0!==k&&k,T=r.hideBackdrop,N=void 0!==T&&T,L=r.keepMounted,q=void 0!==L&&L,D=r.manager,O=void 0===D?mh:D,R=r.onBackdropClick,A=r.onClose,P=r.onEscapeKeyDown,I=r.onRendered,z=r.open,B=Ds(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=o.useState(!0),H=F[0],j=F[1],W=o.useRef({}),V=o.useRef(null),_=o.useRef(null),U=_p(_,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),K=function(){return _f(V.current)},G=function(){return W.current.modalRef=_.current,W.current.mountNode=V.current,W.current},Y=function(){O.mount(G(),{disableScrollLock:E}),_.current.scrollTop=0},X=Qp((function(){var e=function(e){return e="function"==typeof e?e():e,l.findDOMNode(e)}(p)||K().body;O.add(G(),e),_.current&&Y()})),J=o.useCallback((function(){return O.isTopModal(G())}),[O]),Z=Qp((function(e){V.current=e,e&&(I&&I(),z&&J()?Y():oh(_.current,!0))})),Q=o.useCallback((function(){O.remove(G())}),[O]);if(o.useEffect((function(){return function(){Q()}}),[Q]),o.useEffect((function(){z?X():$&&d||Q()}),[z,Q,$,d,X]),!q&&!z&&(!$||H))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Ml}),te={};return void 0===c.props.tabIndex&&(te.tabIndex=c.props.tabIndex||"-1"),$&&(te.onEnter=Zf((function(){j(!1)}),c.props.onEnter),te.onExited=Zf((function(){j(!0),d&&Q()}),c.props.onExited)),o.createElement(Jf,{ref:Z,container:p,disablePortal:w},o.createElement("div",qs({ref:U,onKeyDown:function(e){"Escape"===e.key&&J()&&(e.stopPropagation(),P&&P(e),!x&&A&&A(e,"escapeKeyDown"))},role:"presentation"},B,{style:qs({},ee.root,{},!z&&H?ee.hidden:{},{},B.style)}),N?null:o.createElement(a,qs({open:z,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!g&&A&&A(e,"backdropClick"))}},s)),o.createElement(uh,{disableEnforceFocus:y,disableAutoFocus:f,disableRestoreFocus:M,getDoc:K,isEnabled:J,open:z},o.cloneElement(c,te))))})),hh={enter:Sl.enteringScreen,exit:Sl.leavingScreen},gh=o.forwardRef((function(e,t){var n=e.BackdropProps,r=e.children,i=e.classes,a=e.className,s=e.disableBackdropClick,l=void 0!==s&&s,c=e.disableEscapeKeyDown,u=void 0!==c&&c,d=e.fullScreen,p=void 0!==d&&d,m=e.fullWidth,f=void 0!==m&&m,h=e.maxWidth,g=void 0===h?"sm":h,v=e.onBackdropClick,y=e.onClose,b=e.onEnter,x=e.onEntered,S=e.onEntering,w=e.onEscapeKeyDown,C=e.onExit,M=e.onExited,k=e.onExiting,E=e.open,T=e.PaperComponent,N=void 0===T?lp:T,L=e.PaperProps,q=void 0===L?{}:L,D=e.scroll,O=void 0===D?"paper":D,R=e.TransitionComponent,A=void 0===R?Kp:R,P=e.transitionDuration,I=void 0===P?hh:P,z=e.TransitionProps,B=e["aria-describedby"],F=e["aria-labelledby"],H=Ds(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),j=o.useRef();return o.createElement(fh,qs({className:Hd(i.root,a),BackdropComponent:Yp,BackdropProps:qs({transitionDuration:I},n),closeAfterTransition:!0,disableBackdropClick:l,disableEscapeKeyDown:u,onEscapeKeyDown:w,onClose:y,open:E,ref:t},H),o.createElement(A,qs({appear:!0,in:E,timeout:I,onEnter:b,onEntering:S,onEntered:x,onExit:C,onExiting:k,onExited:M,role:"none presentation"},z),o.createElement("div",{className:Hd(i.container,i["scroll".concat(ap(O))]),onClick:function(e){e.target===e.currentTarget&&e.target===j.current&&(j.current=null,v&&v(e),!l&&y&&y(e,"backdropClick"))},onMouseDown:function(e){j.current=e.target}},o.createElement(N,qs({elevation:24,role:"dialog","aria-describedby":B,"aria-labelledby":F},q,{className:Hd(i.paper,i["paperScroll".concat(ap(O))],i["paperWidth".concat(ap(String(g)))],q.className,p&&i.paperFullScreen,f&&i.paperFullWidth)}),r))))}));ip((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Ls({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Ls({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Ls({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Ls({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Ls({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(gh);var vh=o.forwardRef((function(e,t){var n=e.disableSpacing,r=void 0!==n&&n,i=e.classes,a=e.className,s=Ds(e,["disableSpacing","classes","className"]);return o.createElement("div",qs({className:Hd(i.root,a,!r&&i.spacing),ref:t},s))}));ip({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiDialogActions"})(vh);var yh=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.dividers,a=void 0!==i&&i,s=Ds(e,["classes","className","dividers"]);return o.createElement("div",qs({className:Hd(n.root,r,a&&n.dividers),ref:t},s))}));ip((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(yh);var bh=o.forwardRef((function(e,t){return o.createElement(sf,qs({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));ip({root:{marginBottom:12}},{name:"MuiDialogContentText"})(bh);var xh=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.disableTypography,s=void 0!==a&&a,l=Ds(e,["children","classes","className","disableTypography"]);return o.createElement("div",qs({className:Hd(r.root,i),ref:t},l),s?n:o.createElement(sf,{component:"h2",variant:"h6"},n))}));ip({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(xh);var Sh=o.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,a=e.className,s=e.component,l=void 0===s?"hr":s,c=e.light,u=void 0!==c&&c,d=e.orientation,p=void 0===d?"horizontal":d,m=e.role,f=void 0===m?"hr"!==l?"separator":void 0:m,h=e.variant,g=void 0===h?"fullWidth":h,v=Ds(e,["absolute","classes","className","component","light","orientation","role","variant"]);return o.createElement(l,qs({className:Hd(i.root,a,"fullWidth"!==g&&i[g],r&&i.absolute,u&&i.light,{vertical:i.vertical}[p]),role:f,ref:t},v))}));function wh(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,s=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}function Ch(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(-").concat(r.left-i,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(-").concat(r.top-a,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}ip((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:Es(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1}}}),{name:"MuiDivider"})(Sh);var Mh={enter:Sl.enteringScreen,exit:Sl.leavingScreen},kh=o.forwardRef((function(e,t){var n=e.children,r=e.direction,i=void 0===r?"down":r,a=e.in,s=e.onEnter,c=e.onEntering,u=e.onExit,d=e.onExited,p=e.style,m=e.timeout,f=void 0===m?Mh:m,h=Ds(e,["children","direction","in","onEnter","onEntering","onExit","onExited","style","timeout"]),g=op(),v=o.useRef(null),y=o.useCallback((function(e){v.current=l.findDOMNode(e)}),[]),b=_p(n.ref,y),x=_p(b,t),S=o.useCallback((function(){v.current&&Ch(i,v.current)}),[i]);return o.useEffect((function(){if(!a&&"down"!==i&&"right"!==i){var e=wh((function(){v.current&&Ch(i,v.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[i,a]),o.useEffect((function(){a||S()}),[a,S]),o.createElement(wp,qs({onEnter:function(e,t){var n=v.current;Ch(i,n),jp(n),s&&s(n,t)},onEntering:function(e,t){var n=v.current,r=Wp({timeout:f,style:p},{mode:"enter"});n.style.webkitTransition=g.transitions.create("-webkit-transform",qs({},r,{easing:g.transitions.easing.easeOut})),n.style.transition=g.transitions.create("transform",qs({},r,{easing:g.transitions.easing.easeOut})),n.style.webkitTransform="none",n.style.transform="none",c&&c(n,t)},onExit:function(){var e=v.current,t=Wp({timeout:f,style:p},{mode:"exit"});e.style.webkitTransition=g.transitions.create("-webkit-transform",qs({},t,{easing:g.transitions.easing.sharp})),e.style.transition=g.transitions.create("transform",qs({},t,{easing:g.transitions.easing.sharp})),Ch(i,e),u&&u(e)},onExited:function(){var e=v.current;e.style.webkitTransition="",e.style.transition="",d&&d(e)},appear:!0,in:a,timeout:f},h),(function(e,t){return o.cloneElement(n,qs({ref:x,style:qs({visibility:"exited"!==e||a?void 0:"hidden"},p,{},n.props.style)},t))}))})),Eh={left:"right",right:"left",top:"down",bottom:"up"};function Th(e){return-1!==["left","right"].indexOf(e)}function Nh(e,t){return"rtl"===e.direction&&Th(t)?Eh[t]:t}var Lh={enter:Sl.enteringScreen,exit:Sl.leavingScreen},qh=o.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,i=e.BackdropProps,a=e.children,s=e.classes,l=e.className,c=e.elevation,u=void 0===c?16:c,d=e.ModalProps,p=(d=void 0===d?{}:d).BackdropProps,m=Ds(d,["BackdropProps"]),f=e.onClose,h=e.open,g=void 0!==h&&h,v=e.PaperProps,y=e.SlideProps,b=e.transitionDuration,x=void 0===b?Lh:b,S=e.variant,w=void 0===S?"temporary":S,C=Ds(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","transitionDuration","variant"]),M=op(),k=o.useRef(!1);o.useEffect((function(){k.current=!0}),[]);var E=Nh(M,r),T=o.createElement(lp,qs({elevation:"temporary"===w?u:0,square:!0,className:Hd(s.paper,s["paperAnchor".concat(ap(E))],"temporary"!==w&&s["paperAnchorDocked".concat(ap(E))])},v),a);if("permanent"===w)return o.createElement("div",qs({className:Hd(s.root,s.docked,l),ref:t},C),T);var N=o.createElement(kh,qs({in:g,direction:Eh[E],timeout:x,appear:k.current},y),T);return"persistent"===w?o.createElement("div",qs({className:Hd(s.root,s.docked,l),ref:t},C),N):o.createElement(fh,qs({BackdropProps:qs({},i,{},p,{transitionDuration:x}),BackdropComponent:Yp,className:Hd(s.root,s.modal,l),open:g,onClose:f,ref:t},C,m),N)})),Dh=ip((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(qh);function Oh(e){return function(e){if(Array.isArray(e))return e}(e)||pm(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Rh=o.createContext({}),Ah=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.defaultExpanded,s=void 0!==a&&a,l=e.disabled,c=void 0!==l&&l,u=e.expanded,d=e.onChange,p=e.square,m=void 0!==p&&p,f=e.TransitionComponent,h=void 0===f?Gf:f,g=e.TransitionProps,v=Ds(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),y=o.useRef(null!=u).current,b=o.useState(s),x=b[0],S=b[1],w=y?u:x,C=o.useCallback((function(e){y||S(!w),d&&d(e,!w)}),[w,y,d]),M=Oh(o.Children.toArray(n)),k=M[0],E=M.slice(1),T=o.useMemo((function(){return{expanded:w,disabled:c,toggle:C}}),[w,c,C]);return o.createElement(lp,qs({className:Hd(r.root,i,w&&r.expanded,c&&r.disabled,!m&&r.rounded),ref:t,square:m},v),o.createElement(Rh.Provider,{value:T},k),o.createElement(h,qs({in:w,timeout:"auto"},g),o.createElement("div",{"aria-labelledby":k.props.id,id:k.props["aria-controls"],role:"region"},E)))}));ip((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiExpansionPanel"})(Ah);var Ph=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disableSpacing,a=void 0!==i&&i,s=Ds(e,["classes","className","disableSpacing"]);return o.createElement("div",qs({className:Hd(n.root,r,!a&&n.spacing),ref:t},s))}));ip({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},spacing:{"& > * + *":{marginLeft:8}}},{name:"MuiExpansionPanelActions"})(Ph);var Ih=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ds(e,["classes","className"]);return o.createElement("div",qs({className:Hd(n.root,r),ref:t},i))}));ip({root:{display:"flex",padding:"8px 24px 24px"}},{name:"MuiExpansionPanelDetails"})(Ih);var zh=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.expandIcon,s=e.IconButtonProps,l=e.onBlur,c=e.onClick,u=e.onFocusVisible,d=Ds(e,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),p=o.useState(!1),m=p[0],f=p[1],h=o.useContext(Rh),g=h.disabled,v=void 0!==g&&g,y=h.expanded,b=h.toggle;return o.createElement(xm,qs({focusRipple:!1,disableRipple:!0,disabled:v,component:"div","aria-expanded":y,className:Hd(r.root,i,v&&r.disabled,y&&r.expanded,m&&r.focused),onFocusVisible:function(e){f(!0),u&&u(e)},onBlur:function(e){f(!1),l&&l(e)},onClick:function(e){b&&b(e),c&&c(e)},ref:t},d),o.createElement("div",{className:Hd(r.content,y&&r.expanded)},n),a&&o.createElement(Lf,qs({className:Hd(r.expandIcon,y&&r.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},s),a))}));ip((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:"0 24px 0 24px","&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:e.palette.grey[300]},"&$disabled":{opacity:.38}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiExpansionPanelSummary"})(zh);var Bh=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,c=void 0===l?"button":l,u=e.disabled,d=void 0!==u&&u,p=e.disableFocusRipple,m=void 0!==p&&p,f=e.focusVisibleClassName,h=e.size,g=void 0===h?"large":h,v=e.variant,y=void 0===v?"round":v,b=Ds(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return o.createElement(xm,qs({className:Hd(r.root,i,"round"!==y&&r.extended,"large"!==g&&r["size".concat(ap(g))],d&&r.disabled,{primary:r.primary,secondary:r.secondary,inherit:r.colorInherit}[s]),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:Hd(r.focusVisible,f),ref:t},b),o.createElement("span",{className:r.label},n))}));function Fh(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}function Hh(e,t){return parseInt(e[t],10)||0}ip((function(e){return{root:qs({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&$focusVisible":{boxShadow:e.shadows[6]},"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(Bh);var jh="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,Wh={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Vh=o.forwardRef((function(e,t){var n=e.onChange,r=e.rows,i=e.rowsMax,a=e.style,s=e.value,l=Ds(e,["onChange","rows","rowsMax","style","value"]),c=o.useRef(null!=s).current,u=o.useRef(null),d=_p(t,u),p=o.useRef(null),m=o.useState({}),f=m[0],h=m[1],g=o.useCallback((function(){var t=u.current,n=window.getComputedStyle(t),o=p.current;o.style.width=n.width,o.value=t.value||e.placeholder||"x";var a=n["box-sizing"],s=Hh(n,"padding-bottom")+Hh(n,"padding-top"),l=Hh(n,"border-bottom-width")+Hh(n,"border-top-width"),c=o.scrollHeight-s;o.value="x";var d=o.scrollHeight-s,m=c;null!=r&&(m=Math.max(Number(r)*d,m)),null!=i&&(m=Math.min(Number(i)*d,m));var f=(m=Math.max(m,d))+("border-box"===a?s+l:0),g=Math.abs(m-c)<=1;h((function(e){return f>0&&Math.abs((e.outerHeightStyle||0)-f)>1||e.overflow!==g?{overflow:g,outerHeightStyle:f}:e}))}),[r,i,e.placeholder]);o.useEffect((function(){var e=wh((function(){g()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[g]),jh((function(){g()}));return o.createElement(o.Fragment,null,o.createElement("textarea",qs({value:s,onChange:function(e){c||g(),n&&n(e)},ref:d,rows:r||1,style:qs({height:f.outerHeightStyle,overflow:f.overflow?"hidden":null},a)},l)),o.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:qs({},Wh,{},a)}))}));function _h(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Uh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(_h(e.value)&&""!==e.value||t&&_h(e.defaultValue)&&""!==e.defaultValue)}var $h="undefined"==typeof window?o.useEffect:o.useLayoutEffect,Kh=o.forwardRef((function(e,t){var n=e["aria-describedby"],r=e.autoComplete,i=e.autoFocus,a=e.classes,s=e.className;e.color;var l=e.defaultValue,c=e.disabled,u=e.endAdornment;e.error;var d=e.fullWidth,p=void 0!==d&&d,m=e.id,f=e.inputComponent,h=void 0===f?"input":f,g=e.inputProps,v=void 0===g?{}:g,y=e.inputRef;e.margin;var b=e.multiline,x=void 0!==b&&b,S=e.name,w=e.onBlur,C=e.onChange,M=e.onClick,k=e.onFocus,E=e.onKeyDown,T=e.onKeyUp,N=e.placeholder,L=e.readOnly,q=e.renderSuffix,D=e.rows,O=e.rowsMax,R=e.select,A=void 0!==R&&R,P=e.startAdornment,I=e.type,z=void 0===I?"text":I,B=e.value,F=Ds(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","select","startAdornment","type","value"]),H=null!=v.value?v.value:B,j=o.useRef(null!=H).current,W=o.useRef(),V=o.useCallback((function(e){}),[]),_=_p(v.ref,V),U=_p(y,_),$=_p(W,U),K=o.useState(!1),G=K[0],Y=K[1],X=Ef(),J=Fh({props:e,muiFormControl:X,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});J.focused=X?X.focused:G,o.useEffect((function(){!X&&c&&G&&(Y(!1),w&&w())}),[X,c,G,w]);var Z=X&&X.onFilled,Q=X&&X.onEmpty,ee=o.useCallback((function(e){Uh(e)?Z&&Z():Q&&Q()}),[Z,Q]);$h((function(){j&&ee({value:H})}),[H,ee,j]);o.useEffect((function(){ee(W.current)}),[]);var te=h,ne=qs({},v,{ref:$});"string"!=typeof te?ne=qs({inputRef:$,type:z},ne,{ref:null}):x?D&&!O?te="textarea":(ne=qs({rows:D,rowsMax:O},ne),te=Vh):ne=qs({type:z},ne);return o.useEffect((function(){X&&X.setAdornedStart(Boolean(P))}),[X,P]),o.createElement("div",qs({className:Hd(a.root,a["color".concat(ap(J.color||"primary"))],s,J.disabled&&a.disabled,J.error&&a.error,p&&a.fullWidth,J.focused&&a.focused,X&&a.formControl,x&&a.multiline,P&&a.adornedStart,u&&a.adornedEnd,{dense:a.marginDense}[J.margin]),onClick:function(e){W.current&&e.currentTarget===e.target&&W.current.focus(),M&&M(e)},ref:t},F),P,o.createElement(kf.Provider,{value:null},o.createElement(te,qs({"aria-invalid":J.error,"aria-describedby":n,autoComplete:r,autoFocus:i,defaultValue:l,disabled:J.disabled,id:m,onAnimationStart:function(e){ee(-1!==e.animationName.indexOf("auto-fill-cancel")?W.current:{value:"x"})},name:S,placeholder:N,readOnly:L,required:J.required,rows:D,value:H,onKeyDown:E,onKeyUp:T},ne,{className:Hd(a.input,v.className,J.disabled&&a.disabled,x&&a.inputMultiline,A&&a.inputSelect,J.hiddenLabel&&a.inputHiddenLabel,P&&a.inputAdornedStart,u&&a.inputAdornedEnd,{search:a.inputTypeSearch}[z],{dense:a.inputMarginDense}[J.margin]),onBlur:function(e){w&&w(e),v.onBlur&&v.onBlur(e),X&&X.onBlur?X.onBlur(e):Y(!1)},onChange:function(e){if(!j){var t=e.target||W.current;if(null==t)throw new TypeError("Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://material-ui.com/r/input-component-ref-interface for more info.");ee({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];v.onChange&&v.onChange.apply(v,[e].concat(r)),C&&C.apply(void 0,[e].concat(r))},onFocus:function(e){J.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),X&&X.onFocus?X.onFocus(e):Y(!0))}}))),u,q?q(qs({},J,{startAdornment:P})):null)})),Gh=ip((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{root:{fontFamily:e.typography.fontFamily,color:e.palette.text.primary,fontSize:e.typography.pxToRem(16),lineHeight:"1.1875em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}},formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1875em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"$auto-fill-cancel","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"$auto-fill"}},"@keyframes auto-fill":{from:{}},"@keyframes auto-fill-cancel":{from:{}},inputMarginDense:{paddingTop:3},inputSelect:{paddingRight:24},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(Kh),Yh=o.forwardRef((function(e,t){var n=e.disableUnderline,r=e.classes,i=e.fullWidth,a=void 0!==i&&i,s=e.inputComponent,l=void 0===s?"input":s,c=e.multiline,u=void 0!==c&&c,d=e.type,p=void 0===d?"text":d,m=Ds(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(Gh,qs({classes:qs({},r,{root:Hd(r.root,!n&&r.underline),underline:null}),fullWidth:a,inputComponent:l,multiline:u,ref:t,type:p},m))}));Yh.muiName="Input";var Xh=ip((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===e.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===e.palette.type?"#fff":null,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputSelect:{paddingRight:24},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(Yh);function Jh(e,t){return o.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var Zh=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.disabled,c=void 0!==l&&l,u=e.error,d=void 0!==u&&u,p=e.fullWidth,m=void 0!==p&&p,f=e.hiddenLabel,h=void 0!==f&&f,g=e.margin,v=void 0===g?"none":g,y=e.color,b=void 0===y?"primary":y,x=e.required,S=void 0!==x&&x,w=e.variant,C=void 0===w?"standard":w,M=Ds(e,["children","classes","className","component","disabled","error","fullWidth","hiddenLabel","margin","color","required","variant"]),k=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){if(Jh(t,["Input","Select"])){var n=Jh(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),E=k[0],T=k[1],N=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){Jh(t,["Input","Select"])&&Uh(t.props,!0)&&(e=!0)})),e})),L=N[0],q=N[1],D=o.useState(!1),O=D[0],R=D[1];c&&O&&R(!1);var A=o.useCallback((function(){q(!0)}),[]),P={adornedStart:E,setAdornedStart:T,color:b,disabled:c,error:d,filled:L,focused:O,hiddenLabel:h,margin:v,onBlur:function(){R(!1)},onEmpty:o.useCallback((function(){q(!1)}),[]),onFilled:A,onFocus:function(){R(!0)},registerEffect:undefined,required:S,variant:C};return o.createElement(kf.Provider,{value:P},o.createElement(s,qs({className:Hd(r.root,i,"none"!==v&&r["margin".concat(ap(v))],m&&r.fullWidth),ref:t},M),n))})),Qh=ip({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(Zh),eg=o.forwardRef((function(e,t){e.checked;var n=e.classes,r=e.className,i=e.control,a=e.disabled;e.inputRef;var s=e.label,l=e.labelPlacement,c=void 0===l?"end":l;e.name,e.onChange,e.value;var u=Ds(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),d=Tf(),p=a;void 0===p&&void 0!==i.props.disabled&&(p=i.props.disabled),void 0===p&&d&&(p=d.disabled);var m={disabled:p};return["checked","name","onChange","value","inputRef"].forEach((function(t){void 0===i.props[t]&&void 0!==e[t]&&(m[t]=e[t])})),o.createElement("label",qs({className:Hd(n.root,r,"end"!==c&&n["labelPlacement".concat(ap(c))],p&&n.disabled),ref:t},u),o.cloneElement(i,m),o.createElement(sf,{component:"span",className:Hd(n.label,p&&n.disabled)},s))}));ip((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(eg);var tg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.row,a=void 0!==i&&i,s=Ds(e,["classes","className","row"]);return o.createElement("div",qs({className:Hd(n.root,r,a&&n.row),ref:t},s))})),ng=ip({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(tg),rg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"p":i;e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant;var s=Ds(e,["classes","className","component","disabled","error","filled","focused","margin","required","variant"]),l=Fh({props:e,muiFormControl:Tf(),states:["variant","margin","disabled","error","filled","focused","required"]});return o.createElement(a,qs({className:Hd(n.root,("filled"===l.variant||"outlined"===l.variant)&&n.contained,r,l.disabled&&n.disabled,l.error&&n.error,l.filled&&n.filled,l.focused&&n.focused,l.required&&n.required,{dense:n.marginDense}[l.margin]),ref:t},s))})),og=ip((function(e){return{root:qs({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:8,lineHeight:"1em",minHeight:"1em",margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{margin:"8px 14px 0"},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(rg),ig=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className;e.color;var a=e.component,s=void 0===a?"label":a;e.disabled,e.error,e.filled,e.focused,e.required;var l=Ds(e,["children","classes","className","color","component","disabled","error","filled","focused","required"]),c=Fh({props:e,muiFormControl:Tf(),states:["color","required","focused","disabled","error","filled"]});return o.createElement(s,qs({className:Hd(r.root,r["color".concat(ap(c.color||"primary"))],i,c.disabled&&r.disabled,c.error&&r.error,c.filled&&r.filled,c.focused&&r.focused,c.required&&r.required),ref:t},l),n,c.required&&o.createElement("span",{className:Hd(r.asterisk,c.error&&r.error)}," ","*"))})),ag=ip((function(e){return{root:qs({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(ig),sg=[0,1,2,3,4,5,6,7,8,9,10],lg=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var ug=o.forwardRef((function(e,t){var n=e.alignContent,r=void 0===n?"stretch":n,i=e.alignItems,a=void 0===i?"stretch":i,s=e.classes,l=e.className,c=e.component,u=void 0===c?"div":c,d=e.container,p=void 0!==d&&d,m=e.direction,f=void 0===m?"row":m,h=e.item,g=void 0!==h&&h,v=e.justify,y=void 0===v?"flex-start":v,b=e.lg,x=void 0!==b&&b,S=e.md,w=void 0!==S&&S,C=e.sm,M=void 0!==C&&C,k=e.spacing,E=void 0===k?0:k,T=e.wrap,N=void 0===T?"wrap":T,L=e.xl,q=void 0!==L&&L,D=e.xs,O=void 0!==D&&D,R=e.zeroMinWidth,A=void 0!==R&&R,P=Ds(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),I=Hd(s.root,l,p&&[s.container,0!==E&&s["spacing-xs-".concat(String(E))]],g&&s.item,A&&s.zeroMinWidth,"row"!==f&&s["direction-xs-".concat(String(f))],"wrap"!==N&&s["wrap-xs-".concat(String(N))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==r&&s["align-content-xs-".concat(String(r))],"flex-start"!==y&&s["justify-xs-".concat(String(y))],!1!==O&&s["grid-xs-".concat(String(O))],!1!==M&&s["grid-sm-".concat(String(M))],!1!==w&&s["grid-md-".concat(String(w))],!1!==x&&s["grid-lg-".concat(String(x))],!1!==q&&s["grid-xl-".concat(String(q))]);return o.createElement(u,qs({className:I,ref:t},P))}));ip((function(e){return qs({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return sg.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(cg(o,2)),width:"calc(100% + ".concat(cg(o),")"),"& > $item":{padding:cg(o,2)}})})),n}(e,"xs"),{},e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};lg.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?qs(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(ug);var dg=o.forwardRef((function(e,t){var n=e.cellHeight,r=void 0===n?180:n,i=e.children,a=e.classes,s=e.className,l=e.cols,c=void 0===l?2:l,u=e.component,d=void 0===u?"ul":u,p=e.spacing,m=void 0===p?4:p,f=e.style,h=Ds(e,["cellHeight","children","classes","className","cols","component","spacing","style"]);return o.createElement(d,qs({className:Hd(a.root,s),ref:t,style:qs({margin:-m/2},f)},h),o.Children.map(i,(function(e){if(!o.isValidElement(e))return null;var t=e.props.cols||1,n=e.props.rows||1;return o.cloneElement(e,{style:qs({width:"".concat(100/c*t,"%"),height:"auto"===r?"auto":r*n+m,padding:m/2},e.props.style)})})))}));ip({root:{display:"flex",flexWrap:"wrap",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"}},{name:"MuiGridList"})(dg);var pg=function(e,t){var n,r,o,i;e&&e.complete&&(e.width/e.height>e.parentElement.offsetWidth/e.parentElement.offsetHeight?((n=e.classList).remove.apply(n,mm(t.imgFullWidth.split(" "))),(r=e.classList).add.apply(r,mm(t.imgFullHeight.split(" ")))):((o=e.classList).remove.apply(o,mm(t.imgFullHeight.split(" "))),(i=e.classList).add.apply(i,mm(t.imgFullWidth.split(" ")))))};var mg=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className;e.cols;var a=e.component,s=void 0===a?"li":a;e.rows;var l=Ds(e,["children","classes","className","cols","component","rows"]),c=o.useRef(null);return o.useEffect((function(){!function(e,t){e&&(e.complete?pg(e,t):e.addEventListener("load",(function(){pg(e,t)})))}(c.current,r)})),o.useEffect((function(){var e=wh((function(){pg(c.current,r)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[r]),o.createElement(s,qs({className:Hd(r.root,i),ref:t},l),o.createElement("div",{className:r.tile},o.Children.map(n,(function(e){return o.isValidElement(e)?"img"===e.type||Jh(e,["Image"])?o.cloneElement(e,{ref:c}):e:null}))))}));ip({root:{boxSizing:"border-box",flexShrink:0},tile:{position:"relative",display:"block",height:"100%",overflow:"hidden"},imgFullHeight:{height:"100%",transform:"translateX(-50%)",position:"relative",left:"50%"},imgFullWidth:{width:"100%",position:"relative",transform:"translateY(-50%)",top:"50%"}},{name:"MuiGridListTile"})(mg);var fg=o.forwardRef((function(e,t){var n=e.actionIcon,r=e.actionPosition,i=void 0===r?"right":r,a=e.classes,s=e.className,l=e.subtitle,c=e.title,u=e.titlePosition,d=void 0===u?"bottom":u,p=Ds(e,["actionIcon","actionPosition","classes","className","subtitle","title","titlePosition"]),m=n&&i;return o.createElement("div",qs({className:Hd(a.root,s,"top"===d?a.titlePositionTop:a.titlePositionBottom,l&&a.rootSubtitle),ref:t},p),o.createElement("div",{className:Hd(a.titleWrap,{left:a.titleWrapActionPosLeft,right:a.titleWrapActionPosRight}[m])},o.createElement("div",{className:a.title},c),l?o.createElement("div",{className:a.subtitle},l):null),n?o.createElement("div",{className:Hd(a.actionIcon,{left:a.actionIconActionPosLeft}[m])},n):null)}));function hg(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}ip((function(e){return{root:{position:"absolute",left:0,right:0,height:48,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily},titlePositionBottom:{bottom:0},titlePositionTop:{top:0},rootSubtitle:{height:68},titleWrap:{flexGrow:1,marginLeft:16,marginRight:16,color:e.palette.common.white,overflow:"hidden"},titleWrapActionPosLeft:{marginLeft:0},titleWrapActionPosRight:{marginRight:0},title:{fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},subtitle:{fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},actionIcon:{},actionIconActionPosLeft:{order:-1}}}),{name:"MuiGridListTileBar"})(fg);var gg={entering:{opacity:1,transform:hg(1)},entered:{opacity:1,transform:"none"}},vg=o.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,a=e.onExit,s=e.style,l=e.timeout,c=void 0===l?"auto":l,u=Ds(e,["children","in","onEnter","onExit","style","timeout"]),d=o.useRef(),p=o.useRef(),m=_p(n.ref,t),f=op();return o.useEffect((function(){return function(){clearTimeout(d.current)}}),[]),o.createElement(wp,qs({appear:!0,in:r,onEnter:function(e,t){jp(e);var n,r=Wp({style:s,timeout:c},{mode:"enter"}),o=r.duration,a=r.delay;"auto"===c?(n=f.transitions.getAutoHeightDuration(e.clientHeight),p.current=n):n=o,e.style.transition=[f.transitions.create("opacity",{duration:n,delay:a}),f.transitions.create("transform",{duration:.666*n,delay:a})].join(","),i&&i(e,t)},onExit:function(e){var t,n=Wp({style:s,timeout:c},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===c?(t=f.transitions.getAutoHeightDuration(e.clientHeight),p.current=t):t=r,e.style.transition=[f.transitions.create("opacity",{duration:t,delay:o}),f.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=hg(.75),a&&a(e)},addEndListener:function(e,t){"auto"===c&&(d.current=setTimeout(t,p.current||0))},timeout:"auto"===c?null:c},u),(function(e,t){return o.cloneElement(n,qs({style:qs({opacity:0,transform:hg(.75),visibility:"exited"!==e||r?void 0:"hidden"},gg[e],{},s,{},n.props.style),ref:m},t))}))}));vg.muiSupportAuto=!0;var yg=!1;function bg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Cd(),r=Ll({theme:n,name:"MuiUseMediaQuery",props:{}}),i="function"==typeof e?e(n):e;i=i.replace(/^@media( ?)/m,"");var a="undefined"!=typeof window&&void 0!==window.matchMedia,s=qs({},r,{},t),l=s.defaultMatches,c=void 0!==l&&l,u=s.noSsr,d=void 0!==u&&u,p=s.ssrMatchMedia,m=void 0===p?null:p,f=o.useState((function(){return(yg||d)&&a?window.matchMedia(i).matches:m?m(i).matches:c})),h=f[0],g=f[1];return o.useEffect((function(){var e=!0;if(yg=!0,a){var t=window.matchMedia(i),n=function(){e&&g(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[i,a]),h}var xg=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?il.indexOf(e)<=il.indexOf(t):il.indexOf(e)<il.indexOf(t)},Sg=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?il.indexOf(t)<=il.indexOf(e):il.indexOf(t)<il.indexOf(e)},wg="undefined"==typeof window?o.useEffect:o.useLayoutEffect;function Cg(e){var t=e.children,n=e.only,r=e.width,o=op(),i=!0;if(n)if(Array.isArray(n))for(var a=0;a<n.length;a+=1){if(r===n[a]){i=!1;break}}else n&&r===n&&(i=!1);if(i)for(var s=0;s<o.breakpoints.keys.length;s+=1){var l=o.breakpoints.keys[s],c=e["".concat(l,"Up")],u=e["".concat(l,"Down")];if(c&&xg(l,r)||u&&Sg(l,r)){i=!1;break}}return i?t:null}Cg.propTypes={children:ss.exports.node,className:ss.exports.string,implementation:ss.exports.oneOf(["js","css"]),initialWidth:ss.exports.oneOf(["xs","sm","md","lg","xl"]),lgDown:ss.exports.bool,lgUp:ss.exports.bool,mdDown:ss.exports.bool,mdUp:ss.exports.bool,only:ss.exports.oneOfType([ss.exports.oneOf(["xs","sm","md","lg","xl"]),ss.exports.arrayOf(ss.exports.oneOf(["xs","sm","md","lg","xl"]))]),smDown:ss.exports.bool,smUp:ss.exports.bool,width:ss.exports.string.isRequired,xlDown:ss.exports.bool,xlUp:ss.exports.bool,xsDown:ss.exports.bool,xsUp:ss.exports.bool},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,r=void 0!==n&&n,i=e.noSSR,a=void 0!==i&&i,s=e.initialWidth;function l(e){var n=op(),i=e.theme||n,l=Ll({theme:i,name:"MuiWithWidth",props:qs({},e)}),c=l.initialWidth,u=l.width,d=Ds(l,["initialWidth","width"]),p=o.useState(!1),m=p[0],f=p[1];wg((function(){f(!0)}),[]);var h=mm(i.breakpoints.keys).reverse().reduce((function(e,t){var n=bg(i.breakpoints.up(t));return!e&&n?t:e}),null),g=qs({width:u||(m||a?h:void 0)||c||s},r?{theme:i}:{},{},d);return void 0===g.width?null:o.createElement(t,g)}return Qd(l,t),l}}()(Cg);ip((function(e){var t={display:"none"};return e.breakpoints.keys.reduce((function(n,r){return n["only".concat(ap(r))]=Ls({},e.breakpoints.only(r),t),n["".concat(r,"Up")]=Ls({},e.breakpoints.up(r),t),n["".concat(r,"Down")]=Ls({},e.breakpoints.down(r),t),n}),{})}),{name:"PrivateHiddenCss"})((function(e){var t=e.children,n=e.classes,r=e.className;e.lgDown,e.lgUp,e.mdDown,e.mdUp;var i=e.only;e.smDown,e.smUp,e.xlDown,e.xlUp,e.xsDown,e.xsUp,Ds(e,["children","classes","className","lgDown","lgUp","mdDown","mdUp","only","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);var a=op(),s=[];r&&s.push(r);for(var l=0;l<a.breakpoints.keys.length;l+=1){var c=a.breakpoints.keys[l],u=e["".concat(c,"Up")],d=e["".concat(c,"Down")];u&&s.push(n["".concat(c,"Up")]),d&&s.push(n["".concat(c,"Down")])}return i&&(Array.isArray(i)?i:[i]).forEach((function(e){s.push(n["only".concat(ap(e))])})),o.createElement("div",{className:s.join(" ")},t)}));var Mg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"inherit":i,s=e.component,l=void 0===s?"span":s,c=e.fontSize,u=void 0===c?"default":c,d=Ds(e,["classes","className","color","component","fontSize"]);return o.createElement(l,qs({className:Hd("material-icons",n.root,r,"inherit"!==a&&n["color".concat(ap(a))],"default"!==u&&n["fontSize".concat(ap(u))]),"aria-hidden":!0,ref:t},d))}));Mg.muiName="Icon",ip((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(Mg);var kg=o.forwardRef((function(e,t){var n=e.disableUnderline,r=e.classes,i=e.fullWidth,a=void 0!==i&&i,s=e.inputComponent,l=void 0===s?"input":s,c=e.multiline,u=void 0!==c&&c,d=e.type,p=void 0===d?"text":d,m=Ds(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(Gh,qs({classes:qs({},r,{root:Hd(r.root,!n&&r.underline),underline:null}),fullWidth:a,inputComponent:l,multiline:u,ref:t,type:p},m))}));kg.muiName="Input";var Eg=ip((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(kg),Tg=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"div":a,l=e.disablePointerEvents,c=void 0!==l&&l,u=e.disableTypography,d=void 0!==u&&u,p=e.position,m=e.variant,f=Ds(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),h=Ef()||{},g=m;return m&&h.variant,h&&!g&&(g=h.variant),o.createElement(kf.Provider,{value:null},o.createElement(s,qs({className:Hd(r.root,i,c&&r.disablePointerEvents,h.hiddenLabel&&r.hiddenLabel,{filled:r.filled}[g],{start:r.positionStart,end:r.positionEnd}[p],{dense:r.marginDense}[h.margin]),ref:t},f),"string"!=typeof n||d?n:o.createElement(sf,{color:"textSecondary"},n)))}));ip({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(Tg);var Ng=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disableAnimation,a=void 0!==i&&i;e.margin;var s=e.shrink;e.variant;var l=Ds(e,["classes","className","disableAnimation","margin","shrink","variant"]),c=Tf(),u=s;void 0===u&&c&&(u=c.filled||c.focused||c.adornedStart);var d=Fh({props:e,muiFormControl:c,states:["margin","variant"]});return o.createElement(ag,qs({"data-shrink":u,className:Hd(n.root,r,c&&n.formControl,!a&&n.animated,u&&n.shrink,{dense:n.marginDense}[d.margin],{filled:n.filled,outlined:n.outlined}[d.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},l))})),Lg=ip((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(Ng),qg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.value,l=e.valueBuffer,c=e.variant,u=void 0===c?"indeterminate":c,d=Ds(e,["classes","className","color","value","valueBuffer","variant"]),p=op(),m={},f={bar1:{},bar2:{}};if(("determinate"===u||"buffer"===u)&&void 0!==s){m["aria-valuenow"]=Math.round(s);var h=s-100;"rtl"===p.direction&&(h=-h),f.bar1.transform="translateX(".concat(h,"%)")}if("buffer"===u&&void 0!==l){var g=(l||0)-100;"rtl"===p.direction&&(g=-g),f.bar2.transform="translateX(".concat(g,"%)")}return o.createElement("div",qs({className:Hd(n.root,n["color".concat(ap(a))],r,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[u]),role:"progressbar"},m,{ref:t},d),"buffer"===u?o.createElement("div",{className:Hd(n.dashed,n["dashedColor".concat(ap(a))])}):null,o.createElement("div",{className:Hd(n.bar,n["barColor".concat(ap(a))],("indeterminate"===u||"query"===u)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[u]),style:f.bar1}),"determinate"===u?null:o.createElement("div",{className:Hd(n.bar,("indeterminate"===u||"query"===u)&&n.bar2Indeterminate,"buffer"===u?[n["color".concat(ap(a))],n.bar2Buffer]:n["barColor".concat(ap(a))]),style:f.bar2}))})),Dg=ip((function(e){var t=function(t){return"light"===e.palette.type?Ns(t,.62):Ts(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0px -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0px -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite",animationDelay:"1.15s"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0px -23px"},"50%":{opacity:0,backgroundPosition:"0px -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(qg),Og=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"primary":i,s=e.component,l=void 0===s?"a":s,c=e.onBlur,u=e.onFocus,d=e.TypographyClasses,p=e.underline,m=void 0===p?"hover":p,f=e.variant,h=void 0===f?"inherit":f,g=Ds(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),v=dm(),y=v.isFocusVisible,b=v.onBlurVisible,x=v.ref,S=o.useState(!1),w=S[0],C=S[1],M=_p(t,x);return o.createElement(sf,qs({className:Hd(n.root,n["underline".concat(ap(m))],r,w&&n.focusVisible,{button:n.button}[l]),classes:d,color:a,component:l,onBlur:function(e){w&&(b(),C(!1)),c&&c(e)},onFocus:function(e){y(e)&&C(!0),u&&u(e)},ref:M,variant:h},g))}));ip({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(Og);var Rg=o.createContext({}),Ag=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.component,s=void 0===a?"ul":a,l=e.dense,c=void 0!==l&&l,u=e.disablePadding,d=void 0!==u&&u,p=e.subheader,m=Ds(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=o.useMemo((function(){return{dense:c}}),[c]);return o.createElement(Rg.Provider,{value:f},o.createElement(s,qs({className:Hd(r.root,i,c&&r.dense,!d&&r.padding,p&&r.subheader),ref:t},m),p,n))})),Pg=ip({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Ag),Ig="undefined"==typeof window?o.useEffect:o.useLayoutEffect,zg=o.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,a=void 0!==i&&i,s=e.button,c=void 0!==s&&s,u=e.children,d=e.classes,p=e.className,m=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,g=e.ContainerProps,v=(g=void 0===g?{}:g).className,y=Ds(g,["className"]),b=e.dense,x=e.disabled,S=void 0!==x&&x,w=e.disableGutters,C=void 0!==w&&w,M=e.divider,k=void 0!==M&&M,E=e.focusVisibleClassName,T=e.selected,N=void 0!==T&&T,L=Ds(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),q=o.useContext(Rg),D={dense:b||q.dense||!1,alignItems:r},O=o.useRef(null);Ig((function(){a&&O.current&&O.current.focus()}),[a]);var R=o.Children.toArray(u),A=R.length&&Jh(R[R.length-1],["ListItemSecondaryAction"]),P=_p(o.useCallback((function(e){O.current=l.findDOMNode(e)}),[]),t),I=qs({className:Hd(d.root,p,D.dense&&d.dense,!C&&d.gutters,k&&d.divider,S&&d.disabled,c&&d.button,"center"!==r&&d.alignItemsFlexStart,A&&d.secondaryAction,N&&d.selected),disabled:S},L),z=m||"li";return c&&(I.component=m||"div",I.focusVisibleClassName=Hd(d.focusVisible,E),z=xm),A?(z=I.component||m?z:"div","li"===h&&("li"===z?z="div":"li"===I.component&&(I.component="div")),o.createElement(Rg.Provider,{value:D},o.createElement(h,qs({className:Hd(d.container,v),ref:P},y),o.createElement(z,I,R),R.pop()))):o.createElement(Rg.Provider,{value:D},o.createElement(z,qs({ref:P},I),R))})),Bg=ip((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"})(zg),Fg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ds(e,["classes","className"]),a=o.useContext(Rg);return o.createElement("div",qs({className:Hd(n.root,r,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},i))}));ip({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(Fg);var Hg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ds(e,["classes","className"]),a=o.useContext(Rg);return o.createElement("div",qs({className:Hd(n.root,r,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},i))})),jg=ip((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Hg),Wg=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Ds(e,["classes","className"]);return o.createElement("div",qs({className:Hd(n.root,r),ref:t},i))}));Wg.muiName="ListItemSecondaryAction",ip({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(Wg);var Vg=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,a=e.disableTypography,s=void 0!==a&&a,l=e.inset,c=void 0!==l&&l,u=e.primary,d=e.primaryTypographyProps,p=e.secondary,m=e.secondaryTypographyProps,f=Ds(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),h=o.useContext(Rg).dense,g=null!=u?u:n;null==g||g.type===sf||s||(g=o.createElement(sf,qs({variant:h?"body2":"body1",className:r.primary,component:"span"},d),g));var v=p;return null==v||v.type===sf||s||(v=o.createElement(sf,qs({variant:"body2",className:r.secondary,color:"textSecondary"},m),v)),o.createElement("div",qs({className:Hd(r.root,i,h&&r.dense,c&&r.inset,g&&v&&r.multiline),ref:t},f),g,v)})),_g=ip({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Vg),Ug=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"li":s,c=e.disableGutters,u=void 0!==c&&c,d=e.disableSticky,p=void 0!==d&&d,m=e.inset,f=void 0!==m&&m,h=Ds(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return o.createElement(l,qs({className:Hd(n.root,r,"default"!==a&&n["color".concat(ap(a))],f&&n.inset,!p&&n.sticky,!u&&n.gutters),ref:t},h))}));function $g(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Kg(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Gg(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Yg(e){return"function"==typeof e?e():e}ip((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(Ug);var Xg=o.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,a=void 0===i?{vertical:"top",horizontal:"left"}:i,s=e.anchorPosition,c=e.anchorReference,u=void 0===c?"anchorEl":c,d=e.children,p=e.classes,m=e.className,f=e.container,h=e.elevation,g=void 0===h?8:h,v=e.getContentAnchorEl,y=e.marginThreshold,b=void 0===y?16:y,x=e.onEnter,S=e.onEntered,w=e.onEntering,C=e.onExit,M=e.onExited,k=e.onExiting,E=e.open,T=e.PaperProps,N=void 0===T?{}:T,L=e.transformOrigin,q=void 0===L?{vertical:"top",horizontal:"left"}:L,D=e.TransitionComponent,O=void 0===D?vg:D,R=e.transitionDuration,A=void 0===R?"auto":R,P=e.TransitionProps,I=void 0===P?{}:P,z=Ds(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"]),B=o.useRef(),F=o.useCallback((function(e){if("anchorPosition"===u)return s;var t=Yg(r),n=(t instanceof rh(t).Element?t:_f(B.current).body).getBoundingClientRect(),o=0===e?a.vertical:"center";return{top:n.top+$g(n,o),left:n.left+Kg(n,a.horizontal)}}),[r,a.horizontal,a.vertical,s,u]),H=o.useCallback((function(e){var t=0;if(v&&"anchorEl"===u){var n=v(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[a.vertical,u,v]),j=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:$g(e,q.vertical)+t,horizontal:Kg(e,q.horizontal)}}),[q.horizontal,q.vertical]),W=o.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},o=j(n,t);if("none"===u)return{top:null,left:null,transformOrigin:Gg(o)};var i=F(t),a=i.top-o.vertical,s=i.left-o.horizontal,l=a+n.height,c=s+n.width,d=rh(Yg(r)),p=d.innerHeight-b,m=d.innerWidth-b;if(a<b){var f=a-b;a-=f,o.vertical+=f}else if(l>p){var h=l-p;a-=h,o.vertical+=h}if(s<b){var g=s-b;s-=g,o.horizontal+=g}else if(c>m){var v=c-m;s-=v,o.horizontal+=v}return{top:"".concat(a,"px"),left:"".concat(s,"px"),transformOrigin:Gg(o)}}),[r,u,F,H,j,b]),V=o.useCallback((function(e){var t=W(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[W]),_=o.useCallback((function(e){B.current=l.findDOMNode(e)}),[]),U=o.useMemo((function(){if(E)return wh((function(){V(B.current)}))}),[E,V]);o.useImperativeHandle(n,(function(){return E?{updatePosition:U}:null}),[E,U]),o.useEffect((function(){if(U)return window.addEventListener("resize",U),function(){window.removeEventListener("resize",U),U.clear()}}),[U]);var $=A;"auto"!==A||O.muiSupportAuto||($=void 0);var K=f||(r?_f(Yg(r)).body:void 0);return o.createElement(fh,qs({container:K,open:E,ref:t,BackdropProps:{invisible:!0},className:Hd(p.root,m)},z),o.createElement(O,qs({appear:!0,in:E,onEnter:x,onEntered:S,onExit:C,onExited:M,onExiting:k,timeout:$},I,{onEntering:Zf((function(e,t){w&&w(e,t),V(e)}),I.onEntering)}),o.createElement(lp,qs({elevation:g,ref:_},N,{className:Hd(p.paper,N.className)}),d)))})),Jg=ip({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Xg);function Zg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Qg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ev(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),void 0!==n&&(0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join(""))))}function tv(e,t,n,r,o){for(var i=!1,a=r(e,t,!!t&&n);a;){if(a===e.firstChild){if(i)return!1;i=!0}if(a.hasAttribute("tabindex")&&!a.disabled&&"true"!==a.getAttribute("aria-disabled")&&ev(a,o))return a.focus(),!0;a=r(e,a,n)}return!1}var nv="undefined"==typeof window?o.useEffect:o.useLayoutEffect,rv=o.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,i=void 0!==r&&r,a=e.autoFocusItem,s=void 0!==a&&a,c=e.children,u=e.className,d=e.onKeyDown,p=e.disableListWrap,m=void 0!==p&&p,f=e.variant,h=void 0===f?"selectedMenu":f,g=Ds(e,["actions","autoFocus","autoFocusItem","children","className","onKeyDown","disableListWrap","variant"]),v=o.useRef(null),y=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nv((function(){i&&v.current.focus()}),[i]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!v.current.style.width;if(e.clientHeight<v.current.clientHeight&&n){var r="".concat(nh(),"px");v.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,v.current.style.width="calc(100% + ".concat(r,")")}return v.current}}}),[]);var b=_p(o.useCallback((function(e){v.current=l.findDOMNode(e)}),[]),t),x=-1;o.Children.forEach(c,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===h&&e.props.selected||-1===x)&&(x=t))}));var S=o.Children.map(c,(function(e,t){if(t===x){var n={};if(s&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(n.tabIndex=0),null!==n)return o.cloneElement(e,n)}return e}));return o.createElement(Pg,qs({role:"menu",ref:b,className:u,onKeyDown:function(e){var t=v.current,n=e.key,r=_f(t).activeElement;if("ArrowDown"===n)e.preventDefault(),tv(t,r,m,Zg);else if("ArrowUp"===n)e.preventDefault(),tv(t,r,m,Qg);else if("Home"===n)e.preventDefault(),tv(t,null,m,Zg);else if("End"===n)e.preventDefault(),tv(t,null,m,Qg);else if(1===n.length){var o=y.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&ev(r,o);o.previousKeyMatched&&(s||tv(t,r,!1,Zg,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:i?0:-1},g),S)})),ov={vertical:"top",horizontal:"right"},iv={vertical:"top",horizontal:"left"},av=o.forwardRef((function(e,t){var n=e.autoFocus,r=void 0===n||n,i=e.children,a=e.classes,s=e.disableAutoFocusItem,c=void 0!==s&&s,u=e.MenuListProps,d=void 0===u?{}:u,p=e.onClose,m=e.onEntering,f=e.open,h=e.PaperProps,g=void 0===h?{}:h,v=e.PopoverClasses,y=e.transitionDuration,b=void 0===y?"auto":y,x=e.variant,S=void 0===x?"selectedMenu":x,w=Ds(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),C=op(),M=r&&!c&&f,k=o.useRef(null),E=o.useRef(null),T=-1;o.Children.map(i,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("menu"!==S&&e.props.selected||-1===T)&&(T=t))}));var N=o.Children.map(i,(function(e,t){return t===T?o.cloneElement(e,{ref:function(t){E.current=l.findDOMNode(t),Vp(e.ref,t)}}):e}));return o.createElement(Jg,qs({getContentAnchorEl:function(){return E.current},classes:v,onClose:p,onEntering:function(e,t){k.current&&k.current.adjustStyleForScrollbar(e,C),m&&m(e,t)},anchorOrigin:"rtl"===C.direction?ov:iv,transformOrigin:"rtl"===C.direction?ov:iv,PaperProps:qs({},g,{classes:qs({},g.classes,{root:a.paper})}),open:f,ref:t,transitionDuration:b},w),o.createElement(rv,qs({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:k,autoFocus:r&&(-1===T||c),autoFocusItem:M,variant:S},d,{className:Hd(a.list,d.className)}),N))})),sv=ip({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(av),lv=o.forwardRef((function(e,t){var n,r=e.classes,i=e.className,a=e.component,s=void 0===a?"li":a,l=e.disableGutters,c=void 0!==l&&l,u=e.role,d=void 0===u?"menuitem":u,p=e.selected,m=e.tabIndex,f=Ds(e,["classes","className","component","disableGutters","role","selected","tabIndex"]);return e.disabled||(n=void 0!==m?m:-1),o.createElement(Bg,qs({button:!0,role:d,tabIndex:n,component:s,selected:p,disableGutters:c,classes:{dense:r.dense},className:Hd(r.root,i,p&&r.selected,!c&&r.gutters),ref:t},f))})),cv=ip((function(e){return{root:qs({},e.typography.body1,Ls({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:qs({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(lv),uv=o.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,i=e.backButton,a=e.classes,s=e.className,l=e.LinearProgressProps,c=e.nextButton,u=e.position,d=void 0===u?"bottom":u,p=e.steps,m=e.variant,f=void 0===m?"dots":m,h=Ds(e,["activeStep","backButton","classes","className","LinearProgressProps","nextButton","position","steps","variant"]);return o.createElement(lp,qs({square:!0,elevation:0,className:Hd(a.root,a["position".concat(ap(d))],s),ref:t},h),i,"text"===f&&o.createElement(o.Fragment,null,r+1," / ",p),"dots"===f&&o.createElement("div",{className:a.dots},mm(new Array(p)).map((function(e,t){return o.createElement("div",{key:t,className:Hd(a.dot,t===r&&a.dotActive)})}))),"progress"===f&&o.createElement(Dg,qs({className:a.progress,variant:"determinate",value:Math.ceil(r/(p-1)*100)},l)),c)}));ip((function(e){return{root:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:e.palette.background.default,padding:8},positionBottom:{position:"fixed",bottom:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionTop:{position:"fixed",top:0,left:0,right:0,zIndex:e.zIndex.mobileStepper},positionStatic:{},dots:{display:"flex",flexDirection:"row"},dot:{backgroundColor:e.palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},dotActive:{backgroundColor:e.palette.primary.main},progress:{width:"50%"}}}),{name:"MuiMobileStepper"})(uv);var dv=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disabled,a=e.IconComponent,s=e.inputRef,l=e.variant,c=void 0===l?"standard":l,u=Ds(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return o.createElement(o.Fragment,null,o.createElement("select",qs({className:Hd(n.root,n.select,n[c],r,i&&n.disabled),disabled:i,ref:s||t},u)),e.multiple?null:o.createElement(a,{className:Hd(n.icon,n["icon".concat(ap(c))])}))})),pv=uf(o.createElement("path",{d:"M7 10l5 5 5-5z"})),mv=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper}},filled:{},outlined:{borderRadius:e.shape.borderRadius},selectMenu:{height:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",color:e.palette.action.active,pointerEvents:"none"},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7}}},fv=o.createElement(Eg,null),hv=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.IconComponent,a=void 0===i?pv:i,s=e.input,l=void 0===s?fv:s,c=e.inputProps;e.variant;var u=Ds(e,["children","classes","IconComponent","input","inputProps","variant"]),d=Fh({props:e,muiFormControl:Tf(),states:["variant"]});return o.cloneElement(l,qs({inputComponent:dv,select:!0,inputProps:qs({children:n,classes:r,IconComponent:a,variant:d.variant,type:void 0},c,{},l?l.props.inputProps:{}),ref:t},u))}));hv.muiName="Select",ip(mv,{name:"MuiNativeSelect"})(hv);var gv=o.forwardRef((function(e,t){e.children;var n=e.classes,r=e.className,i=e.labelWidth,a=e.notched,s=e.style,l=Ds(e,["children","classes","className","labelWidth","notched","style"]),c="rtl"===op().direction?"right":"left",u=i>0?.75*i+8:0;return o.createElement("fieldset",qs({"aria-hidden":!0,style:qs(Ls({},"padding".concat(ap(c)),8+(a?0:u/2)),s),className:Hd(n.root,r),ref:t},l),o.createElement("legend",{className:n.legend,style:{width:a?u:.01}},o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),vv=ip((function(e){var t="rtl"===e.direction?"right":"left";return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:0,pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,transition:e.transitions.create(["padding-".concat(t),"border-color","border-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}}}),{name:"PrivateNotchedOutline"})(gv),yv=o.forwardRef((function(e,t){var n=e.classes,r=e.fullWidth,i=void 0!==r&&r,a=e.inputComponent,s=void 0===a?"input":a,l=e.labelWidth,c=void 0===l?0:l,u=e.multiline,d=void 0!==u&&u,p=e.notched,m=e.type,f=void 0===m?"text":m,h=Ds(e,["classes","fullWidth","inputComponent","labelWidth","multiline","notched","type"]);return o.createElement(Gh,qs({renderSuffix:function(e){return o.createElement(vv,{className:n.notchedOutline,labelWidth:c,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)})},classes:qs({},n,{root:Hd(n.root,n.underline),notchedOutline:null}),fullWidth:i,inputComponent:s,multiline:d,ref:t,type:f},h))}));yv.muiName="Input";var bv=ip((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===e.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===e.palette.type?"#fff":null,borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputSelect:{paddingRight:24},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(yv),xv="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Sv=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(xv&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();
|
|
24
24
|
/**!
|
|
25
25
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
26
26
|
* @version 1.16.0
|
|
@@ -44,4 +44,4 @@ Object.defineProperty(zs,"__esModule",{value:!0});var Bs="function"==typeof Symb
|
|
|
44
44
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
45
45
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
46
46
|
* SOFTWARE.
|
|
47
|
-
*/var Sv=bv&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),xv))}};function wv(e){return e&&"[object Function]"==={}.toString.call(e)}function Cv(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Mv(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function kv(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Cv(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:kv(Mv(e))}function Ev(e){return e&&e.referenceNode?e.referenceNode:e}var Tv=bv&&!(!window.MSInputMethodContext||!document.documentMode),Nv=bv&&/MSIE 10/.test(navigator.userAgent);function Lv(e){return 11===e?Tv:10===e?Nv:Tv||Nv}function Dv(e){if(!e)return document.documentElement;for(var t=Lv(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Cv(n,"position")?Dv(n):n:e?e.ownerDocument.documentElement:document.documentElement}function qv(e){return null!==e.parentNode?qv(e.parentNode):e}function Ov(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&Dv(a.firstElementChild)!==a?Dv(l):l;var c=qv(e);return c.host?Ov(c.host,t):Ov(e,qv(t).host)}function Rv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function Av(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Rv(t,"top"),o=Rv(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function Pv(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function Iv(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Lv(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function zv(e){var t=e.body,n=e.documentElement,r=Lv(10)&&getComputedStyle(n);return{height:Iv("Height",t,n,r),width:Iv("Width",t,n,r)}}var Bv=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Fv=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Hv=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},jv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Wv(e){return jv({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Vv(e){var t={};try{if(Lv(10)){t=e.getBoundingClientRect();var n=Rv(e,"top"),r=Rv(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?zv(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=Cv(e);l-=Pv(u,"x"),c-=Pv(u,"y"),o.width-=l,o.height-=c}return Wv(o)}function Uv(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Lv(10),o="HTML"===t.nodeName,i=Vv(e),a=Vv(t),s=kv(e),l=Cv(t),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Wv({top:i.top-a.top-c,left:i.left-a.left-u,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop,10),m=parseFloat(l.marginLeft,10);d.top-=c-p,d.bottom-=c-p,d.left-=u-m,d.right-=u-m,d.marginTop=p,d.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=Av(d,t)),d}function _v(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Uv(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Rv(n),s=t?0:Rv(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return Wv(l)}function $v(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Cv(e,"position"))return!0;var n=Mv(e);return!!n&&$v(n)}function Kv(e){if(!e||!e.parentElement||Lv())return document.documentElement;for(var t=e.parentElement;t&&"none"===Cv(t,"transform");)t=t.parentElement;return t||document.documentElement}function Gv(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?Kv(e):Ov(e,Ev(t));if("viewport"===r)i=_v(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=kv(Mv(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Uv(s,a,o);if("HTML"!==s.nodeName||$v(a))i=l;else{var c=zv(e.ownerDocument),u=c.height,d=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=d+l.left}}var p="number"==typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function Yv(e){return e.width*e.height}function Xv(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Gv(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return jv({key:e},s[e],{area:Yv(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Jv(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?Kv(t):Ov(t,Ev(n));return Uv(n,o,r)}function Zv(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Qv(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function ey(e,t,n){n=n.split("-")[0];var r=Zv(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[Qv(s)],o}function ty(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ny(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=ty(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&wv(n)&&(t.offsets.popper=Wv(t.offsets.popper),t.offsets.reference=Wv(t.offsets.reference),t=n(t,e))})),t}function ry(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Jv(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Xv(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ey(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ny(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function oy(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function iy(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function ay(){return this.state.isDestroyed=!0,oy(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[iy("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function sy(e){var t=e.ownerDocument;return t?t.defaultView:window}function ly(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||ly(kv(i.parentNode),t,n,r),r.push(i)}function cy(e,t,n,r){n.updateBound=r,sy(e).addEventListener("resize",n.updateBound,{passive:!0});var o=kv(e);return ly(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function uy(){this.state.eventsEnabled||(this.state=cy(this.reference,this.options,this.state,this.scheduleUpdate))}function dy(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,sy(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function py(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function my(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&py(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var fy=bv&&/Firefox/i.test(navigator.userAgent);function hy(e,t,n){var r=ty(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var gy=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],vy=gy.slice(3);function yy(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=vy.indexOf(e),r=vy.slice(n+1).concat(vy.slice(0,n));return t?r.reverse():r}var by="flip",xy="clockwise",Sy="counterclockwise";function wy(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(ty(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return Wv(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){py(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Cy={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:Hv({},l,i[l]),end:Hv({},l,i[l]+i[c]-a[c])};e.offsets.popper=jv({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],l=void 0;return l=py(+n)?[+n,0]:wy(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Dv(e.instance.popper);e.instance.reference===n&&(n=Dv(n));var r=iy("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=Gv(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),Hv({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),Hv({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=jv({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!hy(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",m=l?"bottom":"right",f=Zv(r)[c];s[m]-f<a[d]&&(e.offsets.popper[d]-=a[d]-(s[m]-f)),s[d]+f>a[m]&&(e.offsets.popper[d]+=s[d]+f-a[m]),e.offsets.popper=Wv(e.offsets.popper);var h=s[d]+s[c]/2-f/2,g=Cv(e.instance.popper),v=parseFloat(g["margin"+u],10),y=parseFloat(g["border"+u+"Width"],10),b=h-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[c]-f,b),0),e.arrowElement=r,e.offsets.arrow=(Hv(n={},d,Math.round(b)),Hv(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(oy(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Gv(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Qv(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case by:a=[r,o];break;case xy:a=yy(r);break;case Sy:a=yy(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=Qv(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),m=d(c.left)<d(n.left),f=d(c.right)>d(n.right),h=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===r&&m||"right"===r&&f||"top"===r&&h||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&m||y&&"end"===i&&f||!y&&"start"===i&&h||!y&&"end"===i&&g),x=!!t.flipVariationsByContent&&(y&&"start"===i&&f||y&&"end"===i&&m||!y&&"start"===i&&g||!y&&"end"===i&&h),S=b||x;(p||v||S)&&(e.flipped=!0,(p||v)&&(r=a[l+1]),S&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=jv({},e.offsets.popper,ey(e.instance.popper,e.offsets.reference,e.placement)),e=ny(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=Qv(t),e.offsets.popper=Wv(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!hy(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=ty(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=ty(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=Dv(e.instance.popper),l=Vv(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(o.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?i:a:s,m=t?i:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!fy),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",m=iy("transform"),f=void 0,h=void 0;if(h="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,f="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&m)c[m]="translate3d("+f+"px, "+h+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===p?-1:1;c[d]=h*g,c[p]=f*v,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=jv({},y,e.attributes),e.styles=jv({},c,e.styles),e.arrowStyles=jv({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return my(e.instance.popper,e.styles),function(e,t){Object.keys(t).forEach((function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)}))}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&my(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=Jv(o,t,e,n.positionFixed),a=Xv(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),my(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},My=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Bv(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Sv(this.update.bind(this)),this.options=jv({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(jv({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=jv({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return jv({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&wv(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return Fv(e,[{key:"update",value:function(){return ry.call(this)}},{key:"destroy",value:function(){return ay.call(this)}},{key:"enableEventListeners",value:function(){return uy.call(this)}},{key:"disableEventListeners",value:function(){return dy.call(this)}}]),e}();function ky(e){return"function"==typeof e?e():e}My.Utils=("undefined"!=typeof window?window:global).PopperUtils,My.placements=gy,My.Defaults=Cy;var Ey="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,Ty={},Ny=o.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,i=e.container,a=e.disablePortal,s=void 0!==a&&a,l=e.keepMounted,c=void 0!==l&&l,u=e.modifiers,d=e.open,p=e.placement,m=void 0===p?"bottom":p,f=e.popperOptions,h=void 0===f?Ty:f,g=e.popperRef,v=e.transition,y=void 0!==v&&v,b=Ds(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition"]),x=o.useRef(null),S=Vp(x,t),w=o.useRef(null),C=Vp(w,g),M=o.useRef(C);Ey((function(){M.current=C}),[C]),o.useImperativeHandle(g,(function(){return w.current}),[]);var k=o.useState(!0),E=k[0],T=k[1],N=function(e){if("rtl"!==("undefined"!=typeof window&&document.body.getAttribute("dir")||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(m),L=o.useState(N),D=L[0],q=L[1],O=o.useCallback((function(){if(x.current&&n&&d){w.current&&(w.current.destroy(),M.current(null));var e=function(e){q(e.placement)};ky(n);var t=new My(ky(n),x.current,Ls({placement:N},h,{modifiers:Ls({},s?{}:{preventOverflow:{boundariesElement:"window"}},{},u,{},h.modifiers),onCreate:Jf(e,h.onCreate),onUpdate:Jf(e,h.onUpdate)}));M.current(t)}}),[n,s,u,d,N,h]),R=o.useCallback((function(e){Wp(S,e),O()}),[S,O]),A=function(){w.current&&(w.current.destroy(),M.current(null))};if(o.useEffect((function(){O()}),[O]),o.useEffect((function(){return function(){A()}}),[]),o.useEffect((function(){d||y||A()}),[d,y]),!c&&!d&&(!y||E))return null;var P={placement:D};return y&&(P.TransitionProps={in:d,onEnter:function(){T(!1)},onExited:function(){T(!0),A()}}),o.createElement(Xf,{disablePortal:s,container:i},o.createElement("div",Ls({ref:R,role:"tooltip"},b,{style:Ls({position:"fixed",top:0,left:0},b.style)}),"function"==typeof r?r(P):r))})),Ly=cf(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Dy=cf(o.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),qy=o.createElement(Ly,null);var Oy=op((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var t=e.checked,n=e.classes;return o.createElement("div",{className:Fd(n.root,t&&n.checked)},qy,o.createElement(Dy,{className:n.layer}))})),Ry=o.createContext(),Ay=o.createElement(Oy,{checked:!0}),Py=o.createElement(Oy,null),Iy=o.forwardRef((function(e,t){var n=e.checked,r=e.classes,i=e.color,a=void 0===i?"secondary":i,s=e.name,l=e.onChange,c=Ds(e,["checked","classes","color","name","onChange"]),u=o.useContext(Ry),d=n,p=Jf(l,u&&u.onChange),m=s;return u&&(void 0===d&&(d=u.value===e.value),void 0===m&&(m=u.name)),o.createElement(Df,Ls({color:a,type:"radio",icon:Py,checkedIcon:Ay,classes:{root:Fd(r.root,r["color".concat(ip(a))]),checked:r.checked,disabled:r.disabled},name:m,checked:d,onChange:p,ref:t},c))}));function zy(e){return(zy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function By(e){return(By="function"==typeof Symbol&&"symbol"===zy(Symbol.iterator)?function(e){return zy(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":zy(e)})(e)}function Fy(e,t){return"object"===By(t)&&null!==t?e===t:String(e)===String(t)}op((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:ks(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:ks(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(Iy),o.forwardRef((function(e,t){var n=e.actions,r=e.children,i=e.name,a=e.value,s=e.onChange,l=Ds(e,["actions","children","name","value","onChange"]),c=o.useRef(null),u=o.useRef(null!=a).current,d=o.useState((function(){return u?null:e.defaultValue})),p=d[0],m=d[1];o.useImperativeHandle(n,(function(){return{focus:function(){var e=c.current.querySelector("input:not(:disabled):checked");e||(e=c.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var f={name:i,onChange:function(e){u||m(e.target.value),s&&s(e,e.target.value)},value:u?a:p},h=Vp(t,c);return o.createElement(tg,Ls({role:"radiogroup",ref:h},l),o.createElement(Ry.Provider,{value:f},r))})),o.Component;var Hy=o.forwardRef((function(e,t){var n=e.autoFocus,r=e.autoWidth,i=e.children,a=e.classes,s=e.className,l=e.defaultValue,c=e.disabled,u=e.displayEmpty,d=e.labelId,p=e.IconComponent,m=e.inputRef,f=e.MenuProps,h=void 0===f?{}:f,g=e.multiple,v=e.name,y=e.onBlur,b=e.onChange,x=e.onClose,S=e.onFocus,w=e.onOpen,C=e.open,M=e.readOnly,k=e.renderValue;e.required;var E=e.SelectDisplayProps,T=void 0===E?{}:E,N=e.tabIndex;e.type;var L=e.value,D=e.variant,q=void 0===D?"standard":D,O=Ds(e,["autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","labelId","IconComponent","inputRef","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),R=o.useRef(null!=L).current,A=o.useState(l),P=A[0],I=A[1],z=R?L:P,B=o.useRef(null),F=o.useState(null),H=F[0],j=F[1],W=o.useRef(null!=C).current,V=o.useState(),U=V[0],_=V[1],$=o.useState(!1),K=$[0],G=$[1],Y=Vp(t,m);o.useImperativeHandle(Y,(function(){return{focus:function(){H.focus()},node:B.current,value:z}}),[H,z]),o.useEffect((function(){n&&H&&H.focus()}),[n,H]);var X,J,Z=function(e,t){e?w&&w(t):(H.focus(),x&&x(t)),W||(_(r?null:H.clientWidth),G(e))},Q=function(e){return function(t){var n;if(g||Z(!1,t),g){n=Array.isArray(z)?pm(z):[];var r=z.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;R||I(n),b&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:v}}),b(t,e))}},ee=null!==H&&(W?C:K);delete O["aria-invalid"];var te=[],ne=!1;(Uh({value:z})||u)&&(k?X=k(z):ne=!0);var re=o.Children.map(i,(function(e){if(!o.isValidElement(e))return null;var t;if(g){if(!Array.isArray(z))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(t=z.some((function(t){return Fy(t,e.props.value)})))&&ne&&te.push(e.props.children)}else(t=Fy(z,e.props.value))&&ne&&(J=e.props.children);return o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:Q(e),role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ne&&(X=g?te.join(", "):J);var oe,ie=U;!r&&W&&H&&(ie=H.clientWidth),oe=void 0!==N?N:c?null:0;var ae=T.id||(v?"mui-component-select-".concat(v):void 0);return o.createElement(o.Fragment,null,o.createElement("div",Ls({className:Fd(a.root,a.select,a.selectMenu,a[q],s,c&&a.disabled),ref:j,tabIndex:oe,role:"button","aria-expanded":ee?"true":void 0,"aria-labelledby":"".concat(d||""," ").concat(ae||""),"aria-haspopup":"listbox",onKeyDown:function(e){if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Z(!0,e))}},onClick:c||M?null:function(e){Z(!0,e)},onBlur:function(e){!ee&&y&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:v}}),y(e))},onFocus:S},T,{id:ae}),function(e){return null==e||"string"==typeof e&&!e.trim()}(X)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):X),o.createElement("input",Ls({value:Array.isArray(z)?z.join(","):z,name:v,ref:B,type:"hidden",autoFocus:n},O)),o.createElement(p,{className:Fd(a.icon,a["icon".concat(ip(q))],ee&&a.iconOpen)}),o.createElement(av,Ls({id:"menu-".concat(v||""),anchorEl:H,open:ee,onClose:function(e){Z(!1,e)}},h,{MenuListProps:Ls({"aria-labelledby":d,role:"listbox",disableListWrap:!0},h.MenuListProps),PaperProps:Ls({},h.PaperProps,{style:Ls({minWidth:ie},null!=h.PaperProps?h.PaperProps.style:null)})}),re))})),jy=pv,Wy=o.createElement(kg,null),Vy=o.createElement(Yh,null),Uy=o.forwardRef((function e(t,n){var r=t.autoWidth,i=void 0!==r&&r,a=t.children,s=t.classes,l=t.displayEmpty,c=void 0!==l&&l,u=t.IconComponent,d=void 0===u?dv:u,p=t.id,m=t.input,f=t.inputProps,h=t.labelId,g=t.MenuProps,v=t.multiple,y=void 0!==v&&v,b=t.native,x=void 0!==b&&b,S=t.onClose,w=t.onOpen,C=t.open,M=t.renderValue,k=t.SelectDisplayProps,E=t.variant,T=void 0===E?"standard":E,N=t.labelWidth,L=void 0===N?0:N,D=Ds(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant","labelWidth"]),q=x?uv:Hy,O=Bh({props:t,muiFormControl:Ef(),states:["variant"]}).variant||T,R=m||{standard:Wy,outlined:o.createElement(yv,{labelWidth:L}),filled:Vy}[O];return o.cloneElement(R,Ls({inputComponent:q,select:!0,inputProps:Ls({children:a,IconComponent:d,variant:O,type:void 0,multiple:y},x?{}:{autoWidth:i,displayEmpty:c,labelId:h,MenuProps:g,onClose:S,onOpen:w,open:C,renderValue:M,SelectDisplayProps:Ls({id:p},k)},{},f,{classes:f?vd({baseClasses:s,newClasses:f.classes,Component:e}):s},m?m.props.inputProps:{}),ref:n},D))}));Uy.muiName="Select";var _y=op(jy,{name:"MuiSelect"})(Uy);var $y=op((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Ls({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,left:"calc(-50% + -4px)",transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,i=e.open,a=e.value,s=e.valueLabelDisplay;return"off"===s?t:o.cloneElement(t,{className:Fd(t.props.className,(i||"on"===s)&&n.open,n.thumb)},o.createElement("span",{className:Fd(n.offset,r)},o.createElement("span",{className:n.circle},o.createElement("span",{className:n.label},a))))}));function Ky(e,t){return e-t}function Gy(e,t,n){return e<t?t:e>n?n:e}function Yy(e,t){return e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null).index}function Xy(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Jy(e,t,n){return 100*(e-t)/(n-t)}function Zy(e,t){var n=Math.round(e/t)*t;return Number(n.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function Qy(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=pm(t);return i[o]=r,i}function eb(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[data-index="'.concat(n,'"]')).focus(),r&&r(n)}var tb={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},nb=[],rb=function(e){return e},ob=o.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],i=e["aria-valuetext"],a=e.classes,s=e.className,l=e.color,c=void 0===l?"primary":l,u=e.component,d=void 0===u?"span":u,p=e.defaultValue,m=e.disabled,f=void 0!==m&&m,h=e.getAriaLabel,g=e.getAriaValueText,v=e.marks,y=void 0===v?nb:v,b=e.max,x=void 0===b?100:b,S=e.min,w=void 0===S?0:S,C=e.name,M=e.onChange,k=e.onChangeCommitted,E=e.onMouseDown,T=e.orientation,N=void 0===T?"horizontal":T,L=e.step,D=void 0===L?1:L,q=e.ThumbComponent,O=void 0===q?"span":q,R=e.track,A=void 0===R?"normal":R,P=e.value,I=e.ValueLabelComponent,z=void 0===I?$y:I,B=e.valueLabelDisplay,F=void 0===B?"off":B,H=e.valueLabelFormat,j=void 0===H?rb:H,W=Ds(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),V=rp(),U=o.useRef(null!=P).current,_=o.useRef(),$=o.useState(-1),K=$[0],G=$[1],Y=o.useState(-1),X=Y[0],J=Y[1],Z=o.useState(p),Q=Z[0],ee=Z[1],te=U?P:Q,ne=Array.isArray(te),re=o.useRef(),oe=ne?pm(te).sort(Ky):[te];oe=oe.map((function(e){return Gy(e,w,x)}));var ie=!0===y&&null!==D?pm(Array(Math.floor((x-w)/D)+1)).map((function(e,t){return{value:w+D*t}})):y;re.current={source:te};var ae=um(),se=ae.isFocusVisible,le=ae.onBlurVisible,ce=ae.ref,ue=o.useState(-1),de=ue[0],pe=ue[1],me=o.useRef(),fe=Vp(ce,me),he=Vp(t,fe),ge=Zp((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));se(e)&&pe(t),J(t)})),ve=Zp((function(){-1!==de&&(pe(-1),le()),J(-1)})),ye=Zp((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));J(t)})),be=Zp((function(){J(-1)})),xe=Zp((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=oe[n],o=(x-w)/10,i=ie.map((function(e){return e.value})),a=i.indexOf(r);switch(e.key){case"Home":t=w;break;case"End":t=x;break;case"PageUp":D&&(t=r+o);break;case"PageDown":D&&(t=r-o);break;case"ArrowRight":case"ArrowUp":t=D?r+D:i[a+1]||i[i.length-1];break;case"ArrowLeft":case"ArrowDown":t=D?r-D:i[a-1]||i[0];break;default:return}if(e.preventDefault(),D&&(t=Zy(t,D)),t=Gy(t,w,x),ne){var s=t;t=Qy({values:oe,source:te,newValue:t,index:n}).sort(Ky),eb({sliderRef:me,activeIndex:t.indexOf(s)})}U||ee(t),pe(n),M&&M(e,t),k&&k(e,t)})),Se=o.useRef(),we=N;"rtl"===V.direction&&"vertical"!==N&&(we+="-reverse");var Ce=o.useCallback((function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=e.values,s=e.source,l=me.current.getBoundingClientRect(),c=l.width,u=l.height,d=l.bottom,p=l.left;if(t=0===we.indexOf("vertical")?(d-r.y)/u:(r.x-p)/c,-1!==we.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,w,x),D)n=Zy(n,D);else{var m=ie.map((function(e){return e.value}));n=m[Yy(m,n)]}n=Gy(n,w,x);var f=0;if(ne){var h=n;f=(n=Qy({values:a,source:s,newValue:n,index:f=i?Se.current:Yy(a,n)}).sort(Ky)).indexOf(h),Se.current=f}return{newValue:n,activeIndex:f}}),[x,w,we,ne,D,ie]),Me=Zp((function(e){var t=Xy(e,_);if(t){var n=Ce({finger:t,move:!0,values:oe,source:te}),r=n.newValue,o=n.activeIndex;eb({sliderRef:me,activeIndex:o,setActive:G}),U||ee(r),M&&M(e,r)}})),ke=Zp((function(e){var t=Xy(e,_);if(t){var n=Ce({finger:t,values:oe,source:te}).newValue;G(-1),"touchend"===e.type&&J(-1),k&&k(e,n),_.current=void 0,document.body.removeEventListener("mousemove",Me),document.body.removeEventListener("mouseup",ke),document.body.removeEventListener("mouseenter",Ee),document.body.removeEventListener("touchmove",Me),document.body.removeEventListener("touchend",ke)}})),Ee=Zp((function(e){0===e.buttons&&ke(e)})),Te=Zp((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(_.current=t.identifier);var n=Xy(e,_),r=Ce({finger:n,values:oe,source:te}),o=r.newValue,i=r.activeIndex;eb({sliderRef:me,activeIndex:i,setActive:G}),U||ee(o),M&&M(e,o),document.body.addEventListener("touchmove",Me),document.body.addEventListener("touchend",ke)}));o.useEffect((function(){var e=me.current;return e.addEventListener("touchstart",Te),function(){e.removeEventListener("touchstart",Te),document.body.removeEventListener("mousemove",Me),document.body.removeEventListener("mouseup",ke),document.body.removeEventListener("mouseenter",Ee),document.body.removeEventListener("touchmove",Me),document.body.removeEventListener("touchend",ke)}}),[Ee,ke,Me,Te]);var Ne=Zp((function(e){E&&E(e),e.preventDefault();var t=Xy(e,_),n=Ce({finger:t,values:oe,source:te}),r=n.newValue,o=n.activeIndex;eb({sliderRef:me,activeIndex:o,setActive:G}),U||ee(r),M&&M(e,r),document.body.addEventListener("mousemove",Me),document.body.addEventListener("mouseenter",Ee),document.body.addEventListener("mouseup",ke)})),Le=Jy(ne?oe[0]:w,w,x),De=Jy(oe[oe.length-1],w,x)-Le,qe=Ls({},tb[we].offset(Le),{},tb[we].leap(De));return o.createElement(d,Ls({ref:he,className:Fd(a.root,a["color".concat(ip(c))],s,f&&a.disabled,ie.length>0&&ie.some((function(e){return e.label}))&&a.marked,!1===A&&a.trackFalse,{vertical:a.vertical}[N],{inverted:a.trackInverted}[A]),onMouseDown:Ne},W),o.createElement("span",{className:a.rail}),o.createElement("span",{className:a.track,style:qe}),o.createElement("input",{value:oe.join(","),name:C,type:"hidden"}),ie.map((function(e){var t,n=Jy(e.value,w,x),r=tb[we].offset(n);if(!1===A)t=-1!==oe.indexOf(e.value);else{var i=ne?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0];t=i&&"normal"===A||!i&&"inverted"===A}return o.createElement(o.Fragment,{key:e.value},o.createElement("span",{style:r,className:Fd(a.mark,t&&a.markActive)}),o.createElement("span",{"aria-hidden":!0,style:r,className:Fd(a.markLabel,t&&a.markLabelActive)},e.label))})),oe.map((function(e,t){var s=Jy(e,w,x),l=tb[we].offset(s);return o.createElement(z,{key:t,valueLabelFormat:j,valueLabelDisplay:F,className:a.valueLabel,value:"function"==typeof j?j(e,t):j,index:t,open:X===t||K===t||"on"===F,disabled:f},o.createElement(O,{className:Fd(a.thumb,a["thumbColor".concat(ip(c))],K===t&&a.active,f&&a.disabled,de===t&&a.focusVisible),tabIndex:f?null:0,role:"slider",style:l,"data-index":t,"aria-label":h?h(t):n,"aria-labelledby":r,"aria-orientation":N,"aria-valuemax":x,"aria-valuemin":w,"aria-valuenow":e,"aria-valuetext":g?g(e,t):i,onKeyDown:xe,onFocus:ge,onBlur:ve,onMouseOver:ye,onMouseLeave:be}))})))}));op((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"11px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 11px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?Ts(e.palette.primary.main,.62):Es(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',left:-18,top:-18,right:-18,bottom:-18},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(ks(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(ks(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(ks(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(ks(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:Ls({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:22,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:22,transform:"translateY(50%)"}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(ob);var ib=o.forwardRef((function(e,t){var n=e.action,r=e.classes,i=e.className,a=e.message,s=e.role,l=void 0===s?"alert":s,c=Ds(e,["action","classes","className","message","role"]);return o.createElement(sp,Ls({component:af,variant:"body2",variantMapping:{body1:"div",body2:"div"},role:l,square:!0,elevation:6,className:Fd(r.root,i),ref:t},c),o.createElement("div",{className:r.message},a),n?o.createElement("div",{className:r.action},n):null)})),ab=op((function(e){var t="light"===e.palette.type?.8:.98,n=Ms(e.palette.background.default,t);return{root:Ns({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(ib),sb=o.forwardRef((function(e,t){var n=e.action,r=e.anchorOrigin,i=(r=void 0===r?{vertical:"bottom",horizontal:"center"}:r).vertical,a=r.horizontal,s=e.autoHideDuration,l=e.children,c=e.classes,u=e.className,d=e.ClickAwayListenerProps,p=e.ContentProps,m=e.disableWindowBlurListener,f=void 0!==m&&m,h=e.message,g=e.onClose,v=e.onEnter,y=e.onEntered,b=e.onEntering,x=e.onExit,S=e.onExited,w=e.onExiting,C=e.onMouseEnter,M=e.onMouseLeave,k=e.open,E=e.resumeHideDuration,T=e.TransitionComponent,N=void 0===T?gg:T,L=e.transitionDuration,D=void 0===L?{enter:xl.enteringScreen,exit:xl.leavingScreen}:L,q=e.TransitionProps,O=Ds(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),R=o.useRef(),A=o.useState(!0),P=A[0],I=A[1],z=o.useCallback((function(e){var t=null!=e?e:s;g&&null!=t&&(clearTimeout(R.current),R.current=setTimeout((function(){g&&null!=(null!=e?e:s)&&g(null,"timeout")}),t))}),[s,g]);o.useEffect((function(){return k&&z(),function(){clearTimeout(R.current)}}),[k,z]);var B=function(){clearTimeout(R.current)},F=o.useCallback((function(){if(null!=s){if(null!=E)return void z(E);z(.5*s)}}),[s,E,z]);return o.useEffect((function(){if(!f&&k)return window.addEventListener("focus",F),window.addEventListener("blur",B),function(){window.removeEventListener("focus",F),window.removeEventListener("blur",B)}}),[f,F,k]),!k&&P?null:o.createElement(_f,Ls({onClickAway:function(e){g&&g(e,"clickaway")}},d),o.createElement("div",Ls({className:Fd(c.root,c["anchorOrigin".concat(ip(i)).concat(ip(a))],u),onMouseEnter:function(e){C&&C(e),B()},onMouseLeave:function(e){M&&M(e),F()},ref:t},O),o.createElement(N,Ls({appear:!0,in:k,onEnter:Jf((function(){I(!1)}),v),onEntered:y,onEntering:b,onExit:x,onExited:Jf((function(){I(!0)}),S),onExiting:w,timeout:D,direction:"top"===i?"down":"up"},q),l||o.createElement(ab,Ls({message:h,action:n},p)))))}));op((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},i={top:24},a={bottom:24},s={right:24},l={left:24},c={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Ls({},t,Ns({},e.breakpoints.up("sm"),Ls({},i,{},c))),anchorOriginBottomCenter:Ls({},n,Ns({},e.breakpoints.up("sm"),Ls({},a,{},c))),anchorOriginTopRight:Ls({},t,{},r,Ns({},e.breakpoints.up("sm"),Ls({left:"auto"},i,{},s))),anchorOriginBottomRight:Ls({},n,{},r,Ns({},e.breakpoints.up("sm"),Ls({left:"auto"},a,{},s))),anchorOriginTopLeft:Ls({},t,{},o,Ns({},e.breakpoints.up("sm"),Ls({right:"auto"},i,{},l))),anchorOriginBottomLeft:Ls({},n,{},o,Ns({},e.breakpoints.up("sm"),Ls({right:"auto"},a,{},l)))}}),{flip:!1,name:"MuiSnackbar"})(sb);var lb=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.alternativeLabel,a=e.children,s=e.classes,l=e.className,c=e.completed,u=void 0!==c&&c,d=e.connector,p=e.disabled,m=void 0!==p&&p,f=e.index,h=e.last,g=e.orientation,v=Ds(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","index","last","orientation"]);return o.createElement("div",Ls({className:Fd(s.root,s[g],l,i&&s.alternativeLabel,u&&s.completed),ref:t},v),d&&i&&0!==f&&o.cloneElement(d,{orientation:g,alternativeLabel:i,index:f,active:r,completed:u,disabled:m}),o.Children.map(a,(function(e){return o.isValidElement(e)?o.cloneElement(e,Ls({active:r,alternativeLabel:i,completed:u,disabled:m,last:h,icon:f+1,orientation:g},e.props)):null})))}));op({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(lb);var cb=cf(o.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),ub=cf(o.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),db=o.createElement("circle",{cx:"12",cy:"12",r:"12"}),pb=o.forwardRef((function(e,t){var n=e.completed,r=void 0!==n&&n,i=e.icon,a=e.active,s=void 0!==a&&a,l=e.error,c=void 0!==l&&l,u=e.classes;return"number"==typeof i||"string"==typeof i?c?o.createElement(ub,{className:Fd(u.root,u.error),ref:t}):r?o.createElement(cb,{className:Fd(u.root,u.completed),ref:t}):o.createElement(lf,{className:Fd(u.root,s&&u.active),ref:t},db,o.createElement("text",{className:u.text,x:"12",y:"16",textAnchor:"middle"},i)):i})),mb=op((function(e){return{root:{display:"block",color:e.palette.text.disabled,"&$active":{color:e.palette.primary.main},"&$completed":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily},active:{},completed:{},error:{}}}),{name:"MuiStepIcon"})(pb),fb=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.alternativeLabel,a=void 0!==i&&i,s=e.children,l=e.classes,c=e.className,u=e.completed,d=void 0!==u&&u,p=e.disabled,m=void 0!==p&&p,f=e.error,h=void 0!==f&&f,g=e.icon;e.last;var v=e.optional,y=e.orientation,b=void 0===y?"horizontal":y,x=e.StepIconComponent,S=e.StepIconProps,w=Ds(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),C=x;return g&&!C&&(C=mb),o.createElement("span",Ls({className:Fd(l.root,l[b],c,m&&l.disabled,a&&l.alternativeLabel,h&&l.error),ref:t},w),g||C?o.createElement("span",{className:Fd(l.iconContainer,a&&l.alternativeLabel)},o.createElement(C,Ls({completed:d,active:r,error:h,icon:g},S))):null,o.createElement("span",{className:l.labelContainer},o.createElement(af,{variant:"body2",component:"span",className:Fd(l.label,a&&l.alternativeLabel,d&&l.completed,r&&l.active,h&&l.error),display:"block"},s),v))}));fb.muiName="StepLabel";var hb=op((function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}}),{name:"MuiStepLabel"})(fb),gb=o.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,i=e.children,a=e.classes,s=e.className,l=e.completed,c=e.disabled,u=e.icon;e.last;var d=e.optional,p=e.orientation,m=Ds(e,["active","alternativeLabel","children","classes","className","completed","disabled","icon","last","optional","orientation"]),f={active:n,alternativeLabel:r,completed:l,disabled:c,icon:u,optional:d,orientation:p},h=Xh(i,["StepLabel"])?o.cloneElement(i,f):o.createElement(hb,f,i);return o.createElement(bm,Ls({disabled:c,TouchRippleProps:{className:a.touchRipple},className:Fd(a.root,a[p],s),ref:t},m),h)}));op({root:{width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},horizontal:{},vertical:{justifyContent:"flex-start",padding:"8px",margin:"-8px"},touchRipple:{color:"rgba(0, 0, 0, 0.3)"}},{name:"MuiStepButton"})(gb);var vb=o.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,i=void 0!==r&&r,a=e.classes,s=e.className,l=e.completed,c=e.disabled;e.index;var u=e.orientation,d=void 0===u?"horizontal":u,p=Ds(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return o.createElement("div",Ls({className:Fd(a.root,a[d],s,i&&a.alternativeLabel,n&&a.active,l&&a.completed,c&&a.disabled),ref:t},p),o.createElement("span",{className:Fd(a.line,"vertical"===d?a.lineVertical:a.lineHorizontal)}))})),yb=op((function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}}),{name:"MuiStepConnector"})(vb),bb=o.forwardRef((function(e,t){var n=e.active;e.alternativeLabel;var r=e.children,i=e.classes,a=e.className;e.completed;var s=e.last;e.optional,e.orientation;var l=e.TransitionComponent,c=void 0===l?Kf:l,u=e.transitionDuration,d=void 0===u?"auto":u,p=e.TransitionProps,m=Ds(e,["active","alternativeLabel","children","classes","className","completed","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]),f=d;return"auto"!==d||c.muiSupportAuto||(f=void 0),o.createElement("div",Ls({className:Fd(i.root,a,s&&i.last),ref:t},m),o.createElement(c,Ls({in:n,className:i.transition,timeout:f,unmountOnExit:!0},p),r))}));op((function(e){return{root:{marginTop:8,marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:"1px solid ".concat("light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600])},last:{borderLeft:"none"},transition:{}}}),{name:"MuiStepContent"})(bb);var xb=o.createElement(yb,null),Sb=o.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,i=e.alternativeLabel,a=void 0!==i&&i,s=e.children,l=e.classes,c=e.className,u=e.connector,d=void 0===u?xb:u,p=e.nonLinear,m=void 0!==p&&p,f=e.orientation,h=void 0===f?"horizontal":f,g=Ds(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),v=o.isValidElement(d)?o.cloneElement(d,{orientation:h}):null,y=o.Children.toArray(s),b=y.map((function(e,t){var n={alternativeLabel:a,connector:d,last:t+1===y.length,orientation:h},i={index:t,active:!1,completed:!1,disabled:!1};return r===t?i.active=!0:!m&&r>t?i.completed=!0:!m&&r<t&&(i.disabled=!0),[!a&&v&&0!==t&&o.cloneElement(v,Ls({key:t},i)),o.cloneElement(e,Ls({},n,{},i,{},e.props))]}));return o.createElement(sp,Ls({square:!0,elevation:0,className:Fd(l.root,l[h],c,a&&l.alternativeLabel),ref:t},g),b)}));op({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(Sb);var wb=o.forwardRef((function(e,t){var n=e.anchor,r=e.classes,i=e.className,a=e.width,s=Ds(e,["anchor","classes","className","width"]);return o.createElement("div",Ls({className:Fd(r.root,r["anchor".concat(ip(n))],i),ref:t,style:Ns({},Eh(n)?"width":"height",a)},s))})),Cb=op((function(e){return{root:{position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},anchorLeft:{right:"auto"},anchorRight:{left:"auto",right:0},anchorTop:{bottom:"auto",right:0},anchorBottom:{top:"auto",bottom:0,right:0}}}),{name:"PrivateSwipeArea"})(wb),Mb=null;function kb(e,t){return"right"===e?document.body.offsetWidth-t[0].pageX:t[0].pageX}function Eb(e,t){return"bottom"===e?window.innerHeight-t[0].clientY:t[0].clientY}function Tb(e,t){return e?t.clientWidth:t.clientHeight}function Nb(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}var Lb="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),Db={enter:xl.enteringScreen,exit:xl.leavingScreen},qb="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;o.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,i=e.disableBackdropTransition,a=void 0!==i&&i,s=e.disableDiscovery,c=void 0!==s&&s,u=e.disableSwipeToOpen,d=void 0===u?Lb:u,p=e.hideBackdrop,m=e.hysteresis,f=void 0===m?.52:m,h=e.minFlingVelocity,g=void 0===h?450:h,v=e.ModalProps,y=(v=void 0===v?{}:v).BackdropProps,b=Ds(v,["BackdropProps"]),x=e.onClose,S=e.onOpen,w=e.open,C=e.PaperProps,M=void 0===C?{}:C,k=e.SwipeAreaProps,E=e.swipeAreaWidth,T=void 0===E?20:E,N=e.transitionDuration,L=void 0===N?Db:N,D=e.variant,q=void 0===D?"temporary":D,O=Ds(e,["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"]),R=rp(),A=o.useState(!1),P=A[0],I=A[1],z=o.useRef({isSwiping:null}),B=o.useRef(),F=o.useRef(),H=o.useRef(),j=o.useRef(!1),W=o.useRef();qb((function(){W.current=null}),[w]);var V=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,o=void 0===n?null:n,i=t.changeTransition,s=void 0===i||i,l=Th(R,r),c=-1!==["right","bottom"].indexOf(l)?1:-1,u=Eh(r),d=u?"translate(".concat(c*e,"px, 0)"):"translate(0, ".concat(c*e,"px)"),m=H.current.style;m.webkitTransform=d,m.transform=d;var f="";if(o&&(f=R.transitions.create("all",jp({timeout:L},{mode:o}))),s&&(m.webkitTransition=f,m.transition=f),!a&&!p){var h=F.current.style;h.opacity=1-e/Tb(u,H.current),s&&(h.webkitTransition=f,h.transition=f)}}),[r,a,p,R,L]),U=Zp((function(e){if(j.current)if(Mb=null,j.current=!1,I(!1),z.current.isSwiping){z.current.isSwiping=null;var t,n=Th(R,r),o=Eh(r);t=o?kb(n,e.changedTouches):Eb(n,e.changedTouches);var i=o?z.current.startX:z.current.startY,a=Tb(o,H.current),s=Nb(t,i,w,a),l=s/a;Math.abs(z.current.velocity)>g&&(W.current=1e3*Math.abs((a-s)/z.current.velocity)),w?z.current.velocity>g||l>f?x():V(0,{mode:"exit"}):z.current.velocity<-g||1-l>f?S():V(Tb(o,H.current),{mode:"enter"})}else z.current.isSwiping=null})),_=Zp((function(e){if(H.current&&j.current&&(null==Mb||Mb===z.current)){var t=Th(R,r),n=Eh(r),o=kb(t,e.touches),i=Eb(t,e.touches);if(w&&H.current.contains(e.target)&&null==Mb){var a=function(e){var t=e.domTreeShapes,n=e.start,r=e.current,o=e.anchor,i={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},s={x:"clientWidth",y:"clientHeight"};return t.some((function(e){var t=r>=n;"top"!==o&&"left"!==o||(t=!t);var l="left"===o||"right"===o?"x":"y",c=e[i[l]],u=c>0,d=c+e[s[l]]<e[a[l]];return t&&d||!t&&u?e:null}))}({domTreeShapes:function(e,t){for(var n=[];e&&e!==t;){var r=window.getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")?n=[]:(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,H.current),start:n?z.current.startX:z.current.startY,current:n?o:i,anchor:r});if(a)return void(Mb=a);Mb=z.current}if(null==z.current.isSwiping){var s=Math.abs(o-z.current.startX),l=Math.abs(i-z.current.startY);s>l&&e.cancelable&&e.preventDefault();var u=n?s>l&&s>3:l>s&&l>3;if(!0===u||(n?l>3:s>3)){if(z.current.isSwiping=u,!u)return void U(e);z.current.startX=o,z.current.startY=i,c||w||(n?z.current.startX-=T:z.current.startY-=T)}}if(z.current.isSwiping){var d=Tb(n,H.current),p=n?z.current.startX:z.current.startY;w&&!z.current.paperHit&&(p=Math.min(p,d));var m=Nb(n?o:i,p,w,d);if(w)if(z.current.paperHit)0===m&&(z.current.startX=o,z.current.startY=i);else{if(!(n?o<d:i<d))return;z.current.paperHit=!0,z.current.startX=o,z.current.startY=i}null===z.current.lastTranslate&&(z.current.lastTranslate=m,z.current.lastTime=performance.now()+1);var f=(m-z.current.lastTranslate)/(performance.now()-z.current.lastTime)*1e3;z.current.velocity=.4*z.current.velocity+.6*f,z.current.lastTranslate=m,z.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),V(m)}}})),$=Zp((function(e){if(!e.defaultPrevented&&!e.muiHandled&&(!w||F.current.contains(e.target)||H.current.contains(e.target))){var t=Th(R,r),n=Eh(r),o=kb(t,e.touches),i=Eb(t,e.touches);if(!w){if(d||e.target!==B.current)return;if(n){if(o>T)return}else if(i>T)return}e.muiHandled=!0,Mb=null,z.current.startX=o,z.current.startY=i,I(!0),!w&&H.current&&V(Tb(n,H.current)+(c?20:-T),{changeTransition:!1}),z.current.velocity=0,z.current.lastTime=null,z.current.lastTranslate=null,z.current.paperHit=!1,j.current=!0}}));o.useEffect((function(){if("temporary"===q)return document.body.addEventListener("touchstart",$),document.body.addEventListener("touchmove",_,{passive:!1}),document.body.addEventListener("touchend",U),function(){document.body.removeEventListener("touchstart",$),document.body.removeEventListener("touchmove",_,{passive:!1}),document.body.removeEventListener("touchend",U)}}),[q,$,_,U]),o.useEffect((function(){return function(){Mb===z.current&&(Mb=null)}}),[]),o.useEffect((function(){w||I(!1)}),[w]);var K=o.useCallback((function(e){F.current=l.findDOMNode(e)}),[]),G=o.useCallback((function(e){H.current=l.findDOMNode(e)}),[]);return o.createElement(o.Fragment,null,o.createElement(Dh,Ls({open:!("temporary"!==q||!P)||w,variant:q,ModalProps:Ls({BackdropProps:Ls({},y,{ref:K})},b),PaperProps:Ls({},M,{style:Ls({pointerEvents:"temporary"!==q||w?"":"none"},M.style),ref:G}),anchor:r,transitionDuration:W.current||L,onClose:x,ref:t},O)),!d&&"temporary"===q&&o.createElement(em,null,o.createElement(Cb,Ls({anchor:r,ref:B,width:T},k))))}));var Ob=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"secondary":i,s=e.edge,l=void 0!==s&&s,c=e.size,u=void 0===c?"medium":c,d=Ds(e,["classes","className","color","edge","size"]),p=o.createElement("span",{className:n.thumb});return o.createElement("span",{className:Fd(n.root,r,{start:n.edgeStart,end:n.edgeEnd}[l],{small:n["size".concat(ip(u))]}[u])},o.createElement(Df,Ls({type:"checkbox",icon:p,checkedIcon:p,classes:{root:Fd(n.switchBase,n["color".concat(ip(a))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},d)),o.createElement("span",{className:n.track}))}));op((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle"},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(50%)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:ks(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:ks(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(Ob);var Rb=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disabled,a=void 0!==i&&i,s=e.disableFocusRipple,l=void 0!==s&&s,c=e.fullWidth,u=e.icon,d=e.indicator,p=e.label,m=e.onChange,f=e.onClick,h=e.selected,g=e.textColor,v=void 0===g?"inherit":g,y=e.value,b=e.wrapped,x=void 0!==b&&b,S=Ds(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","selected","textColor","value","wrapped"]);return o.createElement(bm,Ls({focusRipple:!l,className:Fd(n.root,n["textColor".concat(ip(v))],r,a&&n.disabled,h&&n.selected,p&&u&&n.labelIcon,c&&n.fullWidth,x&&n.wrapped),ref:t,role:"tab","aria-selected":h,disabled:a,onClick:function(e){m&&m(e,y),f&&f(e)}},S),o.createElement("span",{className:n.wrapper},u,p),d)}));op((function(e){var t;return{root:Ls({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},Ns(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),Ns(t,"overflow","hidden"),Ns(t,"whiteSpace","normal"),Ns(t,"textAlign","center"),Ns(t,e.breakpoints.up("sm"),{fontSize:e.typography.pxToRem(13),minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(Rb);var Ab=o.createContext(),Pb=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"table":i,s=e.padding,l=void 0===s?"default":s,c=e.size,u=void 0===c?"medium":c,d=e.stickyHeader,p=void 0!==d&&d,m=Ds(e,["classes","className","component","padding","size","stickyHeader"]),f=o.useMemo((function(){return{padding:l,size:u,stickyHeader:p}}),[l,u,p]);return o.createElement(Ab.Provider,{value:f},o.createElement(a,Ls({ref:t,className:Fd(n.root,r,p&&n.stickyHeader)},m)))}));op((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ls({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(Pb);var Ib=o.createContext(),zb={variant:"body"},Bb=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tbody":i,s=Ds(e,["classes","className","component"]);return o.createElement(Ib.Provider,{value:zb},o.createElement(a,Ls({className:Fd(n.root,r),ref:t},s)))}));op({root:{display:"table-row-group"}},{name:"MuiTableBody"})(Bb);var Fb=o.forwardRef((function(e,t){var n,r=e.align,i=void 0===r?"inherit":r,a=e.classes,s=e.className,l=e.component,c=e.padding,u=e.scope,d=e.size,p=e.sortDirection,m=e.variant,f=Ds(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),h=o.useContext(Ab),g=o.useContext(Ib);n=l||(g&&"head"===g.variant?"th":"td");var v=u;!v&&g&&"head"===g.variant&&(v="col");var y=c||(h&&h.padding?h.padding:"default"),b=d||(h&&h.size?h.size:"medium"),x=m||g&&g.variant,S=null;return p&&(S="asc"===p?"ascending":"descending"),o.createElement(n,Ls({ref:t,className:Fd(a.root,a[x],s,"inherit"!==i&&a["align".concat(ip(i))],"default"!==y&&a["padding".concat(ip(y))],"medium"!==b&&a["size".concat(ip(b))],{head:h&&h.stickyHeader&&a.stickyHeader}[x]),"aria-sort":S,scope:v},f))})),Hb=op((function(e){return{root:Ls({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?Ts(ks(e.palette.divider,1),.88):Es(ks(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0px 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(Fb),jb={variant:"footer"},Wb=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tfoot":i,s=Ds(e,["classes","className","component"]);return o.createElement(Ib.Provider,{value:jb},o.createElement(a,Ls({className:Fd(n.root,r),ref:t},s)))}));op({root:{display:"table-footer-group"}},{name:"MuiTableFooter"})(Wb);var Vb={variant:"head"},Ub=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"thead":i,s=Ds(e,["classes","className","component"]);return o.createElement(Ib.Provider,{value:Vb},o.createElement(a,Ls({className:Fd(n.root,r),ref:t},s)))}));op({root:{display:"table-header-group"}},{name:"MuiTableHead"})(Ub);var _b=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=e.disableGutters,l=void 0!==s&&s,c=e.variant,u=void 0===c?"regular":c,d=Ds(e,["classes","className","component","disableGutters","variant"]);return o.createElement(a,Ls({className:Fd(n.root,n[u],r,!l&&n.gutters),ref:t},d))})),$b=op((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Ns({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(_b),Kb=cf(o.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),Gb=cf(o.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),Yb=o.createElement(Gb,null),Xb=o.createElement(Kb,null),Jb=o.createElement(Kb,null),Zb=o.createElement(Gb,null),Qb=o.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,i=e.nextIconButtonProps,a=e.onChangePage,s=e.page,l=e.rowsPerPage,c=Ds(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),u=rp();return o.createElement("div",Ls({ref:t},c),o.createElement(Nf,Ls({onClick:function(e){a(e,s-1)},disabled:0===s,color:"inherit"},n),"rtl"===u.direction?Yb:Xb),o.createElement(Nf,Ls({onClick:function(e){a(e,s+1)},disabled:s>=Math.ceil(r/l)-1,color:"inherit"},i),"rtl"===u.direction?Jb:Zb))})),ex=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(-1===n?r:n," of ").concat(r)},tx=[10,25,50,100],nx=o.forwardRef((function(e,t){var n,r=e.ActionsComponent,i=void 0===r?Qb:r,a=e.backIconButtonProps,s=e.classes,l=e.className,c=e.colSpan,u=e.component,d=void 0===u?Hb:u,p=e.count,m=e.labelDisplayedRows,f=void 0===m?ex:m,h=e.labelRowsPerPage,g=void 0===h?"Rows per page:":h,v=e.nextIconButtonProps,y=e.onChangePage,b=e.onChangeRowsPerPage,x=e.page,S=e.rowsPerPage,w=e.rowsPerPageOptions,C=void 0===w?tx:w,M=e.SelectProps,k=void 0===M?{}:M,E=Ds(e,["ActionsComponent","backIconButtonProps","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);d!==Hb&&"td"!==d||(n=c||1e3);var T=k.native?"option":lv;return o.createElement(d,Ls({className:Fd(s.root,l),colSpan:n,ref:t},E),o.createElement($b,{className:s.toolbar},o.createElement("div",{className:s.spacer}),C.length>1&&o.createElement(af,{color:"inherit",variant:"body2",className:s.caption},g),C.length>1&&o.createElement(_y,Ls({classes:{select:s.select,icon:s.selectIcon},input:o.createElement(Kh,{className:Fd(s.input,s.selectRoot)}),value:S,onChange:b},k),C.map((function(e){return o.createElement(T,{className:s.menuItem,key:e,value:e.value?e.value:e},e.label?e.label:e)}))),o.createElement(af,{color:"inherit",variant:"body2",className:s.caption},f({from:0===p?0:x*S+1,to:Math.min(p,(x+1)*S),count:p,page:x})),o.createElement(i,{className:s.actions,backIconButtonProps:a,count:p,nextIconButtonProps:v,onChangePage:y,page:x,rowsPerPage:S})))}));op((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{top:1},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(nx);var rx=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tr":i,s=e.hover,l=void 0!==s&&s,c=e.selected,u=void 0!==c&&c,d=Ds(e,["classes","className","component","hover","selected"]),p=o.useContext(Ib);return o.createElement(a,Ls({ref:t,className:Fd(n.root,r,p&&{head:n.head,footer:n.footer}[p.variant],l&&n.hover,u&&n.selected)},d))}));op((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$selected":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.08)"},"&$hover:hover":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.07)":"rgba(255, 255, 255, 0.14)"}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(rx);var ox=cf(o.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),ix=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.children,a=e.classes,s=e.className,l=e.direction,c=void 0===l?"desc":l,u=e.hideSortIcon,d=void 0!==u&&u,p=e.IconComponent,m=void 0===p?ox:p,f=Ds(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return o.createElement(bm,Ls({className:Fd(a.root,s,r&&a.active),component:"span",disableRipple:!0,ref:t},f),i,d&&!r?null:o.createElement(m,{className:Fd(a.icon,a["iconDirection".concat(ip(c))])}))}));op((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:1}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(ix);var ax,sx=!("undefined"==typeof window||!window.document||!window.document.createElement);function lx(){if(ax)return ax;if(!sx||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ax="reverse",e.scrollLeft>0?ax="default":(e.scrollLeft=1,0===e.scrollLeft&&(ax="negative")),document.body.removeChild(e),ax}function cx(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=lx();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n}return n}function ux(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var dx={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function px(e){var t=e.onChange,n=Ds(e,["onChange"]),r=o.useRef(),i=o.useRef(null),a=function(){r.current=i.current.offsetHeight-i.current.clientHeight};return o.useEffect((function(){var e=Sh((function(){var e=r.current;a(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),o.useEffect((function(){a(),t(r.current)}),[t]),o.createElement("div",Ls({style:dx,ref:i},n))}var mx=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=e.orientation,s=Ds(e,["classes","className","color","orientation"]);return o.createElement("span",Ls({className:Fd(n.root,n["color".concat(ip(i))],r,{vertical:n.vertical}[a]),ref:t},s))})),fx=op((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(mx),hx=o.createElement(Kb,{fontSize:"small"}),gx=o.createElement(Gb,{fontSize:"small"}),vx=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.direction,a=e.orientation,s=e.visible,l=Ds(e,["classes","className","direction","orientation","visible"]),c=Fd(n.root,r,{vertical:n.vertical}[a]);return s?o.createElement(bm,Ls({component:"div",className:c,ref:t,role:null,tabIndex:null},l),"left"===i?hx:gx):o.createElement("div",{className:c})})),yx=op({root:{width:40,flexShrink:0},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}}},{name:"PrivateTabScrollButton"})(vx),bx=o.forwardRef((function(e,t){var n=e.action,r=e.centered,i=void 0!==r&&r,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"div":c,d=e.indicatorColor,p=void 0===d?"secondary":d,m=e.onChange,f=e.orientation,h=void 0===f?"horizontal":f,g=e.ScrollButtonComponent,v=void 0===g?yx:g,y=e.scrollButtons,b=void 0===y?"auto":y,x=e.TabIndicatorProps,S=void 0===x?{}:x,w=e.textColor,C=void 0===w?"inherit":w,M=e.value,k=e.variant,E=void 0===k?"standard":k,T=Ds(e,["action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","value","variant"]),N=rp(),L="scrollable"===E,D="rtl"===N.direction,q="vertical"===h,O=q?"scrollTop":"scrollLeft",R=q?"top":"left",A=q?"bottom":"right",P=q?"clientHeight":"clientWidth",I=q?"height":"width",z=o.useState(!1),B=z[0],F=z[1],H=o.useState({}),j=H[0],W=H[1],V=o.useState({start:!1,end:!1}),U=V[0],_=V[1],$=o.useState({overflow:"hidden",marginBottom:null}),K=$[0],G=$[1],Y=new Map,X=o.useRef(null),J=o.useRef(null),Z=function(){var e,t,n=X.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:cx(n,N.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==M){var o=J.current.children;if(o.length>0){var i=o[Y.get(M)];t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Q=Zp((function(){var e,t=Z(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(q)o=r.top-n.top+n.scrollTop;else{var i=D?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(Ns(e={},R,o),Ns(e,I,r?r[I]:0),e);if(isNaN(j[R])||isNaN(j[I]))W(a);else{var s=Math.abs(j[R]-a[R]),l=Math.abs(j[I]-a[I]);(s>=1||l>=1)&&W(a)}})),ee=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?ux:i,s=r.duration,l=void 0===s?300:s,c=null,u=t[e],d=!1,p=function(){d=!0},m=function r(i){if(d)o(new Error("Animation cancelled"));else{null===c&&(c=i);var s=Math.min(1,(i-c)/l);t[e]=a(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};u===n?o(new Error("Element already at target position")):requestAnimationFrame(m)}(O,X.current,e)},te=function(e){var t=X.current[O];q?t+=e:(t+=e*(D?-1:1),t*=D&&"reverse"===lx()?-1:1),ee(t)},ne=function(){te(-X.current[P])},re=function(){te(X.current[P])},oe=o.useCallback((function(e){G({overflow:null,marginBottom:-e})}),[]),ie=Zp((function(){var e=Z(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[R]<t[R]){var r=t[O]+(n[R]-t[R]);ee(r)}else if(n[A]>t[A]){var o=t[O]+(n[A]-t[A]);ee(o)}})),ae=Zp((function(){if(L&&"off"!==b){var e,t,n=X.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(q)e=r>1,t=r<o-i-1;else{var l=cx(X.current,N.direction);e=D?l<a-s-1:l>1,t=D?l>1:l<a-s-1}e===U.start&&t===U.end||_({start:e,end:t})}}));o.useEffect((function(){var e=Sh((function(){Q(),ae()})),t=nh(X.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[Q,ae]);var se=o.useCallback(Sh((function(){ae()})));o.useEffect((function(){return function(){se.clear()}}),[se]),o.useEffect((function(){F(!0)}),[]),o.useEffect((function(){Q(),ae()})),o.useEffect((function(){ie()}),[ie,j]),o.useImperativeHandle(n,(function(){return{updateIndicator:Q,updateScrollButtons:ae}}),[Q,ae]);var le=o.createElement(fx,Ls({className:s.indicator,orientation:h,color:p},S,{style:Ls({},j,{},S.style)})),ce=0,ue=o.Children.map(a,(function(e){if(!o.isValidElement(e))return null;var t=void 0===e.props.value?ce:e.props.value;Y.set(t,ce);var n=t===M;return ce+=1,o.cloneElement(e,{fullWidth:"fullWidth"===E,indicator:n&&!B&&le,selected:n,onChange:m,textColor:C,value:t})})),de=function(){var e={};e.scrollbarSizeListener=L?o.createElement(px,{className:s.scrollable,onChange:oe}):null;var t=U.start||U.end,n=L&&("auto"===b&&t||"desktop"===b||"on"===b);return e.scrollButtonStart=n?o.createElement(v,{orientation:h,direction:D?"right":"left",onClick:ne,visible:U.start,className:Fd(s.scrollButtons,"on"!==b&&s.scrollButtonsDesktop)}):null,e.scrollButtonEnd=n?o.createElement(v,{orientation:h,direction:D?"left":"right",onClick:re,visible:U.end,className:Fd(s.scrollButtons,"on"!==b&&s.scrollButtonsDesktop)}):null,e}();return o.createElement(u,Ls({className:Fd(s.root,l,q&&s.vertical),ref:t},T),de.scrollButtonStart,de.scrollbarSizeListener,o.createElement("div",{className:Fd(s.scroller,L?s.scrollable:s.fixed),style:K,ref:X,onScroll:se},o.createElement("div",{className:Fd(s.flexContainer,q&&s.flexContainerVertical,i&&!L&&s.centered),ref:J,role:"tablist"},ue),B&&le),de.scrollButtonEnd)}));op((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:Ns({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(bx);var xx={standard:kg,filled:Yh,outlined:yv},Sx=o.forwardRef((function(e,t){var n=e.autoComplete,r=e.autoFocus,i=e.children,a=e.classes,s=e.className,c=e.color,u=void 0===c?"primary":c,d=e.defaultValue,p=e.error,m=e.FormHelperTextProps,f=e.fullWidth,h=e.helperText,g=e.hiddenLabel,v=e.id,y=e.InputLabelProps,b=e.inputProps,x=e.InputProps,S=e.inputRef,w=e.label,C=e.multiline,M=e.name,k=e.onBlur,E=e.onChange,T=e.onFocus,N=e.placeholder,L=e.required,D=void 0!==L&&L,q=e.rows,O=e.rowsMax,R=e.select,A=void 0!==R&&R,P=e.SelectProps,I=e.type,z=e.value,B=e.variant,F=void 0===B?"standard":B,H=Ds(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]),j=o.useState(0),W=j[0],V=j[1],U=o.useRef(null);o.useEffect((function(){if("outlined"===F){var e=l.findDOMNode(U.current);V(null!=e?e.offsetWidth:0)}}),[F,D,w]);var _={};"outlined"===F&&(y&&void 0!==y.shrink&&(_.notched=y.shrink),_.labelWidth=W),A&&(P&&P.native||(_.id=void 0),_["aria-describedby"]=void 0);var $=h&&v?"".concat(v,"-helper-text"):void 0,K=w&&v?"".concat(v,"-label"):void 0,G=xx[F],Y=o.createElement(G,Ls({"aria-describedby":$,autoComplete:n,autoFocus:r,defaultValue:d,fullWidth:f,multiline:C,name:M,rows:q,rowsMax:O,type:I,value:z,id:v,inputRef:S,onBlur:k,onChange:E,onFocus:T,placeholder:N,inputProps:b},_,x));return o.createElement(Zh,Ls({className:Fd(a.root,s),error:p,fullWidth:f,hiddenLabel:g,ref:t,required:D,color:u,variant:F},H),w&&o.createElement(Ng,Ls({htmlFor:v,ref:U,id:K},y),w),A?o.createElement(_y,Ls({"aria-describedby":$,id:v,labelId:K,value:z,input:Y},P),i):Y,h&&o.createElement(rg,Ls({id:$},m),h))}));function wx(e){return Math.round(1e5*e)/1e5}op({root:{}},{name:"MuiTextField"})(Sx);var Cx=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.disableFocusListener,a=void 0!==i&&i,s=e.disableHoverListener,c=void 0!==s&&s,u=e.disableTouchListener,d=void 0!==u&&u,p=e.enterDelay,m=void 0===p?0:p,f=e.enterTouchDelay,h=void 0===f?700:f,g=e.id,v=e.interactive,y=void 0!==v&&v,b=e.leaveDelay,x=void 0===b?0:b,S=e.leaveTouchDelay,w=void 0===S?1500:S,C=e.onClose,M=e.onOpen,k=e.open,E=e.placement,T=void 0===E?"bottom":E,N=e.PopperProps,L=e.title,D=e.TransitionComponent,q=void 0===D?gg:D,O=e.TransitionProps,R=Ds(e,["children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperProps","title","TransitionComponent","TransitionProps"]),A=rp(),P=o.useState(!1),I=P[0],z=P[1],B=o.useState(0)[1],F=o.useState(),H=F[0],j=F[1],W=o.useRef(!1),V=o.useRef(null!=k).current,U=o.useRef(),_=o.useRef(),$=o.useRef(),K=o.useRef(),G=o.useRef();o.useEffect((function(){U.current||(U.current="mui-tooltip-".concat(Math.round(1e5*Math.random()))),k&&B((function(e){return!e}))}),[k]),o.useEffect((function(){return function(){clearTimeout(_.current),clearTimeout($.current),clearTimeout(K.current),clearTimeout(G.current)}}),[]);var Y=function(e){V||I||z(!0),M&&M(e)},X=function(e){var t=n.props;"mouseover"===e.type&&t.onMouseOver&&t.onMouseOver(e),W.current&&"touchstart"!==e.type||(H&&H.removeAttribute("title"),clearTimeout($.current),clearTimeout(K.current),m?(e.persist(),$.current=setTimeout((function(){Y(e)}),m)):Y(e))},J=um(),Z=J.isFocusVisible,Q=J.onBlurVisible,ee=J.ref,te=o.useState(!1),ne=te[0],re=te[1],oe=function(e){V||z(!1),C&&C(e),clearTimeout(_.current),_.current=setTimeout((function(){W.current=!1}),A.transitions.duration.shortest)},ie=function(e){var t=n.props;"blur"===e.type&&(t.onBlur&&t.onBlur(e),ne&&(re(!1),Q())),"mouseleave"===e.type&&t.onMouseLeave&&t.onMouseLeave(e),clearTimeout($.current),clearTimeout(K.current),e.persist(),K.current=setTimeout((function(){oe(e)}),x)},ae=Vp(j,t),se=Vp(ee,ae),le=o.useCallback((function(e){Wp(se,l.findDOMNode(e))}),[se]),ce=Vp(n.ref,le),ue=V?k:I;""===L&&(ue=!1);var de=!ue&&!c,pe=Ls({"aria-describedby":ue?g||U.current:null,title:de&&"string"==typeof L?L:null},R,{},n.props,{className:Fd(R.className,n.props.className)});d||(pe.onTouchStart=function(e){W.current=!0;var t=n.props;t.onTouchStart&&t.onTouchStart(e),clearTimeout(K.current),clearTimeout(_.current),clearTimeout(G.current),e.persist(),G.current=setTimeout((function(){X(e)}),h)},pe.onTouchEnd=function(e){n.props.onTouchEnd&&n.props.onTouchEnd(e),clearTimeout(G.current),clearTimeout(K.current),e.persist(),K.current=setTimeout((function(){oe(e)}),w)}),c||(pe.onMouseOver=X,pe.onMouseLeave=ie),a||(pe.onFocus=function(e){H||j(e.currentTarget),Z(e)&&(re(!0),X(e));var t=n.props;t.onFocus&&t.onFocus(e)},pe.onBlur=ie);var me=y?{onMouseOver:pe.onMouseOver,onMouseLeave:pe.onMouseLeave,onFocus:pe.onFocus,onBlur:pe.onBlur}:{};return o.createElement(o.Fragment,null,o.cloneElement(n,Ls({ref:ce},pe)),o.createElement(Ny,Ls({className:Fd(r.popper,y&&r.popperInteractive),placement:T,anchorEl:H,open:!!H&&ue,id:pe["aria-describedby"],transition:!0},me,N),(function(e){var t=e.placement,n=e.TransitionProps;return o.createElement(q,Ls({timeout:A.transitions.duration.shorter},n,O),o.createElement("div",{className:Fd(r.tooltip,r["tooltipPlacement".concat(ip(t.split("-")[0]))],W.current&&r.touch)},L))})))}));op((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none",flip:!1},popperInteractive:{pointerEvents:"auto"},tooltip:{backgroundColor:ks(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(wx(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(wx(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Ns({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Ns({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Ns({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Ns({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip"})(Cx);var Mx={entering:{transform:"none"},entered:{transform:"none"}},kx={enter:xl.enteringScreen,exit:xl.leavingScreen};function Ex(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Tx({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:Ex(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return o.createElement("i",{style:i},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.createElement("path",{d:e})))}o.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,a=e.onExit,s=e.style,l=e.timeout,c=void 0===l?kx:l,u=Ds(e,["children","in","onEnter","onExit","style","timeout"]),d=rp(),p=Vp(n.ref,t);return o.createElement(Sp,Ls({appear:!0,in:r,onEnter:function(e,t){Hp(e);var n=jp({style:s,timeout:c},{mode:"enter"});e.style.webkitTransition=d.transitions.create("transform",n),e.style.transition=d.transitions.create("transform",n),i&&i(e,t)},onExit:function(e){var t=jp({style:s,timeout:c},{mode:"exit"});e.style.webkitTransition=d.transitions.create("transform",t),e.style.transition=d.transitions.create("transform",t),a&&a(e)},timeout:c},u),(function(e,t){return o.cloneElement(n,Ls({style:Ls({transform:"scale(0)",visibility:"exited"!==e||r?void 0:"hidden"},Mx[e],{},s,{},n.props.style),ref:p},t))}))}));const Nx={d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"},Lx={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"},Dx="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",qx={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"},Ox={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};function Rx(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=oa.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 Ax(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=ne(!0,{},a),l=s.qHyperCubeDef[r][t],c=s.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][n];c.qAttributeDimensions=l.qAttributeDimensions,l.qAttributeDimensions=[],i||(c.qAttributeExpressions=l.qAttributeExpressions,l.qAttributeExpressions=[]),s.qHyperCubeDef[r][t]=c,s.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][n]=l,o&&o({oldItem:l,newItem:c,oldProperties:a,newProperties:s,model:e}),Rx(e,a,s)}))}function Px({dir:e,dock:t,altList:n,model:r,translator:o,app:i,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives(){const e=n.map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(e,i,o).then((t=>({id:e.qDef.cId,selected:!1,title:t})))));return Promise.all(e)},changeTo(e,t){Ax(r,e,t,"qDimensions",a)}}}function Ix(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(o=e,"H"===o.qGrouping?o.title||"":o.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)}};var o}function zx({altList:e,app:t,dir:n,dock:r,model:o,onChange:i,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives(){const n=e.map((e=>function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t})))));return Promise.all(n)},changeTo(e,t){Ax(o,e,t,"qMeasures",i,a)}}}function Bx(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle}}const Fx={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"}}},Hx=({children:e,...t})=>o.createElement(hf,K({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);const jx=Ml({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 Wx=Tl({productionPrefix:"q934e",disableGlobal:!0,seed:""});const Vx=2e3;function Ux({model:e,layoutService:t,definitionPath:n="/qHyperCubeDef"}){return{fetch(t,r){const o={qStart:t,qEnd:r,qNbrPoints:this.computeNbrOfBins(),qMaxNbrTicks:300,qMaxNumberLines:this.computeMaxNumberLines()};return e.getHyperCubeContinuousData(n,o,!1)},shouldFetchReduced(){const{qHyperCube:e}=t.getLayout();return e.qSize.qcy*e.qMeasureInfo.length>=Vx},computeNbrOfBins(){const{qHyperCube:e}=t.getLayout();if(!this.shouldFetchReduced())return Vx;let n=e.qMeasureInfo.length||1,r=4+2*(n-1);return e.qDimensionInfo.length>1&&(n=Math.max(1,Math.min(12,t.meta.size.dimensions[1])),r=4),Math.ceil(Vx/(n*r))},computeMaxNumberLines(){const{qHyperCube:e}=t.getLayout();return e.qDimensionInfo.length>1&&!this.shouldFetchReduced()?t.meta.size.dimensions[1]+1:12}}}function _x(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function $x({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 Kx(){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 Gx(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=Kx(),i=Kx();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 Yx(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Xx(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Gx(e,t,n.qMatrix),o=Yx(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 Jx=2**.5,Zx=1/Jx;function Qx(e){return e.qIsOtherCell}function eS({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Qx)){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(Qx)||t++})),t}(n)}const tS={command:{processDataPage:()=>{}}};var nS={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],o=t[e+1];r.data={},o||1===r.end?o?(r.data.start=r.value,r.data.end=o.value,r.end=o.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};function rS(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function oS(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 p={x:u+o,y:o,width:d-2*o,height:t.height-2*o},m=s(l[0]+"…").width,f=Math.max(0,p.width-c.width),h=Math.max(0,p.height-c.height),g=i*f,v=a*h;return{show:p.width>=Math.min(m,c.width),text:l,dx:g,dy:v,rect:p,style:n.label,segment:{x:u+g,width:c.width+2*o}}}}}(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=rS(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:rS(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine}}}}(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 iS(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=rS(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:rS(o,n.minorGuideLine.strokeWidth),x2:i,y2:rS(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function aS(e){return e.filter((e=>e.show)).map((e=>ne({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2})))}var sS={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=rS(1,t.line.strokeWidth);return{show:n.line.show,x1:rS(0,t.line.strokeWidth),y1:r,x2:rS(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=oS(n,this),this.state.minor=iS(r,this)},render(){return[...aS([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>ne({},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"})))),...aS(this.state.major.map((e=>e.guideLine))),...aS(this.state.minor.map((e=>e.guideLine)))];var e}};function lS(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 cS(e){return e.qTags.indexOf("$qualified")>-1}function uS({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];lS(i,a)?(cS(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 dS({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,o=NaN,i=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(o=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){i="auto",s=!0;break}if(e&&e.queries.inner(n)){i=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(o)&&Number.isNaN(i)&&"auto"!==i){i=o,o=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(o)&&(o="auto",i="auto");return{outer:o,inner:i,minor:a,isDayOrShorter:s}}}}function pS({qTicks:e,measureText:t=(()=>({width:0})),cache:n={},scale:r}){const o=n;return{isDayOrShorter:()=>(o.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,o.isDayOrShorter),count:()=>e.length,maxRange:()=>(o.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,o.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),o.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(""+e.qText).width+16}))),r.clamp(n),o.rangeAndWidth}}}function mS({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=6,canFitHalfDayTicks:n=>n>=t*e.count()}}function fS({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=pS,queryFactory:s=mS}={attributesFactory:pS,queryFactory:mS}){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 hS({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=fS,mapper:a=uS,resolver:s=dS}={metaFactory:fS,mapper:uS,resolver:dS}){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}),p=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=p.resolve(t);return n.set(r,o),o}}}function gS(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}const vS=gS(0).getTime();function yS(e){return(e.getTime()-vS)/86400/1e3}var bS=new Date,xS=new Date;function SS(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return SS((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 bS.setTime(+t),xS.setTime(+r),e(bS),e(xS),Math.floor(n(bS,xS))},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 wS=SS((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));wS.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?SS((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):wS:null},wS.range;var CS=1e3,MS=6e4,kS=36e5,ES=864e5,TS=6048e5,NS=SS((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*CS)}),(function(e,t){return(t-e)/CS}),(function(e){return e.getUTCSeconds()}));function LS(e){return SS((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())*MS)/TS}))}NS.range,SS((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*CS)}),(function(e,t){e.setTime(+e+t*MS)}),(function(e,t){return(t-e)/MS}),(function(e){return e.getMinutes()})).range,SS((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*CS-e.getMinutes()*MS)}),(function(e,t){e.setTime(+e+t*kS)}),(function(e,t){return(t-e)/kS}),(function(e){return e.getHours()})).range,SS((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())*MS)/ES}),(function(e){return e.getDate()-1})).range;var DS=LS(0),qS=LS(1),OS=LS(2),RS=LS(3),AS=LS(4),PS=LS(5),IS=LS(6);DS.range,qS.range,OS.range,RS.range,AS.range,PS.range,IS.range,SS((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var zS=SS((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()}));zS.every=function(e){return isFinite(e=Math.floor(e))&&e>0?SS((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},zS.range;var BS=SS((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*MS)}),(function(e,t){return(t-e)/MS}),(function(e){return e.getUTCMinutes()}));BS.range;var FS=SS((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*kS)}),(function(e,t){return(t-e)/kS}),(function(e){return e.getUTCHours()}));FS.range;var HS=SS((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/ES}),(function(e){return e.getUTCDate()-1}));function jS(e){return SS((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)/TS}))}HS.range;var WS=jS(0),VS=jS(1),US=jS(2),_S=jS(3),$S=jS(4),KS=jS(5),GS=jS(6);WS.range,VS.range,US.range,_S.range,$S.range,KS.range,GS.range;var YS=SS((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()}));YS.range;var XS=SS((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()}));XS.every=function(e){return isFinite(e=Math.floor(e))&&e>0?SS((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},XS.range;const JS=1,ZS=2,QS=3,ew=4,tw=5,nw=6;function rw({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 XS.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=NS.count(e,t),l=BS.count(e,t),c=FS.count(e,t),u=HS.count(e,t),d=WS.count(e,t),p=YS.count(e,t),m=XS.count(e,t),f=n/r.second.width-1,h=n/r.minute.width-1,g=n/r.date.width-1,v=n/r.year.width-1,y={type:"year",desc:"year",count:m,interval:XS.every(1),formatter:r.year.formatter,offset:e=>XS.offset(e,-1),floor:XS.floor};if(s<=f)y.type=JS,y.desc="second",y.count=s,y.interval=NS.every(1),y.formatter=r.second.formatter,y.offset=e=>NS.offset(e,-1),y.floor=NS.floor;else if(s/2<=f)y.type=JS,y.desc="every other second",y.count=s/2,y.interval=NS.every(2),y.formatter=r.second.formatter,y.offset=e=>NS.offset(e,-2),y.floor=NS.floor;else if(s/5<=f)y.type=JS,y.desc="every 5 second",y.count=s/5,y.interval=NS.every(5),y.formatter=r.second.formatter,y.offset=e=>NS.offset(e,-5),y.floor=NS.floor;else if(s/15<=f)y.type=JS,y.desc="every 15 second",y.count=s/15,y.interval=NS.every(15),y.formatter=r.second.formatter,y.offset=e=>NS.offset(e,-15),y.floor=NS.floor;else if(s/30<=f)y.type=JS,y.desc="every 30 second",y.count=s/30,y.interval=NS.every(30),y.formatter=r.second.formatter,y.offset=e=>NS.offset(e,-30),y.floor=NS.floor;else if(l<=h)y.type=ZS,y.desc="minute",y.count=l,y.interval=BS.every(1),y.formatter=r.minute.formatter,y.offset=e=>BS.offset(e,-1),y.floor=BS.floor;else if(l/2<=h)y.type=ZS,y.desc="every 2 minute",y.count=l/2,y.interval=BS.every(2),y.formatter=r.minute.formatter,y.offset=e=>BS.offset(e,-2),y.floor=BS.floor;else if(l/5<=h)y.type=ZS,y.desc="every 5 minute",y.count=l/5,y.interval=BS.every(5),y.formatter=r.minute.formatter,y.offset=e=>BS.offset(e,-5),y.floor=BS.floor;else if(l/10<=h)y.type=ZS,y.desc="every 10 minute",y.count=l/10,y.interval=BS.every(10),y.formatter=r.minute.formatter,y.offset=e=>BS.offset(e,-10),y.floor=BS.floor;else if(l/15<=h)y.type=ZS,y.desc="every 15 minute",y.count=l/15,y.interval=BS.every(15),y.formatter=r.minute.formatter,y.offset=e=>BS.offset(e,-15),y.floor=BS.floor;else if(l/30<=h)y.type=ZS,y.desc="every 30 minute",y.count=l/30,y.interval=BS.every(30),y.formatter=r.minute.formatter,y.offset=e=>BS.offset(e,-30),y.floor=BS.floor;else if(c<=h)y.type=QS,y.desc="hour",y.count=c,y.interval=FS.every(1),y.formatter=r.minute.formatter,y.offset=e=>FS.offset(e,-1),y.floor=FS.floor;else if(c/2<=h)y.type=QS,y.desc="every 2 hour",y.count=c/2,y.interval=FS.every(2),y.formatter=r.minute.formatter,y.offset=e=>FS.offset(e,-2),y.floor=FS.floor;else if(c/3<=h)y.type=QS,y.desc="every 3 hour",y.count=c/3,y.interval=FS.every(3),y.formatter=r.minute.formatter,y.offset=e=>FS.offset(e,-3),y.floor=FS.floor;else if(c/6<=h)y.type=QS,y.desc="every 6 hour",y.count=c/6,y.interval=FS.every(6),y.formatter=r.minute.formatter,y.offset=e=>FS.offset(e,-6),y.floor=FS.floor;else if(c/12<=h||o)y.type=QS,y.desc="every 12 hour",y.count=c/12,y.interval=FS.every(12),y.formatter=r.minute.formatter,y.offset=e=>FS.offset(e,-12),y.floor=FS.floor;else if(u<=g)y.type=ew,y.desc="day",y.count=u,y.interval=HS.every(1),y.formatter=r.date.formatter,y.offset=e=>HS.offset(e,-1),y.floor=HS.floor;else if(u/2<=g)y.type=ew,y.desc="every 2 day",y.count=u/2,y.interval=HS.every(2),y.formatter=r.date.formatter,y.offset=e=>HS.offset(e,-2),y.floor=HS.floor;else if(u/3<=g)y.type=ew,y.desc="every 3 day",y.count=u/3,y.interval=HS.every(3),y.formatter=r.date.formatter,y.offset=e=>HS.offset(e,-3),y.floor=HS.floor;else if(d<=g)y.type=ew,y.desc="week",y.count=d,y.interval=WS.every(1),y.formatter=r.date.formatter,y.offset=e=>WS.offset(e,-1),y.floor=HS.floor;else if(d/2<=g)y.type=ew,y.desc="every 2 week",y.count=d/2,y.interval=WS.every(2),y.formatter=r.date.formatter,y.offset=e=>WS.offset(e,-2),y.floor=HS.floor;else if(p<=g)y.type=tw,y.desc="month",y.count=p,y.interval=YS.every(1),y.formatter=r.date.formatter,y.offset=e=>YS.offset(e,-1),y.floor=HS.floor;else if(p/3<=g)y.type=tw,y.desc="quarter",y.count=p/3,y.interval=YS.every(3),y.formatter=r.date.formatter,y.offset=e=>YS.offset(e,-3),y.floor=HS.floor;else if(p/6<=g)y.type=tw,y.desc="half year",y.count=p/6,y.interval=YS.every(6),y.formatter=r.date.formatter,y.offset=e=>YS.offset(e,-6),y.floor=HS.floor;else if(m<=v)y.type=nw,y.desc="year",y.count=m,y.interval=XS.every(1),y.formatter=r.year.formatter,y.offset=e=>XS.offset(e,-1),y.floor=XS.floor;else if(m/2<=v)y.type=nw,y.desc="every 2 year",y.count=m/2,y.interval=a(2),y.formatter=r.year.formatter,y.offset=e=>XS.offset(e,-2),y.floor=XS.floor;else if(m/5<=v)y.type=nw,y.desc="every 5 year",y.count=m/5,y.interval=a(5),y.formatter=r.year.formatter,y.offset=e=>XS.offset(e,-5),y.floor=XS.floor;else if(m/10<=v)y.type=nw,y.desc="every 10 year",y.count=m/10,y.interval=a(10),y.formatter=r.year.formatter,y.offset=e=>XS.offset(e,-10),y.floor=XS.floor;else{const e=Math.floor(m/v);y.type=nw,y.desc="every nth year",y.count=e,y.interval=a(e),y.formatter=r.year.formatter,y.offset=t=>XS.offset(t,-e),y.floor=XS.floor}return y}(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 p=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 m=[];if(!i&&u.type<=QS){const n=t.getFormat("date"),r=e.ticks(HS.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(HS.offset(r[0],-1)),m=(r.length?r:[HS.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:p,outer:m}}const ow=86400,iw=1440,aw={};function sw(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function lw(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=function(){return $t.apply(Gi(wo,So,fo,po,uo,co,Zr,$r,To).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}().domain([gS(l),gS(c)]);u.clamp(i),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let p;p="d3"===d.type?(e,o)=>rw({timeScale:u,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:gS(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(aw[[t,n,r,r,i]])return aw[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=gS(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,p=t/(o-r),m=p/1440,f=p/ow,h=366*p,g=3*p*30,v=a.second.width/f,y=a.minute.width/m,b=a.date.width/g,x=a.year.width/h;let S,w,C,M=0,k=0,E=null,T=null,N=null,L=null,D=null,q=null;const O={outer:[],inner:[]};for(v<1?(E=1,k=1/ow):v<2?(E=2,k=1/ow*2):v<5?(E=5,k=1/ow*5):v<10?(E=10,k=1/ow*10):v<30?(E=30,k=1/ow*30):y<1?(T=1,k=1/iw):y<2?(T=2,k=1/iw*2):y<5?(T=5,k=1/iw*5):y<10?(T=10,k=.006944444444444445):y<30?(T=30,k=.020833333333333336):y<60?(N=1,k=1/24):y<120?(N=2,k=2/24):y<360?(N=6,k=.25):y<720?(N=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?(D=1,k=31):b<1?(D=3,k=90):x<1?(q=1,k=366):x<2?(q=2,k=732):x<5?(q=5,k=1826.25):(q=10,k=3652.5),w=Math.floor((d+n%1)/k);M<o;){C=w+1,S=q?sw("year",[l+w*q,0,1],[l+C*q,0,1],a.year.formatter):D?sw("month",[l,c+w*D,1],[l,c+C*D,1],a.date.formatter):L?sw("day",[l,c,u+w*L],[l,c,u+C*L],a.date.formatter):N?sw("hour",[l,c,u,0+w*N],[l,c,u,0+C*N],a.minute.formatter):T?sw("minute",[l,c,u,0,0+w*T],[l,c,u,0,0+C*T],a.minute.formatter):sw("second",[l,c,u,0,0,0+w*E],[l,c,u,0,0,0+C*E],a.second.formatter),M=yS(S.start),O.inner.push(S);const e=Math.floor(M);if(!(i||q||D||L)){const t={type:"day",start:gS(e),end:gS(e+1),formatter:a.date.formatter,qStart:e};O.outer[O.outer.length-1]&&O.outer[O.outer.length-1].qStart===t.qStart||O.outer.push(t)}w++}return O.min=r,O.max=o,aw[[t,n,r,r,i]]=O,O}(n,e,d.min,l,c,"T"===s.qType);const m={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)=>p(t,n)[a].map((t=>{let n;return n="start"===o?yS(t.start):"end"===o?yS(t.end):(yS(t.start)+yS(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:yS(t.start),end:yS(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return m}const cw=/t+/i;const uw={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 dw(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 pw="continuousPan";var mw={model:function({model:e,layoutService:t,dataProcessorModel:n=tS,viewCache:r,viewState:o,definitionPath:i},a={}){const{engineFetcherFactory:s=Ux,snapshotFetcherFactory:l=$x,cacheFetcherFactory:c=_x,cache:u={initial:{},merged:{}}}=a,d=s({model:e,layoutService:t,definitionPath:i}),p=l({layoutService:t,viewCache:r}),m=c({cache:u}),f=e=>{throw e.isHandled=!0,e};let h,g,v;return{update(e){var n,i;({initialMin:g,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])),r.set("continuousMin",g),r.set("continuousMax",v),r.set("minimiumZoomSpan",(n=g,i=v,Math.max(1e-6,2.3841857910156157e-7*(i-n)))),h=t.meta.isSnapshot?p:d,t.meta.isSnapshot&&({zoom:{min:g,max:v}}=p.getSnapshotData()),o.preventSet("zoom",{min:g,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),e},initialFetch(){return h.fetch(g,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=Yx(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return n.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),u.initial=t,u.merged=t,e})).then((e=>Xx(g,v,e))).then((e=>this.updateLayout(e))).catch(f)},fetch:(e,t)=>h.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=Yx(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}(u.initial,e))).then((e=>(n.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),u.merged=e,e))).then((n=>Xx(e,t,n))).catch(f),fetchFromCache:(e,t)=>m.fetch(e,t).then((n=>Xx(e,t,n))),fetchMinMaxData:()=>Promise.resolve(u.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return ne({},e,{...u.initial})},getInitialLayout(){const e=this.getInitialCube();return ne({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>eS(u.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e;t.qDataPages=u.merged.qDataPages,t.qAxisData=u.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=c(((e,t)=>o("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):o("fetchFromCache",e,t).then((n=>(i(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(o,i)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(o.max-o.min)<r?i:{min:Math.min(o.max,Math.max(t,o.min)),max:Math.max(o.min,Math.min(n,o.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:o=!1,targetKey:i}){const a=e.get("continuousMin"),s=e.get("continuousMax");return u(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===i))[0])(e);if(l){const i=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,l),c=o?1-i:i,{min:u,max:d}=t.get("zoom"),p=Math.abs(d-u),m=p-(r>0?Zx:Jx)*p,f=u+m*c,h=d-m*(1-c),g=f<a?a-f:0,v=h>s?h-s:0;t.set("zoom",{min:Math.max(f-v,a),max:Math.min(h+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o}){return{type:"Pan",key:"continuous:pan",options:{event:pw,pointers:1,threshold:10,enable(r,o){return this.started===pw||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{continuousPanstart(n){n.preventDefault(),this.started=pw;const{min:o,max:i}=r.get("zoom");this[pw]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},continuousPanmove(e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[pw],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)})},continuousPanend(e){e.preventDefault(),this.started=!1},continuousPancancel(e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:nS,timeAxis:sS},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]=ne(!0,{},t[o],i)})),r}(t,uw,n),{qAxis:o}=r,i=Wr(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,o);let c,u,p=[];const m=function(e){return Number.isNaN(+e)?NaN:i(e)};m.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),i=n[r.ticks.level];if(Number.isNaN(+i)||(p=u.transform(o[i].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=u.transform(o[n.minor].qTicks,{isMinor:!0});p=p.concat(e)}return"auto"===i&&(p=u.generate(e,n.isDayOrShorter)),p},m.invert=e=>i.invert(e),m.domain=e=>Array.isArray(e)?i.domain(e):i.domain(),m.range=e=>Array.isArray(e)?i.range(e):i.range(),m.norm=e=>(dw(a,m),a.instance(e)),m.normInvert=e=>(dw(a,m),a.instance.invert(e)),m.copy=()=>e(t,n),m.clamp=(e=!0)=>(i.clamp(e),i.clamp()),m.min=()=>Math.min(s,l),m.max=()=>Math.max(s,l),i.range(r.invert?[1,0]:[0,1]),i.domain([s,l]),a.invert=r.invert;const f=function(e){const t={},{measureText:n,fn:r,localeInfo:o}=e.formatter,i={second:{type:"second",pattern:"hh:mm:ss",width:60,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:60,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:60,formatter:void 0},year:{type:"year",pattern:"YYYY",width:60,formatter:void 0}};return o&&cw.test(o.qTimestampFmt)&&(i.minute.pattern+=" tt",i.second.pattern+=" tt"),i.date.pattern=o&&o.qDateFmt?o.qDateFmt:i.date.pattern,Object.keys(i).forEach((e=>{i[e].formatter=r(i[e].pattern),i[e].width=Math.max(i[e].width,n(i[e].formatter(41000.2343433)).width+16)})),t.getFormat=e=>i[e],t.all=()=>i,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return i.date;const r=gS(t[0].data.start),o=gS(t[n-1].data.start);return HS.count(r,o)/n>=1?i.date:FS.count(r,o)/n>0?i.minute:BS.count(r,o)/n>0?i.second:i.date},t}(r);return u=lw(i.copy(),r,f),c=hS({qAxis:o,measureText:r.formatter.measureText,reqAutoFitWidth:2*f.getFormat("minute").width,cache:r.cache,scale:m}),m.data=()=>({fields:[{formatter:m.formatter,id:()=>"qHyperCube/"+r.field,key:()=>r.field,raw:d(n,"fields.0.raw",(()=>({})))}]}),m.formatter=()=>f.getFormatFromTicks(p).formatter,m}}};const fw={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var hw={OPTIONS:fw,DEFAULT:fw.MINI_CHART};function gw({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 vw({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 yw=e=>({miniChart:e===hw.OPTIONS.MINI_CHART.value,bar:e===hw.OPTIONS.BAR.value,none:e===hw.OPTIONS.NONE.value});function bw({layoutService:e,override:t}){const n=(({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return yw(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return yw(hw.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return yw(!n&&(r||!r&&o)?hw.OPTIONS.NONE.value:hw.OPTIONS.MINI_CHART.value)})({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===hw.OPTIONS.MINI_CHART.value,n.bar=t.value===hw.OPTIONS.BAR.value,n.none=t.value===hw.OPTIONS.NONE.value),n}function xw({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=bw({layoutService:e,override:l});if(d.none)return!1;const{orientation:p}=t.meta.major,m={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===p?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:p,rtl:s,isContinuous:e.meta.isContinuous,range:()=>vw({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(m.settings.style="slim",m.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(m.settings.size.thumb={min:4}));const f=a.getStyles();return f.color&&(m.style={standard:{thumb:{"border-color":f.color,opacity:.4},before:{background:f.color,opacity:.1},after:{background:f.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(m.settings.injections=()=>[gw({layoutService:e,discrete:n})]),m}function Sw({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),p="horizontal"===i.meta.major.orientation,m=p?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,f=p?d.rect.computedInner.width:d.rect.computedInner.height,h=p&&a?f-m:m,g=Math.max(0,Math.min(h/f,1)),[v,y]=vw({layoutService:o,viewState:n,viewCache:r}),b=g<v,x=g>y,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-v*f:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function ww({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,p]=vw({layoutService:o,viewState:n,viewCache:r});return{size:u,thumbSize:(p-d)*u}}}function Cw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=Sw({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=ww({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 Mw="data-scrollbar-handle";function kw({e:e}){return(e.srcEvent||e).srcElement.getAttribute(Mw)||""}const Ew="scrollbarResize";function Tw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s}){const l=Sw({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s});return{type:"Pan",key:"event:scrollbarResize",options:{event:Ew,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[Ew]=this[Ew]||{},(e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)})(t)&&kw({e:t})&&(this[Ew].panningEvent=t.srcEvent),!!this[Ew].panningEvent))}},events:{scrollbarResizestart(n){n.preventDefault(),this[Ew]=this[Ew]||{},this[Ew].panningEvent&&t.component(e).emit("dragStart",this[Ew].panningEvent)},scrollbarResizemove(n){if(n.preventDefault(),this[Ew]=this[Ew]||{},!this[Ew].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=kw({e:this[Ew].panningEvent});let p="start"===d?Math.min(u,i.max):i.min,m="end"===d?Math.max(u,i.min):i.max;p===m&&(p-="start"===d?c:0,m+="end"===d?c:0),r.set("zoom",{min:p,max:m}),t.component(e).emit("render")},scrollbarResizeend(n){n.preventDefault(),this[Ew]=this[Ew]||{},delete this[Ew].panningEvent,t.component(e).emit("dragEnd")},scrollbarResizecancel(n){n.preventDefault(),this[Ew]=this[Ew]||{},delete this[Ew].panningEvent,t.component(e).emit("dragEnd")}}}}const Nw="scrollbarPan";function Lw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=Sw({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=ww({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:"event:scrollbarPan",options:{event:Nw,threshold:0,enable(r,o){return this[Nw]=this[Nw]||{},!(o&&!this[Nw].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:{scrollbarPanstart(n){n.preventDefault();const a=c(n);if(this[Nw]=this[Nw]||{},this[Nw].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[Nw].relative=a.relative,this[Nw].zoom=r.get("zoom"),this[Nw].zoom.span=this[Nw].zoom.max-this[Nw].zoom.min,this[Nw].zoom.fullSpan=i-n}else if(a.onThumb)this[Nw].offset=a.thumb;else{const e=u();this[Nw].offset=a.beforeThumb?0:e.thumbSize}},scrollbarPanmove(n){n.preventDefault();const a=c(n);if(this[Nw]=this[Nw]||{},i.meta.isContinuous){const e=a.relative-this[Nw].relative,{fullSpan:t,span:n,min:i,max:s}=this[Nw].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[Nw].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},scrollbarPanend(n){n.preventDefault(),this[Nw]=this[Nw]||{},this[Nw].isPanning=!1,t.component(e).emit("unlockState")},scrollbarPancancel(n){n.preventDefault(),this[Nw]=this[Nw]||{},this[Nw].isPanning=!1,t.component(e).emit("unlockState")}}}}function Dw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[Cw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),Tw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),Lw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})]}function qw({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 Ow({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...Dw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:qw({componentKey:e,chart:t,actions:n,layoutService:i})}}const Rw={background:"rgba(0, 0, 0, 0.1)"},Aw={top:-1,bottom:-1,width:6},Pw={width:2,background:"#595959"};var Iw={before:Rw,after:Rw,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:Aw,endHandle:Aw,startHandleBorder:Pw,endHandleBorder:Pw};const zw={background:"rgba(0, 0, 0, 0.1)"},Bw={top:-1,bottom:-1,width:6},Fw={width:2,background:"#595959"};var Hw={before:zw,after:zw,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:Bw,endHandle:Bw,startHandleBorder:Fw,endHandleBorder:Fw};const jw={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},Ww={pointerEvents:"initial"},Vw={pointerEvents:"none"};const Uw="ew-resize",_w="default";function $w(){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 Kw(){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?Uw:_w}function Gw(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 Yw(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function Xw(){const{size:e,start:t,end:n}=$w.call(this);this.renderer.render(this.elements(this.h,Gw.call(this,e,t,n)))}function Jw(){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?Hw:Iw;return{container:{...jw},before:{...jw,...n.before,...t.before},after:{...jw,...n.after,...t.after},thumb:{...jw,...n.thumb,...t.thumb},startHandle:{...jw,...Ww,...n.startHandle},endHandle:{...jw,...Ww,...n.endHandle},startHandleBorder:{...jw,...Vw,...n.startHandleBorder},endHandleBorder:{...jw,...Vw,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var Zw={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(){Xw.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||!Yw.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=kw({e:e});t&&(this.state.hover[t]=!0),Kw.call(this),Xw.call(this)},leave(){this.state.locked||(this.state.hover.reset(),Kw.call(this),Xw.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=kw({e:e});t&&(this.state.drag[t]=!0),Kw.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),Kw.call(this),Xw.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}=$w.call(this);return this.elements(e,Gw.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},p={[o.start]:r},m={left:-3},f={left:1},h={right:-3,left:"auto"},g={left:3},v=e("div",{style:{...s.before,...c?p:d},class:"scrollbar--before"}),y=e("div",{style:{...s.after,...c?d:p},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:m},class:"scrollbar--start-handle",[Mw]:"start"},i?e("div",{style:{...s.startHandleBorder,...c?g:f}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?m:h},class:"scrollbar--end-handle",[Mw]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?f:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[o.start]:n,[o.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[v,x,y,...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:Jw.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};const Qw={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(ne({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function eC({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=ne({},{major:l,majorEnd:c},r.minor.items[e]);o.forEach((t=>{d[t]=r[t].items[e]}));const p=i?n:t,m=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:p}),f=(u-m)/2,h=f+d.major+m/2;return{item:d,boxCenter:h,boxWidth:m,boxPadding:f,rendWidth:t,rendHeight:n}}function tC({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=ne(!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:ne(!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:ne(!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 p=o.minor||{};let m;const f={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:ne(!0,{},{start:{scale:p.scale,ref:"start"},end:{scale:p.scale,ref:"end"},min:{scale:p.scale,ref:"min"},max:{scale:p.scale,ref:"max"},med:{scale:p.scale,ref:"med"}},p)})};for(let n=0,r=e.length;n<r;n++)m=e[n],f[m]=s.resolve({data:t,defaults:l[m],settings:o[m],scaled:c});return f}const nC=["oob"];const rC={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=tC({keys:nC,data:o,defaultSettings:{oob:Qw.getDefaultSettings()},style:i,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l;return function({width:e,height:t,flipXY:n,resolved:r,keys:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=eC}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:p,rendWidth:m,rendHeight:f}=s({i:u,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(Qw.createOob({oob:d.oob,dockValue:a,boxCenter:p,rendWidth:m,rendHeight:f,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:nC,symbol:s,dockValue:n})}},oC={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},iC=["hat"];function aC(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 sC({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 p=[{[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 m=ne({},e.hat,{type:"path",d:aC(p)});p=[{[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[m,ne({},e.hat,{type:"path",d:aC(p)})]}const lC={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=tC({keys:iC,data:r,defaultSettings:oC,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a;return function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=eC}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:m}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),f=s[l].data,h=[];c.hat.show&&h.push(...sC({item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:m,flipXY:n}));const g={type:"container",data:f,collider:{type:"bounds"},children:h};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:iC})}};function cC(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:cC(o,t,n)},o}function uC(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),cC(o,a,l,e.invert)}))}const dC={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 pC(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const mC={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,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 fC(e,t,n,r){var o,i,a,s,l,c;const{app:u,flags:d}=t,p=null===(o=e.layout)||void 0===o||null===(i=o.tooltip)||void 0===i?void 0:i.imageComponents;if(!p)return[];const[m]=p,f=m.size||"small",h=m.type||"media";let g=-1;for(let e=0;e<n.length;e++)if(n[e].cId===m.cId){g=e;break}const v=(null===(a=r.data)||void 0===a||null===(s=a.customTooltipAttrExps)||void 0===s?void 0:s.value)||[];let y;if(-1!==g&&v[g]&&(y=v[g]),"media"===h&&null!==(l=m.ref)&&void 0!==l&&null!==(c=l.qStaticContentUrl)&&void 0!==c&&c.qUrl)return async function(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){let t,n,r,o,i,a;return e&&e.session&&e.session.options||e&&e.enigmaModel&&e.enigmaModel.session&&e.enigmaModel.session.sessionConfig?(t=e.session.options||e.enigmaModel.session.sessionConfig,a=void 0!==t.secure?t.secure:t.isSecure,n=a?"https://":"http://",r=t.host||"localhost",o=t.port?":"+t.port:"",i=t.prefix?t.prefix:"/","/"!==i[i.length-1]&&(i+="/"),n+r+o+i):""}(n);o&&(function(e,t){e.replace(t,"").replace(/^\.\.\//i,"/")[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await mC.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}(m,f,u);if("url"===h)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&&pC(a))try{const t="data:image/png;base64, "+await e.getImage(a),{height:n,width:o,imageError:s}=await mC.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await mC.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(u,d,m,f,y);if(d.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===h&&y&&y.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(pC(a))try{const t=await e.getImage(a);if(t){const e="data:image/png;base64, "+t,{height:r,width:i,imageError:a}=await mC.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(u,n[g],f,y)}return[]}const hC={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(fC(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t,n;const r=null===(t=e.layout)||void 0===t||null===(n=t.tooltip)||void 0===n?void 0:n.imageComponents;return!!r&&r.length>0}},gC={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await hC.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>hC.checkIfPromisesExist({customTooltipModel:e})};const vC=(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:dC.CHART.CHART_PARENT_TYPE,qId:dC.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},yC=e=>{var t,n,r;const o=null===(t=e.tooltip)||void 0===t||null===(n=t.chart)||void 0===n||null===(r=n.object)||void 0===r?void 0:r.refId;return{qInfo:{qType:dC.CHART.CHART_CHILD_TYPE},qExtendsId:o}};const bC={createContainer:({ctx:e,layout:t})=>{var n,r;if(!((null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r?void 0:r.length)<=0))return function(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.tooltip)||void 0===r||null===(o=r.chart)||void 0===o||null===(i=o.style)||void 0===i?void 0:i.size)&&void 0!==n?n:"medium",s=dC.CHART.STYLE[a];return[{content:[e.h("div",{style:{display:"flex",width:s,height:s,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:dC.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":s,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a,s,l;const c=o,u=null==t||null===(a=t.tooltip)||void 0===a||null===(s=a.chart)||void 0===s||null===(l=s.object)||void 0===l?void 0:l.refId;if(null!=c&&c.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&u&&!(t.qHyperCubeDef.qDimensions.length<=0)){await bC.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=dC.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=dC.CHART.STATE,a=vC(t,i),s=await e.createSessionObject(a),l=yC(t);if(s.id!==dC.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(c.miniChartToken.alternateState&&c.miniChartToken.sessionObj&&a){var d,p,m,f;const e=n.length>0&&void 0!==(null===(d=n[0].data)||void 0===d?void 0:d.value)?[null===(p=n[0].data)||void 0===p?void 0:p.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,g;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(g=e.source)&&void 0!==g&&g.field){var v;const t=null==e||null===(v=e.source)||void 0===v?void 0:v.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const s=document.getElementById(dC.CHART.CONTAINER_ID),l={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};c.miniChartToken.vis=await o.embed.render({element:s,model:c.miniChartToken.model,options:l,id:null===(m=c.miniChartToken.model)||void 0===m?void 0:m.id,type:null===(f=c.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await bC.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(bC.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(dC.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=dC.CHART.STATE;await e.removeSessionAlternateState(r),n.miniChartToken.alternateState=void 0}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t,n;const r=e;"function"==typeof(null===(t=r.miniChartToken)||void 0===t||null===(n=t.vis)||void 0===n?void 0:n.destroy)&&(r.miniChartToken.vis.destroy(),r.miniChartToken.vis=void 0)}};function xC(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function SC(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=dC.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function wC(e){const t=SC();return e.filter((e=>t[e.id]))}const CC={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}=CC.getAttrExprData(a);i.length||n.length?gC.handlePromises({customTooltipModel:o,nodes:CC.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&&bC.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>gC.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i,a,s;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(a=i.qDimensionInfo)||void 0===a||null===(s=a[t])||void 0===s?void 0:s.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n,r;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(r=n.quarantine)||void 0===r?void 0:r[dC.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[dC.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[dC.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(wC(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t,n;const r=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(n=t.quarantine)||void 0===n?void 0:n[dC.CUSTOM.QUARANTINE])&&delete r.qLayoutExclude.quarantine[dC.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=xC(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===wC(o).length){var i,a;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(a=i.quarantine)||void 0===a?void 0:a.customTooltip)||[],n=[...o,...t],s=e;s.qHyperCubeDef?s.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:s.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const o=xC(e)||[];[...o,t].forEach((e=>{const t=wC(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=SC(),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:qe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=qe.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 MC(e,t,n,r){var o,i,a;const s=(null===(o=t.qHyperCube)||void 0===o||null===(i=o[n])||void 0===i||null===(a=i[r])||void 0===a?void 0:a.qAttrExprInfo)||[],l=[],c=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return c?(s.forEach(((e,t)=>{const o=c.qValues&&c.qValues[t]?c.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case dC.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case dC.CUSTOM.TITLE:case dC.CUSTOM.DESCRIPTION:case dC.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);l.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),l):l}const kC={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>MC(t,e,r,n)}}};const EC={getCustomAttrExps(e,t,n){var r,o;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},a=(null===(r=t.data)||void 0===r||null===(o=r.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];if(Number.isNaN(a))return i;return function(e,t,n,r){const o={[dC.CUSTOM.TITLE]:!0,[dC.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=CC.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===dC.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===dC.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,a.map((t=>Oe.getMeasure(e,t))),e,i)}};function TC({nodes:e,layout:t,dataset:n}){return function(e,t,n){const r=[];return e.forEach((e=>{r.push(EC.getCustomAttrExps(n,e,t))})),r}(e,t,n).reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function NC(e){const t=dC.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 LC(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var DC={attrExpr:{migrateProperties(e){var t,n,r,o;const i=ne(!0,{},e),a=(null===(t=i.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[];let s=LC(i);return s=function(e,t){return t.concat(e.map((e=>NC(e))))}(a,s),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(s,i),null===(o=i.tooltip)||void 0===o||delete o.data,i},getPatches(e){var t,n,r,o;const i=(null===(t=e.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[],a=(null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qDimensions.length)-1;return function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=NC(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}(LC(e),i,a)},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,o,i,a,s;const l=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],c=(null===(o=t.tooltip)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.qHyperCube)||{},u=null===(a=t.qMeta)||void 0===a||null===(s=a.privileges)||void 0===s?void 0:s.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(c,l)&&e.getEffectiveProperties().then((t=>{if(u){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}};const qC=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&fe(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},OC=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&fe(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&fe(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},RC=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))},AC=(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;OC(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(OC(e,t),r)))),(()=>r))}return qC(e),Promise.resolve()};function PC(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?p(e,"color.persistent",!0):"byDimension"===r&&n.length>1?p(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?p(e,"color.mode","primary"):0===t.length&&n.length>0&&(p(e,"color.byMeasureDef",void 0),p(e,"color.byDimDef",void 0),1===n.length&&p(e,"color.mode","primary"))}const IC=(e,t)=>{PC(t),zt(e),CC.addCallbackCustomTooltip(t)},zC=e=>{PC(e)};function BC({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r){let o;const i=t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>i-1?o="Visualizations.Descriptions.Color":i>1&&0===n?"stacked"===t.barGrouping.grouping?o="Visualizations.Descriptions.Stack":(o="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):o="Visualizations.Descriptions.Bars",e.get(o)},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?AC(t,n.app).then((()=>(IC(e,t),e))):(RC(t),IC(e,t),e)),move(e,t){t.qHyperCubeDef.qDimensions.length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),qC(t),PC(t),CC.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;PC(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),CC.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){CC.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?AC(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,zC(t),e))):(RC(t),zC(t),e),move(e,t){qC(t),PC(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;PC(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function FC(e){return{properties:{version:"1.23.14",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:!1,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[{path:"/qHyperCubeDef",...BC(e)}]}}}var HC={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 jC="REJECTED",WC=()=>{},VC=1e4,UC=2,_C=20,$C=200,KC=10;var GC={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-KC<=t.qTop,o=n.qLeft+n.qWidth+KC>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+KC>=t.qTop+t.qHeight,a=n.qLeft-KC<=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 YC={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-KC<=t.qTop,o=n.qTop+n.qHeight+KC>=t.qTop+t.qHeight;return r&&t.qTop>0||o&&t.qTop+t.qHeight<e.height}}},request:function({layoutService:e,definitionPath:t}){const n=e.getLayoutValue("dimensionAxis.axisDisplayMode","auto");return e=>{const r={method:"getHyperCubeStackData",args:[t,[e]]};return"auto"===n&&r.args.push(600),r}}};var XC={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 JC="pages";const ZC="discretePan";function QC({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:ZC,pointers:1,threshold:10,enable(r,o){return this.started===ZC||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{discretePanstart(e){e.preventDefault(),this.started=ZC;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},discretePanmove(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)},discretePanend(e){e.preventDefault(),this.started=!1},discretePancancel(e){e.preventDefault(),this.started=!1}}}}function eM({chart:e,componentKey:t,actions:n,scroller:r}){return function(o){if(!n.scroll.enabled()||!r.enabled())return;const[i]=e.componentsFromPoint({x:o.clientX,y:o.clientY}).filter((e=>e.key===t));if(!i)return;o.preventDefault();const a=Math.abs(o.deltaY)>Math.abs(o.deltaX)?o.deltaY:o.deltaX,s=100*Math.sign(-a);r.scroll(s)}}function tM({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{gestures:[QC({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:eM({chart:e,actions:t,componentKey:n,scroller:i})}}}}function nM({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(VC/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max($C,n));return{width:e,height:Math.max(_C,Math.min(n*UC,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 rM(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(jC),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(jC),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(jC),n=null)},o}const oM={command:{update:()=>{}}};var iM={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 aM={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 sM(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function lM(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 cM(e){return lM(e.qMatrix,(e=>e[0].qElemNumber))-1}var uM={inTotal:function({layoutService:e}){const t=sM(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=sM(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=sM(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=cM(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 dM=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function pM(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return dM(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const o=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const i=e[t][0].qElemNumber;-1===o.indexOf(i)&&(o.push(i),r--)}return n.count=o.length-1,n})(t.qMatrix,n);return r.successful?r.count:dM(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return dM(e,n);return lM(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var mM={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=pM(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=pM(t).area(e(),l,a.qArea),d=cM(a),p=a.qArea.qHeight+d,m=c===i?(r.inView-p)*s/o:(c+(a.qArea.qTop+u)*s)/o;return[m,r.inView>=r.inTotal?m+1:m+p/r.inView]}};function fM({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:p,LABELLESS:m}=r[n.meta.chart.mode],f="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:v}=s,y=f?t.width:t.height,b=y/l>=p;switch(h){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);case"auto":default:return c?y/m: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:p}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return p>i;const m=(90-d)*(Math.PI/180);return p>Math.cos(m)*i}({chart:e,isHorizontal:f,axisKey:o,renderer:i,isGrouped:a,itemSize:p,label:v})?y/d:l:y/d}}var hM="AVERAGE",gM="LINEAR",vM="POLYNOMIAL2",yM="POLYNOMIAL3",bM="POLYNOMIAL4",xM="EXPONENTIAL",SM="LOG",wM="POWER";function CM({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 vM:return i;case yM:return i.y+=o[3]*t**3,i;case bM:return i.y+=o[4]*t**4+o[3]*t**3,i}}var MM={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:CM,polynomial3:CM,polynomial4:CM,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)}}};function kM(e,t){const n=MM[t.qType.toLowerCase()],r=Math.max(1,e/500);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}}function EM(e){return MM[e.qType.toLowerCase()]}var TM={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"},NM={color:"#f93f17",index:9};const{isDark:LM}=It,DM={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN};var qM={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const OM=({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,RM=(e,{layoutService:t,trendLineModel:n,dockService:r})=>{if(!n.query.hasTrendLines())return[];return[(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:o})=>{const i=OM(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:qM,settings:{connect:!0,orientation:o.meta.major.orientation,coordinates:{major:{scale:e,fn:i},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:2,stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}}}})(e,{trendLineModel:n,layoutService:t,dockService:r}),(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:o})=>{const i=OM(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:qM,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r})]};function AM(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)}]}}}function PM(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?qe.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const o=function(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:qe.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:"16px",x2:"16px",y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},t)}(e):t.content}(t,e);return t("td",r,o)}))}function IM(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:qe.detectTextDirection(t)},t);return e("tr",{},n)}(n,i)];if(a.slice(0,2).forEach((e=>{s.push(n("tr",{},PM(e.row,{h:n,style:o})))})),r.length>2){const o=r.length-2;s.push(...function(e,t,n,r){const o=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,i=qe.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 s}}function zM(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:o}=r,i=Te({key:e.tooltip,rtl:o});return ne(!0,i,{settings:{extract:AM(e,t),content:IM(n,o),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function BM(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 FM(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=BM(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=BM(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 HM=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},jM=e=>{HM(e),e.qMultiDimMode="Sum",e.qXColIx=0};function WM(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!be.dimensionless(n)&&!be.groupedByDimension(n)&&(r||!be.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:TM.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(TM.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:TM.ADD_BUTTON,add:jM,globalChange:e=>{const t=d(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!d(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:TM.TYPE,options:[{value:hM,translation:TM.TYPES.AVERAGE},{value:gM,translation:TM.TYPES.LINEAR},{value:vM,translation:TM.TYPES.POLYNOMIAL2},{value:yM,translation:TM.TYPES.POLYNOMIAL3},{value:bM,translation:TM.TYPES.POLYNOMIAL4},{value:xM,translation:TM.TYPES.EXPONENTIAL},{value:SM,translation:TM.TYPES.LOG},{value:wM,translation:TM.TYPES.POWER}],defaultValue:hM},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:NM,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:TM.STYLE.DASHED,type:"boolean",defaultValue:!0,change:HM}}}}var VM={};function UM(){UM.init.call(this)}VM.isObject=function(e){return"object"==typeof e&&null!==e},VM.isNumber=function(e){return"number"==typeof e},VM.isUndefined=function(e){return void 0===e},VM.isFunction=function(e){return"function"==typeof e};var _M=UM;UM.EventEmitter=UM,UM.prototype._events=void 0,UM.prototype._maxListeners=void 0,UM.defaultMaxListeners=10,UM.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},UM.prototype.setMaxListeners=function(e){if(!VM.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},UM.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],VM.isUndefined(n))return!1;if(VM.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(VM.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},UM.prototype.addListener=function(e,t){var n;if(!VM.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,VM.isFunction(t.listener)?t.listener:t),this._events[e]?VM.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,VM.isObject(this._events[e])&&!this._events[e].warned)&&((n=VM.isUndefined(this._maxListeners)?UM.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,VM.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),VM.isFunction(console.trace)&&console.trace()));return this},UM.prototype.on=UM.prototype.addListener,UM.prototype.once=function(e,t){if(!VM.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},UM.prototype.removeListener=function(e,t){var n,r,o,i;if(!VM.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||VM.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(VM.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},UM.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],VM.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},UM.prototype.listeners=function(e){return this._events&&this._events[e]?VM.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},UM.listenerCount=function(e,t){return e._events&&e._events[t]?VM.isFunction(e._events[t])?1:e._events[t].length:0};const $M={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"}}]};var KM={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}},GM={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"}};function YM({layout:e}){const t=pe.canBeContinuous(e),n=be.continuous(e),r=be.dimensionless(e);return{canBeContinuous:t,isDiscrete:!n,isContinuous:n,isTime:pe.isTime(n,e),isDimensionless:r,isSimple:be.simple(e),isGrouped:be.grouped(e),isGroupedByMeasure:be.groupedByMeasure(e),isGroupedByDimension:be.groupedByDimension(e),isStacked:be.stacked(e),isStackedByDimension:be.stackedByDimension(e),isStackedByMeasure:be.stackedByMeasure(e),isSnapshot:be.snapshot(e)}}const XM={extractDimsAndNode(e){const t=[];let n;return e.forEach((e=>{if(e.key===GM.COMPONENT.BAR){n=e;const r=d(e,"data.selectionDimension",!1);r&&(t.push(r.label),r.label!==e.data.label&&t.push(e.data.label))}})),{nodeDims:t,node:n}}};function JM({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 ZM({chart:e,actions:t,selections:n}){const r=e.scale(GM.SCALE.MAIN.MAJOR);return g({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{clear:JM},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")}}})}function QM({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 ek({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:f}=c.model().mode,h=u||f||d,g=!u&&(f||d)&&l?l.getHyperCube():void 0,y=g?"legendCube":void 0;return p.main=v({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:QM,key:GM.SCALE.MAIN.COLOR},createConfig:()=>({hc:h?g||s.getHyperCube():c.model().cube,source:h?y:"miniCube",theme:i})}),m.push(p.main.initialize()),u&&(p.mini=v({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:QM,key:GM.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}}function tk(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function nk(e){return e.some(tk)}function rk(e,t){let n=NaN,r=NaN;return e.forEach((e=>{nk(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 ok(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 ik(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!nk(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 ak(e,t){const n={};e.forEach((e=>{if(!nk(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 sk(e){return"number"==typeof e&&!Number.isNaN(e)}function lk(e){const t=e.getHyperCubeValue("qMeasureInfo");return{min:Math.min(...t.filter((e=>sk(e.qMin))).map((e=>e.qMin))),max:Math.max(...t.filter((e=>sk(e.qMax))).map((e=>e.qMax)))}}function ck(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function uk(e){return!Number.isNaN(+e.qNum)}function dk(e){return e.qNum}function pk(e){return!Number.isNaN(+e.qNum)}function mk(e){return e.qNum}function fk(e,t){return e.push(...t),e}const{getValueWithOffset:hk,isNumber:gk}=ma;function vk(e,t){return Math.abs(e/t)<5||0===t}function yk({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=ik,stackedByDimensionExtractor:o=ak,straightExtractor:i=rk,measureInfoExtractor:a=lk,explicitExtractor:s=ok}=n,{meta:l}=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=>gk(e)));let d=Math.min(...u),p=Math.max(...u);d=vk(s,d)?Math.min(d,s):d,p=vk(l,p)?Math.max(p,l):p;const m=[c.explicitMin,c.explicitMax,d,p].filter((e=>gk(e)));return i=Number.isNaN(c.explicitMin)?Math.min(...m):c.explicitMin,a=Number.isNaN(c.explicitMax)?Math.max(...m):c.explicitMax,i===a&&(Number.isNaN(c.explicitMin)?i=hk(i,-.2):Number.isNaN(c.explicitMax)&&(a=hk(a,.2))),{min:i,max:a,implicitMin:d,implicitMax:p,otherMin:s,otherMax:l,hasOtherMin:s<i,hasOtherMax:l>a,...c}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:o}=s(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 s=t.length?t[0].qMatrix:[];return l.isStackedByMeasure?r(s,n):l.isStackedByDimension?o(s,n):e.getHyperCubeValue("qHasOtherValues")?i(s,n):a(e)},extractOthers:e=>l.isStackedByDimension?function(e){const t=ck(d(e,"0.qData.0.qSubNodes",[]),tk,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):l.isGroupedByDimension?function(e){const t=d(e,"0.qMatrix",[]).filter(nk).reduce(fk,[]).filter(pk).map(mk);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=ck(d(e,"0.qMatrix",[]),nk,[]).filter(uk).map(dk);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function bk(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=yk(e);return t.resolve().then((e=>n.extract(e)))}const xk="lasso",Sk=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:"event:"+e,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:xk,enable(e,n){if(this.started===xk||!n)return!0;if(!o.actions.select.enabled()||!o.actions.lasso.enabled()||!o.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==xk&&(o.actions.select.emit("start",xk),this.chart.component(e).emit("lassoStart",t),this.started=xk)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),o.actions.select.emit("end",xk)}}});const wk=({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"}),p=this.chart.component("tooltip"),m="mouse"!==t.pointerType&&p&&p.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)}}if(p&&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,p,{nodes:n,opts:i,customTooltipModel:e})}else p.emit("show",t,{nodes:d})}else m&&p.emit("hide")}}}};const Ck=({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 Mk=({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)));return 0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(t+"-"))}(o,t)?(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)},[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 kk(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:p}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>"@"+e)).join(",")},on:p?{bubbleEnd(){p()}}:{},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=Mk(e,t,"range");return{interactions:[e.onEdited?Ck(e,t):null,r].filter(Boolean),components:[n]}}const Ek={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"}}},Tk="inner-time-axis",Nk="outer-time-axis";const Lk={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}},Dk={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=Lk.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?d(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=Dk.getAxisData(e,t),r=!e.qDimensionInfo.length,o=r||t?void 0:e.qDimensionInfo.length-1,i=Dk.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Me.getAdjustedMaxGlyphCount(i,n,o,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=Dk.getAxisData(e),n=Lk.getMaxGlyphCount(e,0);return Me.getAdjustedMaxGlyphCount(n,t,0)}};var qk=3,Ok=13;function Rk(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(),{auto:s,spacing:l}=t.layoutService.getLayoutValue("gridLine",{}),c=[],u="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,d=Ek[t.dockService.meta.major.orientation+"DimensionAxis"].minimumLayoutMode,p={type:"grid-line",x:{},layout:{minimumLayoutMode:Ek.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color}},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(u){const e=n?"end":"start",r=n?1:0,o="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:i.label.name.color,fontSize:i.label.name.fontSize,fontFamily:i.label.name.fontFamily},majorGuideLine:{stroke:i.line.major.color},minorGuideLine:{stroke:i.line.minor.color}},u={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:d},preferredSize:()=>({size:2*parseFloat(i.label.name.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:o,justify:r},guideLine:{major:{justify:r},minor:{align:o}}},style:a};c.push(ne(!0,{},u,{key:Tk,scale:GM.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!s&&0===l}},style:ne(!0,{},a,{line:{stroke:i.line.major.color},majorGuideLine:{stroke:i.line.minor.color},minorGuideLine:{stroke:i.line.major.color}})})),c.push(ne(!0,{},u,{key:Nk,scale:GM.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),c.push({type:"axis-overlay",key:"outer-axis-overlay",scale:GM.SCALE.MAIN.MAJOR,layout:{dock:"@outer-time-axis",minimumLayoutMode:d}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:GM.SCALE.MAIN.MAJOR_INNER,layout:{dock:"@inner-time-axis",minimumLayoutMode:d}}),c.push(m)}return c.push(ne(!0,{},p,{key:"inner-time-grid",x:{scale:GM.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),c.push(ne(!0,{},p,{key:"outer-time-grid",x:{scale:GM.SCALE.MAIN.MAJOR}})),c}if(o.isContinuous){const e="continuous-axis";u&&(c.push({type:"axis",key:e,scale:GM.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:d},settings:{labels:{align:0,offset:4,fill:i.label.name.color,fontSize:i.label.name.fontSize,fontFamily:i.label.name.fontFamily},ticks:{show:!0,stroke:i.line.major.color},line:{show:!r},minorTicks:{show:!1}}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:GM.SCALE.MAIN.MAJOR,layout:{dock:"@"+e,minimumLayoutMode:d}}),c.push(m)),c.push(ne(!0,{},p,{key:"continuous-grid",x:{scale:GM.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return c}(e,t,n,r)):i.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:o}=t.layoutService,i=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),c="horizontal"===t.dockService.meta.major.orientation,u=c?e.dimensionAxis.label:"auto",d="horizontal"===u?void 0:t.dockService.meta.minor.size/4,p={type:"axis",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:Ek[t.dockService.meta.major.orientation+"DimensionAxis"].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:u,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,fill:i.axis.label.name.color,fontSize:i.axis.label.name.fontSize,fontFamily:i.axis.label.name.fontFamily},line:{show:!r,stroke:i.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]}};l&&a.push(ne(!0,{},p,{key:"group-axis",scale:GM.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":p.settings.labels.mode,maxGlyphCount:Dk.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(c||!s)&&p.settings.line.show}}}));const m=Dk.getBarAxisMaxGlyphCount(e.qHyperCube,o.isStackedByDimension);return s&&a.push(ne(!0,{},p,{key:GM.COMPONENT.BAR_AXIS,scale:GM.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:m,maxLengthPx:d,tiltThreshold:m>qk&&m<Ok?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();return a&&i.push({type:"axis",key:"y-axis",formatter:GM.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:Ek.measureAxis.minimumLayoutMode},scale:GM.SCALE.MAIN.MINOR,settings:{labels:{show:s,fill:l.axis.label.name.color,fontSize:l.axis.label.name.fontSize,fontFamily:l.axis.label.name.fontFamily},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}}}),i}var Ak={BAR:{WIDTH:.7,STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};function Pk({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=Ak.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?.9:.7}const Ik={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function zk(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=Ik[le.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 Bk(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function Fk(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function Hk(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function jk(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const Wk="max",Vk="min",Uk={min:"Min",max:"Max"};function _k(e,t,n){return void 0===n?Bk(e,t)||Fk(e,t):n===Wk?Bk(e,t):Fk(e,t)}function $k({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e["hasExplicit"+Uk[t]]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===Wk?e.implicitMax:e.implicitMin;return!_k(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function Kk(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===Wk?s.implicitMax:s.implicitMin;if(!_k(Number(l.toFixed(13)),s,n))return!1;const c=n===Wk?i.meta.minor.end:i.meta.minor.start;let u="end";r&&(u=n===Wk?"sumOfPositives":"sumOfNegatives");const d=a.getStyles();return{type:"box-out-of-bounds",key:"bar-oob-"+n,layout:{dock:c},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,dockValue:we.getDockValue(c),oob:ne({},t.settings.box,{fill:d.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[u].value)&&_k(e.datum[u].value,s,n))}})}}}function Gk(e){return Math.min(Math.max(0,e),1)}const Yk=(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(!$k({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);return{type:"box",key:`${GM.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:o},settings:{orientation:a.meta.minor.orientation,major:{scale:GM.SCALE.MAIN.MAJOR,fn:d},minor:{scale:GM.SCALE.MAIN.MINOR,start(e){var n,r;return Gk(t.scale(GM.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(r=n.start)||void 0===r?void 0:r.value)||0))},end(e){const r=t.scale(GM.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r[n]();return Gk(r(i))}},box:{width:Pk({layoutService:e.layoutService,discrete:e.discrete,componentKey:r}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(GM.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r.max();return"max"===n?i>r.max():i<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}};function Xk(e){return function(t){return It.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}function Jk(e){const t="horizontal"===e.dockService.meta.major.orientation;return{placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=e.padding||{left:n?0:4,right:n?0:4,top:n?4:0,bottom:n?4:0};return{position:e.position,justify:e.justify,fill:e.onBackground?t.color:Xk(t),overflow:e.overflow,background:e.background,padding:r}}(n,e.style,t))),label:e.label}}function Zk(e,t){if(t){if(function(e,t){return Bk(e,t)}(e,t))return-1;if(function(e,t){return Fk(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)}function Qk(e,t,n,r){const o=Zk(e,r);let i="up";return"vertical"===t&&o<0?i="down":"horizontal"===t&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}function eE(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 tE(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 nE(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 rE({layout:e,component:t,minorScale:n},r,o){if(!eE(e,r))return!1;const{viewModel:i,ds:a,viewCache:s,layoutService:l,dockService:c,themeService:u}=r,{meta:d}=l,p=s.get("minorMinMax"),m=u.getStyles();let f;!d.isStacked&&(f=d.isStacked?1:0);const h=0===f?1:0,g=d.isStacked?.5:1,v=i.fields.minor[0],y=void 0===v?void 0:a.field(v).formatter();let b,x=-1;b=d.isStacked?d.isStackedByMeasure||!y?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>x?y(e.data.segment.value):""}:function(e){return e.data.end.label};const S={label:b,simplifiedPlacements:nE(f,h,g,d.isContinuous),style:m.label.value},w=[Jk(ne(r,S))],C={key:"bar-labels",type:"labels",layout:{minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Qk(e.data.end.value,c.meta.minor.orientation,o,p),labels:w,fontSize:m.label.value.fontSize,fontFamily:m.label.value.fontFamily}}}]}};return d.isStackedByDimension&&y&&(C.beforeRender=()=>{x=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)}),C}const oE={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 Oe.getMeasure(e,s)},getMeasures(e,t,n,r,o){const i=e.resources.dataset;return t.map((e=>oE.getMeasure(i,e,n,r,o))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return TC({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,o){const i={title:oE.getTitle(t,n),color:Oe.getColor(e,t,r),measures:oE.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,o)};if(oE.useCustomTooltip(r)){var a,s,l,c;const n=oE.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);i.customMeasures=n.customTooltipAttrExpsArr,i.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===dC.CUSTOM.TITLE)),i.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===dC.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 f=r.layoutService.getLayout();var u,d,p,m;if(null!==(a=f.tooltip)&&void 0!==a&&null!==(s=a.chart)&&void 0!==s&&null!==(l=s.object)&&void 0!==l&&l.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(c=r.customTooltipModel.model)||void 0===c?void 0:c.getEffectiveProperties))if(null!==(u=(d=r.app).isInModalSelection)&&void 0!==u&&u.call(d)){if((null==f||null===(p=f.qHyperCube)||void 0===p||null===(m=p.qDimensionInfo)||void 0===m?void 0:m.length)>0){bC.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");i.customLimitation=e}}else{const t=bC.createContainer({ctx:e,layout:f});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)=>({title:e.data.label,measures:[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:""+oE.getTotalStackTitle(e,t),value:n?n(e):e})))}),extractTooltipData(e,t){const n=t.chart.formatter(GM.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=>oE.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:o.map((o=>oE.extractBarTooltipData(e,o,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:i}},extractBarNodeData(e,t,n,r,o,i,a){let s=!o&&Oe.getTitleRow(t,r);const l=Oe.hideColorRow(t,n),c=!i&&!l&&Oe.getColorRow(e,t,r),u=t.measures.map((o=>!a&&Oe.getMeasureRow(o,e,t,r,l&&o.field===n.coloring.field))).filter((e=>!oE.isSameMeasureAndColorRow(e,c,r)));if(oE.useCustomTooltip(n)){const n=o?[]:t.customMeasures.map((n=>Oe.getMeasureRow(n,e,t,r,!1))),i=!(!t.customTitle[0]||o)&&Oe.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||o)&&Oe.getDescriptionRow(t.customDescription[0],r);s=!oE.shouldIgnoreTitleRowForCtt(i,a,u,n)&&s;const l=[i,a,s,c,...u,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(CC.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>CC.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,c,...u].filter(Boolean)},extractStackTotalBarNodeData:(e,t,n)=>[!!t.measures.length&&Oe.getTitleRow(t,n),...t.measures.map((r=>Oe.getMeasureRow(r,e,t,n,!1)))].filter(Boolean),useCustomTooltip:e=>d(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)=>oE.useCustomTooltip(t)&&d(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=oE.shouldIgnoreDefaultRows(i,t);for(s=0;s<a;s++){l=r[s];const i=oE.shouldIgnoreTitleRow(o,s),d=u||oE.shouldIgnoreColorRow(o,s),p=u||oE.shouldIgnoreMeasureRow(d,l,t);if(c=c.concat(oE.extractBarNodeData(e,l,t,n,i,d,p)),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(oE.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:o,stackTotalBarTooltipData:i}=oE.extractTooltipData(e,t),a=oE.extractStackTotalBarsData(e,n,i);a.length&&a.push(Oe.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=oE.extractBarsData(e,t,n,r),c=a.concat(s),u=o+l;return u&&c.push(Oe.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 is.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,p;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,p=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),p=n===r&&void 0!==u?c.bandwidth([u,e]):c.bandwidth(e)}const m=(d+p/2)*a[l],f={width:0,height:0};return"horizontal"===s?(f.x=m,f.y=a.height):(f.y=m,f.x=0),f},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?oE.calculateBoundsFromBars(l):oE.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)=>e.filter((e=>t.some((t=>n(e,t,r))))),findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=oE.isBarMatchingLabelOnProp;return oE.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=oE.isBarMatchingLabel;return oE.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=oE.findBarsFromBarLabelsInGroupedByDim(e,o,r),s=oE.findBarsFromGroupLabelsInGroupedByDim(e,i,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=oE.isBarMatchingLabel;return oE.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=oE.isBarMatchingLabel;return oE.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=oE.isBarMatchingLabelOnProp;return oE.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>oE.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:o,stackProp:i}){const{meta:a}=t.layoutService,s=oE.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?oE.findBarsFromLabelsInStackedByDim(s,e,i):a.isStackedByMeasure?oE.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?oE.findBarsFromLabelsInGroupedByDim(s,e,r,o):oE.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const o=oE.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?oE.findStackTotalBarsFromLabelsInStackedByDim(o,e):oE.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:p}=t.layoutService;if(e.length){let m=oE.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(m=m.filter(d)),oE.isSingleBarMode(p,m))return[m[0]];if(m.length){let p=oE.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,i,a],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});d&&(p=p.filter(d));const f=oE.calculateTotalBounds({opts:t,labels:e,bars:p,barKey:n,barAxisKey:o,groupProp:s,majorScale:c,majorInnerScale:u}),h=oE.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r});return[{key:n,bounds:f,childrenNodes:m,data:m.map((e=>e.data)),stackTotalBarNodes:h}]}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 p=oE.filterNodesOnKeys(e,[o,i]),m=p&&p.length?[p[0]]:[];const f=oE.filterNodesOnLabels({labels:m,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d});if(f&&f.length)return f;const{meta:h}=t.layoutService;if(h.isStackedByMeasure){p=oE.filterNodesOnKeys(e,[a,s]),m=p&&p.length?[p[0]]:[];const i=e=>oE.filterNodesForOob(e,n,a),f=oE.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(f&&f.length)return f[0].stackTotalBarNodes=void 0,f}if(h.isStackedByDimension){p=oE.filterNodesOnKeys(e,[a,s]),m=p&&p.length?[p[0]]:[];const i=e=>oE.filterNodesForOob(e,n,a),f=oE.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(f&&f.length)return f[0].stackTotalBarNodes=void 0,f}const g=oE.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function iE(e,t={},n){let r=[];const o=Te({key:GM.COMPONENT.BASE_TOOLTIP,rtl:n});return ne(!0,o,{scale:GM.SCALE.MAIN.COLOR,settings:{filter:e=>oE.filterNodes({nodes:e,opts:t,barKey:GM.COMPONENT.BAR,stackTotalBarKey:GM.COMPONENT.STACK_TOTAL_BAR,barAxisKey:GM.COMPONENT.BAR_AXIS,groupAxisKey:GM.COMPONENT.GROUP_AXIS,barOobMaxKey:GM.COMPONENT.BAR_OOB_MAX,barOobMinKey:GM.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],oE.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&&bC.show({app:o,properties:i,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const aE={extractData:(e,t)=>[Oe.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 sE(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Te({key:GM.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return ne(!0,r,{scale:GM.SCALE.MAIN.COLOR,settings:{filter:e=>aE.filterNodes(e,GM.COMPONENT.LEGEND_COLOR_CAT),extract:e=>aE.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function lE(e){return"NaN"===e.qMin&&"NaN"===e.qMax}function cE(e,{fill:t}){return{[GM.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[GM.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const uE=1,dE=3;function pE(e){return e.getLayoutValue("gridLine.auto")}function mE(e){return!pE(e)&&e.getLayoutValue("gridLine.spacing")===uE}function fE(e){return!pE(e)&&e.getLayoutValue("gridLine.spacing")===dE}const hE=(e,{themeService:t,layoutService:n,dockService:r})=>{if(!pE(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:o}=t.getStyles(),i={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:Ek.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!mE(n)||((e,t)=>t%2==0),stroke:o.line.major.color},minorTicks:{show:fE(n),stroke:o.line.minor.color}};return i["horizontal"===r.meta.major.orientation?"y":"x"]=GM.SCALE.MAIN.MINOR,i};function gE(e,t){const n=[hE(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n})=>{const r=n.get("minorMinMax");if(r.min>0||r.max<0)return!1;const o=t.getStyles(),i={};return i["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:GM.SCALE.MAIN.MINOR,line:{stroke:o.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:GM.SCALE.MAIN.MINOR,lines:i}})(t)),n}const vE="areaPan",yE=e=>({type:"Pan",key:"panorama",options:{event:vE,pointers:1,threshold:10,enable(t,n){return this.started===vE||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===GM.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=vE;const n=e.viewState.get("zoom");this.areaPan={min:n.min,max:n.max,size:e.chart.component(GM.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:o,size:i}=this.areaPan,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 bE(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:o}=e,{rtl:i}=t,a=mw.event.onZoom({viewCache:n,viewState:r,chart:o},{threshold:100,rtl:i,targetKey:GM.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===GM.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 xE({chart:e},t,n){const r=e.component(GM.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(GM.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&i.emit("hide");const a=e.component(GM.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function SE(e,t){const{viewCache:n,viewState:r,chart:o,trendLineModel:i,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?mw.event.onZoom({viewCache:n,viewState:r,chart:o},{rtl:s,threshold:50,targetKey:GM.COMPONENT.BAR}):void 0,c=FM({majorInnerScale:GM.SCALE.MAIN.MAJOR_INNER,tooltip:GM.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:GM.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:o,viewState:r,trendLineModel:i,layoutService:a,rtl:s}),u=[GM.COMPONENT.BAR,GM.COMPONENT.BAR_AXIS,GM.COMPONENT.GROUP_AXIS,GM.COMPONENT.BAR_OOB_MAX,GM.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,p=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===GM.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===GM.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(),xE(e,p,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(GM.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);p(t,r,{nodes:o,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const o=this.chart.component(GM.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&(n.some((e=>e.key===GM.COMPONENT.LEGEND_COLOR_CAT))?o.emit("show",t):o.emit("hide"))}},mouseup(t){2===t.button&&xE(this,p,e)},mouseleave(){xE(this,p,e)}}}}const wE=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...Ow({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[yE(e,t.rtl),bE(e,t)]]});function CE(e,t){const{actions:n}=e;if(!n.interact.enabled())return[];const r=[wE(e,t),SE(e,t),Ow({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&r.push(e.discrete.interactions.native),r}const ME=(e,t,{collectionKey:n})=>{if(!bw({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r},{collectionKey:o}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:o},settings:{box:ne(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:ne(!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}}}}(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}}}},{measureText:kE}=t.renderer("svg")();const EE=50,TE=100,NE=200;function LE(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function DE(e,t,n){return 0===t||0===e||t===n.length-1}function qE(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}const OE=(e,t)=>e.value-t.value,RE=e=>({value:e,isMinor:!1}),AE=e=>({value:e,isMinor:!0});function PE({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:GM.SCALE.MAIN.MAJOR},minor:{scale:GM.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}}}}const IE={min:"Min",max:"Max"};function zE(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?Hk(e,t)||jk(e,t):n===Wk?Hk(e,t):jk(e,t)}(Number(r.toFixed(13)),e,t)}function BE(e,{barComponent:t,type:n,isStacked:r}){var o,i,a,s;const{viewCache:l,layoutService:c,dockService:u}=e,d=l.get("minorMinMax"),p=n===Wk;if(function(e,t){return!e["hasOther"+IE[t]]}(d,n)){if(function(e,t){return!e["hasExplicit"+IE[t]]}(d,n))return!1;if(zE(d,n,p))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e["hasExplicit"+IE[t]]&&r(e["explicit"+IE[t]])}(d,n,p))return!1;let m="end";r&&(m=p?"sumOfPositives":"sumOfNegatives");const f=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(GM.SCALE.MAIN.MINOR)[n]())),h=p?e=>e.datum[m].value>f():e=>e.datum[m].value<f(),g=GM.COMPONENT.BAR,v=e.layoutService.getLayoutValue("components",[]),y=v?v.filter((e=>e.key===g))[0]:null;return{type:"box-sliced-hat",key:"sliced-hat-"+n,layout:{dock:p?u.meta.minor.end:u.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:ne({},t.settings.box,{fill:c.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:h,width:Pk({layoutService:e.layoutService,discrete:e.discrete,componentKey:g}),strokeWidth:null!=y&&null!==(o=y.style)&&void 0!==o&&o.strokeWidth?Ak.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:Ak.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==y||null===(a=y.style)||void 0===a||null===(s=a.strokeColor)||void 0===s?void 0:s.color)&&void 0!==i?i:Ak.BAR.STROKE.COLOR})}}}function FE(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 HE(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=!n.isCustomFormatted&&(n.qIsAutoFormat||"U"===n.qNumFormat.qType);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,p=d?{field:d,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,m={field:r.isDimensionless?t:o.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:s(t),null:(f=t,{field:f,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:p,...a,...c,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${i}`},customTooltipAttrExps:0!==r.dimensionCount?kC.getNode(e.layoutService.getLayout(),r):void 0}};var f;return r.isDimensionless&&(m.value=i),void 0!==n&&(m.source=n),he(m.props),m}))}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}function jE({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 WE="main-collection",VE="stack-total-collection";const UE="mini-collection",_E="mini-stack-collection",$E="mini-continuous-collection",KE="miniCube",GE=(e,t)=>{const n=(e=>{const t=[HE(e,{collectionKey:WE})];return e.layoutService.meta.isStacked&&t.push(jE(e,{collectionKey:VE})),t})(t),r=((e,t)=>{const n=[];return bw({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(HE(t,{collectionKey:$E},KE)):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:_E})):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:UE}))),n})(0,t);return n.concat(r)};function YE(e,t,n){const r=[{position:e,onBackground:!0,justify:0,overflow:n}];return t&&r.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:{fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}}}),r}function XE({layout:e,component:t},n,r){if(!tE(e,n))return!1;const{meta:o}=n.layoutService,i=!eE(e,n),a=n.themeService.getStyles();function s(e){const t=n.chart.formatter(GM.FORMATTER.MINOR);return t?t(e):e}const l={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":s(e.data.sumOfPositives.value)},simplifiedPlacements:YE("outside",i,o.isContinuous),style:a.label.value},c={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":s(e.data.sumOfNegatives.value)},simplifiedPlacements:YE("opposite",i,o.isContinuous),style:a.label.value};return{key:"stack-total-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Qk(e.data.sumOfPositives.value,n.dockService.meta.minor.orientation,r),labels:[Jk(ne(n,l)),Jk(ne(n,c))],fontSize:a.label.value.fontSize,fontFamily:a.label.value.fontFamily}}}]}}}function JE(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 ZE({layout:e,type:t},n){const{layoutService:r,viewCache:o,themeService:i}=n,{meta:a}=r,{isStacked:s}=a;if(!s&&!eE(e,n)||s&&!tE(e,n))return!1;const l=o.get("minorMinMax");if(!l.hasExplicitMinMax||t===Wk&&0===l.max||t===Vk&&0===l.min)return!1;if(!_k(t===Wk?l.implicitMax:l.implicitMin,l,t))return!1;const c=i.getStyles();let u=e=>e.data.end.label;a.isStacked&&(u=t===Wk?function(e){if(_k(e.data.sumOfNegatives.value,l,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(GM.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(_k(e.data.sumOfPositives.value,l,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(GM.FORMATTER.MINOR);return r?r(t):t}return""});const d={color:"#595959",lightColor:"#E6E6E6",darkColor:"#595959",fontSize:13,fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'},p={label:u,simplifiedPlacements:JE("outside",true,a.isContinuous),style:d},m={label:u,simplifiedPlacements:JE("opposite",true,a.isContinuous),style:d},f=[Jk(ne(n,p)),Jk(ne(n,m))],h="vertical"===n.dockService.meta.minor.orientation?"down":"right",g={component:`${GM.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:h,labels:f,fontSize:c.label.value.fontSize,fontFamily:c.label.value.fontFamily}}};return{key:"bar-oob-labels-"+t,type:"labels",layout:{minimumLayoutMode:"XSMALL"},settings:{sources:[g]}}}function QE(e){return"all"===e||"title"===e}function eT(e,t,n){if(!QE(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:r,properties:o}=t,i=t.themeService.getStyles(),a={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};return t.layoutService.meta.hasMultipleDimensions&&(a.padding="0",a.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:Ek[t.dockService.meta.major.orientation+"DimensionAxisTitle"].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:a,style:{fontFamily:i.axis.title.fontFamily,fontSize:i.axis.title.fontSize,color:i.axis.title.color}}}function tT(e,t,n){if(!QE(e.measureAxis.show))return!1;const{layoutService:r,actions:o}=t,i=t.properties,a=r.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",s=t.themeService.getStyles(),l={hyperCube:r.getHyperCube(),hyperCubeDef:d(i,a),isDimension:!1,disabled:()=>!o.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections};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:{fontFamily:s.axis.title.fontFamily,fontSize:s.axis.title.fontSize,color:s.axis.title.color}}}function nT({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:o,dockService:i,themeService:a,chart:s}){const{theme:l,localeInfo:c}=e,u={resolveUIColor:o.getMain().getPaletteColor},d=a.getStyles();return[ns({refLineModel:n,layoutService:r,colorModel:u,dockService:i,chart:s,scale:GM.SCALE.MAIN.MINOR,axis:"horizontal"===i.meta.major.orientation?"y":"x",key:GM.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:Ek.refLines.minimumLayoutMode}),ns({isDimension:!0,refLineModel:n,layoutService:r,colorModel:u,dockService:i,chart:s,scale:GM.SCALE.MAIN.MAJOR,axis:"horizontal"===i.meta.major.orientation?"x":"y",rtl:t,key:GM.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:GM.COMPONENT.BAR,minimumLayoutMode:Ek.refLines.minimumLayoutMode}),...os({refLineModel:n,layoutService:r,colorModel:u,dock:i.meta.minor.opposite,scale:GM.SCALE.MAIN.MINOR,style:d,formatter:GM.FORMATTER.MINOR,theme:l,localeInfo:c,rtl:t,key:GM.COMPONENT.MEASURE_REF_LINE_LABEL}),...os({isDimension:!0,refLineModel:n,layoutService:r,colorModel:u,dock:i.meta.major.opposite,scale:GM.SCALE.MAIN.MAJOR,style:d,theme:l,localeInfo:c,rtl:t,key:GM.COMPONENT.DIMENSION_REF_LINE_LABEL})]}function rT(e){if("custom"===e.dimensionAxis.axisDisplayMode){const t=e.qHyperCubeDef.qMeasures.length,n=e.qHyperCubeDef.qDimensions.length,r=e.dimensionAxis.maxVisibleItems;r<1?e.dimensionAxis.maxVisibleItems=10:r>1e4/(n+t)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(n+t))))}}const oT=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],iT={component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,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(oT).map((e=>oT[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",items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue(e,t,n){const{properties:r}=n,{barGrouping:o,qHyperCubeDef:i}=r,a=i.qMeasures.length,s=i.qDimensions.length,l="grouped"===o.grouping&&s>0&&a+s>2;return be.continuous(r)?1:l?.9:.7},schemaIgnore:!0}}}}}}},aT={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,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(oT).map((e=>oT[e])),schemaIgnore:!0,defaultValue:oT[0].value},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891",index:-1},width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"items",show:(e,t)=>!be.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t)=>((e,t)=>{var n,r,o,i,a;const s=null===(n=e.qHyperCubeDef)||void 0===n||null===(r=n.qMeasures)||void 0===r?void 0:r.length,l=null===(o=e.qHyperCubeDef)||void 0===o||null===(i=o.qDimensions)||void 0===i?void 0:i.length,c="grouped"===(null===(a=e.barGrouping)||void 0===a?void 0:a.grouping)&&l>0&&s+l>2;return be.continuous(t)?1:c?.9:.7})(t.properties,t.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(hw.OPTIONS).map((e=>hw.OPTIONS[e])),schemaIgnore:!0,defaultValue:hw.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}}}}}}}}};function sT(e=!1){return e?aT:iT}const lT={...sT(!1)},cT={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"bar",ref:"components",defaultValues(e){const t=e.qHyperCubeDef.qMeasures.length,n=e.qHyperCubeDef.qDimensions.length;return{key:"bar",style:{width:"grouped"===e.barGrouping.grouping&&n>0&&t+n>2?.9:.7,strokeColor:{index:-1,color:"#205891"},strokeWidth:"none"}}},items:{bar:{components:"items",type:"items",uses:"styling.box",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},width:{show:(e,t,n)=>!be.continuous(n.layout),component:"slider",min:.01,max:1,step:.01,defaultValue:.7}}}}},uT=e=>({get:(t,n,r)=>be.continuous(r.layout)?e:t(n.type),set(e,t,n){const r=Ce(n.type,n);t(n.type,e,r)}}),dT=e=>e&&!be.continuous(e)&&be.stacked(e),pT=({translator:e,flags:t,anything:n})=>{var r,o;const i=null==n||null===(r=n.sense)||void 0===r||null===(o=r.isUnsupportedFeature)||void 0===o?void 0:o.call(r,"continuousData"),a={items:{labels:{items:{header:{show(e){var t,n;return null===(t=e.qHyperCubeDef)||void 0===t||null===(n=t.qMeasures)||void 0===n?void 0:n.length}},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t)=>!dT(t.layout)&&e.qHyperCubeDef.qMeasures.length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>dT(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)=>dT(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=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,o){o.dimensionAxis.show=e?"labels":"all"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qMeasures.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"}}}}}}},s={uses:"settings",items:{simpleStyling:sT(!0),simpleLabels:a,general:{items:{showDisclaimer:null!=t&&t.isEnabled("SHOW_DISCLAIMER")?{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}:void 0}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:null!=t&&t.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_BARCHART")?lT:cT,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){const t=e.qHyperCubeDef.qMeasures.length,n=e.qHyperCubeDef.qDimensions.length;return n>0&&t+n>2},change(e,t){t.getDimensions().length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>be.continuous(n.layout),convertFunctions:uT("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)=>be.continuous(n.layout),convertFunctions:uT("vertical")},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(hw.OPTIONS).map((e=>hw.OPTIONS[e])),defaultValue:hw.DEFAULT.value},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!be.continuous(n.layout)}}},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}},valueLabels:{type:"items",snapshot:{tid:"property-valueLabels"},items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!1,options:[{value:!0,label:(t,n)=>((e,t,n)=>n&&n.get(dT(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&&dT(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&&dT(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,n,r)=>t&&t.isEnabled("BC_XAXIS_MODE")&&!be.continuous(r.layout),items:{axisDisplayMode:{ref:"dimensionAxis.axisDisplayMode",type:"string",translation:"properties.axis.displaymode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{ref:"dimensionAxis.maxVisibleItems",translation:"properties.axis.maxvisiblevalues",expression:"optional",type:"integer",invalid(e){const t=e.qHyperCubeDef.qMeasures.length,n=e.qHyperCubeDef.qDimensions.length,r=e.dimensionAxis.maxVisibleItems;return r<0||r>1e4/(n+t)},globalChange:rT,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:!i}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(s.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"}]}}}),s},mT={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}}}}}},fT={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},hT=({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)=>t.properties&&t.properties.qHyperCubeDef.qDimensions[0]===e)(e,t),s=be.continuous(r.layout);return!(a&&s)}}}},measures:{items:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"trendlines")?{}:{trendLines:WM({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function gT({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:hT({translator:e,flags:t,anything:n}),sorting:mT,addons:fT,settings:pT({translator:e,flags:t,anything:n})}}}function vT(e){const t={},n=d(e,"components"),r=d(e,"dimensionAxis.axisDisplayMode"),o=d(e,"dimensionAxis.maxVisibleItems"),i=n?n.filter((e=>"bar"===e.key))[0]:void 0,a=d(e,"tooltip");if(i&&i.style&&Object.keys(i.style).forEach((e=>{t["chart_style_"+e]=i.style[e]})),o&&(t.chart_dimaxis_maxVisibleItems=o),r&&(t.chart_dimaxis_axisDisplayMode=r),a){t.chart_tooltip_custom=!a.auto;const e=d(a,"chart.object.refId");!a.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const yT=e=>!!(e&&e.qHyperCube.qSize.qcy>0),bT={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function xT(e){const t=[];return Object.keys(bT).forEach((n=>{e.isEnabled(n)&&t.push(bT[n])})),t}function ST(e){const{flags:t}=e;return{definition:gT(e),softDefinition:{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t){const n=t.qHyperCubeDef.qMeasures.length,r=t.qHyperCubeDef.qDimensions.length;return 1===n&&2===r&&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){return e.qHyperCubeDef.qMeasures.length+e.qHyperCubeDef.qDimensions.length>2&&!be.continuous(t)&&!((null==(n=t)||null===(r=n.qHyperCube)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.length)>1&&(null==n||null===(i=n.qHyperCube)||void 0===i?void 0:i.isHCEnabled));var n,r,o,i},change(e){e.qHyperCubeDef.qDimensions.length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!be.continuous(t)}}},color:{uses:"color"}}},support:{snapshot:yT,export:yT,exportData:!0,sharing:yT,viewData:!0,effects:!0,modifiers:xT(t)},importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=V.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:BC(e),defaultPropertyValues:a,hypercubePath:o,extension:r}),l=s.qProperty;return l.qHyperCubeDef.qDimensions.length>1&&"stacked"===l.barGrouping.grouping&&(l.qHyperCubeDef.qMode="K"),s},exportProperties:(e,t,n)=>V.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n}),migrate:{properties:e=>(e.qExtendsId||(function(e){e.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=hw.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:vT}}}}}));
|
|
47
|
+
*/var wv=xv&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Sv))}};function Cv(e){return e&&"[object Function]"==={}.toString.call(e)}function Mv(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function kv(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Ev(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Mv(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:Ev(kv(e))}function Tv(e){return e&&e.referenceNode?e.referenceNode:e}var Nv=xv&&!(!window.MSInputMethodContext||!document.documentMode),Lv=xv&&/MSIE 10/.test(navigator.userAgent);function qv(e){return 11===e?Nv:10===e?Lv:Nv||Lv}function Dv(e){if(!e)return document.documentElement;for(var t=qv(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Mv(n,"position")?Dv(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ov(e){return null!==e.parentNode?Ov(e.parentNode):e}function Rv(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&Dv(a.firstElementChild)!==a?Dv(l):l;var c=Ov(e);return c.host?Rv(c.host,t):Rv(e,Ov(t).host)}function Av(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function Pv(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Av(t,"top"),o=Av(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function Iv(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function zv(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],qv(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Bv(e){var t=e.body,n=e.documentElement,r=qv(10)&&getComputedStyle(n);return{height:zv("Height",t,n,r),width:zv("Width",t,n,r)}}var Fv=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Hv=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),jv=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Wv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Vv(e){return Wv({},e,{right:e.left+e.width,bottom:e.top+e.height})}function _v(e){var t={};try{if(qv(10)){t=e.getBoundingClientRect();var n=Av(e,"top"),r=Av(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?Bv(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=Mv(e);l-=Iv(u,"x"),c-=Iv(u,"y"),o.width-=l,o.height-=c}return Vv(o)}function Uv(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=qv(10),o="HTML"===t.nodeName,i=_v(e),a=_v(t),s=Ev(e),l=Mv(t),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Vv({top:i.top-a.top-c,left:i.left-a.left-u,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var p=parseFloat(l.marginTop,10),m=parseFloat(l.marginLeft,10);d.top-=c-p,d.bottom-=c-p,d.left-=u-m,d.right-=u-m,d.marginTop=p,d.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=Pv(d,t)),d}function $v(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Uv(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Av(n),s=t?0:Av(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return Vv(l)}function Kv(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Mv(e,"position"))return!0;var n=kv(e);return!!n&&Kv(n)}function Gv(e){if(!e||!e.parentElement||qv())return document.documentElement;for(var t=e.parentElement;t&&"none"===Mv(t,"transform");)t=t.parentElement;return t||document.documentElement}function Yv(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?Gv(e):Rv(e,Tv(t));if("viewport"===r)i=$v(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=Ev(kv(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Uv(s,a,o);if("HTML"!==s.nodeName||Kv(a))i=l;else{var c=Bv(e.ownerDocument),u=c.height,d=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=d+l.left}}var p="number"==typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function Xv(e){return e.width*e.height}function Jv(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Yv(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return Wv({key:e},s[e],{area:Xv(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Zv(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?Gv(t):Rv(t,Tv(n));return Uv(n,o,r)}function Qv(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function ey(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function ty(e,t,n){n=n.split("-")[0];var r=Qv(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[ey(s)],o}function ny(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ry(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=ny(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Cv(n)&&(t.offsets.popper=Vv(t.offsets.popper),t.offsets.reference=Vv(t.offsets.reference),t=n(t,e))})),t}function oy(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Zv(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Jv(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ty(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ry(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function iy(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function ay(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function sy(){return this.state.isDestroyed=!0,iy(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ay("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ly(e){var t=e.ownerDocument;return t?t.defaultView:window}function cy(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||cy(Ev(i.parentNode),t,n,r),r.push(i)}function uy(e,t,n,r){n.updateBound=r,ly(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Ev(e);return cy(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function dy(){this.state.eventsEnabled||(this.state=uy(this.reference,this.options,this.state,this.scheduleUpdate))}function py(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,ly(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function my(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function fy(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&my(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var hy=xv&&/Firefox/i.test(navigator.userAgent);function gy(e,t,n){var r=ny(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var vy=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],yy=vy.slice(3);function by(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=yy.indexOf(e),r=yy.slice(n+1).concat(yy.slice(0,n));return t?r.reverse():r}var xy="flip",Sy="clockwise",wy="counterclockwise";function Cy(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(ny(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return Vv(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){my(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var My={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:jv({},l,i[l]),end:jv({},l,i[l]+i[c]-a[c])};e.offsets.popper=Wv({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],l=void 0;return l=my(+n)?[+n,0]:Cy(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Dv(e.instance.popper);e.instance.reference===n&&(n=Dv(n));var r=ay("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=Yv(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),jv({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),jv({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Wv({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!gy(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",m=l?"bottom":"right",f=Qv(r)[c];s[m]-f<a[d]&&(e.offsets.popper[d]-=a[d]-(s[m]-f)),s[d]+f>a[m]&&(e.offsets.popper[d]+=s[d]+f-a[m]),e.offsets.popper=Vv(e.offsets.popper);var h=s[d]+s[c]/2-f/2,g=Mv(e.instance.popper),v=parseFloat(g["margin"+u],10),y=parseFloat(g["border"+u+"Width"],10),b=h-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[c]-f,b),0),e.arrowElement=r,e.offsets.arrow=(jv(n={},d,Math.round(b)),jv(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(iy(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Yv(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=ey(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case xy:a=[r,o];break;case Sy:a=by(r);break;case wy:a=by(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=ey(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),m=d(c.left)<d(n.left),f=d(c.right)>d(n.right),h=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===r&&m||"right"===r&&f||"top"===r&&h||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&m||y&&"end"===i&&f||!y&&"start"===i&&h||!y&&"end"===i&&g),x=!!t.flipVariationsByContent&&(y&&"start"===i&&f||y&&"end"===i&&m||!y&&"start"===i&&g||!y&&"end"===i&&h),S=b||x;(p||v||S)&&(e.flipped=!0,(p||v)&&(r=a[l+1]),S&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=Wv({},e.offsets.popper,ty(e.instance.popper,e.offsets.reference,e.placement)),e=ry(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=ey(t),e.offsets.popper=Vv(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!gy(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=ny(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=ny(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=Dv(e.instance.popper),l=_v(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(o.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?i:a:s,m=t?i:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!hy),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",m=ay("transform"),f=void 0,h=void 0;if(h="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,f="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&m)c[m]="translate3d("+f+"px, "+h+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===p?-1:1;c[d]=h*g,c[p]=f*v,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=Wv({},y,e.attributes),e.styles=Wv({},c,e.styles),e.arrowStyles=Wv({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return fy(e.instance.popper,e.styles),function(e,t){Object.keys(t).forEach((function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)}))}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&fy(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=Zv(o,t,e,n.positionFixed),a=Jv(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),fy(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ky=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Fv(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=wv(this.update.bind(this)),this.options=Wv({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Wv({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=Wv({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Wv({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Cv(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return Hv(e,[{key:"update",value:function(){return oy.call(this)}},{key:"destroy",value:function(){return sy.call(this)}},{key:"enableEventListeners",value:function(){return dy.call(this)}},{key:"disableEventListeners",value:function(){return py.call(this)}}]),e}();function Ey(e){return"function"==typeof e?e():e}ky.Utils=("undefined"!=typeof window?window:global).PopperUtils,ky.placements=vy,ky.Defaults=My;var Ty="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,Ny={},Ly=o.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,i=e.container,a=e.disablePortal,s=void 0!==a&&a,l=e.keepMounted,c=void 0!==l&&l,u=e.modifiers,d=e.open,p=e.placement,m=void 0===p?"bottom":p,f=e.popperOptions,h=void 0===f?Ny:f,g=e.popperRef,v=e.transition,y=void 0!==v&&v,b=Ds(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition"]),x=o.useRef(null),S=_p(x,t),w=o.useRef(null),C=_p(w,g),M=o.useRef(C);Ty((function(){M.current=C}),[C]),o.useImperativeHandle(g,(function(){return w.current}),[]);var k=o.useState(!0),E=k[0],T=k[1],N=function(e){if("rtl"!==("undefined"!=typeof window&&document.body.getAttribute("dir")||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(m),L=o.useState(N),q=L[0],D=L[1],O=o.useCallback((function(){if(x.current&&n&&d){w.current&&(w.current.destroy(),M.current(null));var e=function(e){D(e.placement)};Ey(n);var t=new ky(Ey(n),x.current,qs({placement:N},h,{modifiers:qs({},s?{}:{preventOverflow:{boundariesElement:"window"}},{},u,{},h.modifiers),onCreate:Zf(e,h.onCreate),onUpdate:Zf(e,h.onUpdate)}));M.current(t)}}),[n,s,u,d,N,h]),R=o.useCallback((function(e){Vp(S,e),O()}),[S,O]),A=function(){w.current&&(w.current.destroy(),M.current(null))};if(o.useEffect((function(){O()}),[O]),o.useEffect((function(){return function(){A()}}),[]),o.useEffect((function(){d||y||A()}),[d,y]),!c&&!d&&(!y||E))return null;var P={placement:q};return y&&(P.TransitionProps={in:d,onEnter:function(){T(!1)},onExited:function(){T(!0),A()}}),o.createElement(Jf,{disablePortal:s,container:i},o.createElement("div",qs({ref:R,role:"tooltip"},b,{style:qs({position:"fixed",top:0,left:0},b.style)}),"function"==typeof r?r(P):r))})),qy=uf(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Dy=uf(o.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),Oy=o.createElement(qy,null);var Ry=ip((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var t=e.checked,n=e.classes;return o.createElement("div",{className:Hd(n.root,t&&n.checked)},Oy,o.createElement(Dy,{className:n.layer}))})),Ay=o.createContext(),Py=o.createElement(Ry,{checked:!0}),Iy=o.createElement(Ry,null),zy=o.forwardRef((function(e,t){var n=e.checked,r=e.classes,i=e.color,a=void 0===i?"secondary":i,s=e.name,l=e.onChange,c=Ds(e,["checked","classes","color","name","onChange"]),u=o.useContext(Ay),d=n,p=Zf(l,u&&u.onChange),m=s;return u&&(void 0===d&&(d=u.value===e.value),void 0===m&&(m=u.name)),o.createElement(Df,qs({color:a,type:"radio",icon:Iy,checkedIcon:Py,classes:{root:Hd(r.root,r["color".concat(ap(a))]),checked:r.checked,disabled:r.disabled},name:m,checked:d,onChange:p,ref:t},c))}));function By(e){return(By="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fy(e){return(Fy="function"==typeof Symbol&&"symbol"===By(Symbol.iterator)?function(e){return By(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":By(e)})(e)}function Hy(e,t){return"object"===Fy(t)&&null!==t?e===t:String(e)===String(t)}ip((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Es(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Es(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(zy),o.forwardRef((function(e,t){var n=e.actions,r=e.children,i=e.name,a=e.value,s=e.onChange,l=Ds(e,["actions","children","name","value","onChange"]),c=o.useRef(null),u=o.useRef(null!=a).current,d=o.useState((function(){return u?null:e.defaultValue})),p=d[0],m=d[1];o.useImperativeHandle(n,(function(){return{focus:function(){var e=c.current.querySelector("input:not(:disabled):checked");e||(e=c.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var f={name:i,onChange:function(e){u||m(e.target.value),s&&s(e,e.target.value)},value:u?a:p},h=_p(t,c);return o.createElement(ng,qs({role:"radiogroup",ref:h},l),o.createElement(Ay.Provider,{value:f},r))})),o.Component;var jy=o.forwardRef((function(e,t){var n=e.autoFocus,r=e.autoWidth,i=e.children,a=e.classes,s=e.className,l=e.defaultValue,c=e.disabled,u=e.displayEmpty,d=e.labelId,p=e.IconComponent,m=e.inputRef,f=e.MenuProps,h=void 0===f?{}:f,g=e.multiple,v=e.name,y=e.onBlur,b=e.onChange,x=e.onClose,S=e.onFocus,w=e.onOpen,C=e.open,M=e.readOnly,k=e.renderValue;e.required;var E=e.SelectDisplayProps,T=void 0===E?{}:E,N=e.tabIndex;e.type;var L=e.value,q=e.variant,D=void 0===q?"standard":q,O=Ds(e,["autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","labelId","IconComponent","inputRef","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),R=o.useRef(null!=L).current,A=o.useState(l),P=A[0],I=A[1],z=R?L:P,B=o.useRef(null),F=o.useState(null),H=F[0],j=F[1],W=o.useRef(null!=C).current,V=o.useState(),_=V[0],U=V[1],$=o.useState(!1),K=$[0],G=$[1],Y=_p(t,m);o.useImperativeHandle(Y,(function(){return{focus:function(){H.focus()},node:B.current,value:z}}),[H,z]),o.useEffect((function(){n&&H&&H.focus()}),[n,H]);var X,J,Z=function(e,t){e?w&&w(t):(H.focus(),x&&x(t)),W||(U(r?null:H.clientWidth),G(e))},Q=function(e){return function(t){var n;if(g||Z(!1,t),g){n=Array.isArray(z)?mm(z):[];var r=z.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;R||I(n),b&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:v}}),b(t,e))}},ee=null!==H&&(W?C:K);delete O["aria-invalid"];var te=[],ne=!1;(Uh({value:z})||u)&&(k?X=k(z):ne=!0);var re=o.Children.map(i,(function(e){if(!o.isValidElement(e))return null;var t;if(g){if(!Array.isArray(z))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(t=z.some((function(t){return Hy(t,e.props.value)})))&&ne&&te.push(e.props.children)}else(t=Hy(z,e.props.value))&&ne&&(J=e.props.children);return o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:Q(e),role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ne&&(X=g?te.join(", "):J);var oe,ie=_;!r&&W&&H&&(ie=H.clientWidth),oe=void 0!==N?N:c?null:0;var ae=T.id||(v?"mui-component-select-".concat(v):void 0);return o.createElement(o.Fragment,null,o.createElement("div",qs({className:Hd(a.root,a.select,a.selectMenu,a[D],s,c&&a.disabled),ref:j,tabIndex:oe,role:"button","aria-expanded":ee?"true":void 0,"aria-labelledby":"".concat(d||""," ").concat(ae||""),"aria-haspopup":"listbox",onKeyDown:function(e){if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Z(!0,e))}},onClick:c||M?null:function(e){Z(!0,e)},onBlur:function(e){!ee&&y&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:v}}),y(e))},onFocus:S},T,{id:ae}),function(e){return null==e||"string"==typeof e&&!e.trim()}(X)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):X),o.createElement("input",qs({value:Array.isArray(z)?z.join(","):z,name:v,ref:B,type:"hidden",autoFocus:n},O)),o.createElement(p,{className:Hd(a.icon,a["icon".concat(ap(D))],ee&&a.iconOpen)}),o.createElement(sv,qs({id:"menu-".concat(v||""),anchorEl:H,open:ee,onClose:function(e){Z(!1,e)}},h,{MenuListProps:qs({"aria-labelledby":d,role:"listbox",disableListWrap:!0},h.MenuListProps),PaperProps:qs({},h.PaperProps,{style:qs({minWidth:ie},null!=h.PaperProps?h.PaperProps.style:null)})}),re))})),Wy=mv,Vy=o.createElement(Eg,null),_y=o.createElement(Xh,null),Uy=o.forwardRef((function e(t,n){var r=t.autoWidth,i=void 0!==r&&r,a=t.children,s=t.classes,l=t.displayEmpty,c=void 0!==l&&l,u=t.IconComponent,d=void 0===u?pv:u,p=t.id,m=t.input,f=t.inputProps,h=t.labelId,g=t.MenuProps,v=t.multiple,y=void 0!==v&&v,b=t.native,x=void 0!==b&&b,S=t.onClose,w=t.onOpen,C=t.open,M=t.renderValue,k=t.SelectDisplayProps,E=t.variant,T=void 0===E?"standard":E,N=t.labelWidth,L=void 0===N?0:N,q=Ds(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant","labelWidth"]),D=x?dv:jy,O=Fh({props:t,muiFormControl:Tf(),states:["variant"]}).variant||T,R=m||{standard:Vy,outlined:o.createElement(bv,{labelWidth:L}),filled:_y}[O];return o.cloneElement(R,qs({inputComponent:D,select:!0,inputProps:qs({children:a,IconComponent:d,variant:O,type:void 0,multiple:y},x?{}:{autoWidth:i,displayEmpty:c,labelId:h,MenuProps:g,onClose:S,onOpen:w,open:C,renderValue:M,SelectDisplayProps:qs({id:p},k)},{},f,{classes:f?yd({baseClasses:s,newClasses:f.classes,Component:e}):s},m?m.props.inputProps:{}),ref:n},q))}));Uy.muiName="Select";var $y=ip(Wy,{name:"MuiSelect"})(Uy);var Ky=ip((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:qs({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,left:"calc(-50% + -4px)",transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,i=e.open,a=e.value,s=e.valueLabelDisplay;return"off"===s?t:o.cloneElement(t,{className:Hd(t.props.className,(i||"on"===s)&&n.open,n.thumb)},o.createElement("span",{className:Hd(n.offset,r)},o.createElement("span",{className:n.circle},o.createElement("span",{className:n.label},a))))}));function Gy(e,t){return e-t}function Yy(e,t,n){return e<t?t:e>n?n:e}function Xy(e,t){return e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null).index}function Jy(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Zy(e,t,n){return 100*(e-t)/(n-t)}function Qy(e,t){var n=Math.round(e/t)*t;return Number(n.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function eb(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=mm(t);return i[o]=r,i}function tb(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[data-index="'.concat(n,'"]')).focus(),r&&r(n)}var nb={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},rb=[],ob=function(e){return e},ib=o.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],i=e["aria-valuetext"],a=e.classes,s=e.className,l=e.color,c=void 0===l?"primary":l,u=e.component,d=void 0===u?"span":u,p=e.defaultValue,m=e.disabled,f=void 0!==m&&m,h=e.getAriaLabel,g=e.getAriaValueText,v=e.marks,y=void 0===v?rb:v,b=e.max,x=void 0===b?100:b,S=e.min,w=void 0===S?0:S,C=e.name,M=e.onChange,k=e.onChangeCommitted,E=e.onMouseDown,T=e.orientation,N=void 0===T?"horizontal":T,L=e.step,q=void 0===L?1:L,D=e.ThumbComponent,O=void 0===D?"span":D,R=e.track,A=void 0===R?"normal":R,P=e.value,I=e.ValueLabelComponent,z=void 0===I?Ky:I,B=e.valueLabelDisplay,F=void 0===B?"off":B,H=e.valueLabelFormat,j=void 0===H?ob:H,W=Ds(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),V=op(),_=o.useRef(null!=P).current,U=o.useRef(),$=o.useState(-1),K=$[0],G=$[1],Y=o.useState(-1),X=Y[0],J=Y[1],Z=o.useState(p),Q=Z[0],ee=Z[1],te=_?P:Q,ne=Array.isArray(te),re=o.useRef(),oe=ne?mm(te).sort(Gy):[te];oe=oe.map((function(e){return Yy(e,w,x)}));var ie=!0===y&&null!==q?mm(Array(Math.floor((x-w)/q)+1)).map((function(e,t){return{value:w+q*t}})):y;re.current={source:te};var ae=dm(),se=ae.isFocusVisible,le=ae.onBlurVisible,ce=ae.ref,ue=o.useState(-1),de=ue[0],pe=ue[1],me=o.useRef(),fe=_p(ce,me),he=_p(t,fe),ge=Qp((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));se(e)&&pe(t),J(t)})),ve=Qp((function(){-1!==de&&(pe(-1),le()),J(-1)})),ye=Qp((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));J(t)})),be=Qp((function(){J(-1)})),xe=Qp((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=oe[n],o=(x-w)/10,i=ie.map((function(e){return e.value})),a=i.indexOf(r);switch(e.key){case"Home":t=w;break;case"End":t=x;break;case"PageUp":q&&(t=r+o);break;case"PageDown":q&&(t=r-o);break;case"ArrowRight":case"ArrowUp":t=q?r+q:i[a+1]||i[i.length-1];break;case"ArrowLeft":case"ArrowDown":t=q?r-q:i[a-1]||i[0];break;default:return}if(e.preventDefault(),q&&(t=Qy(t,q)),t=Yy(t,w,x),ne){var s=t;t=eb({values:oe,source:te,newValue:t,index:n}).sort(Gy),tb({sliderRef:me,activeIndex:t.indexOf(s)})}_||ee(t),pe(n),M&&M(e,t),k&&k(e,t)})),Se=o.useRef(),we=N;"rtl"===V.direction&&"vertical"!==N&&(we+="-reverse");var Ce=o.useCallback((function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=e.values,s=e.source,l=me.current.getBoundingClientRect(),c=l.width,u=l.height,d=l.bottom,p=l.left;if(t=0===we.indexOf("vertical")?(d-r.y)/u:(r.x-p)/c,-1!==we.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,w,x),q)n=Qy(n,q);else{var m=ie.map((function(e){return e.value}));n=m[Xy(m,n)]}n=Yy(n,w,x);var f=0;if(ne){var h=n;f=(n=eb({values:a,source:s,newValue:n,index:f=i?Se.current:Xy(a,n)}).sort(Gy)).indexOf(h),Se.current=f}return{newValue:n,activeIndex:f}}),[x,w,we,ne,q,ie]),Me=Qp((function(e){var t=Jy(e,U);if(t){var n=Ce({finger:t,move:!0,values:oe,source:te}),r=n.newValue,o=n.activeIndex;tb({sliderRef:me,activeIndex:o,setActive:G}),_||ee(r),M&&M(e,r)}})),ke=Qp((function(e){var t=Jy(e,U);if(t){var n=Ce({finger:t,values:oe,source:te}).newValue;G(-1),"touchend"===e.type&&J(-1),k&&k(e,n),U.current=void 0,document.body.removeEventListener("mousemove",Me),document.body.removeEventListener("mouseup",ke),document.body.removeEventListener("mouseenter",Ee),document.body.removeEventListener("touchmove",Me),document.body.removeEventListener("touchend",ke)}})),Ee=Qp((function(e){0===e.buttons&&ke(e)})),Te=Qp((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(U.current=t.identifier);var n=Jy(e,U),r=Ce({finger:n,values:oe,source:te}),o=r.newValue,i=r.activeIndex;tb({sliderRef:me,activeIndex:i,setActive:G}),_||ee(o),M&&M(e,o),document.body.addEventListener("touchmove",Me),document.body.addEventListener("touchend",ke)}));o.useEffect((function(){var e=me.current;return e.addEventListener("touchstart",Te),function(){e.removeEventListener("touchstart",Te),document.body.removeEventListener("mousemove",Me),document.body.removeEventListener("mouseup",ke),document.body.removeEventListener("mouseenter",Ee),document.body.removeEventListener("touchmove",Me),document.body.removeEventListener("touchend",ke)}}),[Ee,ke,Me,Te]);var Ne=Qp((function(e){E&&E(e),e.preventDefault();var t=Jy(e,U),n=Ce({finger:t,values:oe,source:te}),r=n.newValue,o=n.activeIndex;tb({sliderRef:me,activeIndex:o,setActive:G}),_||ee(r),M&&M(e,r),document.body.addEventListener("mousemove",Me),document.body.addEventListener("mouseenter",Ee),document.body.addEventListener("mouseup",ke)})),Le=Zy(ne?oe[0]:w,w,x),qe=Zy(oe[oe.length-1],w,x)-Le,De=qs({},nb[we].offset(Le),{},nb[we].leap(qe));return o.createElement(d,qs({ref:he,className:Hd(a.root,a["color".concat(ap(c))],s,f&&a.disabled,ie.length>0&&ie.some((function(e){return e.label}))&&a.marked,!1===A&&a.trackFalse,{vertical:a.vertical}[N],{inverted:a.trackInverted}[A]),onMouseDown:Ne},W),o.createElement("span",{className:a.rail}),o.createElement("span",{className:a.track,style:De}),o.createElement("input",{value:oe.join(","),name:C,type:"hidden"}),ie.map((function(e){var t,n=Zy(e.value,w,x),r=nb[we].offset(n);if(!1===A)t=-1!==oe.indexOf(e.value);else{var i=ne?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0];t=i&&"normal"===A||!i&&"inverted"===A}return o.createElement(o.Fragment,{key:e.value},o.createElement("span",{style:r,className:Hd(a.mark,t&&a.markActive)}),o.createElement("span",{"aria-hidden":!0,style:r,className:Hd(a.markLabel,t&&a.markLabelActive)},e.label))})),oe.map((function(e,t){var s=Zy(e,w,x),l=nb[we].offset(s);return o.createElement(z,{key:t,valueLabelFormat:j,valueLabelDisplay:F,className:a.valueLabel,value:"function"==typeof j?j(e,t):j,index:t,open:X===t||K===t||"on"===F,disabled:f},o.createElement(O,{className:Hd(a.thumb,a["thumbColor".concat(ap(c))],K===t&&a.active,f&&a.disabled,de===t&&a.focusVisible),tabIndex:f?null:0,role:"slider",style:l,"data-index":t,"aria-label":h?h(t):n,"aria-labelledby":r,"aria-orientation":N,"aria-valuemax":x,"aria-valuemin":w,"aria-valuenow":e,"aria-valuetext":g?g(e,t):i,onKeyDown:xe,onFocus:ge,onBlur:ve,onMouseOver:ye,onMouseLeave:be}))})))}));ip((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"11px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 11px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?Ns(e.palette.primary.main,.62):Ts(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',left:-18,top:-18,right:-18,bottom:-18},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Es(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Es(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Es(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Es(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:qs({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:22,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:22,transform:"translateY(50%)"}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(ib);var ab=o.forwardRef((function(e,t){var n=e.action,r=e.classes,i=e.className,a=e.message,s=e.role,l=void 0===s?"alert":s,c=Ds(e,["action","classes","className","message","role"]);return o.createElement(lp,qs({component:sf,variant:"body2",variantMapping:{body1:"div",body2:"div"},role:l,square:!0,elevation:6,className:Hd(r.root,i),ref:t},c),o.createElement("div",{className:r.message},a),n?o.createElement("div",{className:r.action},n):null)})),sb=ip((function(e){var t="light"===e.palette.type?.8:.98,n=ks(e.palette.background.default,t);return{root:Ls({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(ab),lb=o.forwardRef((function(e,t){var n=e.action,r=e.anchorOrigin,i=(r=void 0===r?{vertical:"bottom",horizontal:"center"}:r).vertical,a=r.horizontal,s=e.autoHideDuration,l=e.children,c=e.classes,u=e.className,d=e.ClickAwayListenerProps,p=e.ContentProps,m=e.disableWindowBlurListener,f=void 0!==m&&m,h=e.message,g=e.onClose,v=e.onEnter,y=e.onEntered,b=e.onEntering,x=e.onExit,S=e.onExited,w=e.onExiting,C=e.onMouseEnter,M=e.onMouseLeave,k=e.open,E=e.resumeHideDuration,T=e.TransitionComponent,N=void 0===T?vg:T,L=e.transitionDuration,q=void 0===L?{enter:Sl.enteringScreen,exit:Sl.leavingScreen}:L,D=e.TransitionProps,O=Ds(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),R=o.useRef(),A=o.useState(!0),P=A[0],I=A[1],z=o.useCallback((function(e){var t=null!=e?e:s;g&&null!=t&&(clearTimeout(R.current),R.current=setTimeout((function(){g&&null!=(null!=e?e:s)&&g(null,"timeout")}),t))}),[s,g]);o.useEffect((function(){return k&&z(),function(){clearTimeout(R.current)}}),[k,z]);var B=function(){clearTimeout(R.current)},F=o.useCallback((function(){if(null!=s){if(null!=E)return void z(E);z(.5*s)}}),[s,E,z]);return o.useEffect((function(){if(!f&&k)return window.addEventListener("focus",F),window.addEventListener("blur",B),function(){window.removeEventListener("focus",F),window.removeEventListener("blur",B)}}),[f,F,k]),!k&&P?null:o.createElement($f,qs({onClickAway:function(e){g&&g(e,"clickaway")}},d),o.createElement("div",qs({className:Hd(c.root,c["anchorOrigin".concat(ap(i)).concat(ap(a))],u),onMouseEnter:function(e){C&&C(e),B()},onMouseLeave:function(e){M&&M(e),F()},ref:t},O),o.createElement(N,qs({appear:!0,in:k,onEnter:Zf((function(){I(!1)}),v),onEntered:y,onEntering:b,onExit:x,onExited:Zf((function(){I(!0)}),S),onExiting:w,timeout:q,direction:"top"===i?"down":"up"},D),l||o.createElement(sb,qs({message:h,action:n},p)))))}));ip((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},i={top:24},a={bottom:24},s={right:24},l={left:24},c={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:qs({},t,Ls({},e.breakpoints.up("sm"),qs({},i,{},c))),anchorOriginBottomCenter:qs({},n,Ls({},e.breakpoints.up("sm"),qs({},a,{},c))),anchorOriginTopRight:qs({},t,{},r,Ls({},e.breakpoints.up("sm"),qs({left:"auto"},i,{},s))),anchorOriginBottomRight:qs({},n,{},r,Ls({},e.breakpoints.up("sm"),qs({left:"auto"},a,{},s))),anchorOriginTopLeft:qs({},t,{},o,Ls({},e.breakpoints.up("sm"),qs({right:"auto"},i,{},l))),anchorOriginBottomLeft:qs({},n,{},o,Ls({},e.breakpoints.up("sm"),qs({right:"auto"},a,{},l)))}}),{flip:!1,name:"MuiSnackbar"})(lb);var cb=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.alternativeLabel,a=e.children,s=e.classes,l=e.className,c=e.completed,u=void 0!==c&&c,d=e.connector,p=e.disabled,m=void 0!==p&&p,f=e.index,h=e.last,g=e.orientation,v=Ds(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","index","last","orientation"]);return o.createElement("div",qs({className:Hd(s.root,s[g],l,i&&s.alternativeLabel,u&&s.completed),ref:t},v),d&&i&&0!==f&&o.cloneElement(d,{orientation:g,alternativeLabel:i,index:f,active:r,completed:u,disabled:m}),o.Children.map(a,(function(e){return o.isValidElement(e)?o.cloneElement(e,qs({active:r,alternativeLabel:i,completed:u,disabled:m,last:h,icon:f+1,orientation:g},e.props)):null})))}));ip({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(cb);var ub=uf(o.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),db=uf(o.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),pb=o.createElement("circle",{cx:"12",cy:"12",r:"12"}),mb=o.forwardRef((function(e,t){var n=e.completed,r=void 0!==n&&n,i=e.icon,a=e.active,s=void 0!==a&&a,l=e.error,c=void 0!==l&&l,u=e.classes;return"number"==typeof i||"string"==typeof i?c?o.createElement(db,{className:Hd(u.root,u.error),ref:t}):r?o.createElement(ub,{className:Hd(u.root,u.completed),ref:t}):o.createElement(cf,{className:Hd(u.root,s&&u.active),ref:t},pb,o.createElement("text",{className:u.text,x:"12",y:"16",textAnchor:"middle"},i)):i})),fb=ip((function(e){return{root:{display:"block",color:e.palette.text.disabled,"&$active":{color:e.palette.primary.main},"&$completed":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily},active:{},completed:{},error:{}}}),{name:"MuiStepIcon"})(mb),hb=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.alternativeLabel,a=void 0!==i&&i,s=e.children,l=e.classes,c=e.className,u=e.completed,d=void 0!==u&&u,p=e.disabled,m=void 0!==p&&p,f=e.error,h=void 0!==f&&f,g=e.icon;e.last;var v=e.optional,y=e.orientation,b=void 0===y?"horizontal":y,x=e.StepIconComponent,S=e.StepIconProps,w=Ds(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),C=x;return g&&!C&&(C=fb),o.createElement("span",qs({className:Hd(l.root,l[b],c,m&&l.disabled,a&&l.alternativeLabel,h&&l.error),ref:t},w),g||C?o.createElement("span",{className:Hd(l.iconContainer,a&&l.alternativeLabel)},o.createElement(C,qs({completed:d,active:r,error:h,icon:g},S))):null,o.createElement("span",{className:l.labelContainer},o.createElement(sf,{variant:"body2",component:"span",className:Hd(l.label,a&&l.alternativeLabel,d&&l.completed,r&&l.active,h&&l.error),display:"block"},s),v))}));hb.muiName="StepLabel";var gb=ip((function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}}),{name:"MuiStepLabel"})(hb),vb=o.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,i=e.children,a=e.classes,s=e.className,l=e.completed,c=e.disabled,u=e.icon;e.last;var d=e.optional,p=e.orientation,m=Ds(e,["active","alternativeLabel","children","classes","className","completed","disabled","icon","last","optional","orientation"]),f={active:n,alternativeLabel:r,completed:l,disabled:c,icon:u,optional:d,orientation:p},h=Jh(i,["StepLabel"])?o.cloneElement(i,f):o.createElement(gb,f,i);return o.createElement(xm,qs({disabled:c,TouchRippleProps:{className:a.touchRipple},className:Hd(a.root,a[p],s),ref:t},m),h)}));ip({root:{width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},horizontal:{},vertical:{justifyContent:"flex-start",padding:"8px",margin:"-8px"},touchRipple:{color:"rgba(0, 0, 0, 0.3)"}},{name:"MuiStepButton"})(vb);var yb=o.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,i=void 0!==r&&r,a=e.classes,s=e.className,l=e.completed,c=e.disabled;e.index;var u=e.orientation,d=void 0===u?"horizontal":u,p=Ds(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return o.createElement("div",qs({className:Hd(a.root,a[d],s,i&&a.alternativeLabel,n&&a.active,l&&a.completed,c&&a.disabled),ref:t},p),o.createElement("span",{className:Hd(a.line,"vertical"===d?a.lineVertical:a.lineHorizontal)}))})),bb=ip((function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}}),{name:"MuiStepConnector"})(yb),xb=o.forwardRef((function(e,t){var n=e.active;e.alternativeLabel;var r=e.children,i=e.classes,a=e.className;e.completed;var s=e.last;e.optional,e.orientation;var l=e.TransitionComponent,c=void 0===l?Gf:l,u=e.transitionDuration,d=void 0===u?"auto":u,p=e.TransitionProps,m=Ds(e,["active","alternativeLabel","children","classes","className","completed","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]),f=d;return"auto"!==d||c.muiSupportAuto||(f=void 0),o.createElement("div",qs({className:Hd(i.root,a,s&&i.last),ref:t},m),o.createElement(c,qs({in:n,className:i.transition,timeout:f,unmountOnExit:!0},p),r))}));ip((function(e){return{root:{marginTop:8,marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:"1px solid ".concat("light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600])},last:{borderLeft:"none"},transition:{}}}),{name:"MuiStepContent"})(xb);var Sb=o.createElement(bb,null),wb=o.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,i=e.alternativeLabel,a=void 0!==i&&i,s=e.children,l=e.classes,c=e.className,u=e.connector,d=void 0===u?Sb:u,p=e.nonLinear,m=void 0!==p&&p,f=e.orientation,h=void 0===f?"horizontal":f,g=Ds(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),v=o.isValidElement(d)?o.cloneElement(d,{orientation:h}):null,y=o.Children.toArray(s),b=y.map((function(e,t){var n={alternativeLabel:a,connector:d,last:t+1===y.length,orientation:h},i={index:t,active:!1,completed:!1,disabled:!1};return r===t?i.active=!0:!m&&r>t?i.completed=!0:!m&&r<t&&(i.disabled=!0),[!a&&v&&0!==t&&o.cloneElement(v,qs({key:t},i)),o.cloneElement(e,qs({},n,{},i,{},e.props))]}));return o.createElement(lp,qs({square:!0,elevation:0,className:Hd(l.root,l[h],c,a&&l.alternativeLabel),ref:t},g),b)}));ip({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(wb);var Cb=o.forwardRef((function(e,t){var n=e.anchor,r=e.classes,i=e.className,a=e.width,s=Ds(e,["anchor","classes","className","width"]);return o.createElement("div",qs({className:Hd(r.root,r["anchor".concat(ap(n))],i),ref:t,style:Ls({},Th(n)?"width":"height",a)},s))})),Mb=ip((function(e){return{root:{position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},anchorLeft:{right:"auto"},anchorRight:{left:"auto",right:0},anchorTop:{bottom:"auto",right:0},anchorBottom:{top:"auto",bottom:0,right:0}}}),{name:"PrivateSwipeArea"})(Cb),kb=null;function Eb(e,t){return"right"===e?document.body.offsetWidth-t[0].pageX:t[0].pageX}function Tb(e,t){return"bottom"===e?window.innerHeight-t[0].clientY:t[0].clientY}function Nb(e,t){return e?t.clientWidth:t.clientHeight}function Lb(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}var qb="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),Db={enter:Sl.enteringScreen,exit:Sl.leavingScreen},Ob="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;o.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,i=e.disableBackdropTransition,a=void 0!==i&&i,s=e.disableDiscovery,c=void 0!==s&&s,u=e.disableSwipeToOpen,d=void 0===u?qb:u,p=e.hideBackdrop,m=e.hysteresis,f=void 0===m?.52:m,h=e.minFlingVelocity,g=void 0===h?450:h,v=e.ModalProps,y=(v=void 0===v?{}:v).BackdropProps,b=Ds(v,["BackdropProps"]),x=e.onClose,S=e.onOpen,w=e.open,C=e.PaperProps,M=void 0===C?{}:C,k=e.SwipeAreaProps,E=e.swipeAreaWidth,T=void 0===E?20:E,N=e.transitionDuration,L=void 0===N?Db:N,q=e.variant,D=void 0===q?"temporary":q,O=Ds(e,["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"]),R=op(),A=o.useState(!1),P=A[0],I=A[1],z=o.useRef({isSwiping:null}),B=o.useRef(),F=o.useRef(),H=o.useRef(),j=o.useRef(!1),W=o.useRef();Ob((function(){W.current=null}),[w]);var V=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,o=void 0===n?null:n,i=t.changeTransition,s=void 0===i||i,l=Nh(R,r),c=-1!==["right","bottom"].indexOf(l)?1:-1,u=Th(r),d=u?"translate(".concat(c*e,"px, 0)"):"translate(0, ".concat(c*e,"px)"),m=H.current.style;m.webkitTransform=d,m.transform=d;var f="";if(o&&(f=R.transitions.create("all",Wp({timeout:L},{mode:o}))),s&&(m.webkitTransition=f,m.transition=f),!a&&!p){var h=F.current.style;h.opacity=1-e/Nb(u,H.current),s&&(h.webkitTransition=f,h.transition=f)}}),[r,a,p,R,L]),_=Qp((function(e){if(j.current)if(kb=null,j.current=!1,I(!1),z.current.isSwiping){z.current.isSwiping=null;var t,n=Nh(R,r),o=Th(r);t=o?Eb(n,e.changedTouches):Tb(n,e.changedTouches);var i=o?z.current.startX:z.current.startY,a=Nb(o,H.current),s=Lb(t,i,w,a),l=s/a;Math.abs(z.current.velocity)>g&&(W.current=1e3*Math.abs((a-s)/z.current.velocity)),w?z.current.velocity>g||l>f?x():V(0,{mode:"exit"}):z.current.velocity<-g||1-l>f?S():V(Nb(o,H.current),{mode:"enter"})}else z.current.isSwiping=null})),U=Qp((function(e){if(H.current&&j.current&&(null==kb||kb===z.current)){var t=Nh(R,r),n=Th(r),o=Eb(t,e.touches),i=Tb(t,e.touches);if(w&&H.current.contains(e.target)&&null==kb){var a=function(e){var t=e.domTreeShapes,n=e.start,r=e.current,o=e.anchor,i={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},s={x:"clientWidth",y:"clientHeight"};return t.some((function(e){var t=r>=n;"top"!==o&&"left"!==o||(t=!t);var l="left"===o||"right"===o?"x":"y",c=e[i[l]],u=c>0,d=c+e[s[l]]<e[a[l]];return t&&d||!t&&u?e:null}))}({domTreeShapes:function(e,t){for(var n=[];e&&e!==t;){var r=window.getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")?n=[]:(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,H.current),start:n?z.current.startX:z.current.startY,current:n?o:i,anchor:r});if(a)return void(kb=a);kb=z.current}if(null==z.current.isSwiping){var s=Math.abs(o-z.current.startX),l=Math.abs(i-z.current.startY);s>l&&e.cancelable&&e.preventDefault();var u=n?s>l&&s>3:l>s&&l>3;if(!0===u||(n?l>3:s>3)){if(z.current.isSwiping=u,!u)return void _(e);z.current.startX=o,z.current.startY=i,c||w||(n?z.current.startX-=T:z.current.startY-=T)}}if(z.current.isSwiping){var d=Nb(n,H.current),p=n?z.current.startX:z.current.startY;w&&!z.current.paperHit&&(p=Math.min(p,d));var m=Lb(n?o:i,p,w,d);if(w)if(z.current.paperHit)0===m&&(z.current.startX=o,z.current.startY=i);else{if(!(n?o<d:i<d))return;z.current.paperHit=!0,z.current.startX=o,z.current.startY=i}null===z.current.lastTranslate&&(z.current.lastTranslate=m,z.current.lastTime=performance.now()+1);var f=(m-z.current.lastTranslate)/(performance.now()-z.current.lastTime)*1e3;z.current.velocity=.4*z.current.velocity+.6*f,z.current.lastTranslate=m,z.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),V(m)}}})),$=Qp((function(e){if(!e.defaultPrevented&&!e.muiHandled&&(!w||F.current.contains(e.target)||H.current.contains(e.target))){var t=Nh(R,r),n=Th(r),o=Eb(t,e.touches),i=Tb(t,e.touches);if(!w){if(d||e.target!==B.current)return;if(n){if(o>T)return}else if(i>T)return}e.muiHandled=!0,kb=null,z.current.startX=o,z.current.startY=i,I(!0),!w&&H.current&&V(Nb(n,H.current)+(c?20:-T),{changeTransition:!1}),z.current.velocity=0,z.current.lastTime=null,z.current.lastTranslate=null,z.current.paperHit=!1,j.current=!0}}));o.useEffect((function(){if("temporary"===D)return document.body.addEventListener("touchstart",$),document.body.addEventListener("touchmove",U,{passive:!1}),document.body.addEventListener("touchend",_),function(){document.body.removeEventListener("touchstart",$),document.body.removeEventListener("touchmove",U,{passive:!1}),document.body.removeEventListener("touchend",_)}}),[D,$,U,_]),o.useEffect((function(){return function(){kb===z.current&&(kb=null)}}),[]),o.useEffect((function(){w||I(!1)}),[w]);var K=o.useCallback((function(e){F.current=l.findDOMNode(e)}),[]),G=o.useCallback((function(e){H.current=l.findDOMNode(e)}),[]);return o.createElement(o.Fragment,null,o.createElement(Dh,qs({open:!("temporary"!==D||!P)||w,variant:D,ModalProps:qs({BackdropProps:qs({},y,{ref:K})},b),PaperProps:qs({},M,{style:qs({pointerEvents:"temporary"!==D||w?"":"none"},M.style),ref:G}),anchor:r,transitionDuration:W.current||L,onClose:x,ref:t},O)),!d&&"temporary"===D&&o.createElement(tm,null,o.createElement(Mb,qs({anchor:r,ref:B,width:T},k))))}));var Rb=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=void 0===i?"secondary":i,s=e.edge,l=void 0!==s&&s,c=e.size,u=void 0===c?"medium":c,d=Ds(e,["classes","className","color","edge","size"]),p=o.createElement("span",{className:n.thumb});return o.createElement("span",{className:Hd(n.root,r,{start:n.edgeStart,end:n.edgeEnd}[l],{small:n["size".concat(ap(u))]}[u])},o.createElement(Df,qs({type:"checkbox",icon:p,checkedIcon:p,classes:{root:Hd(n.switchBase,n["color".concat(ap(a))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},d)),o.createElement("span",{className:n.track}))}));ip((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle"},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(50%)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Es(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Es(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(Rb);var Ab=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.disabled,a=void 0!==i&&i,s=e.disableFocusRipple,l=void 0!==s&&s,c=e.fullWidth,u=e.icon,d=e.indicator,p=e.label,m=e.onChange,f=e.onClick,h=e.selected,g=e.textColor,v=void 0===g?"inherit":g,y=e.value,b=e.wrapped,x=void 0!==b&&b,S=Ds(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","selected","textColor","value","wrapped"]);return o.createElement(xm,qs({focusRipple:!l,className:Hd(n.root,n["textColor".concat(ap(v))],r,a&&n.disabled,h&&n.selected,p&&u&&n.labelIcon,c&&n.fullWidth,x&&n.wrapped),ref:t,role:"tab","aria-selected":h,disabled:a,onClick:function(e){m&&m(e,y),f&&f(e)}},S),o.createElement("span",{className:n.wrapper},u,p),d)}));ip((function(e){var t;return{root:qs({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},Ls(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),Ls(t,"overflow","hidden"),Ls(t,"whiteSpace","normal"),Ls(t,"textAlign","center"),Ls(t,e.breakpoints.up("sm"),{fontSize:e.typography.pxToRem(13),minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(Ab);var Pb=o.createContext(),Ib=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"table":i,s=e.padding,l=void 0===s?"default":s,c=e.size,u=void 0===c?"medium":c,d=e.stickyHeader,p=void 0!==d&&d,m=Ds(e,["classes","className","component","padding","size","stickyHeader"]),f=o.useMemo((function(){return{padding:l,size:u,stickyHeader:p}}),[l,u,p]);return o.createElement(Pb.Provider,{value:f},o.createElement(a,qs({ref:t,className:Hd(n.root,r,p&&n.stickyHeader)},m)))}));ip((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":qs({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(Ib);var zb=o.createContext(),Bb={variant:"body"},Fb=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tbody":i,s=Ds(e,["classes","className","component"]);return o.createElement(zb.Provider,{value:Bb},o.createElement(a,qs({className:Hd(n.root,r),ref:t},s)))}));ip({root:{display:"table-row-group"}},{name:"MuiTableBody"})(Fb);var Hb=o.forwardRef((function(e,t){var n,r=e.align,i=void 0===r?"inherit":r,a=e.classes,s=e.className,l=e.component,c=e.padding,u=e.scope,d=e.size,p=e.sortDirection,m=e.variant,f=Ds(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),h=o.useContext(Pb),g=o.useContext(zb);n=l||(g&&"head"===g.variant?"th":"td");var v=u;!v&&g&&"head"===g.variant&&(v="col");var y=c||(h&&h.padding?h.padding:"default"),b=d||(h&&h.size?h.size:"medium"),x=m||g&&g.variant,S=null;return p&&(S="asc"===p?"ascending":"descending"),o.createElement(n,qs({ref:t,className:Hd(a.root,a[x],s,"inherit"!==i&&a["align".concat(ap(i))],"default"!==y&&a["padding".concat(ap(y))],"medium"!==b&&a["size".concat(ap(b))],{head:h&&h.stickyHeader&&a.stickyHeader}[x]),"aria-sort":S,scope:v},f))})),jb=ip((function(e){return{root:qs({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?Ns(Es(e.palette.divider,1),.88):Ts(Es(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0px 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(Hb),Wb={variant:"footer"},Vb=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tfoot":i,s=Ds(e,["classes","className","component"]);return o.createElement(zb.Provider,{value:Wb},o.createElement(a,qs({className:Hd(n.root,r),ref:t},s)))}));ip({root:{display:"table-footer-group"}},{name:"MuiTableFooter"})(Vb);var _b={variant:"head"},Ub=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"thead":i,s=Ds(e,["classes","className","component"]);return o.createElement(zb.Provider,{value:_b},o.createElement(a,qs({className:Hd(n.root,r),ref:t},s)))}));ip({root:{display:"table-header-group"}},{name:"MuiTableHead"})(Ub);var $b=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"div":i,s=e.disableGutters,l=void 0!==s&&s,c=e.variant,u=void 0===c?"regular":c,d=Ds(e,["classes","className","component","disableGutters","variant"]);return o.createElement(a,qs({className:Hd(n.root,n[u],r,!l&&n.gutters),ref:t},d))})),Kb=ip((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Ls({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})($b),Gb=uf(o.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),Yb=uf(o.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),Xb=o.createElement(Yb,null),Jb=o.createElement(Gb,null),Zb=o.createElement(Gb,null),Qb=o.createElement(Yb,null),ex=o.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,i=e.nextIconButtonProps,a=e.onChangePage,s=e.page,l=e.rowsPerPage,c=Ds(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),u=op();return o.createElement("div",qs({ref:t},c),o.createElement(Lf,qs({onClick:function(e){a(e,s-1)},disabled:0===s,color:"inherit"},n),"rtl"===u.direction?Xb:Jb),o.createElement(Lf,qs({onClick:function(e){a(e,s+1)},disabled:s>=Math.ceil(r/l)-1,color:"inherit"},i),"rtl"===u.direction?Zb:Qb))})),tx=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(-1===n?r:n," of ").concat(r)},nx=[10,25,50,100],rx=o.forwardRef((function(e,t){var n,r=e.ActionsComponent,i=void 0===r?ex:r,a=e.backIconButtonProps,s=e.classes,l=e.className,c=e.colSpan,u=e.component,d=void 0===u?jb:u,p=e.count,m=e.labelDisplayedRows,f=void 0===m?tx:m,h=e.labelRowsPerPage,g=void 0===h?"Rows per page:":h,v=e.nextIconButtonProps,y=e.onChangePage,b=e.onChangeRowsPerPage,x=e.page,S=e.rowsPerPage,w=e.rowsPerPageOptions,C=void 0===w?nx:w,M=e.SelectProps,k=void 0===M?{}:M,E=Ds(e,["ActionsComponent","backIconButtonProps","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);d!==jb&&"td"!==d||(n=c||1e3);var T=k.native?"option":cv;return o.createElement(d,qs({className:Hd(s.root,l),colSpan:n,ref:t},E),o.createElement(Kb,{className:s.toolbar},o.createElement("div",{className:s.spacer}),C.length>1&&o.createElement(sf,{color:"inherit",variant:"body2",className:s.caption},g),C.length>1&&o.createElement($y,qs({classes:{select:s.select,icon:s.selectIcon},input:o.createElement(Gh,{className:Hd(s.input,s.selectRoot)}),value:S,onChange:b},k),C.map((function(e){return o.createElement(T,{className:s.menuItem,key:e,value:e.value?e.value:e},e.label?e.label:e)}))),o.createElement(sf,{color:"inherit",variant:"body2",className:s.caption},f({from:0===p?0:x*S+1,to:Math.min(p,(x+1)*S),count:p,page:x})),o.createElement(i,{className:s.actions,backIconButtonProps:a,count:p,nextIconButtonProps:v,onChangePage:y,page:x,rowsPerPage:S})))}));ip((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{top:1},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(rx);var ox=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,a=void 0===i?"tr":i,s=e.hover,l=void 0!==s&&s,c=e.selected,u=void 0!==c&&c,d=Ds(e,["classes","className","component","hover","selected"]),p=o.useContext(zb);return o.createElement(a,qs({ref:t,className:Hd(n.root,r,p&&{head:n.head,footer:n.footer}[p.variant],l&&n.hover,u&&n.selected)},d))}));ip((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$selected":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.08)"},"&$hover:hover":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.07)":"rgba(255, 255, 255, 0.14)"}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(ox);var ix=uf(o.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),ax=o.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,i=e.children,a=e.classes,s=e.className,l=e.direction,c=void 0===l?"desc":l,u=e.hideSortIcon,d=void 0!==u&&u,p=e.IconComponent,m=void 0===p?ix:p,f=Ds(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return o.createElement(xm,qs({className:Hd(a.root,s,r&&a.active),component:"span",disableRipple:!0,ref:t},f),i,d&&!r?null:o.createElement(m,{className:Hd(a.icon,a["iconDirection".concat(ap(c))])}))}));ip((function(e){return{root:{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:e.palette.text.secondary},"&:hover":{color:e.palette.text.secondary,"& $icon":{opacity:1}},"&$active":{color:e.palette.text.primary,"&& $icon":{opacity:1,color:e.palette.text.secondary}}},active:{},icon:{marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},iconDirectionDesc:{transform:"rotate(0deg)"},iconDirectionAsc:{transform:"rotate(180deg)"}}}),{name:"MuiTableSortLabel"})(ax);var sx,lx=!("undefined"==typeof window||!window.document||!window.document.createElement);function cx(){if(sx)return sx;if(!lx||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),sx="reverse",e.scrollLeft>0?sx="default":(e.scrollLeft=1,0===e.scrollLeft&&(sx="negative")),document.body.removeChild(e),sx}function ux(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=cx();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n}return n}function dx(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var px={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function mx(e){var t=e.onChange,n=Ds(e,["onChange"]),r=o.useRef(),i=o.useRef(null),a=function(){r.current=i.current.offsetHeight-i.current.clientHeight};return o.useEffect((function(){var e=wh((function(){var e=r.current;a(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),o.useEffect((function(){a(),t(r.current)}),[t]),o.createElement("div",qs({style:px,ref:i},n))}var fx=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.color,a=e.orientation,s=Ds(e,["classes","className","color","orientation"]);return o.createElement("span",qs({className:Hd(n.root,n["color".concat(ap(i))],r,{vertical:n.vertical}[a]),ref:t},s))})),hx=ip((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(fx),gx=o.createElement(Gb,{fontSize:"small"}),vx=o.createElement(Yb,{fontSize:"small"}),yx=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.direction,a=e.orientation,s=e.visible,l=Ds(e,["classes","className","direction","orientation","visible"]),c=Hd(n.root,r,{vertical:n.vertical}[a]);return s?o.createElement(xm,qs({component:"div",className:c,ref:t,role:null,tabIndex:null},l),"left"===i?gx:vx):o.createElement("div",{className:c})})),bx=ip({root:{width:40,flexShrink:0},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}}},{name:"PrivateTabScrollButton"})(yx),xx=o.forwardRef((function(e,t){var n=e.action,r=e.centered,i=void 0!==r&&r,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"div":c,d=e.indicatorColor,p=void 0===d?"secondary":d,m=e.onChange,f=e.orientation,h=void 0===f?"horizontal":f,g=e.ScrollButtonComponent,v=void 0===g?bx:g,y=e.scrollButtons,b=void 0===y?"auto":y,x=e.TabIndicatorProps,S=void 0===x?{}:x,w=e.textColor,C=void 0===w?"inherit":w,M=e.value,k=e.variant,E=void 0===k?"standard":k,T=Ds(e,["action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","value","variant"]),N=op(),L="scrollable"===E,q="rtl"===N.direction,D="vertical"===h,O=D?"scrollTop":"scrollLeft",R=D?"top":"left",A=D?"bottom":"right",P=D?"clientHeight":"clientWidth",I=D?"height":"width",z=o.useState(!1),B=z[0],F=z[1],H=o.useState({}),j=H[0],W=H[1],V=o.useState({start:!1,end:!1}),_=V[0],U=V[1],$=o.useState({overflow:"hidden",marginBottom:null}),K=$[0],G=$[1],Y=new Map,X=o.useRef(null),J=o.useRef(null),Z=function(){var e,t,n=X.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:ux(n,N.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==M){var o=J.current.children;if(o.length>0){var i=o[Y.get(M)];t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Q=Qp((function(){var e,t=Z(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(D)o=r.top-n.top+n.scrollTop;else{var i=q?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(Ls(e={},R,o),Ls(e,I,r?r[I]:0),e);if(isNaN(j[R])||isNaN(j[I]))W(a);else{var s=Math.abs(j[R]-a[R]),l=Math.abs(j[I]-a[I]);(s>=1||l>=1)&&W(a)}})),ee=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?dx:i,s=r.duration,l=void 0===s?300:s,c=null,u=t[e],d=!1,p=function(){d=!0},m=function r(i){if(d)o(new Error("Animation cancelled"));else{null===c&&(c=i);var s=Math.min(1,(i-c)/l);t[e]=a(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};u===n?o(new Error("Element already at target position")):requestAnimationFrame(m)}(O,X.current,e)},te=function(e){var t=X.current[O];D?t+=e:(t+=e*(q?-1:1),t*=q&&"reverse"===cx()?-1:1),ee(t)},ne=function(){te(-X.current[P])},re=function(){te(X.current[P])},oe=o.useCallback((function(e){G({overflow:null,marginBottom:-e})}),[]),ie=Qp((function(){var e=Z(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[R]<t[R]){var r=t[O]+(n[R]-t[R]);ee(r)}else if(n[A]>t[A]){var o=t[O]+(n[A]-t[A]);ee(o)}})),ae=Qp((function(){if(L&&"off"!==b){var e,t,n=X.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(D)e=r>1,t=r<o-i-1;else{var l=ux(X.current,N.direction);e=q?l<a-s-1:l>1,t=q?l>1:l<a-s-1}e===_.start&&t===_.end||U({start:e,end:t})}}));o.useEffect((function(){var e=wh((function(){Q(),ae()})),t=rh(X.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[Q,ae]);var se=o.useCallback(wh((function(){ae()})));o.useEffect((function(){return function(){se.clear()}}),[se]),o.useEffect((function(){F(!0)}),[]),o.useEffect((function(){Q(),ae()})),o.useEffect((function(){ie()}),[ie,j]),o.useImperativeHandle(n,(function(){return{updateIndicator:Q,updateScrollButtons:ae}}),[Q,ae]);var le=o.createElement(hx,qs({className:s.indicator,orientation:h,color:p},S,{style:qs({},j,{},S.style)})),ce=0,ue=o.Children.map(a,(function(e){if(!o.isValidElement(e))return null;var t=void 0===e.props.value?ce:e.props.value;Y.set(t,ce);var n=t===M;return ce+=1,o.cloneElement(e,{fullWidth:"fullWidth"===E,indicator:n&&!B&&le,selected:n,onChange:m,textColor:C,value:t})})),de=function(){var e={};e.scrollbarSizeListener=L?o.createElement(mx,{className:s.scrollable,onChange:oe}):null;var t=_.start||_.end,n=L&&("auto"===b&&t||"desktop"===b||"on"===b);return e.scrollButtonStart=n?o.createElement(v,{orientation:h,direction:q?"right":"left",onClick:ne,visible:_.start,className:Hd(s.scrollButtons,"on"!==b&&s.scrollButtonsDesktop)}):null,e.scrollButtonEnd=n?o.createElement(v,{orientation:h,direction:q?"left":"right",onClick:re,visible:_.end,className:Hd(s.scrollButtons,"on"!==b&&s.scrollButtonsDesktop)}):null,e}();return o.createElement(u,qs({className:Hd(s.root,l,D&&s.vertical),ref:t},T),de.scrollButtonStart,de.scrollbarSizeListener,o.createElement("div",{className:Hd(s.scroller,L?s.scrollable:s.fixed),style:K,ref:X,onScroll:se},o.createElement("div",{className:Hd(s.flexContainer,D&&s.flexContainerVertical,i&&!L&&s.centered),ref:J,role:"tablist"},ue),B&&le),de.scrollButtonEnd)}));ip((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:Ls({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(xx);var Sx={standard:Eg,filled:Xh,outlined:bv},wx=o.forwardRef((function(e,t){var n=e.autoComplete,r=e.autoFocus,i=e.children,a=e.classes,s=e.className,c=e.color,u=void 0===c?"primary":c,d=e.defaultValue,p=e.error,m=e.FormHelperTextProps,f=e.fullWidth,h=e.helperText,g=e.hiddenLabel,v=e.id,y=e.InputLabelProps,b=e.inputProps,x=e.InputProps,S=e.inputRef,w=e.label,C=e.multiline,M=e.name,k=e.onBlur,E=e.onChange,T=e.onFocus,N=e.placeholder,L=e.required,q=void 0!==L&&L,D=e.rows,O=e.rowsMax,R=e.select,A=void 0!==R&&R,P=e.SelectProps,I=e.type,z=e.value,B=e.variant,F=void 0===B?"standard":B,H=Ds(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]),j=o.useState(0),W=j[0],V=j[1],_=o.useRef(null);o.useEffect((function(){if("outlined"===F){var e=l.findDOMNode(_.current);V(null!=e?e.offsetWidth:0)}}),[F,q,w]);var U={};"outlined"===F&&(y&&void 0!==y.shrink&&(U.notched=y.shrink),U.labelWidth=W),A&&(P&&P.native||(U.id=void 0),U["aria-describedby"]=void 0);var $=h&&v?"".concat(v,"-helper-text"):void 0,K=w&&v?"".concat(v,"-label"):void 0,G=Sx[F],Y=o.createElement(G,qs({"aria-describedby":$,autoComplete:n,autoFocus:r,defaultValue:d,fullWidth:f,multiline:C,name:M,rows:D,rowsMax:O,type:I,value:z,id:v,inputRef:S,onBlur:k,onChange:E,onFocus:T,placeholder:N,inputProps:b},U,x));return o.createElement(Qh,qs({className:Hd(a.root,s),error:p,fullWidth:f,hiddenLabel:g,ref:t,required:q,color:u,variant:F},H),w&&o.createElement(Lg,qs({htmlFor:v,ref:_,id:K},y),w),A?o.createElement($y,qs({"aria-describedby":$,id:v,labelId:K,value:z,input:Y},P),i):Y,h&&o.createElement(og,qs({id:$},m),h))}));function Cx(e){return Math.round(1e5*e)/1e5}ip({root:{}},{name:"MuiTextField"})(wx);var Mx=o.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.disableFocusListener,a=void 0!==i&&i,s=e.disableHoverListener,c=void 0!==s&&s,u=e.disableTouchListener,d=void 0!==u&&u,p=e.enterDelay,m=void 0===p?0:p,f=e.enterTouchDelay,h=void 0===f?700:f,g=e.id,v=e.interactive,y=void 0!==v&&v,b=e.leaveDelay,x=void 0===b?0:b,S=e.leaveTouchDelay,w=void 0===S?1500:S,C=e.onClose,M=e.onOpen,k=e.open,E=e.placement,T=void 0===E?"bottom":E,N=e.PopperProps,L=e.title,q=e.TransitionComponent,D=void 0===q?vg:q,O=e.TransitionProps,R=Ds(e,["children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperProps","title","TransitionComponent","TransitionProps"]),A=op(),P=o.useState(!1),I=P[0],z=P[1],B=o.useState(0)[1],F=o.useState(),H=F[0],j=F[1],W=o.useRef(!1),V=o.useRef(null!=k).current,_=o.useRef(),U=o.useRef(),$=o.useRef(),K=o.useRef(),G=o.useRef();o.useEffect((function(){_.current||(_.current="mui-tooltip-".concat(Math.round(1e5*Math.random()))),k&&B((function(e){return!e}))}),[k]),o.useEffect((function(){return function(){clearTimeout(U.current),clearTimeout($.current),clearTimeout(K.current),clearTimeout(G.current)}}),[]);var Y=function(e){V||I||z(!0),M&&M(e)},X=function(e){var t=n.props;"mouseover"===e.type&&t.onMouseOver&&t.onMouseOver(e),W.current&&"touchstart"!==e.type||(H&&H.removeAttribute("title"),clearTimeout($.current),clearTimeout(K.current),m?(e.persist(),$.current=setTimeout((function(){Y(e)}),m)):Y(e))},J=dm(),Z=J.isFocusVisible,Q=J.onBlurVisible,ee=J.ref,te=o.useState(!1),ne=te[0],re=te[1],oe=function(e){V||z(!1),C&&C(e),clearTimeout(U.current),U.current=setTimeout((function(){W.current=!1}),A.transitions.duration.shortest)},ie=function(e){var t=n.props;"blur"===e.type&&(t.onBlur&&t.onBlur(e),ne&&(re(!1),Q())),"mouseleave"===e.type&&t.onMouseLeave&&t.onMouseLeave(e),clearTimeout($.current),clearTimeout(K.current),e.persist(),K.current=setTimeout((function(){oe(e)}),x)},ae=_p(j,t),se=_p(ee,ae),le=o.useCallback((function(e){Vp(se,l.findDOMNode(e))}),[se]),ce=_p(n.ref,le),ue=V?k:I;""===L&&(ue=!1);var de=!ue&&!c,pe=qs({"aria-describedby":ue?g||_.current:null,title:de&&"string"==typeof L?L:null},R,{},n.props,{className:Hd(R.className,n.props.className)});d||(pe.onTouchStart=function(e){W.current=!0;var t=n.props;t.onTouchStart&&t.onTouchStart(e),clearTimeout(K.current),clearTimeout(U.current),clearTimeout(G.current),e.persist(),G.current=setTimeout((function(){X(e)}),h)},pe.onTouchEnd=function(e){n.props.onTouchEnd&&n.props.onTouchEnd(e),clearTimeout(G.current),clearTimeout(K.current),e.persist(),K.current=setTimeout((function(){oe(e)}),w)}),c||(pe.onMouseOver=X,pe.onMouseLeave=ie),a||(pe.onFocus=function(e){H||j(e.currentTarget),Z(e)&&(re(!0),X(e));var t=n.props;t.onFocus&&t.onFocus(e)},pe.onBlur=ie);var me=y?{onMouseOver:pe.onMouseOver,onMouseLeave:pe.onMouseLeave,onFocus:pe.onFocus,onBlur:pe.onBlur}:{};return o.createElement(o.Fragment,null,o.cloneElement(n,qs({ref:ce},pe)),o.createElement(Ly,qs({className:Hd(r.popper,y&&r.popperInteractive),placement:T,anchorEl:H,open:!!H&&ue,id:pe["aria-describedby"],transition:!0},me,N),(function(e){var t=e.placement,n=e.TransitionProps;return o.createElement(D,qs({timeout:A.transitions.duration.shorter},n,O),o.createElement("div",{className:Hd(r.tooltip,r["tooltipPlacement".concat(ap(t.split("-")[0]))],W.current&&r.touch)},L))})))}));ip((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none",flip:!1},popperInteractive:{pointerEvents:"auto"},tooltip:{backgroundColor:Es(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(Cx(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(Cx(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Ls({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Ls({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Ls({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Ls({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip"})(Mx);var kx={entering:{transform:"none"},entered:{transform:"none"}},Ex={enter:Sl.enteringScreen,exit:Sl.leavingScreen};function Tx(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Nx({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:Tx(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return o.createElement("i",{style:i},o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.createElement("path",{d:e})))}o.forwardRef((function(e,t){var n=e.children,r=e.in,i=e.onEnter,a=e.onExit,s=e.style,l=e.timeout,c=void 0===l?Ex:l,u=Ds(e,["children","in","onEnter","onExit","style","timeout"]),d=op(),p=_p(n.ref,t);return o.createElement(wp,qs({appear:!0,in:r,onEnter:function(e,t){jp(e);var n=Wp({style:s,timeout:c},{mode:"enter"});e.style.webkitTransition=d.transitions.create("transform",n),e.style.transition=d.transitions.create("transform",n),i&&i(e,t)},onExit:function(e){var t=Wp({style:s,timeout:c},{mode:"exit"});e.style.webkitTransition=d.transitions.create("transform",t),e.style.transition=d.transitions.create("transform",t),a&&a(e)},timeout:c},u),(function(e,t){return o.cloneElement(n,qs({style:qs({transform:"scale(0)",visibility:"exited"!==e||r?void 0:"hidden"},kx[e],{},s,{},n.props.style),ref:p},t))}))}));const Lx={d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"},qx={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"},Dx="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",Ox={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"},Rx={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};function Ax(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.",e.layout);let r=ia.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 Px(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=re(!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}),Ax(e,a,c)}))}const Ix=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))};function zx({dir:e,dock:t,altList:n,model:r,translator:o,app:i,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives:()=>Ix(i,n).then((e=>Promise.all(n.filter((t=>!e.includes(t.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(e,i,o).then((t=>({id:e.qDef.cId,selected:!1,title:t})))))))),changeTo(e,t){Px(r,e,t,"qDimensions",a)}}}function Bx(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(o=e,"H"===o.qGrouping?o.title||"":o.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)},id:e.cId};var o}function Fx({altList:e,app:t,dir:n,dock:r,model:o,onChange:i,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives:()=>Ix(t,e).then((n=>Promise.all(e.filter((e=>!n.includes(e.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t})))))))),changeTo(e,t){Px(o,e,t,"qMeasures",i,a)}}}function Hx(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}const jx={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"}}},Wx=({children:e,...t})=>o.createElement(gf,G({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);const Vx=kl({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 _x=Nl({productionPrefix:"q6ddb",disableGlobal:!0,seed:""});const Ux=2e3;function $x({model:e,layoutService:t,definitionPath:n="/qHyperCubeDef"}){return{fetch(t,r){const o={qStart:t,qEnd:r,qNbrPoints:this.computeNbrOfBins(),qMaxNbrTicks:300,qMaxNumberLines:this.computeMaxNumberLines()};return e.getHyperCubeContinuousData(n,o,!1)},shouldFetchReduced(){const{qHyperCube:e}=t.getLayout();return e.qSize.qcy*e.qMeasureInfo.length>=Ux},computeNbrOfBins(){const{qHyperCube:e}=t.getLayout();if(!this.shouldFetchReduced())return Ux;let n=e.qMeasureInfo.length||1,r=4+2*(n-1);return e.qDimensionInfo.length>1&&(n=Math.max(1,Math.min(12,t.meta.size.dimensions[1])),r=4),Math.ceil(Ux/(n*r))},computeMaxNumberLines(){const{qHyperCube:e}=t.getLayout();return e.qDimensionInfo.length>1&&!this.shouldFetchReduced()?t.meta.size.dimensions[1]+1:12}}}function Kx(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Gx({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 Yx(){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 Xx(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=Yx(),i=Yx();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 Jx(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Zx(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Xx(e,t,n.qMatrix),o=Jx(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 Qx=2**.5,eS=1/Qx;function tS(e){return e.qIsOtherCell}function nS({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(tS)){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(tS)||t++})),t}(n)}const rS={command:{processDataPage:()=>{}}};var oS={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],o=t[e+1];r.data={},o||1===r.end?o?(r.data.start=r.value,r.data.end=o.value,r.end=o.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};function iS(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function aS(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 p={x:u+o,y:o,width:d-2*o,height:t.height-2*o},m=s(l[0]+"…").width,f=Math.max(0,p.width-c.width),h=Math.max(0,p.height-c.height),g=i*f,v=a*h;return{show:p.width>=Math.min(m,c.width),text:l,dx:g,dy:v,rect:p,style:n.label,segment:{x:u+g,width:c.width+2*o}}}}}(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=iS(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:iS(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine}}}}(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 sS(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=iS(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:iS(o,n.minorGuideLine.strokeWidth),x2:i,y2:iS(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function lS(e){return e.filter((e=>e.show)).map((e=>re({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2})))}var cS={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=iS(1,t.line.strokeWidth);return{show:n.line.show,x1:iS(0,t.line.strokeWidth),y1:r,x2:iS(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=aS(n,this),this.state.minor=sS(r,this)},render(){return[...lS([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>re({},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"})))),...lS(this.state.major.map((e=>e.guideLine))),...lS(this.state.minor.map((e=>e.guideLine)))];var e}};function uS(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 dS(e){return e.qTags.indexOf("$qualified")>-1}function pS({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];uS(i,a)?(dS(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 mS({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,o=NaN,i=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(o=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){i="auto",s=!0;break}if(e&&e.queries.inner(n)){i=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(o)&&Number.isNaN(i)&&"auto"!==i){i=o,o=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(o)&&(o="auto",i="auto");return{outer:o,inner:i,minor:a,isDayOrShorter:s}}}}function fS({qTicks:e,measureText:t=(()=>({width:0})),cache:n={},scale:r}){const o=n;return{isDayOrShorter:()=>(o.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,o.isDayOrShorter),count:()=>e.length,maxRange:()=>(o.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,o.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),o.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(""+e.qText).width+16}))),r.clamp(n),o.rangeAndWidth}}}function hS({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=6,canFitHalfDayTicks:n=>n>=t*e.count()}}function gS({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=fS,queryFactory:s=hS}={attributesFactory:fS,queryFactory:hS}){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 vS({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=gS,mapper:a=pS,resolver:s=mS}={metaFactory:gS,mapper:pS,resolver:mS}){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}),p=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=p.resolve(t);return n.set(r,o),o}}}function yS(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}const bS=yS(0).getTime();function xS(e){return(e.getTime()-bS)/86400/1e3}var SS=new Date,wS=new Date;function CS(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return CS((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 SS.setTime(+t),wS.setTime(+r),e(SS),e(wS),Math.floor(n(SS,wS))},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 MS=CS((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));MS.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?CS((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):MS:null},MS.range;var kS=1e3,ES=6e4,TS=36e5,NS=864e5,LS=6048e5,qS=CS((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*kS)}),(function(e,t){return(t-e)/kS}),(function(e){return e.getUTCSeconds()}));function DS(e){return CS((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())*ES)/LS}))}qS.range,CS((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*kS)}),(function(e,t){e.setTime(+e+t*ES)}),(function(e,t){return(t-e)/ES}),(function(e){return e.getMinutes()})).range,CS((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*kS-e.getMinutes()*ES)}),(function(e,t){e.setTime(+e+t*TS)}),(function(e,t){return(t-e)/TS}),(function(e){return e.getHours()})).range,CS((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())*ES)/NS}),(function(e){return e.getDate()-1})).range;var OS=DS(0),RS=DS(1),AS=DS(2),PS=DS(3),IS=DS(4),zS=DS(5),BS=DS(6);OS.range,RS.range,AS.range,PS.range,IS.range,zS.range,BS.range,CS((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var FS=CS((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()}));FS.every=function(e){return isFinite(e=Math.floor(e))&&e>0?CS((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},FS.range;var HS=CS((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*ES)}),(function(e,t){return(t-e)/ES}),(function(e){return e.getUTCMinutes()}));HS.range;var jS=CS((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*TS)}),(function(e,t){return(t-e)/TS}),(function(e){return e.getUTCHours()}));jS.range;var WS=CS((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/NS}),(function(e){return e.getUTCDate()-1}));function VS(e){return CS((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)/LS}))}WS.range;var _S=VS(0),US=VS(1),$S=VS(2),KS=VS(3),GS=VS(4),YS=VS(5),XS=VS(6);_S.range,US.range,$S.range,KS.range,GS.range,YS.range,XS.range;var JS=CS((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()}));JS.range;var ZS=CS((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()}));ZS.every=function(e){return isFinite(e=Math.floor(e))&&e>0?CS((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},ZS.range;const QS=1,ew=2,tw=3,nw=4,rw=5,ow=6;function iw({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 ZS.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=qS.count(e,t),l=HS.count(e,t),c=jS.count(e,t),u=WS.count(e,t),d=_S.count(e,t),p=JS.count(e,t),m=ZS.count(e,t),f=n/r.second.width-1,h=n/r.minute.width-1,g=n/r.date.width-1,v=n/r.year.width-1,y={type:"year",desc:"year",count:m,interval:ZS.every(1),formatter:r.year.formatter,offset:e=>ZS.offset(e,-1),floor:ZS.floor};if(s<=f)y.type=QS,y.desc="second",y.count=s,y.interval=qS.every(1),y.formatter=r.second.formatter,y.offset=e=>qS.offset(e,-1),y.floor=qS.floor;else if(s/2<=f)y.type=QS,y.desc="every other second",y.count=s/2,y.interval=qS.every(2),y.formatter=r.second.formatter,y.offset=e=>qS.offset(e,-2),y.floor=qS.floor;else if(s/5<=f)y.type=QS,y.desc="every 5 second",y.count=s/5,y.interval=qS.every(5),y.formatter=r.second.formatter,y.offset=e=>qS.offset(e,-5),y.floor=qS.floor;else if(s/15<=f)y.type=QS,y.desc="every 15 second",y.count=s/15,y.interval=qS.every(15),y.formatter=r.second.formatter,y.offset=e=>qS.offset(e,-15),y.floor=qS.floor;else if(s/30<=f)y.type=QS,y.desc="every 30 second",y.count=s/30,y.interval=qS.every(30),y.formatter=r.second.formatter,y.offset=e=>qS.offset(e,-30),y.floor=qS.floor;else if(l<=h)y.type=ew,y.desc="minute",y.count=l,y.interval=HS.every(1),y.formatter=r.minute.formatter,y.offset=e=>HS.offset(e,-1),y.floor=HS.floor;else if(l/2<=h)y.type=ew,y.desc="every 2 minute",y.count=l/2,y.interval=HS.every(2),y.formatter=r.minute.formatter,y.offset=e=>HS.offset(e,-2),y.floor=HS.floor;else if(l/5<=h)y.type=ew,y.desc="every 5 minute",y.count=l/5,y.interval=HS.every(5),y.formatter=r.minute.formatter,y.offset=e=>HS.offset(e,-5),y.floor=HS.floor;else if(l/10<=h)y.type=ew,y.desc="every 10 minute",y.count=l/10,y.interval=HS.every(10),y.formatter=r.minute.formatter,y.offset=e=>HS.offset(e,-10),y.floor=HS.floor;else if(l/15<=h)y.type=ew,y.desc="every 15 minute",y.count=l/15,y.interval=HS.every(15),y.formatter=r.minute.formatter,y.offset=e=>HS.offset(e,-15),y.floor=HS.floor;else if(l/30<=h)y.type=ew,y.desc="every 30 minute",y.count=l/30,y.interval=HS.every(30),y.formatter=r.minute.formatter,y.offset=e=>HS.offset(e,-30),y.floor=HS.floor;else if(c<=h)y.type=tw,y.desc="hour",y.count=c,y.interval=jS.every(1),y.formatter=r.minute.formatter,y.offset=e=>jS.offset(e,-1),y.floor=jS.floor;else if(c/2<=h)y.type=tw,y.desc="every 2 hour",y.count=c/2,y.interval=jS.every(2),y.formatter=r.minute.formatter,y.offset=e=>jS.offset(e,-2),y.floor=jS.floor;else if(c/3<=h)y.type=tw,y.desc="every 3 hour",y.count=c/3,y.interval=jS.every(3),y.formatter=r.minute.formatter,y.offset=e=>jS.offset(e,-3),y.floor=jS.floor;else if(c/6<=h)y.type=tw,y.desc="every 6 hour",y.count=c/6,y.interval=jS.every(6),y.formatter=r.minute.formatter,y.offset=e=>jS.offset(e,-6),y.floor=jS.floor;else if(c/12<=h||o)y.type=tw,y.desc="every 12 hour",y.count=c/12,y.interval=jS.every(12),y.formatter=r.minute.formatter,y.offset=e=>jS.offset(e,-12),y.floor=jS.floor;else if(u<=g)y.type=nw,y.desc="day",y.count=u,y.interval=WS.every(1),y.formatter=r.date.formatter,y.offset=e=>WS.offset(e,-1),y.floor=WS.floor;else if(u/2<=g)y.type=nw,y.desc="every 2 day",y.count=u/2,y.interval=WS.every(2),y.formatter=r.date.formatter,y.offset=e=>WS.offset(e,-2),y.floor=WS.floor;else if(u/3<=g)y.type=nw,y.desc="every 3 day",y.count=u/3,y.interval=WS.every(3),y.formatter=r.date.formatter,y.offset=e=>WS.offset(e,-3),y.floor=WS.floor;else if(d<=g)y.type=nw,y.desc="week",y.count=d,y.interval=_S.every(1),y.formatter=r.date.formatter,y.offset=e=>_S.offset(e,-1),y.floor=WS.floor;else if(d/2<=g)y.type=nw,y.desc="every 2 week",y.count=d/2,y.interval=_S.every(2),y.formatter=r.date.formatter,y.offset=e=>_S.offset(e,-2),y.floor=WS.floor;else if(p<=g)y.type=rw,y.desc="month",y.count=p,y.interval=JS.every(1),y.formatter=r.date.formatter,y.offset=e=>JS.offset(e,-1),y.floor=WS.floor;else if(p/3<=g)y.type=rw,y.desc="quarter",y.count=p/3,y.interval=JS.every(3),y.formatter=r.date.formatter,y.offset=e=>JS.offset(e,-3),y.floor=WS.floor;else if(p/6<=g)y.type=rw,y.desc="half year",y.count=p/6,y.interval=JS.every(6),y.formatter=r.date.formatter,y.offset=e=>JS.offset(e,-6),y.floor=WS.floor;else if(m<=v)y.type=ow,y.desc="year",y.count=m,y.interval=ZS.every(1),y.formatter=r.year.formatter,y.offset=e=>ZS.offset(e,-1),y.floor=ZS.floor;else if(m/2<=v)y.type=ow,y.desc="every 2 year",y.count=m/2,y.interval=a(2),y.formatter=r.year.formatter,y.offset=e=>ZS.offset(e,-2),y.floor=ZS.floor;else if(m/5<=v)y.type=ow,y.desc="every 5 year",y.count=m/5,y.interval=a(5),y.formatter=r.year.formatter,y.offset=e=>ZS.offset(e,-5),y.floor=ZS.floor;else if(m/10<=v)y.type=ow,y.desc="every 10 year",y.count=m/10,y.interval=a(10),y.formatter=r.year.formatter,y.offset=e=>ZS.offset(e,-10),y.floor=ZS.floor;else{const e=Math.floor(m/v);y.type=ow,y.desc="every nth year",y.count=e,y.interval=a(e),y.formatter=r.year.formatter,y.offset=t=>ZS.offset(t,-e),y.floor=ZS.floor}return y}(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 p=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 m=[];if(!i&&u.type<=tw){const n=t.getFormat("date"),r=e.ticks(WS.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(WS.offset(r[0],-1)),m=(r.length?r:[WS.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:p,outer:m}}const aw=86400,sw=1440,lw={};function cw(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function uw(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=function(){return Kt.apply(Yi(Co,wo,ho,mo,po,uo,Qr,Kr,No).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}().domain([yS(l),yS(c)]);u.clamp(i),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let p;p="d3"===d.type?(e,o)=>iw({timeScale:u,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:yS(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(lw[[t,n,r,r,i]])return lw[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=yS(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,p=t/(o-r),m=p/1440,f=p/aw,h=366*p,g=3*p*30,v=a.second.width/f,y=a.minute.width/m,b=a.date.width/g,x=a.year.width/h;let S,w,C,M=0,k=0,E=null,T=null,N=null,L=null,q=null,D=null;const O={outer:[],inner:[]};for(v<1?(E=1,k=1/aw):v<2?(E=2,k=1/aw*2):v<5?(E=5,k=1/aw*5):v<10?(E=10,k=1/aw*10):v<30?(E=30,k=1/aw*30):y<1?(T=1,k=1/sw):y<2?(T=2,k=1/sw*2):y<5?(T=5,k=1/sw*5):y<10?(T=10,k=.006944444444444445):y<30?(T=30,k=.020833333333333336):y<60?(N=1,k=1/24):y<120?(N=2,k=2/24):y<360?(N=6,k=.25):y<720?(N=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?(q=1,k=31):b<1?(q=3,k=90):x<1?(D=1,k=366):x<2?(D=2,k=732):x<5?(D=5,k=1826.25):(D=10,k=3652.5),w=Math.floor((d+n%1)/k);M<o;){C=w+1,S=D?cw("year",[l+w*D,0,1],[l+C*D,0,1],a.year.formatter):q?cw("month",[l,c+w*q,1],[l,c+C*q,1],a.date.formatter):L?cw("day",[l,c,u+w*L],[l,c,u+C*L],a.date.formatter):N?cw("hour",[l,c,u,0+w*N],[l,c,u,0+C*N],a.minute.formatter):T?cw("minute",[l,c,u,0,0+w*T],[l,c,u,0,0+C*T],a.minute.formatter):cw("second",[l,c,u,0,0,0+w*E],[l,c,u,0,0,0+C*E],a.second.formatter),M=xS(S.start),O.inner.push(S);const e=Math.floor(M);if(!(i||D||q||L)){const t={type:"day",start:yS(e),end:yS(e+1),formatter:a.date.formatter,qStart:e};O.outer[O.outer.length-1]&&O.outer[O.outer.length-1].qStart===t.qStart||O.outer.push(t)}w++}return O.min=r,O.max=o,lw[[t,n,r,r,i]]=O,O}(n,e,d.min,l,c,"T"===s.qType);const m={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)=>p(t,n)[a].map((t=>{let n;return n="start"===o?xS(t.start):"end"===o?xS(t.end):(xS(t.start)+xS(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:xS(t.start),end:xS(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return m}const dw=/t+/i;const pw={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 mw(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 fw="continuousPan";var hw={model:function({model:e,layoutService:t,dataProcessorModel:n=rS,viewCache:r,viewState:o,definitionPath:i},a={}){const{engineFetcherFactory:s=$x,snapshotFetcherFactory:l=Gx,cacheFetcherFactory:c=Kx,cache:u={initial:{},merged:{}}}=a,d=s({model:e,layoutService:t,definitionPath:i}),p=l({layoutService:t,viewCache:r}),m=c({cache:u}),f=e=>{throw e.isHandled=!0,e};let h,g,v;return{update(e){var n,i;({initialMin:g,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])),r.set("continuousMin",g),r.set("continuousMax",v),r.set("minimiumZoomSpan",(n=g,i=v,Math.max(1e-6,2.3841857910156157e-7*(i-n)))),h=t.meta.isSnapshot?p:d,t.meta.isSnapshot&&({zoom:{min:g,max:v}}=p.getSnapshotData()),o.preventSet("zoom",{min:g,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),e},initialFetch(){return h.fetch(g,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=Jx(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return n.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),u.initial=t,u.merged=t,e})).then((e=>Zx(g,v,e))).then((e=>this.updateLayout(e))).catch(f)},fetch:(e,t)=>h.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=Jx(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}(u.initial,e))).then((e=>(n.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),u.merged=e,e))).then((n=>Zx(e,t,n))).catch(f),fetchFromCache:(e,t)=>m.fetch(e,t).then((n=>Zx(e,t,n))),fetchMinMaxData:()=>Promise.resolve(u.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return re({},e,{...u.initial})},getInitialLayout(){const e=this.getInitialCube();return re({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>nS(u.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e;t.qDataPages=u.merged.qDataPages,t.qAxisData=u.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=c(((e,t)=>o("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):o("fetchFromCache",e,t).then((n=>(i(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(o,i)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(o.max-o.min)<r?i:{min:Math.min(o.max,Math.max(t,o.min)),max:Math.max(o.min,Math.min(n,o.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:o=!1,targetKey:i}){const a=e.get("continuousMin"),s=e.get("continuousMax");return u(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===i))[0])(e);if(l){const i=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,l),c=o?1-i:i,{min:u,max:d}=t.get("zoom"),p=Math.abs(d-u),m=p-(r>0?eS:Qx)*p,f=u+m*c,h=d-m*(1-c),g=f<a?a-f:0,v=h>s?h-s:0;t.set("zoom",{min:Math.max(f-v,a),max:Math.min(h+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o}){return{type:"Pan",key:"continuous:pan",options:{event:fw,pointers:1,threshold:10,enable(r,o){return this.started===fw||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{continuousPanstart(n){n.preventDefault(),this.started=fw;const{min:o,max:i}=r.get("zoom");this[fw]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},continuousPanmove(e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[fw],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)})},continuousPanend(e){e.preventDefault(),this.started=!1},continuousPancancel(e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:oS,timeAxis:cS},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]=re(!0,{},t[o],i)})),r}(t,pw,n),{qAxis:o}=r,i=Vr(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,o);let c,u,p=[];const m=function(e){return Number.isNaN(+e)?NaN:i(e)};m.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),i=n[r.ticks.level];if(Number.isNaN(+i)||(p=u.transform(o[i].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=u.transform(o[n.minor].qTicks,{isMinor:!0});p=p.concat(e)}return"auto"===i&&(p=u.generate(e,n.isDayOrShorter)),p},m.invert=e=>i.invert(e),m.domain=e=>Array.isArray(e)?i.domain(e):i.domain(),m.range=e=>Array.isArray(e)?i.range(e):i.range(),m.norm=e=>(mw(a,m),a.instance(e)),m.normInvert=e=>(mw(a,m),a.instance.invert(e)),m.copy=()=>e(t,n),m.clamp=(e=!0)=>(i.clamp(e),i.clamp()),m.min=()=>Math.min(s,l),m.max=()=>Math.max(s,l),i.range(r.invert?[1,0]:[0,1]),i.domain([s,l]),a.invert=r.invert;const f=function(e){const t={},{measureText:n,fn:r,localeInfo:o}=e.formatter,i={second:{type:"second",pattern:"hh:mm:ss",width:60,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:60,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:60,formatter:void 0},year:{type:"year",pattern:"YYYY",width:60,formatter:void 0}};return o&&dw.test(o.qTimestampFmt)&&(i.minute.pattern+=" tt",i.second.pattern+=" tt"),i.date.pattern=o&&o.qDateFmt?o.qDateFmt:i.date.pattern,Object.keys(i).forEach((e=>{i[e].formatter=r(i[e].pattern),i[e].width=Math.max(i[e].width,n(i[e].formatter(41000.2343433)).width+16)})),t.getFormat=e=>i[e],t.all=()=>i,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return i.date;const r=yS(t[0].data.start),o=yS(t[n-1].data.start);return WS.count(r,o)/n>=1?i.date:jS.count(r,o)/n>0?i.minute:HS.count(r,o)/n>0?i.second:i.date},t}(r);return u=uw(i.copy(),r,f),c=vS({qAxis:o,measureText:r.formatter.measureText,reqAutoFitWidth:2*f.getFormat("minute").width,cache:r.cache,scale:m}),m.data=()=>({fields:[{formatter:m.formatter,id:()=>"qHyperCube/"+r.field,key:()=>r.field,raw:d(n,"fields.0.raw",(()=>({})))}]}),m.formatter=()=>f.getFormatFromTicks(p).formatter,m}}};const gw={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var vw={OPTIONS:gw,DEFAULT:gw.MINI_CHART};function yw({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 bw({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 xw=e=>({miniChart:e===vw.OPTIONS.MINI_CHART.value,bar:e===vw.OPTIONS.BAR.value,none:e===vw.OPTIONS.NONE.value});function Sw({layoutService:e,override:t}){const n=(({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return xw(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return xw(vw.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return xw(!n&&(r||!r&&o)?vw.OPTIONS.NONE.value:vw.OPTIONS.MINI_CHART.value)})({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===vw.OPTIONS.MINI_CHART.value,n.bar=t.value===vw.OPTIONS.BAR.value,n.none=t.value===vw.OPTIONS.NONE.value),n}function ww({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=Sw({layoutService:e,override:l});if(d.none)return!1;const{orientation:p}=t.meta.major,m={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===p?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:p,rtl:s,isContinuous:e.meta.isContinuous,range:()=>bw({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(m.settings.style="slim",m.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(m.settings.size.thumb={min:4}));const f=a.getStyles();return f.color&&(m.style={standard:{thumb:{"border-color":f.color,opacity:.4},before:{background:f.color,opacity:.1},after:{background:f.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(m.settings.injections=()=>[yw({layoutService:e,discrete:n})]),m}function Cw({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),p="horizontal"===i.meta.major.orientation,m=p?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,f=p?d.rect.computedInner.width:d.rect.computedInner.height,h=p&&a?f-m:m,g=Math.max(0,Math.min(h/f,1)),[v,y]=bw({layoutService:o,viewState:n,viewCache:r}),b=g<v,x=g>y,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-v*f:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function Mw({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,p]=bw({layoutService:o,viewState:n,viewCache:r});return{size:u,thumbSize:(p-d)*u}}}function kw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=Cw({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=Mw({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 Ew="data-scrollbar-handle";function Tw({e:e}){return(e.srcEvent||e).srcElement.getAttribute(Ew)||""}const Nw="scrollbarResize";function Lw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s}){const l=Cw({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s});return{type:"Pan",key:"event:scrollbarResize",options:{event:Nw,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[Nw]=this[Nw]||{},(e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)})(t)&&Tw({e:t})&&(this[Nw].panningEvent=t.srcEvent),!!this[Nw].panningEvent))}},events:{scrollbarResizestart(n){n.preventDefault(),this[Nw]=this[Nw]||{},this[Nw].panningEvent&&t.component(e).emit("dragStart",this[Nw].panningEvent)},scrollbarResizemove(n){if(n.preventDefault(),this[Nw]=this[Nw]||{},!this[Nw].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=Tw({e:this[Nw].panningEvent});let p="start"===d?Math.min(u,i.max):i.min,m="end"===d?Math.max(u,i.min):i.max;p===m&&(p-="start"===d?c:0,m+="end"===d?c:0),r.set("zoom",{min:p,max:m}),t.component(e).emit("render")},scrollbarResizeend(n){n.preventDefault(),this[Nw]=this[Nw]||{},delete this[Nw].panningEvent,t.component(e).emit("dragEnd")},scrollbarResizecancel(n){n.preventDefault(),this[Nw]=this[Nw]||{},delete this[Nw].panningEvent,t.component(e).emit("dragEnd")}}}}const qw="scrollbarPan";function Dw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=Cw({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=Mw({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:"event:scrollbarPan",options:{event:qw,threshold:0,enable(r,o){return this[qw]=this[qw]||{},!(o&&!this[qw].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:{scrollbarPanstart(n){n.preventDefault();const a=c(n);if(this[qw]=this[qw]||{},this[qw].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[qw].relative=a.relative,this[qw].zoom=r.get("zoom"),this[qw].zoom.span=this[qw].zoom.max-this[qw].zoom.min,this[qw].zoom.fullSpan=i-n}else if(a.onThumb)this[qw].offset=a.thumb;else{const e=u();this[qw].offset=a.beforeThumb?0:e.thumbSize}},scrollbarPanmove(n){n.preventDefault();const a=c(n);if(this[qw]=this[qw]||{},i.meta.isContinuous){const e=a.relative-this[qw].relative,{fullSpan:t,span:n,min:i,max:s}=this[qw].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[qw].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},scrollbarPanend(n){n.preventDefault(),this[qw]=this[qw]||{},this[qw].isPanning=!1,t.component(e).emit("unlockState")},scrollbarPancancel(n){n.preventDefault(),this[qw]=this[qw]||{},this[qw].isPanning=!1,t.component(e).emit("unlockState")}}}}function Ow({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[kw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),Lw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),Dw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})]}function Rw({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 Aw({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...Ow({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:Rw({componentKey:e,chart:t,actions:n,layoutService:i})}}const Pw={background:"rgba(0, 0, 0, 0.1)"},Iw={top:-1,bottom:-1,width:6},zw={width:2,background:"#595959"};var Bw={before:Pw,after:Pw,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:Iw,endHandle:Iw,startHandleBorder:zw,endHandleBorder:zw};const Fw={background:"rgba(0, 0, 0, 0.1)"},Hw={top:-1,bottom:-1,width:6},jw={width:2,background:"#595959"};var Ww={before:Fw,after:Fw,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:Hw,endHandle:Hw,startHandleBorder:jw,endHandleBorder:jw};const Vw={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},_w={pointerEvents:"initial"},Uw={pointerEvents:"none"};const $w="ew-resize",Kw="default";function Gw(){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 Yw(){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?$w:Kw}function Xw(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 Jw(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function Zw(){const{size:e,start:t,end:n}=Gw.call(this);this.renderer.render(this.elements(this.h,Xw.call(this,e,t,n)))}function Qw(){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?Ww:Bw;return{container:{...Vw},before:{...Vw,...n.before,...t.before},after:{...Vw,...n.after,...t.after},thumb:{...Vw,...n.thumb,...t.thumb},startHandle:{...Vw,..._w,...n.startHandle},endHandle:{...Vw,..._w,...n.endHandle},startHandleBorder:{...Vw,...Uw,...n.startHandleBorder},endHandleBorder:{...Vw,...Uw,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var eC={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(){Zw.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||!Jw.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=Tw({e:e});t&&(this.state.hover[t]=!0),Yw.call(this),Zw.call(this)},leave(){this.state.locked||(this.state.hover.reset(),Yw.call(this),Zw.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=Tw({e:e});t&&(this.state.drag[t]=!0),Yw.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),Yw.call(this),Zw.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}=Gw.call(this);return this.elements(e,Xw.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},p={[o.start]:r},m={left:-3},f={left:1},h={right:-3,left:"auto"},g={left:3},v=e("div",{style:{...s.before,...c?p:d},class:"scrollbar--before"}),y=e("div",{style:{...s.after,...c?d:p},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:m},class:"scrollbar--start-handle",[Ew]:"start"},i?e("div",{style:{...s.startHandleBorder,...c?g:f}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?m:h},class:"scrollbar--end-handle",[Ew]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?f:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[o.start]:n,[o.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[v,x,y,...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:Qw.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};const tC={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(re({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function nC({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=re({},{major:l,majorEnd:c},r.minor.items[e]);o.forEach((t=>{d[t]=r[t].items[e]}));const p=i?n:t,m=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:p}),f=(u-m)/2,h=f+d.major+m/2;return{item:d,boxCenter:h,boxWidth:m,boxPadding:f,rendWidth:t,rendHeight:n}}function rC({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=re(!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:re(!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:re(!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 p=o.minor||{};let m;const f={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:re(!0,{},{start:{scale:p.scale,ref:"start"},end:{scale:p.scale,ref:"end"},min:{scale:p.scale,ref:"min"},max:{scale:p.scale,ref:"max"},med:{scale:p.scale,ref:"med"}},p)})};for(let n=0,r=e.length;n<r;n++)m=e[n],f[m]=s.resolve({data:t,defaults:l[m],settings:o[m],scaled:c});return f}const oC=["oob"];const iC={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=rC({keys:oC,data:o,defaultSettings:{oob:tC.getDefaultSettings()},style:i,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l;return function({width:e,height:t,flipXY:n,resolved:r,keys:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=nC}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:p,rendWidth:m,rendHeight:f}=s({i:u,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(tC.createOob({oob:d.oob,dockValue:a,boxCenter:p,rendWidth:m,rendHeight:f,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:oC,symbol:s,dockValue:n})}},aC={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},sC=["hat"];function lC(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 cC({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 p=[{[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 m=re({},e.hat,{type:"path",d:lC(p)});p=[{[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[m,re({},e.hat,{type:"path",d:lC(p)})]}const uC={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=rC({keys:sC,data:r,defaultSettings:aC,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a;return function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=nC}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:m}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),f=s[l].data,h=[];c.hat.show&&h.push(...cC({item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:m,flipXY:n}));const g={type:"container",data:f,collider:{type:"bounds"},children:h};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:sC})}};function dC(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:dC(o,t,n)},o}function pC(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),dC(o,a,l,e.invert)}))}const mC={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 fC(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const hC={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 gC(e,t,n,r){var o,i,a,s,l,c;const{app:u,flags:d}=t,p=null===(o=e.layout)||void 0===o||null===(i=o.tooltip)||void 0===i?void 0:i.imageComponents;if(!p)return[];const[m]=p,f=m.size||"small",h=m.type||"media";let g=-1;for(let e=0;e<n.length;e++)if(n[e].cId===m.cId){g=e;break}const v=(null===(a=r.data)||void 0===a||null===(s=a.customTooltipAttrExps)||void 0===s?void 0:s.value)||[];let y;if(-1!==g&&v[g]&&(y=v[g]),"media"===h&&null!==(l=m.ref)&&void 0!==l&&null!==(c=l.qStaticContentUrl)&&void 0!==c&&c.qUrl)return async function(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){let t,n,r,o,i,a;return e&&e.session&&e.session.options||e&&e.enigmaModel&&e.enigmaModel.session&&e.enigmaModel.session.sessionConfig?(t=e.session.options||e.enigmaModel.session.sessionConfig,a=void 0!==t.secure?t.secure:t.isSecure,n=a?"https://":"http://",r=t.host||"localhost",o=t.port?":"+t.port:"",i=t.prefix?t.prefix:"/","/"!==i[i.length-1]&&(i+="/"),n+r+o+i):""}(n);o&&(function(e,t){e.replace(t,"").replace(/^\.\.\//i,"/")[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 hC.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}(m,f,u);if("url"===h)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&&fC(a))try{const t="data:image/png;base64, "+await e.getImage(a),{height:n,width:o,imageError:s}=await hC.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 hC.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(u,d,m,f,y);if(d.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===h&&y&&y.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(fC(a))try{const t=await e.getImage(a);if(t){const e="data:image/png;base64, "+t,{height:r,width:i,imageError:a}=await hC.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(u,n[g],f,y)}return[]}const vC={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(gC(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t,n;const r=null===(t=e.layout)||void 0===t||null===(n=t.tooltip)||void 0===n?void 0:n.imageComponents;return!!r&&r.length>0}},yC={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await vC.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>vC.checkIfPromisesExist({customTooltipModel:e})};const bC=(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:mC.CHART.CHART_PARENT_TYPE,qId:mC.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},xC=e=>{var t,n,r;const o=null===(t=e.tooltip)||void 0===t||null===(n=t.chart)||void 0===n||null===(r=n.object)||void 0===r?void 0:r.refId;return{qInfo:{qType:mC.CHART.CHART_CHILD_TYPE},qExtendsId:o}};const SC={createContainer:({ctx:e,layout:t})=>{var n,r;if(!((null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r?void 0:r.length)<=0))return function(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.tooltip)||void 0===r||null===(o=r.chart)||void 0===o||null===(i=o.style)||void 0===i?void 0:i.size)&&void 0!==n?n:"medium",s=mC.CHART.STYLE[a];return[{content:[e.h("div",{style:{display:"flex",width:s,height:s,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:mC.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":s,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a,s,l;const c=o,u=null==t||null===(a=t.tooltip)||void 0===a||null===(s=a.chart)||void 0===s||null===(l=s.object)||void 0===l?void 0:l.refId;if(null!=c&&c.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&u&&!(t.qHyperCubeDef.qDimensions.length<=0)){await SC.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=mC.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=mC.CHART.STATE,a=bC(t,i),s=await e.createSessionObject(a),l=xC(t);if(s.id!==mC.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(c.miniChartToken.alternateState&&c.miniChartToken.sessionObj&&a){var d,p,m,f;const e=n.length>0&&void 0!==(null===(d=n[0].data)||void 0===d?void 0:d.value)?[null===(p=n[0].data)||void 0===p?void 0:p.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,g;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(g=e.source)&&void 0!==g&&g.field){var v;const t=null==e||null===(v=e.source)||void 0===v?void 0:v.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&c.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const s=document.getElementById(mC.CHART.CONTAINER_ID),l={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};c.miniChartToken.vis=await o.embed.render({element:s,model:c.miniChartToken.model,options:l,id:null===(m=c.miniChartToken.model)||void 0===m?void 0:m.id,type:null===(f=c.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await SC.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(SC.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(mC.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=mC.CHART.STATE;await e.removeSessionAlternateState(r),n.miniChartToken.alternateState=void 0}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t,n;const r=e;"function"==typeof(null===(t=r.miniChartToken)||void 0===t||null===(n=t.vis)||void 0===n?void 0:n.destroy)&&(r.miniChartToken.vis.destroy(),r.miniChartToken.vis=void 0)}};function wC(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function CC(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=mC.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function MC(e){const t=CC();return e.filter((e=>t[e.id]))}const kC={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}=kC.getAttrExprData(a);i.length||n.length?yC.handlePromises({customTooltipModel:o,nodes:kC.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&&SC.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>yC.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i,a,s;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(a=i.qDimensionInfo)||void 0===a||null===(s=a[t])||void 0===s?void 0:s.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n,r;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(r=n.quarantine)||void 0===r?void 0:r[mC.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[mC.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[mC.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(MC(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t,n;const r=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(n=t.quarantine)||void 0===n?void 0:n[mC.CUSTOM.QUARANTINE])&&delete r.qLayoutExclude.quarantine[mC.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=wC(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===MC(o).length){var i,a;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(a=i.quarantine)||void 0===a?void 0:a.customTooltip)||[],n=[...o,...t],s=e;s.qHyperCubeDef?s.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:s.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const o=wC(e)||[];[...o,t].forEach((e=>{const t=MC(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=CC(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Oe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Oe.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function EC(e,t,n,r){var o,i,a;const s=(null===(o=t.qHyperCube)||void 0===o||null===(i=o[n])||void 0===i||null===(a=i[r])||void 0===a?void 0:a.qAttrExprInfo)||[],l=[],c=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return c?(s.forEach(((e,t)=>{const o=c.qValues&&c.qValues[t]?c.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case mC.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case mC.CUSTOM.TITLE:case mC.CUSTOM.DESCRIPTION:case mC.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);l.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),l):l}const TC={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>EC(t,e,r,n)}}};const NC={getCustomAttrExps(e,t,n){var r,o;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},a=(null===(r=t.data)||void 0===r||null===(o=r.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];if(Number.isNaN(a))return i;return function(e,t,n,r){const o={[mC.CUSTOM.TITLE]:!0,[mC.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=kC.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===mC.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===mC.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,a.map((t=>Re.getMeasure(e,t))),e,i)}};function LC({nodes:e,layout:t,dataset:n}){return function(e,t,n){const r=[];return e.forEach((e=>{r.push(NC.getCustomAttrExps(n,e,t))})),r}(e,t,n).reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function qC(e){const t=mC.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 DC(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var OC={attrExpr:{migrateProperties(e){var t,n,r,o;const i=re(!0,{},e),a=(null===(t=i.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[];let s=DC(i);return s=function(e,t){return t.concat(e.map((e=>qC(e))))}(a,s),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(s,i),null===(o=i.tooltip)||void 0===o||delete o.data,i},getPatches(e){var t,n,r,o;const i=(null===(t=e.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[],a=(null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qDimensions.length)-1;return function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=qC(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}(DC(e),i,a)},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,o,i,a,s;const l=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],c=(null===(o=t.tooltip)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.qHyperCube)||{},u=null===(a=t.qMeta)||void 0===a||null===(s=a.privileges)||void 0===s?void 0:s.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(c,l)&&e.getEffectiveProperties().then((t=>{if(u){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}},RC=7005;const AC=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==RC},PC=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&he(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},IC=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&he(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&he(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},zC=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))},BC=(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;IC(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(IC(e,t),r)))),(()=>r))}return PC(e),Promise.resolve()};function FC(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?p(e,"color.persistent",!0):"byDimension"===r&&n.length>1?p(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?p(e,"color.mode","primary"):0===t.length&&n.length>0&&(p(e,"color.byMeasureDef",void 0),p(e,"color.byDimDef",void 0),1===n.length&&p(e,"color.mode","primary"))}const HC=(e,t)=>{FC(t),Bt(e),kC.addCallbackCustomTooltip(t)},jC=e=>{FC(e)};function WC({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,o){let i;const a=o.layout.qHyperCube.qDimensionInfo.filter((e=>AC(e))).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?BC(t,n.app).then((()=>(HC(e,t),e))):(zC(t),HC(e,t),e)),move(e,t,n){n.layout.qHyperCube.qDimensionInfo.filter((e=>AC(e))).length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),PC(t),FC(t),kC.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;FC(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),kC.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){kC.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?BC(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,jC(t),e))):(zC(t),jC(t),e),move(e,t){PC(t),FC(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;FC(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function VC(e){return{properties:{version:"1.24.0",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:!1,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[{path:"/qHyperCubeDef",...WC(e)}]}}}var _C={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 UC="REJECTED",$C=()=>{},KC=1e4,GC=2,YC=20,XC=200,JC=10;var ZC={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-JC<=t.qTop,o=n.qLeft+n.qWidth+JC>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+JC>=t.qTop+t.qHeight,a=n.qLeft-JC<=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 QC={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-JC<=t.qTop,o=n.qTop+n.qHeight+JC>=t.qTop+t.qHeight;return r&&t.qTop>0||o&&t.qTop+t.qHeight<e.height}}},request:function({layoutService:e,definitionPath:t}){const n=e.getLayoutValue("dimensionAxis.axisDisplayMode","auto");return e=>{const r={method:"getHyperCubeStackData",args:[t,[e]]};return"auto"===n&&r.args.push(600),r}}};var eM={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 tM="pages";const nM="discretePan";function rM({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:nM,pointers:1,threshold:10,enable(r,o){return this.started===nM||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{discretePanstart(e){e.preventDefault(),this.started=nM;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:10},discretePanmove(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)},discretePanend(e){e.preventDefault(),this.started=!1},discretePancancel(e){e.preventDefault(),this.started=!1}}}}function oM({chart:e,componentKey:t,actions:n,scroller:r}){return function(o){if(!n.scroll.enabled()||!r.enabled())return;const[i]=e.componentsFromPoint({x:o.clientX,y:o.clientY}).filter((e=>e.key===t));if(!i)return;o.preventDefault();const a=Math.abs(o.deltaY)>Math.abs(o.deltaX)?o.deltaY:o.deltaX,s=100*Math.sign(-a);r.scroll(s)}}function iM({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{gestures:[rM({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:oM({chart:e,actions:t,componentKey:n,scroller:i})}}}}function aM({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(KC/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(XC,n));return{width:e,height:Math.max(YC,Math.min(n*GC,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 sM(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(UC),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(UC),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(UC),n=null)},o}const lM={command:{update:()=>{}}};var cM={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 uM={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 dM(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function pM(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 mM(e){return pM(e.qMatrix,(e=>e[0].qElemNumber))-1}var fM={inTotal:function({layoutService:e}){const t=dM(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=dM(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=dM(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=mM(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 hM=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function gM(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return hM(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const o=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const i=e[t][0].qElemNumber;-1===o.indexOf(i)&&(o.push(i),r--)}return n.count=o.length-1,n})(t.qMatrix,n);return r.successful?r.count:hM(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return hM(e,n);return pM(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var vM={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=gM(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=gM(t).area(e(),l,a.qArea),d=mM(a),p=a.qArea.qHeight+d,m=c===i?(r.inView-p)*s/o:(c+(a.qArea.qTop+u)*s)/o;return[m,r.inView>=r.inTotal?m+1:m+p/r.inView]}};function yM({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:p,LABELLESS:m}=r[n.meta.chart.mode],f="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:v}=s,y=f?t.width:t.height,b=y/l>=p;switch(h){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);case"auto":default:return c?y/m: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:p}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return p>i;const m=(90-d)*(Math.PI/180);return p>Math.cos(m)*i}({chart:e,isHorizontal:f,axisKey:o,renderer:i,isGrouped:a,itemSize:p,label:v})?y/d:l:y/d}}var bM="AVERAGE",xM="LINEAR",SM="POLYNOMIAL2",wM="POLYNOMIAL3",CM="POLYNOMIAL4",MM="EXPONENTIAL",kM="LOG",EM="POWER";function TM({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 SM:return i;case wM:return i.y+=o[3]*t**3,i;case CM:return i.y+=o[4]*t**4+o[3]*t**3,i}}var NM={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:TM,polynomial3:TM,polynomial4:TM,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)}}};function LM(e,t){const n=NM[t.qType.toLowerCase()],r=Math.max(1,e/500);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}}function qM(e){return NM[e.qType.toLowerCase()]}var DM={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"},OM={color:"#f93f17",index:9};const{isDark:RM}=zt,AM={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN};var PM={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const IM=({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,zM=(e,{layoutService:t,trendLineModel:n,dockService:r})=>{if(!n.query.hasTrendLines())return[];return[(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:o})=>{const i=IM(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:PM,settings:{connect:!0,orientation:o.meta.major.orientation,coordinates:{major:{scale:e,fn:i},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:2,stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}}}})(e,{trendLineModel:n,layoutService:t,dockService:r}),(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:o})=>{const i=IM(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:PM,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r})]};function BM(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)}]}}}function FM(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Oe.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const o=function(e,t){return Array.isArray(t.content)?e("div",{style:{display:"flex","flex-direction":"column"}},t.content.map((t=>e("span",{style:t.style,direction:Oe.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:"16px",x2:"16px",y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},t)}(e):t.content}(t,e);return t("td",r,o)}))}function HM(e,t){return({h:n,data:r,style:o})=>{const i=r[0].title,a=r.filter((e=>e.title===i)),s=[function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:Oe.detectTextDirection(t)},t);return e("tr",{},n)}(n,i)];if(a.slice(0,2).forEach((e=>{s.push(n("tr",{},FM(e.row,{h:n,style:o})))})),r.length>2){const o=r.length-2;s.push(...function(e,t,n,r){const o=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,i=Oe.detectTextDirection(o);return[e("tr",{},e("td",{style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:3},"")),e("tr",{},e("td",{style:{"font-weight":"bold","text-align":n?"right":"left",direction:i},colspan:3},o))]}(n,e,t,o))}return s}}function jM(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:o}=r,i=Ne({key:e.tooltip,rtl:o});return re(!0,i,{settings:{extract:BM(e,t),content:HM(n,o),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function WM(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 VM(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=WM(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=WM(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 _M=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},UM=e=>{_M(e),e.qMultiDimMode="Sum",e.qXColIx=0};function $M(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!xe.dimensionless(n)&&!xe.groupedByDimension(n)&&(r||!xe.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:DM.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(DM.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:DM.ADD_BUTTON,add:UM,globalChange:e=>{const t=d(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!d(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:DM.TYPE,options:[{value:bM,translation:DM.TYPES.AVERAGE},{value:xM,translation:DM.TYPES.LINEAR},{value:SM,translation:DM.TYPES.POLYNOMIAL2},{value:wM,translation:DM.TYPES.POLYNOMIAL3},{value:CM,translation:DM.TYPES.POLYNOMIAL4},{value:MM,translation:DM.TYPES.EXPONENTIAL},{value:kM,translation:DM.TYPES.LOG},{value:EM,translation:DM.TYPES.POWER}],defaultValue:bM},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:OM,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:DM.STYLE.DASHED,type:"boolean",defaultValue:!0,change:_M}}}}var KM={};function GM(){GM.init.call(this)}KM.isObject=function(e){return"object"==typeof e&&null!==e},KM.isNumber=function(e){return"number"==typeof e},KM.isUndefined=function(e){return void 0===e},KM.isFunction=function(e){return"function"==typeof e};var YM=GM;GM.EventEmitter=GM,GM.prototype._events=void 0,GM.prototype._maxListeners=void 0,GM.defaultMaxListeners=10,GM.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},GM.prototype.setMaxListeners=function(e){if(!KM.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},GM.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],KM.isUndefined(n))return!1;if(KM.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(KM.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},GM.prototype.addListener=function(e,t){var n;if(!KM.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,KM.isFunction(t.listener)?t.listener:t),this._events[e]?KM.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,KM.isObject(this._events[e])&&!this._events[e].warned)&&((n=KM.isUndefined(this._maxListeners)?GM.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,KM.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),KM.isFunction(console.trace)&&console.trace()));return this},GM.prototype.on=GM.prototype.addListener,GM.prototype.once=function(e,t){if(!KM.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},GM.prototype.removeListener=function(e,t){var n,r,o,i;if(!KM.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||KM.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(KM.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},GM.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],KM.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},GM.prototype.listeners=function(e){return this._events&&this._events[e]?KM.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},GM.listenerCount=function(e,t){return e._events&&e._events[t]?KM.isFunction(e._events[t])?1:e._events[t].length:0};const XM={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"}}]};var JM={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}},ZM={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"}};function QM({layout:e}){const t=me.canBeContinuous(e),n=xe.continuous(e),r=xe.dimensionless(e);return{canBeContinuous:t,isDiscrete:!n,isContinuous:n,isTime:me.isTime(n,e),isDimensionless:r,isSimple:xe.simple(e),isGrouped:xe.grouped(e),isGroupedByMeasure:xe.groupedByMeasure(e),isGroupedByDimension:xe.groupedByDimension(e),isStacked:xe.stacked(e),isStackedByDimension:xe.stackedByDimension(e),isStackedByMeasure:xe.stackedByMeasure(e),isSnapshot:xe.snapshot(e)}}const ek={extractDimsAndNode(e){const t=[];let n;return e.forEach((e=>{if(e.key===ZM.COMPONENT.BAR){n=e;const r=d(e,"data.selectionDimension",!1);r&&(t.push(r.label),r.label!==e.data.label&&t.push(e.data.label))}})),{nodeDims:t,node:n}}};function tk({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 nk({chart:e,actions:t,selections:n}){const r=e.scale(ZM.SCALE.MAIN.MAJOR);return g({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{clear:tk},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")}}})}function rk({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 ok({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:f}=c.model().mode,h=u||f||d,g=!u&&(f||d)&&l?l.getHyperCube():void 0,y=g?"legendCube":void 0;return p.main=v({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:rk,key:ZM.SCALE.MAIN.COLOR},createConfig:()=>({hc:h?g||s.getHyperCube():c.model().cube,source:h?y:"miniCube",theme:i})}),m.push(p.main.initialize()),u&&(p.mini=v({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:rk,key:ZM.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}}function ik(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function ak(e){return e.some(ik)}function sk(e,t){let n=NaN,r=NaN;return e.forEach((e=>{ak(e)||e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(n=Number.isNaN(n)?e.qNum:Math.min(e.qNum,n),r=Number.isNaN(r)?e.qNum:Math.max(e.qNum,r))}))})),{min:n,max:r}}function lk(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");"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 ck(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!ak(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 uk(e,t){const n={};e.forEach((e=>{if(!ak(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 dk(e){return"number"==typeof e&&!Number.isNaN(e)}function pk(e){const t=e.getHyperCubeValue("qMeasureInfo");return{min:Math.min(...t.filter((e=>dk(e.qMin))).map((e=>e.qMin))),max:Math.max(...t.filter((e=>dk(e.qMax))).map((e=>e.qMax)))}}function mk(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function fk(e){return!Number.isNaN(+e.qNum)}function hk(e){return e.qNum}function gk(e){return!Number.isNaN(+e.qNum)}function vk(e){return e.qNum}function yk(e,t){return e.push(...t),e}const{getValueWithOffset:bk,isNumber:xk}=fa;function Sk(e,t){return Math.abs(e/t)<5||0===t}function wk({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=ck,stackedByDimensionExtractor:o=uk,straightExtractor:i=sk,measureInfoExtractor:a=pk,explicitExtractor:s=lk}=n,{meta:l}=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=>xk(e)));let d=Math.min(...u),p=Math.max(...u);d=Sk(s,d)?Math.min(d,s):d,p=Sk(l,p)?Math.max(p,l):p;const m=[c.explicitMin,c.explicitMax,d,p].filter((e=>xk(e)));return i=Number.isNaN(c.explicitMin)?Math.min(...m):c.explicitMin,a=Number.isNaN(c.explicitMax)?Math.max(...m):c.explicitMax,i===a&&(Number.isNaN(c.explicitMin)?i=bk(i,-.2):Number.isNaN(c.explicitMax)&&(a=bk(a,.2))),{min:i,max:a,implicitMin:d,implicitMax:p,otherMin:s,otherMax:l,hasOtherMin:s<i,hasOtherMax:l>a,...c}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:o}=s(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 s=t.length?t[0].qMatrix:[];return l.isStackedByMeasure?r(s,n):l.isStackedByDimension?o(s,n):e.getHyperCubeValue("qHasOtherValues")?i(s,n):a(e)},extractOthers:e=>l.isStackedByDimension?function(e){const t=mk(d(e,"0.qData.0.qSubNodes",[]),ik,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):l.isGroupedByDimension?function(e){const t=d(e,"0.qMatrix",[]).filter(ak).reduce(yk,[]).filter(gk).map(vk);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=mk(d(e,"0.qMatrix",[]),ak,[]).filter(fk).map(hk);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function Ck(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=wk(e);return t.resolve().then((e=>n.extract(e)))}const Mk="lasso",kk=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:"event:"+e,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:Mk,enable(e,n){if(this.started===Mk||!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!==Mk&&(o.actions.select.emit("start",Mk),this.chart.component(e).emit("lassoStart",t),this.started=Mk)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),o.actions.select.emit("end",Mk)}}});const Ek=({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"}),p=this.chart.component("tooltip"),m="mouse"!==t.pointerType&&p&&p.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)}}if(p&&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,p,{nodes:n,opts:i,customTooltipModel:e})}else p.emit("show",t,{nodes:d})}else m&&p.emit("hide")}}}};const Tk=({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 Nk=({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)));return 0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(t+"-"))}(o,t)?(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)},[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 Lk(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:p}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>"@"+e)).join(",")},on:p?{bubbleEnd(){p()}}:{},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=Nk(e,t,"range");return{interactions:[e.onEdited?Tk(e,t):null,r].filter(Boolean),components:[n]}}const qk={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"}}},Dk="inner-time-axis",Ok="outer-time-axis";const Rk={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}},Ak={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=Rk.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?d(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=Ak.getAxisData(e,t),r=!e.qDimensionInfo.length,o=r||t?void 0:e.qDimensionInfo.length-1,i=Ak.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return ke.getAdjustedMaxGlyphCount(i,n,o,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=Ak.getAxisData(e),n=Rk.getMaxGlyphCount(e,0);return ke.getAdjustedMaxGlyphCount(n,t,0)}};var Pk=3,Ik=13;function zk(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(),{auto:s,spacing:l}=t.layoutService.getLayoutValue("gridLine",{}),c=[],u="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,d=qk[t.dockService.meta.major.orientation+"DimensionAxis"].minimumLayoutMode,p={type:"grid-line",x:{},layout:{minimumLayoutMode:qk.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color}},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(u){const e=n?"end":"start",r=n?1:0,o="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:i.label.name.color,fontSize:i.label.name.fontSize,fontFamily:i.label.name.fontFamily},majorGuideLine:{stroke:i.line.major.color},minorGuideLine:{stroke:i.line.minor.color}},u={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:d},preferredSize:()=>({size:2*parseFloat(i.label.name.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:o,justify:r},guideLine:{major:{justify:r},minor:{align:o}}},style:a};c.push(re(!0,{},u,{key:Dk,scale:ZM.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!s&&0===l}},style:re(!0,{},a,{line:{stroke:i.line.major.color},majorGuideLine:{stroke:i.line.minor.color},minorGuideLine:{stroke:i.line.major.color}})})),c.push(re(!0,{},u,{key:Ok,scale:ZM.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),c.push({type:"axis-overlay",key:"outer-axis-overlay",scale:ZM.SCALE.MAIN.MAJOR,layout:{dock:"@outer-time-axis",minimumLayoutMode:d}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:ZM.SCALE.MAIN.MAJOR_INNER,layout:{dock:"@inner-time-axis",minimumLayoutMode:d}}),c.push(m)}return c.push(re(!0,{},p,{key:"inner-time-grid",x:{scale:ZM.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),c.push(re(!0,{},p,{key:"outer-time-grid",x:{scale:ZM.SCALE.MAIN.MAJOR}})),c}if(o.isContinuous){const e="continuous-axis";u&&(c.push({type:"axis",key:e,scale:ZM.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:d},settings:{labels:{align:0,offset:4,fill:i.label.name.color,fontSize:i.label.name.fontSize,fontFamily:i.label.name.fontFamily},ticks:{show:!0,stroke:i.line.major.color},line:{show:!r},minorTicks:{show:!1}}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:ZM.SCALE.MAIN.MAJOR,layout:{dock:"@"+e,minimumLayoutMode:d}}),c.push(m)),c.push(re(!0,{},p,{key:"continuous-grid",x:{scale:ZM.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return c}(e,t,n,r)):i.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:o}=t.layoutService,i=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),c="horizontal"===t.dockService.meta.major.orientation,u=c?e.dimensionAxis.label:"auto",d="horizontal"===u?void 0:t.dockService.meta.minor.size/4,p={type:"axis",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:qk[t.dockService.meta.major.orientation+"DimensionAxis"].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:u,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,fill:i.axis.label.name.color,fontSize:i.axis.label.name.fontSize,fontFamily:i.axis.label.name.fontFamily},line:{show:!r,stroke:i.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]}};l&&a.push(re(!0,{},p,{key:"group-axis",scale:ZM.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":p.settings.labels.mode,maxGlyphCount:Ak.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(c||!s)&&p.settings.line.show}}}));const m=Ak.getBarAxisMaxGlyphCount(e.qHyperCube,o.isStackedByDimension);return s&&a.push(re(!0,{},p,{key:ZM.COMPONENT.BAR_AXIS,scale:ZM.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:m,maxLengthPx:d,tiltThreshold:m>Pk&&m<Ik?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();return a&&i.push({type:"axis",key:"y-axis",formatter:ZM.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:qk.measureAxis.minimumLayoutMode},scale:ZM.SCALE.MAIN.MINOR,settings:{labels:{show:s,fill:l.axis.label.name.color,fontSize:l.axis.label.name.fontSize,fontFamily:l.axis.label.name.fontFamily},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}}}),i}var Bk={BAR:{WIDTH:.7,STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};function Fk({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=Bk.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?.9:.7}const Hk={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function jk(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=Hk[ce.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 Wk(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function Vk(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function _k(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function Uk(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const $k="max",Kk="min",Gk={min:"Min",max:"Max"};function Yk(e,t,n){return void 0===n?Wk(e,t)||Vk(e,t):n===$k?Wk(e,t):Vk(e,t)}function Xk({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e["hasExplicit"+Gk[t]]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===$k?e.implicitMax:e.implicitMin;return!Yk(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function Jk(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===$k?s.implicitMax:s.implicitMin;if(!Yk(Number(l.toFixed(13)),s,n))return!1;const c=n===$k?i.meta.minor.end:i.meta.minor.start;let u="end";r&&(u=n===$k?"sumOfPositives":"sumOfNegatives");const d=a.getStyles();return{type:"box-out-of-bounds",key:"bar-oob-"+n,layout:{dock:c},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,dockValue:Ce.getDockValue(c),oob:re({},t.settings.box,{fill:d.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[u].value)&&Yk(e.datum[u].value,s,n))}})}}}function Zk(e){return Math.min(Math.max(0,e),1)}const Qk=(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(!Xk({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);return{type:"box",key:`${ZM.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:o},settings:{orientation:a.meta.minor.orientation,major:{scale:ZM.SCALE.MAIN.MAJOR,fn:d},minor:{scale:ZM.SCALE.MAIN.MINOR,start(e){var n,r;return Zk(t.scale(ZM.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(r=n.start)||void 0===r?void 0:r.value)||0))},end(e){const r=t.scale(ZM.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r[n]();return Zk(r(i))}},box:{width:Fk({layoutService:e.layoutService,discrete:e.discrete,componentKey:r}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(ZM.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r.max();return"max"===n?i>r.max():i<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}};function eE(e){return function(t){return zt.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}function tE(e){const t="horizontal"===e.dockService.meta.major.orientation;return{placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=e.padding||{left:n?0:4,right:n?0:4,top:n?4:0,bottom:n?4:0};return{position:e.position,justify:e.justify,fill:e.onBackground?t.color:eE(t),overflow:e.overflow,background:e.background,padding:r}}(n,e.style,t))),label:e.label}}function nE(e,t){if(t){if(function(e,t){return Wk(e,t)}(e,t))return-1;if(function(e,t){return Vk(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)}function rE(e,t,n,r){const o=nE(e,r);let i="up";return"vertical"===t&&o<0?i="down":"horizontal"===t&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}function oE(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 iE(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 aE(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 sE({layout:e,component:t,minorScale:n},r,o){if(!oE(e,r))return!1;const{viewModel:i,ds:a,viewCache:s,layoutService:l,dockService:c,themeService:u}=r,{meta:d}=l,p=s.get("minorMinMax"),m=u.getStyles();let f;!d.isStacked&&(f=d.isStacked?1:0);const h=0===f?1:0,g=d.isStacked?.5:1,v=i.fields.minor[0],y=void 0===v?void 0:a.field(v).formatter();let b,x=-1;b=d.isStacked?d.isStackedByMeasure||!y?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>x?y(e.data.segment.value):""}:function(e){return e.data.end.label};const S={label:b,simplifiedPlacements:aE(f,h,g,d.isContinuous),style:m.label.value},w=[tE(re(r,S))],C={key:"bar-labels",type:"labels",layout:{minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>rE(e.data.end.value,c.meta.minor.orientation,o,p),labels:w,fontSize:m.label.value.fontSize,fontFamily:m.label.value.fontFamily}}}]}};return d.isStackedByDimension&&y&&(C.beforeRender=()=>{x=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)}),C}const lE={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 Re.getMeasure(e,s)},getMeasures(e,t,n,r,o){const i=e.resources.dataset;return t.map((e=>lE.getMeasure(i,e,n,r,o))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return LC({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,o){const i={title:lE.getTitle(t,n),color:Re.getColor(e,t,r),measures:lE.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,o)};if(lE.useCustomTooltip(r)){var a,s,l,c;const n=lE.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);i.customMeasures=n.customTooltipAttrExpsArr,i.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===mC.CUSTOM.TITLE)),i.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===mC.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 f=r.layoutService.getLayout();var u,d,p,m;if(null!==(a=f.tooltip)&&void 0!==a&&null!==(s=a.chart)&&void 0!==s&&null!==(l=s.object)&&void 0!==l&&l.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(c=r.customTooltipModel.model)||void 0===c?void 0:c.getEffectiveProperties))if(null!==(u=(d=r.app).isInModalSelection)&&void 0!==u&&u.call(d)){if((null==f||null===(p=f.qHyperCube)||void 0===p||null===(m=p.qDimensionInfo)||void 0===m?void 0:m.length)>0){SC.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");i.customLimitation=e}}else{const t=SC.createContainer({ctx:e,layout:f});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)=>({title:e.data.label,measures:[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:""+lE.getTotalStackTitle(e,t),value:n?n(e):e})))}),extractTooltipData(e,t){const n=t.chart.formatter(ZM.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=>lE.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:o.map((o=>lE.extractBarTooltipData(e,o,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:i}},extractBarNodeData(e,t,n,r,o,i,a){let s=!o&&Re.getTitleRow(t,r);const l=Re.hideColorRow(t,n),c=!i&&!l&&Re.getColorRow(e,t,r),u=t.measures.map((o=>!a&&Re.getMeasureRow(o,e,t,r,l&&o.field===n.coloring.field))).filter((e=>!lE.isSameMeasureAndColorRow(e,c,r)));if(lE.useCustomTooltip(n)){const n=o?[]:t.customMeasures.map((n=>Re.getMeasureRow(n,e,t,r,!1))),i=!(!t.customTitle[0]||o)&&Re.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||o)&&Re.getDescriptionRow(t.customDescription[0],r);s=!lE.shouldIgnoreTitleRowForCtt(i,a,u,n)&&s;const l=[i,a,s,c,...u,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(kC.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>kC.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,c,...u].filter(Boolean)},extractStackTotalBarNodeData:(e,t,n)=>[!!t.measures.length&&Re.getTitleRow(t,n),...t.measures.map((r=>Re.getMeasureRow(r,e,t,n,!1)))].filter(Boolean),useCustomTooltip:e=>d(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)=>lE.useCustomTooltip(t)&&d(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=lE.shouldIgnoreDefaultRows(i,t);for(s=0;s<a;s++){l=r[s];const i=lE.shouldIgnoreTitleRow(o,s),d=u||lE.shouldIgnoreColorRow(o,s),p=u||lE.shouldIgnoreMeasureRow(d,l,t);if(c=c.concat(lE.extractBarNodeData(e,l,t,n,i,d,p)),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(lE.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:o,stackTotalBarTooltipData:i}=lE.extractTooltipData(e,t),a=lE.extractStackTotalBarsData(e,n,i);a.length&&a.push(Re.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=lE.extractBarsData(e,t,n,r),c=a.concat(s),u=o+l;return u&&c.push(Re.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 as.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,p;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,p=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),p=n===r&&void 0!==u?c.bandwidth([u,e]):c.bandwidth(e)}const m=(d+p/2)*a[l],f={width:0,height:0};return"horizontal"===s?(f.x=m,f.y=a.height):(f.y=m,f.x=0),f},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?lE.calculateBoundsFromBars(l):lE.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)=>e.filter((e=>t.some((t=>n(e,t,r))))),findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=lE.isBarMatchingLabelOnProp;return lE.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=lE.isBarMatchingLabel;return lE.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=lE.findBarsFromBarLabelsInGroupedByDim(e,o,r),s=lE.findBarsFromGroupLabelsInGroupedByDim(e,i,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=lE.isBarMatchingLabel;return lE.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=lE.isBarMatchingLabel;return lE.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=lE.isBarMatchingLabelOnProp;return lE.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>lE.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:o,stackProp:i}){const{meta:a}=t.layoutService,s=lE.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?lE.findBarsFromLabelsInStackedByDim(s,e,i):a.isStackedByMeasure?lE.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?lE.findBarsFromLabelsInGroupedByDim(s,e,r,o):lE.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const o=lE.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?lE.findStackTotalBarsFromLabelsInStackedByDim(o,e):lE.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:p}=t.layoutService;if(e.length){let m=lE.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(m=m.filter(d)),lE.isSingleBarMode(p,m))return[m[0]];if(m.length){let p=lE.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,i,a],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});d&&(p=p.filter(d));const f=lE.calculateTotalBounds({opts:t,labels:e,bars:p,barKey:n,barAxisKey:o,groupProp:s,majorScale:c,majorInnerScale:u}),h=lE.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r});return[{key:n,bounds:f,childrenNodes:m,data:m.map((e=>e.data)),stackTotalBarNodes:h}]}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 p=lE.filterNodesOnKeys(e,[o,i]),m=p&&p.length?[p[0]]:[];const f=lE.filterNodesOnLabels({labels:m,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d});if(f&&f.length)return f;const{meta:h}=t.layoutService;if(h.isStackedByMeasure){p=lE.filterNodesOnKeys(e,[a,s]),m=p&&p.length?[p[0]]:[];const i=e=>lE.filterNodesForOob(e,n,a),f=lE.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(f&&f.length)return f[0].stackTotalBarNodes=void 0,f}if(h.isStackedByDimension){p=lE.filterNodesOnKeys(e,[a,s]),m=p&&p.length?[p[0]]:[];const i=e=>lE.filterNodesForOob(e,n,a),f=lE.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(f&&f.length)return f[0].stackTotalBarNodes=void 0,f}const g=lE.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function cE(e,t={},n){let r=[];const o=Ne({key:ZM.COMPONENT.BASE_TOOLTIP,rtl:n});return re(!0,o,{scale:ZM.SCALE.MAIN.COLOR,settings:{filter:e=>lE.filterNodes({nodes:e,opts:t,barKey:ZM.COMPONENT.BAR,stackTotalBarKey:ZM.COMPONENT.STACK_TOTAL_BAR,barAxisKey:ZM.COMPONENT.BAR_AXIS,groupAxisKey:ZM.COMPONENT.GROUP_AXIS,barOobMaxKey:ZM.COMPONENT.BAR_OOB_MAX,barOobMinKey:ZM.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],lE.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&&SC.show({app:o,properties:i,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const uE={extractData:(e,t)=>[Re.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 dE(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Ne({key:ZM.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return re(!0,r,{scale:ZM.SCALE.MAIN.COLOR,settings:{filter:e=>uE.filterNodes(e,ZM.COMPONENT.LEGEND_COLOR_CAT),extract:e=>uE.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function pE(e){return"NaN"===e.qMin&&"NaN"===e.qMax}function mE(e,{fill:t}){return{[ZM.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[ZM.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const fE=1,hE=3;function gE(e){return e.getLayoutValue("gridLine.auto")}function vE(e){return!gE(e)&&e.getLayoutValue("gridLine.spacing")===fE}function yE(e){return!gE(e)&&e.getLayoutValue("gridLine.spacing")===hE}const bE=(e,{themeService:t,layoutService:n,dockService:r})=>{if(!gE(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:o}=t.getStyles(),i={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:qk.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!vE(n)||((e,t)=>t%2==0),stroke:o.line.major.color},minorTicks:{show:yE(n),stroke:o.line.minor.color}};return i["horizontal"===r.meta.major.orientation?"y":"x"]=ZM.SCALE.MAIN.MINOR,i};function xE(e,t){const n=[bE(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n})=>{const r=n.get("minorMinMax");if(r.min>0||r.max<0)return!1;const o=t.getStyles(),i={};return i["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:ZM.SCALE.MAIN.MINOR,line:{stroke:o.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:ZM.SCALE.MAIN.MINOR,lines:i}})(t)),n}const SE="areaPan",wE=e=>({type:"Pan",key:"panorama",options:{event:SE,pointers:1,threshold:10,enable(t,n){return this.started===SE||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===ZM.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=SE;const n=e.viewState.get("zoom");this.areaPan={min:n.min,max:n.max,size:e.chart.component(ZM.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:o,size:i}=this.areaPan,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 CE(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:o}=e,{rtl:i}=t,a=hw.event.onZoom({viewCache:n,viewState:r,chart:o},{threshold:100,rtl:i,targetKey:ZM.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===ZM.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 ME({chart:e},t,n){const r=e.component(ZM.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(ZM.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&i.emit("hide");const a=e.component(ZM.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function kE(e,t){const{viewCache:n,viewState:r,chart:o,trendLineModel:i,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?hw.event.onZoom({viewCache:n,viewState:r,chart:o},{rtl:s,threshold:50,targetKey:ZM.COMPONENT.BAR}):void 0,c=VM({majorInnerScale:ZM.SCALE.MAIN.MAJOR_INNER,tooltip:ZM.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:ZM.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:o,viewState:r,trendLineModel:i,layoutService:a,rtl:s}),u=[ZM.COMPONENT.BAR,ZM.COMPONENT.BAR_AXIS,ZM.COMPONENT.GROUP_AXIS,ZM.COMPONENT.BAR_OOB_MAX,ZM.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,p=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===ZM.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===ZM.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(),ME(e,p,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(ZM.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);p(t,r,{nodes:o,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const o=this.chart.component(ZM.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&(n.some((e=>e.key===ZM.COMPONENT.LEGEND_COLOR_CAT))?o.emit("show",t):o.emit("hide"))}},mouseup(t){2===t.button&&ME(this,p,e)},mouseleave(){ME(this,p,e)}}}}const EE=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...Aw({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[wE(e,t.rtl),CE(e,t)]]});function TE(e,t){const{actions:n}=e;if(!n.interact.enabled())return[];const r=[EE(e,t),kE(e,t),Aw({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&r.push(e.discrete.interactions.native),r}const NE=(e,t,{collectionKey:n})=>{if(!Sw({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r},{collectionKey:o}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:o},settings:{box:re(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:re(!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}}}}(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}}}},{measureText:LE}=t.renderer("svg")();const qE=50,DE=100,OE=200;function RE(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function AE(e,t,n){return 0===t||0===e||t===n.length-1}function PE(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}const IE=(e,t)=>e.value-t.value,zE=e=>({value:e,isMinor:!1}),BE=e=>({value:e,isMinor:!0});function FE({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:ZM.SCALE.MAIN.MAJOR},minor:{scale:ZM.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}}}}const HE={min:"Min",max:"Max"};function jE(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?_k(e,t)||Uk(e,t):n===$k?_k(e,t):Uk(e,t)}(Number(r.toFixed(13)),e,t)}function WE(e,{barComponent:t,type:n,isStacked:r}){var o,i,a,s;const{viewCache:l,layoutService:c,dockService:u}=e,d=l.get("minorMinMax"),p=n===$k;if(function(e,t){return!e["hasOther"+HE[t]]}(d,n)){if(function(e,t){return!e["hasExplicit"+HE[t]]}(d,n))return!1;if(jE(d,n,p))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e["hasExplicit"+HE[t]]&&r(e["explicit"+HE[t]])}(d,n,p))return!1;let m="end";r&&(m=p?"sumOfPositives":"sumOfNegatives");const f=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(ZM.SCALE.MAIN.MINOR)[n]())),h=p?e=>e.datum[m].value>f():e=>e.datum[m].value<f(),g=ZM.COMPONENT.BAR,v=e.layoutService.getLayoutValue("components",[]),y=v?v.filter((e=>e.key===g))[0]:null;return{type:"box-sliced-hat",key:"sliced-hat-"+n,layout:{dock:p?u.meta.minor.end:u.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:re({},t.settings.box,{fill:c.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:h,width:Fk({layoutService:e.layoutService,discrete:e.discrete,componentKey:g}),strokeWidth:null!=y&&null!==(o=y.style)&&void 0!==o&&o.strokeWidth?Bk.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:Bk.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==y||null===(a=y.style)||void 0===a||null===(s=a.strokeColor)||void 0===s?void 0:s.color)&&void 0!==i?i:Bk.BAR.STROKE.COLOR})}}}function VE(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 _E(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=!n.isCustomFormatted&&(n.qIsAutoFormat||"U"===n.qNumFormat.qType);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,p=d?{field:d,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,m={field:r.isDimensionless?t:o.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:s(t),null:(f=t,{field:f,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:p,...a,...c,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${i}`},customTooltipAttrExps:0!==r.dimensionCount?TC.getNode(e.layoutService.getLayout(),r):void 0}};var f;return r.isDimensionless&&(m.value=i),void 0!==n&&(m.source=n),ge(m.props),m}))}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}function UE({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 $E="main-collection",KE="stack-total-collection";const GE="mini-collection",YE="mini-stack-collection",XE="mini-continuous-collection",JE="miniCube",ZE=(e,t)=>{const n=(e=>{const t=[_E(e,{collectionKey:$E})];return e.layoutService.meta.isStacked&&t.push(UE(e,{collectionKey:KE})),t})(t),r=((e,t)=>{const n=[];return Sw({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(_E(t,{collectionKey:XE},JE)):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:YE})):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:GE}))),n})(0,t);return n.concat(r)};function QE(e,t,n){const r=[{position:e,onBackground:!0,justify:0,overflow:n}];return t&&r.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:{fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}}}),r}function eT({layout:e,component:t},n,r){if(!iE(e,n))return!1;const{meta:o}=n.layoutService,i=!oE(e,n),a=n.themeService.getStyles();function s(e){const t=n.chart.formatter(ZM.FORMATTER.MINOR);return t?t(e):e}const l={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":s(e.data.sumOfPositives.value)},simplifiedPlacements:QE("outside",i,o.isContinuous),style:a.label.value},c={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":s(e.data.sumOfNegatives.value)},simplifiedPlacements:QE("opposite",i,o.isContinuous),style:a.label.value};return{key:"stack-total-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>rE(e.data.sumOfPositives.value,n.dockService.meta.minor.orientation,r),labels:[tE(re(n,l)),tE(re(n,c))],fontSize:a.label.value.fontSize,fontFamily:a.label.value.fontFamily}}}]}}}function tT(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 nT({layout:e,type:t},n){const{layoutService:r,viewCache:o,themeService:i}=n,{meta:a}=r,{isStacked:s}=a;if(!s&&!oE(e,n)||s&&!iE(e,n))return!1;const l=o.get("minorMinMax");if(!l.hasExplicitMinMax||t===$k&&0===l.max||t===Kk&&0===l.min)return!1;if(!Yk(t===$k?l.implicitMax:l.implicitMin,l,t))return!1;const c=i.getStyles();let u=e=>e.data.end.label;a.isStacked&&(u=t===$k?function(e){if(Yk(e.data.sumOfNegatives.value,l,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(ZM.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(Yk(e.data.sumOfPositives.value,l,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(ZM.FORMATTER.MINOR);return r?r(t):t}return""});const d={color:"#595959",lightColor:"#E6E6E6",darkColor:"#595959",fontSize:13,fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'},p={label:u,simplifiedPlacements:tT("outside",true,a.isContinuous),style:d},m={label:u,simplifiedPlacements:tT("opposite",true,a.isContinuous),style:d},f=[tE(re(n,p)),tE(re(n,m))],h="vertical"===n.dockService.meta.minor.orientation?"down":"right",g={component:`${ZM.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:h,labels:f,fontSize:c.label.value.fontSize,fontFamily:c.label.value.fontFamily}}};return{key:"bar-oob-labels-"+t,type:"labels",layout:{minimumLayoutMode:"XSMALL"},settings:{sources:[g]}}}function rT(e){return"all"===e||"title"===e}function oT(e,t,n){if(!rT(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:r,properties:o}=t,i=t.themeService.getStyles(),a={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};return t.layoutService.meta.hasMultipleDimensions&&(a.padding="0",a.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:qk[t.dockService.meta.major.orientation+"DimensionAxisTitle"].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:a,style:{fontFamily:i.axis.title.fontFamily,fontSize:i.axis.title.fontSize,color:i.axis.title.color}}}function iT(e,t,n){if(!rT(e.measureAxis.show))return!1;const{layoutService:r,actions:o}=t,i=t.properties,a=r.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",s=t.themeService.getStyles(),l={hyperCube:r.getHyperCube(),hyperCubeDef:d(i,a),isDimension:!1,disabled:()=>!o.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections};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:{fontFamily:s.axis.title.fontFamily,fontSize:s.axis.title.fontSize,color:s.axis.title.color}}}function aT({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:o,dockService:i,themeService:a,chart:s}){const{theme:l,localeInfo:c}=e,u={resolveUIColor:o.getMain().getPaletteColor},d=a.getStyles();return[rs({refLineModel:n,layoutService:r,colorModel:u,dockService:i,chart:s,scale:ZM.SCALE.MAIN.MINOR,axis:"horizontal"===i.meta.major.orientation?"y":"x",key:ZM.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:qk.refLines.minimumLayoutMode}),rs({isDimension:!0,refLineModel:n,layoutService:r,colorModel:u,dockService:i,chart:s,scale:ZM.SCALE.MAIN.MAJOR,axis:"horizontal"===i.meta.major.orientation?"x":"y",rtl:t,key:ZM.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:ZM.COMPONENT.BAR,minimumLayoutMode:qk.refLines.minimumLayoutMode}),...is({refLineModel:n,layoutService:r,colorModel:u,dock:i.meta.minor.opposite,scale:ZM.SCALE.MAIN.MINOR,style:d,formatter:ZM.FORMATTER.MINOR,theme:l,localeInfo:c,rtl:t,key:ZM.COMPONENT.MEASURE_REF_LINE_LABEL}),...is({isDimension:!0,refLineModel:n,layoutService:r,colorModel:u,dock:i.meta.major.opposite,scale:ZM.SCALE.MAIN.MAJOR,style:d,theme:l,localeInfo:c,rtl:t,key:ZM.COMPONENT.DIMENSION_REF_LINE_LABEL})]}function sT(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)!==RC})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==RC})).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 lT=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],cT=(e,t)=>{var n,r,o,i,a;const s=null===(n=t.qHyperCube)||void 0===n||null===(r=n.qMeasureInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==RC})).length,l=null===(o=t.qHyperCube)||void 0===o||null===(i=o.qDimensionInfo)||void 0===i?void 0:i.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==RC})).length,c="grouped"===(null===(a=e.barGrouping)||void 0===a?void 0:a.grouping)&&l>0&&s+l>2;return xe.continuous(t)?1:c?.9:.7},uT={component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,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(lT).map((e=>lT[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",items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t,n)=>cT(n.properties,n.handler.layout)}}}}}}},dT={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,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(lT).map((e=>lT[e])),schemaIgnore:!0,defaultValue:lT[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)=>!xe.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)=>cT(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(vw.OPTIONS).map((e=>vw.OPTIONS[e])),schemaIgnore:!0,defaultValue:vw.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}}}}}}}}};function pT(e=!1){return e?dT:uT}const mT={...pT(!1)},fT={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"bar",ref:"components",defaultValues:(e,t)=>({key:"bar",style:{width:cT(e,t.layout),strokeColor:{index:-1,color:"#205891"},strokeWidth:"none"}}),items:{bar:{components:"items",type:"items",uses:"styling.box",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},width:{show:(e,t,n)=>!xe.continuous(n.layout),component:"slider",min:.01,max:1,step:.01,defaultValue:.7}}}}},hT=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==RC},gT=(e,t)=>e.qHyperCube[t].filter((e=>hT(e))),vT=e=>({get:(t,n,r)=>xe.continuous(r.layout)?e:t(n.type),set(e,t,n){const r=Me(n.type,n);t(n.type,e,r)}}),yT=e=>{const t=re(!0,{},e);return t.qHyperCube.qMeasureInfo=gT(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=gT(e,"qDimensionInfo"),t&&!xe.continuous(t)&&xe.stacked(t)},bT=({translator:e,flags:t,anything:n})=>{var r,o;const i=null==n||null===(r=n.sense)||void 0===r||null===(o=r.isUnsupportedFeature)||void 0===o?void 0:o.call(r,"continuousData"),a={items:{labels:{items:{header:{show:(e,t,n)=>gT(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!yT(t.layout)&&gT(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>yT(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)=>yT(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)=>gT(n.layout,"qDimensionInfo").length&&gT(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)=>gT(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"}}}}}}},s={uses:"settings",items:{simpleStyling:pT(!0),simpleLabels:a,general:{items:{showDisclaimer:null!=t&&t.isEnabled("SHOW_DISCLAIMER")?{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}:void 0}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:null!=t&&t.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_BARCHART")?mT:fT,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=gT(t.layout,"qMeasureInfo").length,r=gT(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},change(e,t){gT(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)=>xe.continuous(n.layout),convertFunctions:vT("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)=>xe.continuous(n.layout),convertFunctions:vT("vertical")},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(vw.OPTIONS).map((e=>vw.OPTIONS[e])),defaultValue:vw.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)=>!xe.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(yT(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&&yT(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&&yT(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{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")&&!xe.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=gT(n.layout,"qMeasureInfo").length,o=gT(n.layout,"qDimensionInfo").length,i=e.dimensionAxis.maxVisibleItems;return i<0||i>1e4/(o+r)},globalChange:sT,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:!i}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(s.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"}]}}}),s},xT={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){Bt(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}}}}}},ST={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},wT=({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,o,i,a,s;const l=null===(n=t.layout)||void 0===n||null===(r=n.qHyperCube)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.findIndex((e=>hT(e)));return(null===(i=t.properties)||void 0===i||null===(a=i.qHyperCubeDef)||void 0===a||null===(s=a.qDimensions)||void 0===s?void 0:s[l])===e})(e,t),s=xe.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:$M({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function CT({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:wT({translator:e,flags:t,anything:n}),sorting:xT,addons:ST,settings:bT({translator:e,flags:t,anything:n})}}}const MT=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==RC};function kT(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t){const n=t.qHyperCubeDef.qMeasures.length,r=t.qHyperCubeDef.qDimensions.length;return 1===n&&2===r&&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){return t.qHyperCube.qMeasureInfo.filter((e=>MT(e))).length+t.qHyperCube.qDimensionInfo.filter((e=>MT(e))).length>2&&!xe.continuous(t)&&!((null==(n=t)||null===(r=n.qHyperCube)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.filter((e=>MT(e))).length)>1&&(null==n||null===(i=n.qHyperCube)||void 0===i?void 0:i.isHCEnabled));var n,r,o,i},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)=>!xe.continuous(t)}}},color:{uses:"color"}}}}function ET(e){const t={},n=d(e,"components"),r=d(e,"dimensionAxis.axisDisplayMode"),o=d(e,"dimensionAxis.maxVisibleItems"),i=n?n.filter((e=>"bar"===e.key))[0]:void 0,a=d(e,"tooltip");if(i&&i.style&&Object.keys(i.style).forEach((e=>{t["chart_style_"+e]=i.style[e]})),o&&(t.chart_dimaxis_maxVisibleItems=o),r&&(t.chart_dimaxis_axisDisplayMode=r),a){t.chart_tooltip_custom=!a.auto;const e=d(a,"chart.object.refId");!a.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const TT=e=>!!(e&&e.qHyperCube.qSize.qcy>0),NT={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function LT(e){const t=[];return Object.keys(NT).forEach((n=>{e.isEnabled(n)&&t.push(NT[n])})),t}function qT(e){const{flags:t}=e;return{definition:CT(e),softDefinition:kT(),support:{snapshot:TT,export:TT,exportData:!0,sharing:TT,viewData:!0,effects:!0,modifiers:LT(t)},importProperties:(n,r,o,i)=>{const a={layout:{templateId:r.templateId}};o.mapProperties(a);const s={defaultDimension:o.getDefaultDimensionProperties(),defaultMeasure:o.getDefaultMeasureProperties()},l=_.axisChart.importProperties({exportFormat:n,initialProperties:r,dataDefinition:WC(e),defaultPropertyValues:s,hypercubePath:i,extension:o}),c=l.qProperty;return c.qHyperCubeDef.qDimensions.length>1&&"stacked"===c.barGrouping.grouping&&(c.qHyperCubeDef.qMode="K"),t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(_.conditionalShow.unquarantine(c),_.conditionalShow.unquarantineAlternative(c)),l},exportProperties:(e,n,r)=>{t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(_.conditionalShow.quarantine(e.qProperty),_.conditionalShow.quarantineAlternative(e.qProperty));return _.axisChart.exportProperties({propertyTree:e,hyperCubePath:n,viewDataMode:r})},migrate:{properties:e=>(e.qExtendsId||(function(e){e.qHyperCubeDef.qDimensions.forEach(Bt)}(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=vw.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:ET}}}}}));
|