@nebula.js/sn-combo-chart 1.19.1 → 1.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-combo-chart.js +11 -11
- package/dist/sn-combo-chart.systemjs.js +2 -2
- package/package.json +1 -1
- package/sn-combo-chart-ext/dist/sn-combo-chart.js +11 -11
- package/sn-combo-chart-ext/sn-combo-chart.qext +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-combo-chart v1.19.
|
|
2
|
+
* @nebula.js/sn-combo-chart v1.19.2
|
|
3
3
|
* Copyright (c) 2022 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -44,4 +44,4 @@ Object.defineProperty(Fp,"__esModule",{value:!0});var Hp="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 CE=EE&&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()}),ME))}};function wE(e){return e&&"[object Function]"==={}.toString.call(e)}function kE(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function NE(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function TE(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=kE(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:TE(NE(e))}function OE(e){return e&&e.referenceNode?e.referenceNode:e}var RE=EE&&!(!window.MSInputMethodContext||!document.documentMode),AE=EE&&/MSIE 10/.test(navigator.userAgent);function LE(e){return 11===e?RE:10===e?AE:RE||AE}function IE(e){if(!e)return document.documentElement;for(var t=LE(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"===kE(n,"position")?IE(n):n:e?e.ownerDocument.documentElement:document.documentElement}function PE(e){return null!==e.parentNode?PE(e.parentNode):e}function DE(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&&IE(a.firstElementChild)!==a?IE(l):l;var c=PE(e);return c.host?DE(c.host,t):DE(e,PE(t).host)}function qE(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 zE(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=qE(t,"top"),o=qE(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 BE(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 $E(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],LE(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function FE(e){var t=e.body,n=e.documentElement,r=LE(10)&&getComputedStyle(n);return{height:$E("Height",t,n,r),width:$E("Width",t,n,r)}}var HE=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},jE=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}}(),VE=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},WE=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 _E(e){return WE({},e,{right:e.left+e.width,bottom:e.top+e.height})}function UE(e){var t={};try{if(LE(10)){t=e.getBoundingClientRect();var n=qE(e,"top"),r=qE(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?FE(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=kE(e);l-=BE(u,"x"),c-=BE(u,"y"),o.width-=l,o.height-=c}return _E(o)}function YE(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=LE(10),o="HTML"===t.nodeName,i=UE(e),a=UE(t),s=TE(e),l=kE(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=_E({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=zE(d,t)),d}function GE(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=YE(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:qE(n),s=t?0:qE(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return _E(l)}function KE(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===kE(e,"position"))return!0;var n=NE(e);return!!n&&KE(n)}function XE(e){if(!e||!e.parentElement||LE())return document.documentElement;for(var t=e.parentElement;t&&"none"===kE(t,"transform");)t=t.parentElement;return t||document.documentElement}function JE(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?XE(e):DE(e,OE(t));if("viewport"===r)i=GE(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=TE(NE(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=YE(s,a,o);if("HTML"!==s.nodeName||KE(a))i=l;else{var c=FE(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 ZE(e){return e.width*e.height}function QE(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=JE(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 WE({key:e},s[e],{area:ZE(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 eM(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?XE(t):DE(t,OE(n));return YE(n,o,r)}function tM(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 nM(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 rM(e,t,n){n=n.split("-")[0];var r=tM(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[nM(s)],o}function oM(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function iM(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=oM(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&&wE(n)&&(t.offsets.popper=_E(t.offsets.popper),t.offsets.reference=_E(t.offsets.reference),t=n(t,e))})),t}function aM(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=eM(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=QE(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=rM(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=iM(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function sM(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function lM(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 cM(){return this.state.isDestroyed=!0,sM(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[lM("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function uM(e){var t=e.ownerDocument;return t?t.defaultView:window}function dM(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||dM(TE(i.parentNode),t,n,r),r.push(i)}function pM(e,t,n,r){n.updateBound=r,uM(e).addEventListener("resize",n.updateBound,{passive:!0});var o=TE(e);return dM(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function mM(){this.state.eventsEnabled||(this.state=pM(this.reference,this.options,this.state,this.scheduleUpdate))}function fM(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,uM(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 hM(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function gM(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&hM(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var vM=EE&&/Firefox/i.test(navigator.userAgent);function yM(e,t,n){var r=oM(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 bM=["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"],xM=bM.slice(3);function SM(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=xM.indexOf(e),r=xM.slice(n+1).concat(xM.slice(0,n));return t?r.reverse():r}var EM="flip",MM="clockwise",CM="counterclockwise";function wM(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(oM(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 _E(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){hM(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var kM={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:VE({},l,i[l]),end:VE({},l,i[l]+i[c]-a[c])};e.offsets.popper=WE({},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=hM(+n)?[+n,0]:wM(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||IE(e.instance.popper);e.instance.reference===n&&(n=IE(n));var r=lM("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=JE(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])),VE({},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))),VE({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=WE({},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(!yM(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=tM(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=_E(e.offsets.popper);var h=s[d]+s[c]/2-f/2,g=kE(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=(VE(n={},d,Math.round(b)),VE(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(sM(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=JE(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=nM(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case EM:a=[r,o];break;case MM:a=SM(r);break;case CM:a=SM(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=nM(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=WE({},e.offsets.popper,rM(e.instance.popper,e.offsets.reference,e.placement)),e=iM(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=nM(t),e.offsets.popper=_E(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!yM(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=oM(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=oM(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=IE(e.instance.popper),l=UE(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||!vM),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",m=lM("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=WE({},y,e.attributes),e.styles=WE({},c,e.styles),e.arrowStyles=WE({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return gM(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&&gM(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=eM(o,t,e,n.positionFixed),a=QE(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),gM(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},NM=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};HE(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=CE(this.update.bind(this)),this.options=WE({},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(WE({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=WE({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return WE({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&wE(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 jE(e,[{key:"update",value:function(){return aM.call(this)}},{key:"destroy",value:function(){return cM.call(this)}},{key:"enableEventListeners",value:function(){return mM.call(this)}},{key:"disableEventListeners",value:function(){return fM.call(this)}}]),e}();function TM(e){return"function"==typeof e?e():e}NM.Utils=("undefined"!=typeof window?window:global).PopperUtils,NM.placements=bM,NM.Defaults=kM;var OM="undefined"!=typeof window?B.useLayoutEffect:B.useEffect,RM={},AM=B.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,o=e.container,i=e.disablePortal,a=void 0!==i&&i,s=e.keepMounted,l=void 0!==s&&s,c=e.modifiers,u=e.open,d=e.placement,p=void 0===d?"bottom":d,m=e.popperOptions,f=void 0===m?RM:m,h=e.popperRef,g=e.transition,v=void 0!==g&&g,y=Ip(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition"]),b=B.useRef(null),x=Yv(b,t),S=B.useRef(null),E=Yv(S,h),M=B.useRef(E);OM((function(){M.current=E}),[E]),B.useImperativeHandle(h,(function(){return S.current}),[]);var C=B.useState(!0),w=C[0],k=C[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}}(p),T=B.useState(N),O=T[0],R=T[1],A=B.useCallback((function(){if(b.current&&n&&u){S.current&&(S.current.destroy(),M.current(null));var e=function(e){R(e.placement)};TM(n);var t=new NM(TM(n),b.current,Lp({placement:N},f,{modifiers:Lp({},a?{}:{preventOverflow:{boundariesElement:"window"}},{},c,{},f.modifiers),onCreate:ex(e,f.onCreate),onUpdate:ex(e,f.onUpdate)}));M.current(t)}}),[n,a,c,u,N,f]),L=B.useCallback((function(e){Uv(x,e),A()}),[x,A]),I=function(){S.current&&(S.current.destroy(),M.current(null))};if(B.useEffect((function(){A()}),[A]),B.useEffect((function(){return function(){I()}}),[]),B.useEffect((function(){u||v||I()}),[u,v]),!l&&!u&&(!v||w))return null;var P={placement:O};return v&&(P.TransitionProps={in:u,onEnter:function(){k(!1)},onExited:function(){k(!0),I()}}),B.createElement(Qb,{disablePortal:a,container:o},B.createElement("div",Lp({ref:L,role:"tooltip"},y,{style:Lp({position:"fixed",top:0,left:0},y.style)}),"function"==typeof r?r(P):r))})),LM=pb(B.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"})),IM=pb(B.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"})),PM=B.createElement(LM,null);var DM=lv((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 B.createElement("div",{className:Vg(n.root,t&&n.checked)},PM,B.createElement(IM,{className:n.layer}))})),qM=B.createContext(),zM=B.createElement(DM,{checked:!0}),BM=B.createElement(DM,null),$M=B.forwardRef((function(e,t){var n=e.checked,r=e.classes,o=e.color,i=void 0===o?"secondary":o,a=e.name,s=e.onChange,l=Ip(e,["checked","classes","color","name","onChange"]),c=B.useContext(qM),u=n,d=ex(s,c&&c.onChange),p=a;return c&&(void 0===u&&(u=c.value===e.value),void 0===p&&(p=c.name)),B.createElement(Ib,Lp({color:i,type:"radio",icon:BM,checkedIcon:zM,classes:{root:Vg(r.root,r["color".concat(cv(i))]),checked:r.checked,disabled:r.disabled},name:p,checked:u,onChange:d,ref:t},l))}));function FM(e){return(FM="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 HM(e){return(HM="function"==typeof Symbol&&"symbol"===FM(Symbol.iterator)?function(e){return FM(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":FM(e)})(e)}function jM(e,t){return"object"===HM(t)&&null!==t?e===t:String(e)===String(t)}lv((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Tp(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:Tp(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})($M),B.forwardRef((function(e,t){var n=e.actions,r=e.children,o=e.name,i=e.value,a=e.onChange,s=Ip(e,["actions","children","name","value","onChange"]),l=B.useRef(null),c=B.useRef(null!=i).current,u=B.useState((function(){return c?null:e.defaultValue})),d=u[0],p=u[1];B.useImperativeHandle(n,(function(){return{focus:function(){var e=l.current.querySelector("input:not(:disabled):checked");e||(e=l.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var m={name:o,onChange:function(e){c||p(e.target.value),a&&a(e,e.target.value)},value:c?i:d},f=Yv(t,l);return B.createElement(oS,Lp({role:"radiogroup",ref:f},s),B.createElement(qM.Provider,{value:m},r))})),B.Component;var VM=B.forwardRef((function(e,t){var n=e.autoFocus,r=e.autoWidth,o=e.children,i=e.classes,a=e.className,s=e.defaultValue,l=e.disabled,c=e.displayEmpty,u=e.labelId,d=e.IconComponent,p=e.inputRef,m=e.MenuProps,f=void 0===m?{}:m,h=e.multiple,g=e.name,v=e.onBlur,y=e.onChange,b=e.onClose,x=e.onFocus,S=e.onOpen,E=e.open,M=e.readOnly,C=e.renderValue;e.required;var w=e.SelectDisplayProps,k=void 0===w?{}:w,N=e.tabIndex;e.type;var T=e.value,O=e.variant,R=void 0===O?"standard":O,A=Ip(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"]),L=B.useRef(null!=T).current,I=B.useState(s),P=I[0],D=I[1],q=L?T:P,z=B.useRef(null),$=B.useState(null),F=$[0],H=$[1],j=B.useRef(null!=E).current,V=B.useState(),W=V[0],_=V[1],U=B.useState(!1),Y=U[0],G=U[1],K=Yv(t,p);B.useImperativeHandle(K,(function(){return{focus:function(){F.focus()},node:z.current,value:q}}),[F,q]),B.useEffect((function(){n&&F&&F.focus()}),[n,F]);var X,J,Z=function(e,t){e?S&&S(t):(F.focus(),b&&b(t)),j||(_(r?null:F.clientWidth),G(e))},Q=function(e){return function(t){var n;if(h||Z(!1,t),h){n=Array.isArray(q)?gy(q):[];var r=q.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;L||D(n),y&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:g}}),y(t,e))}},ee=null!==F&&(j?E:Y);delete A["aria-invalid"];var te=[],ne=!1;(Yx({value:q})||c)&&(C?X=C(q):ne=!0);var re=B.Children.map(o,(function(e){if(!B.isValidElement(e))return null;var t;if(h){if(!Array.isArray(q))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(t=q.some((function(t){return jM(t,e.props.value)})))&&ne&&te.push(e.props.children)}else(t=jM(q,e.props.value))&&ne&&(J=e.props.children);return B.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=h?te.join(", "):J);var oe,ie=W;!r&&j&&F&&(ie=F.clientWidth),oe=void 0!==N?N:l?null:0;var ae=k.id||(g?"mui-component-select-".concat(g):void 0);return B.createElement(B.Fragment,null,B.createElement("div",Lp({className:Vg(i.root,i.select,i.selectMenu,i[R],a,l&&i.disabled),ref:H,tabIndex:oe,role:"button","aria-expanded":ee?"true":void 0,"aria-labelledby":"".concat(u||""," ").concat(ae||""),"aria-haspopup":"listbox",onKeyDown:function(e){if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Z(!0,e))}},onClick:l||M?null:function(e){Z(!0,e)},onBlur:function(e){!ee&&v&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:g}}),v(e))},onFocus:x},k,{id:ae}),function(e){return null==e||"string"==typeof e&&!e.trim()}(X)?B.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):X),B.createElement("input",Lp({value:Array.isArray(q)?q.join(","):q,name:g,ref:z,type:"hidden",autoFocus:n},A)),B.createElement(d,{className:Vg(i.icon,i["icon".concat(cv(R))],ee&&i.iconOpen)}),B.createElement(cE,Lp({id:"menu-".concat(g||""),anchorEl:F,open:ee,onClose:function(e){Z(!1,e)}},f,{MenuListProps:Lp({"aria-labelledby":u,role:"listbox",disableListWrap:!0},f.MenuListProps),PaperProps:Lp({},f.PaperProps,{style:Lp({minWidth:ie},null!=f.PaperProps?f.PaperProps.style:null)})}),re))})),WM=hE,_M=B.createElement(TS,null),UM=B.createElement(Zx,null),YM=B.forwardRef((function e(t,n){var r=t.autoWidth,o=void 0!==r&&r,i=t.children,a=t.classes,s=t.displayEmpty,l=void 0!==s&&s,c=t.IconComponent,u=void 0===c?fE:c,d=t.id,p=t.input,m=t.inputProps,f=t.labelId,h=t.MenuProps,g=t.multiple,v=void 0!==g&&g,y=t.native,b=void 0!==y&&y,x=t.onClose,S=t.onOpen,E=t.open,M=t.renderValue,C=t.SelectDisplayProps,w=t.variant,k=void 0===w?"standard":w,N=t.labelWidth,T=void 0===N?0:N,O=Ip(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant","labelWidth"]),R=b?mE:VM,A=Hx({props:t,muiFormControl:Ob(),states:["variant"]}).variant||k,L=p||{standard:_M,outlined:B.createElement(SE,{labelWidth:T}),filled:UM}[A];return B.cloneElement(L,Lp({inputComponent:R,select:!0,inputProps:Lp({children:i,IconComponent:u,variant:A,type:void 0,multiple:v},b?{}:{autoWidth:o,displayEmpty:l,labelId:f,MenuProps:h,onClose:x,onOpen:S,open:E,renderValue:M,SelectDisplayProps:Lp({id:d},C)},{},m,{classes:m?Sg({baseClasses:a,newClasses:m.classes,Component:e}):a},p?p.props.inputProps:{}),ref:n},O))}));YM.muiName="Select";var GM=lv(WM,{name:"MuiSelect"})(YM);var KM=lv((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Lp({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,o=e.open,i=e.value,a=e.valueLabelDisplay;return"off"===a?t:B.cloneElement(t,{className:Vg(t.props.className,(o||"on"===a)&&n.open,n.thumb)},B.createElement("span",{className:Vg(n.offset,r)},B.createElement("span",{className:n.circle},B.createElement("span",{className:n.label},i))))}));function XM(e,t){return e-t}function JM(e,t,n){return e<t?t:e>n?n:e}function ZM(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 QM(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 eC(e,t,n){return 100*(e-t)/(n-t)}function tC(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 nC(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=gy(t);return i[o]=r,i}function rC(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 oC={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,"%")}}}},iC=[],aC=function(e){return e},sC=B.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],o=e["aria-valuetext"],i=e.classes,a=e.className,s=e.color,l=void 0===s?"primary":s,c=e.component,u=void 0===c?"span":c,d=e.defaultValue,p=e.disabled,m=void 0!==p&&p,f=e.getAriaLabel,h=e.getAriaValueText,g=e.marks,v=void 0===g?iC:g,y=e.max,b=void 0===y?100:y,x=e.min,S=void 0===x?0:x,E=e.name,M=e.onChange,C=e.onChangeCommitted,w=e.onMouseDown,k=e.orientation,N=void 0===k?"horizontal":k,T=e.step,O=void 0===T?1:T,R=e.ThumbComponent,A=void 0===R?"span":R,L=e.track,I=void 0===L?"normal":L,P=e.value,D=e.ValueLabelComponent,q=void 0===D?KM:D,z=e.valueLabelDisplay,$=void 0===z?"off":z,F=e.valueLabelFormat,H=void 0===F?aC:F,j=Ip(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=sv(),W=B.useRef(null!=P).current,_=B.useRef(),U=B.useState(-1),Y=U[0],G=U[1],K=B.useState(-1),X=K[0],J=K[1],Z=B.useState(d),Q=Z[0],ee=Z[1],te=W?P:Q,ne=Array.isArray(te),re=B.useRef(),oe=ne?gy(te).sort(XM):[te];oe=oe.map((function(e){return JM(e,S,b)}));var ie=!0===v&&null!==O?gy(Array(Math.floor((b-S)/O)+1)).map((function(e,t){return{value:S+O*t}})):v;re.current={source:te};var ae=fy(),se=ae.isFocusVisible,le=ae.onBlurVisible,ce=ae.ref,ue=B.useState(-1),de=ue[0],pe=ue[1],me=B.useRef(),fe=Yv(ce,me),he=Yv(t,fe),ge=ny((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));se(e)&&pe(t),J(t)})),ve=ny((function(){-1!==de&&(pe(-1),le()),J(-1)})),ye=ny((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));J(t)})),be=ny((function(){J(-1)})),xe=ny((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=oe[n],o=(b-S)/10,i=ie.map((function(e){return e.value})),a=i.indexOf(r);switch(e.key){case"Home":t=S;break;case"End":t=b;break;case"PageUp":O&&(t=r+o);break;case"PageDown":O&&(t=r-o);break;case"ArrowRight":case"ArrowUp":t=O?r+O:i[a+1]||i[i.length-1];break;case"ArrowLeft":case"ArrowDown":t=O?r-O:i[a-1]||i[0];break;default:return}if(e.preventDefault(),O&&(t=tC(t,O)),t=JM(t,S,b),ne){var s=t;t=nC({values:oe,source:te,newValue:t,index:n}).sort(XM),rC({sliderRef:me,activeIndex:t.indexOf(s)})}W||ee(t),pe(n),M&&M(e,t),C&&C(e,t)})),Se=B.useRef(),Ee=N;"rtl"===V.direction&&"vertical"!==N&&(Ee+="-reverse");var Me=B.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===Ee.indexOf("vertical")?(d-r.y)/u:(r.x-p)/c,-1!==Ee.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,S,b),O)n=tC(n,O);else{var m=ie.map((function(e){return e.value}));n=m[ZM(m,n)]}n=JM(n,S,b);var f=0;if(ne){var h=n;f=(n=nC({values:a,source:s,newValue:n,index:f=i?Se.current:ZM(a,n)}).sort(XM)).indexOf(h),Se.current=f}return{newValue:n,activeIndex:f}}),[b,S,Ee,ne,O,ie]),Ce=ny((function(e){var t=QM(e,_);if(t){var n=Me({finger:t,move:!0,values:oe,source:te}),r=n.newValue,o=n.activeIndex;rC({sliderRef:me,activeIndex:o,setActive:G}),W||ee(r),M&&M(e,r)}})),we=ny((function(e){var t=QM(e,_);if(t){var n=Me({finger:t,values:oe,source:te}).newValue;G(-1),"touchend"===e.type&&J(-1),C&&C(e,n),_.current=void 0,document.body.removeEventListener("mousemove",Ce),document.body.removeEventListener("mouseup",we),document.body.removeEventListener("mouseenter",ke),document.body.removeEventListener("touchmove",Ce),document.body.removeEventListener("touchend",we)}})),ke=ny((function(e){0===e.buttons&&we(e)})),Ne=ny((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(_.current=t.identifier);var n=QM(e,_),r=Me({finger:n,values:oe,source:te}),o=r.newValue,i=r.activeIndex;rC({sliderRef:me,activeIndex:i,setActive:G}),W||ee(o),M&&M(e,o),document.body.addEventListener("touchmove",Ce),document.body.addEventListener("touchend",we)}));B.useEffect((function(){var e=me.current;return e.addEventListener("touchstart",Ne),function(){e.removeEventListener("touchstart",Ne),document.body.removeEventListener("mousemove",Ce),document.body.removeEventListener("mouseup",we),document.body.removeEventListener("mouseenter",ke),document.body.removeEventListener("touchmove",Ce),document.body.removeEventListener("touchend",we)}}),[ke,we,Ce,Ne]);var Te=ny((function(e){w&&w(e),e.preventDefault();var t=QM(e,_),n=Me({finger:t,values:oe,source:te}),r=n.newValue,o=n.activeIndex;rC({sliderRef:me,activeIndex:o,setActive:G}),W||ee(r),M&&M(e,r),document.body.addEventListener("mousemove",Ce),document.body.addEventListener("mouseenter",ke),document.body.addEventListener("mouseup",we)})),Oe=eC(ne?oe[0]:S,S,b),Re=eC(oe[oe.length-1],S,b)-Oe,Ae=Lp({},oC[Ee].offset(Oe),{},oC[Ee].leap(Re));return B.createElement(u,Lp({ref:he,className:Vg(i.root,i["color".concat(cv(l))],a,m&&i.disabled,ie.length>0&&ie.some((function(e){return e.label}))&&i.marked,!1===I&&i.trackFalse,{vertical:i.vertical}[N],{inverted:i.trackInverted}[I]),onMouseDown:Te},j),B.createElement("span",{className:i.rail}),B.createElement("span",{className:i.track,style:Ae}),B.createElement("input",{value:oe.join(","),name:E,type:"hidden"}),ie.map((function(e){var t,n=eC(e.value,S,b),r=oC[Ee].offset(n);if(!1===I)t=-1!==oe.indexOf(e.value);else{var o=ne?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0];t=o&&"normal"===I||!o&&"inverted"===I}return B.createElement(B.Fragment,{key:e.value},B.createElement("span",{style:r,className:Vg(i.mark,t&&i.markActive)}),B.createElement("span",{"aria-hidden":!0,style:r,className:Vg(i.markLabel,t&&i.markLabelActive)},e.label))})),oe.map((function(e,t){var a=eC(e,S,b),s=oC[Ee].offset(a);return B.createElement(q,{key:t,valueLabelFormat:H,valueLabelDisplay:$,className:i.valueLabel,value:"function"==typeof H?H(e,t):H,index:t,open:X===t||Y===t||"on"===$,disabled:m},B.createElement(A,{className:Vg(i.thumb,i["thumbColor".concat(cv(l))],Y===t&&i.active,m&&i.disabled,de===t&&i.focusVisible),tabIndex:m?null:0,role:"slider",style:s,"data-index":t,"aria-label":f?f(t):n,"aria-labelledby":r,"aria-orientation":N,"aria-valuemax":b,"aria-valuemin":S,"aria-valuenow":e,"aria-valuetext":h?h(e,t):o,onKeyDown:xe,onFocus:ge,onBlur:ve,onMouseOver:ye,onMouseLeave:be}))})))}));lv((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?Rp(e.palette.primary.main,.62):Op(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(Tp(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Tp(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(Tp(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Tp(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:Lp({},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"})(sC);var lC=B.forwardRef((function(e,t){var n=e.action,r=e.classes,o=e.className,i=e.message,a=e.role,s=void 0===a?"alert":a,l=Ip(e,["action","classes","className","message","role"]);return B.createElement(dv,Lp({component:cb,variant:"body2",variantMapping:{body1:"div",body2:"div"},role:s,square:!0,elevation:6,className:Vg(r.root,o),ref:t},l),B.createElement("div",{className:r.message},i),n?B.createElement("div",{className:r.action},n):null)})),cC=lv((function(e){var t="light"===e.palette.type?.8:.98,n=Np(e.palette.background.default,t);return{root:Ap({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"})(lC),uC=B.forwardRef((function(e,t){var n=e.action,r=e.anchorOrigin,o=(r=void 0===r?{vertical:"bottom",horizontal:"center"}:r).vertical,i=r.horizontal,a=e.autoHideDuration,s=e.children,l=e.classes,c=e.className,u=e.ClickAwayListenerProps,d=e.ContentProps,p=e.disableWindowBlurListener,m=void 0!==p&&p,f=e.message,h=e.onClose,g=e.onEnter,v=e.onEntered,y=e.onEntering,b=e.onExit,x=e.onExited,S=e.onExiting,E=e.onMouseEnter,M=e.onMouseLeave,C=e.open,w=e.resumeHideDuration,k=e.TransitionComponent,N=void 0===k?bS:k,T=e.transitionDuration,O=void 0===T?{enter:Mm.enteringScreen,exit:Mm.leavingScreen}:T,R=e.TransitionProps,A=Ip(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"]),L=B.useRef(),I=B.useState(!0),P=I[0],D=I[1],q=B.useCallback((function(e){var t=null!=e?e:a;h&&null!=t&&(clearTimeout(L.current),L.current=setTimeout((function(){h&&null!=(null!=e?e:a)&&h(null,"timeout")}),t))}),[a,h]);B.useEffect((function(){return C&&q(),function(){clearTimeout(L.current)}}),[C,q]);var z=function(){clearTimeout(L.current)},$=B.useCallback((function(){if(null!=a){if(null!=w)return void q(w);q(.5*a)}}),[a,w,q]);return B.useEffect((function(){if(!m&&C)return window.addEventListener("focus",$),window.addEventListener("blur",z),function(){window.removeEventListener("focus",$),window.removeEventListener("blur",z)}}),[m,$,C]),!C&&P?null:B.createElement(Gb,Lp({onClickAway:function(e){h&&h(e,"clickaway")}},u),B.createElement("div",Lp({className:Vg(l.root,l["anchorOrigin".concat(cv(o)).concat(cv(i))],c),onMouseEnter:function(e){E&&E(e),z()},onMouseLeave:function(e){M&&M(e),$()},ref:t},A),B.createElement(N,Lp({appear:!0,in:C,onEnter:ex((function(){D(!1)}),g),onEntered:v,onEntering:y,onExit:b,onExited:ex((function(){D(!0)}),x),onExiting:S,timeout:O,direction:"top"===o?"down":"up"},R),s||B.createElement(cC,Lp({message:f,action:n},d)))))}));lv((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:Lp({},t,Ap({},e.breakpoints.up("sm"),Lp({},i,{},c))),anchorOriginBottomCenter:Lp({},n,Ap({},e.breakpoints.up("sm"),Lp({},a,{},c))),anchorOriginTopRight:Lp({},t,{},r,Ap({},e.breakpoints.up("sm"),Lp({left:"auto"},i,{},s))),anchorOriginBottomRight:Lp({},n,{},r,Ap({},e.breakpoints.up("sm"),Lp({left:"auto"},a,{},s))),anchorOriginTopLeft:Lp({},t,{},o,Ap({},e.breakpoints.up("sm"),Lp({right:"auto"},i,{},l))),anchorOriginBottomLeft:Lp({},n,{},o,Ap({},e.breakpoints.up("sm"),Lp({right:"auto"},a,{},l)))}}),{flip:!1,name:"MuiSnackbar"})(uC);var dC=B.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.alternativeLabel,i=e.children,a=e.classes,s=e.className,l=e.completed,c=void 0!==l&&l,u=e.connector,d=e.disabled,p=void 0!==d&&d,m=e.index,f=e.last,h=e.orientation,g=Ip(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","index","last","orientation"]);return B.createElement("div",Lp({className:Vg(a.root,a[h],s,o&&a.alternativeLabel,c&&a.completed),ref:t},g),u&&o&&0!==m&&B.cloneElement(u,{orientation:h,alternativeLabel:o,index:m,active:r,completed:c,disabled:p}),B.Children.map(i,(function(e){return B.isValidElement(e)?B.cloneElement(e,Lp({active:r,alternativeLabel:o,completed:c,disabled:p,last:f,icon:m+1,orientation:h},e.props)):null})))}));lv({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(dC);var pC=pb(B.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"})),mC=pb(B.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),fC=B.createElement("circle",{cx:"12",cy:"12",r:"12"}),hC=B.forwardRef((function(e,t){var n=e.completed,r=void 0!==n&&n,o=e.icon,i=e.active,a=void 0!==i&&i,s=e.error,l=void 0!==s&&s,c=e.classes;return"number"==typeof o||"string"==typeof o?l?B.createElement(mC,{className:Vg(c.root,c.error),ref:t}):r?B.createElement(pC,{className:Vg(c.root,c.completed),ref:t}):B.createElement(db,{className:Vg(c.root,a&&c.active),ref:t},fC,B.createElement("text",{className:c.text,x:"12",y:"16",textAnchor:"middle"},o)):o})),gC=lv((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"})(hC),vC=B.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.alternativeLabel,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.completed,u=void 0!==c&&c,d=e.disabled,p=void 0!==d&&d,m=e.error,f=void 0!==m&&m,h=e.icon;e.last;var g=e.optional,v=e.orientation,y=void 0===v?"horizontal":v,b=e.StepIconComponent,x=e.StepIconProps,S=Ip(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),E=b;return h&&!E&&(E=gC),B.createElement("span",Lp({className:Vg(s.root,s[y],l,p&&s.disabled,i&&s.alternativeLabel,f&&s.error),ref:t},S),h||E?B.createElement("span",{className:Vg(s.iconContainer,i&&s.alternativeLabel)},B.createElement(E,Lp({completed:u,active:r,error:f,icon:h},x))):null,B.createElement("span",{className:s.labelContainer},B.createElement(cb,{variant:"body2",component:"span",className:Vg(s.label,i&&s.alternativeLabel,u&&s.completed,r&&s.active,f&&s.error),display:"block"},a),g))}));vC.muiName="StepLabel";var yC=lv((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"})(vC),bC=B.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,o=e.children,i=e.classes,a=e.className,s=e.completed,l=e.disabled,c=e.icon;e.last;var u=e.optional,d=e.orientation,p=Ip(e,["active","alternativeLabel","children","classes","className","completed","disabled","icon","last","optional","orientation"]),m={active:n,alternativeLabel:r,completed:s,disabled:l,icon:c,optional:u,orientation:d},f=Qx(o,["StepLabel"])?B.cloneElement(o,m):B.createElement(yC,m,o);return B.createElement(My,Lp({disabled:l,TouchRippleProps:{className:i.touchRipple},className:Vg(i.root,i[d],a),ref:t},p),f)}));lv({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"})(bC);var xC=B.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,o=void 0!==r&&r,i=e.classes,a=e.className,s=e.completed,l=e.disabled;e.index;var c=e.orientation,u=void 0===c?"horizontal":c,d=Ip(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return B.createElement("div",Lp({className:Vg(i.root,i[u],a,o&&i.alternativeLabel,n&&i.active,s&&i.completed,l&&i.disabled),ref:t},d),B.createElement("span",{className:Vg(i.line,"vertical"===u?i.lineVertical:i.lineHorizontal)}))})),SC=lv((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"})(xC),EC=B.forwardRef((function(e,t){var n=e.active;e.alternativeLabel;var r=e.children,o=e.classes,i=e.className;e.completed;var a=e.last;e.optional,e.orientation;var s=e.TransitionComponent,l=void 0===s?Xb:s,c=e.transitionDuration,u=void 0===c?"auto":c,d=e.TransitionProps,p=Ip(e,["active","alternativeLabel","children","classes","className","completed","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]),m=u;return"auto"!==u||l.muiSupportAuto||(m=void 0),B.createElement("div",Lp({className:Vg(o.root,i,a&&o.last),ref:t},p),B.createElement(l,Lp({in:n,className:o.transition,timeout:m,unmountOnExit:!0},d),r))}));lv((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"})(EC);var MC=B.createElement(SC,null),CC=B.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,o=e.alternativeLabel,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.connector,u=void 0===c?MC:c,d=e.nonLinear,p=void 0!==d&&d,m=e.orientation,f=void 0===m?"horizontal":m,h=Ip(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),g=B.isValidElement(u)?B.cloneElement(u,{orientation:f}):null,v=B.Children.toArray(a),y=v.map((function(e,t){var n={alternativeLabel:i,connector:u,last:t+1===v.length,orientation:f},o={index:t,active:!1,completed:!1,disabled:!1};return r===t?o.active=!0:!p&&r>t?o.completed=!0:!p&&r<t&&(o.disabled=!0),[!i&&g&&0!==t&&B.cloneElement(g,Lp({key:t},o)),B.cloneElement(e,Lp({},n,{},o,{},e.props))]}));return B.createElement(dv,Lp({square:!0,elevation:0,className:Vg(s.root,s[f],l,i&&s.alternativeLabel),ref:t},h),y)}));lv({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(CC);var wC=B.forwardRef((function(e,t){var n=e.anchor,r=e.classes,o=e.className,i=e.width,a=Ip(e,["anchor","classes","className","width"]);return B.createElement("div",Lp({className:Vg(r.root,r["anchor".concat(cv(n))],o),ref:t,style:Ap({},Ox(n)?"width":"height",i)},a))})),kC=lv((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"})(wC),NC=null;function TC(e,t){return"right"===e?document.body.offsetWidth-t[0].pageX:t[0].pageX}function OC(e,t){return"bottom"===e?window.innerHeight-t[0].clientY:t[0].clientY}function RC(e,t){return e?t.clientWidth:t.clientHeight}function AC(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}var LC="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),IC={enter:Mm.enteringScreen,exit:Mm.leavingScreen},PC="undefined"!=typeof window?B.useLayoutEffect:B.useEffect;B.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,o=e.disableBackdropTransition,i=void 0!==o&&o,a=e.disableDiscovery,s=void 0!==a&&a,l=e.disableSwipeToOpen,c=void 0===l?LC:l,u=e.hideBackdrop,d=e.hysteresis,p=void 0===d?.52:d,m=e.minFlingVelocity,f=void 0===m?450:m,h=e.ModalProps,g=(h=void 0===h?{}:h).BackdropProps,v=Ip(h,["BackdropProps"]),y=e.onClose,b=e.onOpen,x=e.open,S=e.PaperProps,E=void 0===S?{}:S,M=e.SwipeAreaProps,C=e.swipeAreaWidth,w=void 0===C?20:C,k=e.transitionDuration,N=void 0===k?IC:k,T=e.variant,O=void 0===T?"temporary":T,R=Ip(e,["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"]),A=sv(),L=B.useState(!1),I=L[0],P=L[1],D=B.useRef({isSwiping:null}),q=B.useRef(),z=B.useRef(),$=B.useRef(),F=B.useRef(!1),H=B.useRef();PC((function(){H.current=null}),[x]);var V=B.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,o=void 0===n?null:n,a=t.changeTransition,s=void 0===a||a,l=Rx(A,r),c=-1!==["right","bottom"].indexOf(l)?1:-1,d=Ox(r),p=d?"translate(".concat(c*e,"px, 0)"):"translate(0, ".concat(c*e,"px)"),m=$.current.style;m.webkitTransform=p,m.transform=p;var f="";if(o&&(f=A.transitions.create("all",_v({timeout:N},{mode:o}))),s&&(m.webkitTransition=f,m.transition=f),!i&&!u){var h=z.current.style;h.opacity=1-e/RC(d,$.current),s&&(h.webkitTransition=f,h.transition=f)}}),[r,i,u,A,N]),W=ny((function(e){if(F.current)if(NC=null,F.current=!1,P(!1),D.current.isSwiping){D.current.isSwiping=null;var t,n=Rx(A,r),o=Ox(r);t=o?TC(n,e.changedTouches):OC(n,e.changedTouches);var i=o?D.current.startX:D.current.startY,a=RC(o,$.current),s=AC(t,i,x,a),l=s/a;Math.abs(D.current.velocity)>f&&(H.current=1e3*Math.abs((a-s)/D.current.velocity)),x?D.current.velocity>f||l>p?y():V(0,{mode:"exit"}):D.current.velocity<-f||1-l>p?b():V(RC(o,$.current),{mode:"enter"})}else D.current.isSwiping=null})),_=ny((function(e){if($.current&&F.current&&(null==NC||NC===D.current)){var t=Rx(A,r),n=Ox(r),o=TC(t,e.touches),i=OC(t,e.touches);if(x&&$.current.contains(e.target)&&null==NC){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,$.current),start:n?D.current.startX:D.current.startY,current:n?o:i,anchor:r});if(a)return void(NC=a);NC=D.current}if(null==D.current.isSwiping){var l=Math.abs(o-D.current.startX),c=Math.abs(i-D.current.startY);l>c&&e.cancelable&&e.preventDefault();var u=n?l>c&&l>3:c>l&&c>3;if(!0===u||(n?c>3:l>3)){if(D.current.isSwiping=u,!u)return void W(e);D.current.startX=o,D.current.startY=i,s||x||(n?D.current.startX-=w:D.current.startY-=w)}}if(D.current.isSwiping){var d=RC(n,$.current),p=n?D.current.startX:D.current.startY;x&&!D.current.paperHit&&(p=Math.min(p,d));var m=AC(n?o:i,p,x,d);if(x)if(D.current.paperHit)0===m&&(D.current.startX=o,D.current.startY=i);else{if(!(n?o<d:i<d))return;D.current.paperHit=!0,D.current.startX=o,D.current.startY=i}null===D.current.lastTranslate&&(D.current.lastTranslate=m,D.current.lastTime=performance.now()+1);var f=(m-D.current.lastTranslate)/(performance.now()-D.current.lastTime)*1e3;D.current.velocity=.4*D.current.velocity+.6*f,D.current.lastTranslate=m,D.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),V(m)}}})),U=ny((function(e){if(!e.defaultPrevented&&!e.muiHandled&&(!x||z.current.contains(e.target)||$.current.contains(e.target))){var t=Rx(A,r),n=Ox(r),o=TC(t,e.touches),i=OC(t,e.touches);if(!x){if(c||e.target!==q.current)return;if(n){if(o>w)return}else if(i>w)return}e.muiHandled=!0,NC=null,D.current.startX=o,D.current.startY=i,P(!0),!x&&$.current&&V(RC(n,$.current)+(s?20:-w),{changeTransition:!1}),D.current.velocity=0,D.current.lastTime=null,D.current.lastTranslate=null,D.current.paperHit=!1,F.current=!0}}));B.useEffect((function(){if("temporary"===O)return document.body.addEventListener("touchstart",U),document.body.addEventListener("touchmove",_,{passive:!1}),document.body.addEventListener("touchend",W),function(){document.body.removeEventListener("touchstart",U),document.body.removeEventListener("touchmove",_,{passive:!1}),document.body.removeEventListener("touchend",W)}}),[O,U,_,W]),B.useEffect((function(){return function(){NC===D.current&&(NC=null)}}),[]),B.useEffect((function(){x||P(!1)}),[x]);var Y=B.useCallback((function(e){z.current=j.findDOMNode(e)}),[]),G=B.useCallback((function(e){$.current=j.findDOMNode(e)}),[]);return B.createElement(B.Fragment,null,B.createElement(Ix,Lp({open:!("temporary"!==O||!I)||x,variant:O,ModalProps:Lp({BackdropProps:Lp({},g,{ref:Y})},v),PaperProps:Lp({},E,{style:Lp({pointerEvents:"temporary"!==O||x?"":"none"},E.style),ref:G}),anchor:r,transitionDuration:H.current||N,onClose:y,ref:t},R)),!c&&"temporary"===O&&B.createElement(oy,null,B.createElement(kC,Lp({anchor:r,ref:q,width:w},M))))}));var DC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"secondary":o,a=e.edge,s=void 0!==a&&a,l=e.size,c=void 0===l?"medium":l,u=Ip(e,["classes","className","color","edge","size"]),d=B.createElement("span",{className:n.thumb});return B.createElement("span",{className:Vg(n.root,r,{start:n.edgeStart,end:n.edgeEnd}[s],{small:n["size".concat(cv(c))]}[c])},B.createElement(Ib,Lp({type:"checkbox",icon:d,checkedIcon:d,classes:{root:Vg(n.switchBase,n["color".concat(cv(i))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},u)),B.createElement("span",{className:n.track}))}));lv((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:Tp(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:Tp(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"})(DC);var qC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disabled,i=void 0!==o&&o,a=e.disableFocusRipple,s=void 0!==a&&a,l=e.fullWidth,c=e.icon,u=e.indicator,d=e.label,p=e.onChange,m=e.onClick,f=e.selected,h=e.textColor,g=void 0===h?"inherit":h,v=e.value,y=e.wrapped,b=void 0!==y&&y,x=Ip(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","selected","textColor","value","wrapped"]);return B.createElement(My,Lp({focusRipple:!s,className:Vg(n.root,n["textColor".concat(cv(g))],r,i&&n.disabled,f&&n.selected,d&&c&&n.labelIcon,l&&n.fullWidth,b&&n.wrapped),ref:t,role:"tab","aria-selected":f,disabled:i,onClick:function(e){p&&p(e,v),m&&m(e)}},x),B.createElement("span",{className:n.wrapper},c,d),u)}));lv((function(e){var t;return{root:Lp({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},Ap(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),Ap(t,"overflow","hidden"),Ap(t,"whiteSpace","normal"),Ap(t,"textAlign","center"),Ap(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"})(qC);var zC=B.createContext(),BC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"table":o,a=e.padding,s=void 0===a?"default":a,l=e.size,c=void 0===l?"medium":l,u=e.stickyHeader,d=void 0!==u&&u,p=Ip(e,["classes","className","component","padding","size","stickyHeader"]),m=B.useMemo((function(){return{padding:s,size:c,stickyHeader:d}}),[s,c,d]);return B.createElement(zC.Provider,{value:m},B.createElement(i,Lp({ref:t,className:Vg(n.root,r,d&&n.stickyHeader)},p)))}));lv((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Lp({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(BC);var $C=B.createContext(),FC={variant:"body"},HC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tbody":o,a=Ip(e,["classes","className","component"]);return B.createElement($C.Provider,{value:FC},B.createElement(i,Lp({className:Vg(n.root,r),ref:t},a)))}));lv({root:{display:"table-row-group"}},{name:"MuiTableBody"})(HC);var jC=B.forwardRef((function(e,t){var n,r=e.align,o=void 0===r?"inherit":r,i=e.classes,a=e.className,s=e.component,l=e.padding,c=e.scope,u=e.size,d=e.sortDirection,p=e.variant,m=Ip(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),f=B.useContext(zC),h=B.useContext($C);n=s||(h&&"head"===h.variant?"th":"td");var g=c;!g&&h&&"head"===h.variant&&(g="col");var v=l||(f&&f.padding?f.padding:"default"),y=u||(f&&f.size?f.size:"medium"),b=p||h&&h.variant,x=null;return d&&(x="asc"===d?"ascending":"descending"),B.createElement(n,Lp({ref:t,className:Vg(i.root,i[b],a,"inherit"!==o&&i["align".concat(cv(o))],"default"!==v&&i["padding".concat(cv(v))],"medium"!==y&&i["size".concat(cv(y))],{head:f&&f.stickyHeader&&i.stickyHeader}[b]),"aria-sort":x,scope:g},m))})),VC=lv((function(e){return{root:Lp({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?Rp(Tp(e.palette.divider,1),.88):Op(Tp(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"})(jC),WC={variant:"footer"},_C=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tfoot":o,a=Ip(e,["classes","className","component"]);return B.createElement($C.Provider,{value:WC},B.createElement(i,Lp({className:Vg(n.root,r),ref:t},a)))}));lv({root:{display:"table-footer-group"}},{name:"MuiTableFooter"})(_C);var UC={variant:"head"},YC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"thead":o,a=Ip(e,["classes","className","component"]);return B.createElement($C.Provider,{value:UC},B.createElement(i,Lp({className:Vg(n.root,r),ref:t},a)))}));lv({root:{display:"table-header-group"}},{name:"MuiTableHead"})(YC);var GC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.disableGutters,s=void 0!==a&&a,l=e.variant,c=void 0===l?"regular":l,u=Ip(e,["classes","className","component","disableGutters","variant"]);return B.createElement(i,Lp({className:Vg(n.root,n[c],r,!s&&n.gutters),ref:t},u))})),KC=lv((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Ap({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"})(GC),XC=pb(B.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),JC=pb(B.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),ZC=B.createElement(JC,null),QC=B.createElement(XC,null),ew=B.createElement(XC,null),tw=B.createElement(JC,null),nw=B.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,o=e.nextIconButtonProps,i=e.onChangePage,a=e.page,s=e.rowsPerPage,l=Ip(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),c=sv();return B.createElement("div",Lp({ref:t},l),B.createElement(Ab,Lp({onClick:function(e){i(e,a-1)},disabled:0===a,color:"inherit"},n),"rtl"===c.direction?ZC:QC),B.createElement(Ab,Lp({onClick:function(e){i(e,a+1)},disabled:a>=Math.ceil(r/s)-1,color:"inherit"},o),"rtl"===c.direction?ew:tw))})),rw=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(-1===n?r:n," of ").concat(r)},ow=[10,25,50,100],iw=B.forwardRef((function(e,t){var n,r=e.ActionsComponent,o=void 0===r?nw:r,i=e.backIconButtonProps,a=e.classes,s=e.className,l=e.colSpan,c=e.component,u=void 0===c?VC:c,d=e.count,p=e.labelDisplayedRows,m=void 0===p?rw:p,f=e.labelRowsPerPage,h=void 0===f?"Rows per page:":f,g=e.nextIconButtonProps,v=e.onChangePage,y=e.onChangeRowsPerPage,b=e.page,x=e.rowsPerPage,S=e.rowsPerPageOptions,E=void 0===S?ow:S,M=e.SelectProps,C=void 0===M?{}:M,w=Ip(e,["ActionsComponent","backIconButtonProps","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);u!==VC&&"td"!==u||(n=l||1e3);var k=C.native?"option":dE;return B.createElement(u,Lp({className:Vg(a.root,s),colSpan:n,ref:t},w),B.createElement(KC,{className:a.toolbar},B.createElement("div",{className:a.spacer}),E.length>1&&B.createElement(cb,{color:"inherit",variant:"body2",className:a.caption},h),E.length>1&&B.createElement(GM,Lp({classes:{select:a.select,icon:a.selectIcon},input:B.createElement(Xx,{className:Vg(a.input,a.selectRoot)}),value:x,onChange:y},C),E.map((function(e){return B.createElement(k,{className:a.menuItem,key:e,value:e.value?e.value:e},e.label?e.label:e)}))),B.createElement(cb,{color:"inherit",variant:"body2",className:a.caption},m({from:0===d?0:b*x+1,to:Math.min(d,(b+1)*x),count:d,page:b})),B.createElement(o,{className:a.actions,backIconButtonProps:i,count:d,nextIconButtonProps:g,onChangePage:v,page:b,rowsPerPage:x})))}));lv((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"})(iw);var aw=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tr":o,a=e.hover,s=void 0!==a&&a,l=e.selected,c=void 0!==l&&l,u=Ip(e,["classes","className","component","hover","selected"]),d=B.useContext($C);return B.createElement(i,Lp({ref:t,className:Vg(n.root,r,d&&{head:n.head,footer:n.footer}[d.variant],s&&n.hover,c&&n.selected)},u))}));lv((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"})(aw);var sw=pb(B.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),lw=B.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.children,i=e.classes,a=e.className,s=e.direction,l=void 0===s?"desc":s,c=e.hideSortIcon,u=void 0!==c&&c,d=e.IconComponent,p=void 0===d?sw:d,m=Ip(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return B.createElement(My,Lp({className:Vg(i.root,a,r&&i.active),component:"span",disableRipple:!0,ref:t},m),o,u&&!r?null:B.createElement(p,{className:Vg(i.icon,i["iconDirection".concat(cv(l))])}))}));lv((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"})(lw);var cw,uw=!("undefined"==typeof window||!window.document||!window.document.createElement);function dw(){if(cw)return cw;if(!uw||!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),cw="reverse",e.scrollLeft>0?cw="default":(e.scrollLeft=1,0===e.scrollLeft&&(cw="negative")),document.body.removeChild(e),cw}function pw(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=dw();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 mw(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var fw={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function hw(e){var t=e.onChange,n=Ip(e,["onChange"]),r=B.useRef(),o=B.useRef(null),i=function(){r.current=o.current.offsetHeight-o.current.clientHeight};return B.useEffect((function(){var e=Cx((function(){var e=r.current;i(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),B.useEffect((function(){i(),t(r.current)}),[t]),B.createElement("div",Lp({style:fw,ref:o},n))}var gw=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=e.orientation,a=Ip(e,["classes","className","color","orientation"]);return B.createElement("span",Lp({className:Vg(n.root,n["color".concat(cv(o))],r,{vertical:n.vertical}[i]),ref:t},a))})),vw=lv((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"})(gw),yw=B.createElement(XC,{fontSize:"small"}),bw=B.createElement(JC,{fontSize:"small"}),xw=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.direction,i=e.orientation,a=e.visible,s=Ip(e,["classes","className","direction","orientation","visible"]),l=Vg(n.root,r,{vertical:n.vertical}[i]);return a?B.createElement(My,Lp({component:"div",className:l,ref:t,role:null,tabIndex:null},s),"left"===o?yw:bw):B.createElement("div",{className:l})})),Sw=lv({root:{width:40,flexShrink:0},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}}},{name:"PrivateTabScrollButton"})(xw),Ew=B.forwardRef((function(e,t){var n=e.action,r=e.centered,o=void 0!==r&&r,i=e.children,a=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,u=e.indicatorColor,d=void 0===u?"secondary":u,p=e.onChange,m=e.orientation,f=void 0===m?"horizontal":m,h=e.ScrollButtonComponent,g=void 0===h?Sw:h,v=e.scrollButtons,y=void 0===v?"auto":v,b=e.TabIndicatorProps,x=void 0===b?{}:b,S=e.textColor,E=void 0===S?"inherit":S,M=e.value,C=e.variant,w=void 0===C?"standard":C,k=Ip(e,["action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","value","variant"]),N=sv(),T="scrollable"===w,O="rtl"===N.direction,R="vertical"===f,A=R?"scrollTop":"scrollLeft",L=R?"top":"left",I=R?"bottom":"right",P=R?"clientHeight":"clientWidth",D=R?"height":"width",q=B.useState(!1),z=q[0],$=q[1],F=B.useState({}),H=F[0],j=F[1],V=B.useState({start:!1,end:!1}),W=V[0],_=V[1],U=B.useState({overflow:"hidden",marginBottom:null}),Y=U[0],G=U[1],K=new Map,X=B.useRef(null),J=B.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:pw(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[K.get(M)];t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Q=ny((function(){var e,t=Z(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(R)o=r.top-n.top+n.scrollTop;else{var i=O?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(Ap(e={},L,o),Ap(e,D,r?r[D]:0),e);if(isNaN(H[L])||isNaN(H[D]))j(a);else{var s=Math.abs(H[L]-a[L]),l=Math.abs(H[D]-a[D]);(s>=1||l>=1)&&j(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?mw: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)}(A,X.current,e)},te=function(e){var t=X.current[A];R?t+=e:(t+=e*(O?-1:1),t*=O&&"reverse"===dw()?-1:1),ee(t)},ne=function(){te(-X.current[P])},re=function(){te(X.current[P])},oe=B.useCallback((function(e){G({overflow:null,marginBottom:-e})}),[]),ie=ny((function(){var e=Z(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[L]<t[L]){var r=t[A]+(n[L]-t[L]);ee(r)}else if(n[I]>t[I]){var o=t[A]+(n[I]-t[I]);ee(o)}})),ae=ny((function(){if(T&&"off"!==y){var e,t,n=X.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(R)e=r>1,t=r<o-i-1;else{var l=pw(X.current,N.direction);e=O?l<a-s-1:l>1,t=O?l>1:l<a-s-1}e===W.start&&t===W.end||_({start:e,end:t})}}));B.useEffect((function(){var e=Cx((function(){Q(),ae()})),t=ix(X.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[Q,ae]);var se=B.useCallback(Cx((function(){ae()})));B.useEffect((function(){return function(){se.clear()}}),[se]),B.useEffect((function(){$(!0)}),[]),B.useEffect((function(){Q(),ae()})),B.useEffect((function(){ie()}),[ie,H]),B.useImperativeHandle(n,(function(){return{updateIndicator:Q,updateScrollButtons:ae}}),[Q,ae]);var le=B.createElement(vw,Lp({className:a.indicator,orientation:f,color:d},x,{style:Lp({},H,{},x.style)})),ce=0,ue=B.Children.map(i,(function(e){if(!B.isValidElement(e))return null;var t=void 0===e.props.value?ce:e.props.value;K.set(t,ce);var n=t===M;return ce+=1,B.cloneElement(e,{fullWidth:"fullWidth"===w,indicator:n&&!z&&le,selected:n,onChange:p,textColor:E,value:t})})),de=function(){var e={};e.scrollbarSizeListener=T?B.createElement(hw,{className:a.scrollable,onChange:oe}):null;var t=W.start||W.end,n=T&&("auto"===y&&t||"desktop"===y||"on"===y);return e.scrollButtonStart=n?B.createElement(g,{orientation:f,direction:O?"right":"left",onClick:ne,visible:W.start,className:Vg(a.scrollButtons,"on"!==y&&a.scrollButtonsDesktop)}):null,e.scrollButtonEnd=n?B.createElement(g,{orientation:f,direction:O?"left":"right",onClick:re,visible:W.end,className:Vg(a.scrollButtons,"on"!==y&&a.scrollButtonsDesktop)}):null,e}();return B.createElement(c,Lp({className:Vg(a.root,s,R&&a.vertical),ref:t},k),de.scrollButtonStart,de.scrollbarSizeListener,B.createElement("div",{className:Vg(a.scroller,T?a.scrollable:a.fixed),style:Y,ref:X,onScroll:se},B.createElement("div",{className:Vg(a.flexContainer,R&&a.flexContainerVertical,o&&!T&&a.centered),ref:J,role:"tablist"},ue),z&&le),de.scrollButtonEnd)}));lv((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:Ap({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(Ew);var Mw={standard:TS,filled:Zx,outlined:SE},Cw=B.forwardRef((function(e,t){var n=e.autoComplete,r=e.autoFocus,o=e.children,i=e.classes,a=e.className,s=e.color,l=void 0===s?"primary":s,c=e.defaultValue,u=e.error,d=e.FormHelperTextProps,p=e.fullWidth,m=e.helperText,f=e.hiddenLabel,h=e.id,g=e.InputLabelProps,v=e.inputProps,y=e.InputProps,b=e.inputRef,x=e.label,S=e.multiline,E=e.name,M=e.onBlur,C=e.onChange,w=e.onFocus,k=e.placeholder,N=e.required,T=void 0!==N&&N,O=e.rows,R=e.rowsMax,A=e.select,L=void 0!==A&&A,I=e.SelectProps,P=e.type,D=e.value,q=e.variant,z=void 0===q?"standard":q,$=Ip(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"]),F=B.useState(0),H=F[0],V=F[1],W=B.useRef(null);B.useEffect((function(){if("outlined"===z){var e=j.findDOMNode(W.current);V(null!=e?e.offsetWidth:0)}}),[z,T,x]);var _={};"outlined"===z&&(g&&void 0!==g.shrink&&(_.notched=g.shrink),_.labelWidth=H),L&&(I&&I.native||(_.id=void 0),_["aria-describedby"]=void 0);var U=m&&h?"".concat(h,"-helper-text"):void 0,Y=x&&h?"".concat(h,"-label"):void 0,G=Mw[z],K=B.createElement(G,Lp({"aria-describedby":U,autoComplete:n,autoFocus:r,defaultValue:c,fullWidth:p,multiline:S,name:E,rows:O,rowsMax:R,type:P,value:D,id:h,inputRef:b,onBlur:M,onChange:C,onFocus:w,placeholder:k,inputProps:v},_,y));return B.createElement(tS,Lp({className:Vg(i.root,a),error:u,fullWidth:p,hiddenLabel:f,ref:t,required:T,color:l,variant:z},$),x&&B.createElement(AS,Lp({htmlFor:h,ref:W,id:Y},g),x),L?B.createElement(GM,Lp({"aria-describedby":U,id:h,labelId:Y,value:D,input:K},I),o):K,m&&B.createElement(aS,Lp({id:U},d),m))}));function ww(e){return Math.round(1e5*e)/1e5}lv({root:{}},{name:"MuiTextField"})(Cw);var kw=B.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.disableFocusListener,i=void 0!==o&&o,a=e.disableHoverListener,s=void 0!==a&&a,l=e.disableTouchListener,c=void 0!==l&&l,u=e.enterDelay,d=void 0===u?0:u,p=e.enterTouchDelay,m=void 0===p?700:p,f=e.id,h=e.interactive,g=void 0!==h&&h,v=e.leaveDelay,y=void 0===v?0:v,b=e.leaveTouchDelay,x=void 0===b?1500:b,S=e.onClose,E=e.onOpen,M=e.open,C=e.placement,w=void 0===C?"bottom":C,k=e.PopperProps,N=e.title,T=e.TransitionComponent,O=void 0===T?bS:T,R=e.TransitionProps,A=Ip(e,["children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperProps","title","TransitionComponent","TransitionProps"]),L=sv(),I=B.useState(!1),P=I[0],D=I[1],q=B.useState(0)[1],z=B.useState(),$=z[0],F=z[1],H=B.useRef(!1),V=B.useRef(null!=M).current,W=B.useRef(),_=B.useRef(),U=B.useRef(),Y=B.useRef(),G=B.useRef();B.useEffect((function(){W.current||(W.current="mui-tooltip-".concat(Math.round(1e5*Math.random()))),M&&q((function(e){return!e}))}),[M]),B.useEffect((function(){return function(){clearTimeout(_.current),clearTimeout(U.current),clearTimeout(Y.current),clearTimeout(G.current)}}),[]);var K=function(e){V||P||D(!0),E&&E(e)},X=function(e){var t=n.props;"mouseover"===e.type&&t.onMouseOver&&t.onMouseOver(e),H.current&&"touchstart"!==e.type||($&&$.removeAttribute("title"),clearTimeout(U.current),clearTimeout(Y.current),d?(e.persist(),U.current=setTimeout((function(){K(e)}),d)):K(e))},J=fy(),Z=J.isFocusVisible,Q=J.onBlurVisible,ee=J.ref,te=B.useState(!1),ne=te[0],re=te[1],oe=function(e){V||D(!1),S&&S(e),clearTimeout(_.current),_.current=setTimeout((function(){H.current=!1}),L.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(U.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),y)},ae=Yv(F,t),se=Yv(ee,ae),le=B.useCallback((function(e){Uv(se,j.findDOMNode(e))}),[se]),ce=Yv(n.ref,le),ue=V?M:P;""===N&&(ue=!1);var de=!ue&&!s,pe=Lp({"aria-describedby":ue?f||W.current:null,title:de&&"string"==typeof N?N:null},A,{},n.props,{className:Vg(A.className,n.props.className)});c||(pe.onTouchStart=function(e){H.current=!0;var t=n.props;t.onTouchStart&&t.onTouchStart(e),clearTimeout(Y.current),clearTimeout(_.current),clearTimeout(G.current),e.persist(),G.current=setTimeout((function(){X(e)}),m)},pe.onTouchEnd=function(e){n.props.onTouchEnd&&n.props.onTouchEnd(e),clearTimeout(G.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),x)}),s||(pe.onMouseOver=X,pe.onMouseLeave=ie),i||(pe.onFocus=function(e){$||F(e.currentTarget),Z(e)&&(re(!0),X(e));var t=n.props;t.onFocus&&t.onFocus(e)},pe.onBlur=ie);var me=g?{onMouseOver:pe.onMouseOver,onMouseLeave:pe.onMouseLeave,onFocus:pe.onFocus,onBlur:pe.onBlur}:{};return B.createElement(B.Fragment,null,B.cloneElement(n,Lp({ref:ce},pe)),B.createElement(AM,Lp({className:Vg(r.popper,g&&r.popperInteractive),placement:w,anchorEl:$,open:!!$&&ue,id:pe["aria-describedby"],transition:!0},me,k),(function(e){var t=e.placement,n=e.TransitionProps;return B.createElement(O,Lp({timeout:L.transitions.duration.shorter},n,R),B.createElement("div",{className:Vg(r.tooltip,r["tooltipPlacement".concat(cv(t.split("-")[0]))],H.current&&r.touch)},N))})))}));lv((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none",flip:!1},popperInteractive:{pointerEvents:"auto"},tooltip:{backgroundColor:Tp(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(ww(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(ww(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Ap({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Ap({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Ap({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Ap({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip"})(kw);var Nw={entering:{transform:"none"},entered:{transform:"none"}},Tw={enter:Mm.enteringScreen,exit:Mm.leavingScreen};function Ow(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Rw({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Ow(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return B.createElement("i",{style:o},B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},B.createElement("path",{d:e})))}B.forwardRef((function(e,t){var n=e.children,r=e.in,o=e.onEnter,i=e.onExit,a=e.style,s=e.timeout,l=void 0===s?Tw:s,c=Ip(e,["children","in","onEnter","onExit","style","timeout"]),u=sv(),d=Yv(n.ref,t);return B.createElement(wv,Lp({appear:!0,in:r,onEnter:function(e,t){Wv(e);var n=_v({style:a,timeout:l},{mode:"enter"});e.style.webkitTransition=u.transitions.create("transform",n),e.style.transition=u.transitions.create("transform",n),o&&o(e,t)},onExit:function(e){var t=_v({style:a,timeout:l},{mode:"exit"});e.style.webkitTransition=u.transitions.create("transform",t),e.style.transition=u.transitions.create("transform",t),i&&i(e)},timeout:l},c),(function(e,t){return B.cloneElement(n,Lp({style:Lp({transform:"scale(0)",visibility:"exited"!==e||r?void 0:"hidden"},Nw[e],{},a,{},n.props.style),ref:d},t))}))}));const Aw={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"},Lw={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"},Iw="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",Pw={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"},Dw={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 qw(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=Yi.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 zw(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=Z(!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}),qw(e,a,s)}))}function Bw({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){zw(r,e,t,"qDimensions",a)}}}function $w(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 Fw({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){zw(o,e,t,"qMeasures",i,a)}}}function Hw(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle}}const jw={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"}}},Vw=({children:e,...t})=>B.createElement(yb,lp({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);const Ww=Nm({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 _w=Rm({productionPrefix:"qa0af",disableGlobal:!0,seed:""});function Uw(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:Uw(o,t,n)},o}function Yw(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),Uw(o,a,l,e.invert)}))}const Gw={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(Z({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function Kw({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=Z({},{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 Xw({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=Z(!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:Z(!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:Z(!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:Z(!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 Jw=["oob"];const Zw={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=Xw({keys:Jw,data:o,defaultSettings:{oob:Gw.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=Kw}){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(Gw.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:Jw,symbol:s,dockValue:n})}},Qw={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},ek=["hat"];function tk(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 nk({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=Z({},e.hat,{type:"path",d:tk(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,Z({},e.hat,{type:"path",d:tk(p)})]}const rk={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=Xw({keys:ek,data:r,defaultSettings:Qw,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=Kw}){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(...nk({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:ek})}};var ok="unclassified",ik="equal-equal",ak="equal-higher",sk="equal-lower",lk="equal-void",ck="higher-equal",uk="higher-higher-acute",dk="higher-higher-obtuse",pk="higher-lower-negative",mk="higher-lower-positive",fk="higher-void",hk="lower-equal",gk="lower-higher-negative",vk="lower-higher-positive",yk="lower-lower-acute",bk="lower-lower-obtuse",xk="lower-void",Sk="void-equal",Ek="void-higher",Mk="void-lower",Ck="void-void";function wk(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function kk(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),o=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),i=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((o*o+r*r-i*i)/(2*o*r))*(180/Math.PI)}function Nk({previous:e,current:t,next:n}){const r=e&&e.value,o=t&&t.value,i=n&&n.value;return e||n?e?n?r===o?o===i?ik:o<i?ak:sk:o===i?r>o?ck:hk:r>o?o<i?kk(e,t,n)>90?dk:uk:wk(e,t)>wk(e,n)?mk:pk:o>i?kk(e,t,n)>90?bk:yk:wk(e,t)>wk(e,n)?vk:gk:r===o?lk:r>o?fk:xk:o===i?Sk:o<i?Ek:Mk:Ck}function Tk({bounds:e,size:t}){const{x:n,y:r,width:o,height:i}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+o/2)>=0&&Math.ceil(n+o/2)<=t.width&&Math.floor(r+i/2)>=0&&Math.ceil(r+i/2)<=t.height:Math.floor(n+o)>0&&Math.ceil(n)<t.width&&Math.floor(r+i/2)>=0&&Math.ceil(r+i/2)<=t.height}const Ok=1,Rk=0;function Ak({node:e,line:t,groupIndex:n,extract:r,style:o,measureText:i,size:a,horizontal:s,rtl:l,meta:c,showLabel:u}){const d=r.label(e.data);if("string"!=typeof d&&"number"!=typeof d||""===d)return!1;const p=i({fontFamily:o.fontFamily,fontSize:o.fontSize,text:d}),{localBounds:m}=e,{"stroke-width":f}=e.attrs,h=r.pointValue(e.data),g={x:m.x+m.width/2,y:m.y+m.height/2,width:p.width+2*Ok,height:p.height+2*Rk},v=`${g.x}-${g.y}`,y=!s&&!l,b=s?a.height:a.width,x=(s?g.y:g.x)/b,S=(y?1-x:x)<=(b<=200?.25:.1),E={key:v,node:e,line:t,group:n,value:h,labelMeasurements:p,bounds:g,inside:Tk({bounds:m,size:a}),border:f?f/2:0,classification:ok,setClassification(e){E.classification=e},preferences:[],setPreferences(e){E.preferences.push(...e)},placement:void 0,setPlacement(e){E.placement=e},duplicate:!1,setDuplicate(){E.duplicate=!0},extreme:c.getExtreme(v),elite:S,show:u(e)};return E}function Lk({nodes:e,extract:t,style:n,measureText:r,size:o,horizontal:i,rtl:a,showLabel:s}){const l=function({nodes:e}){const t={top:[],right:[],bottom:[],left:[]},n=e.map((e=>{const{localBounds:t}=e,n={x:t.x+t.width/2,y:t.y+t.height/2};return{key:`${n.x}-${n.y}`,center:n}})),r=n.reduce(((e,t)=>((!e.top||t.center.y<e.top.center.y)&&(e.top=t),(!e.right||t.center.x>e.right.center.x)&&(e.right=t),(!e.bottom||t.center.y>e.bottom.center.y)&&(e.bottom=t),(!e.left||t.center.x<e.left.center.x)&&(e.left=t),e)),{});return t.top=n.filter((e=>e.center.y===r.top.center.y)).map((e=>e.key)),t.right=n.filter((e=>e.center.x===r.right.center.x)).map((e=>e.key)),t.bottom=n.filter((e=>e.center.y===r.bottom.center.y)).map((e=>e.key)),t.left=n.filter((e=>e.center.x===r.left.center.x)).map((e=>e.key)),{getExtrema:e=>({top:-1!==t.top.indexOf(e),right:-1!==t.right.indexOf(e),bottom:-1!==t.bottom.indexOf(e),left:-1!==t.left.indexOf(e)}),getExtreme:e=>{const{top:n,right:r,bottom:o,left:i}=t;return[n,r,o,i].some((t=>-1!==t.indexOf(e)))}}}({nodes:e});return function({nodes:e,by:t,lineIndex:n}){const r=e.reduce(((e,r,o)=>{const i=t(r.data);return e[i]||(e[i]={items:[],index:o}),e[i].items.push({node:r,line:r.data[n].value}),e}),{});return Object.keys(r).map((e=>r[e])).sort(((e,t)=>e.index-t.index)).map((e=>e.items))}({nodes:e,by:t.majorValue,lineIndex:t.lineIndex}).map(((e,c)=>e.map((e=>({line:e.line,item:Ak({node:e.node,line:e.line,groupIndex:c,extract:t,style:n,measureText:r,size:o,horizontal:i,rtl:a,meta:l,showLabel:s})}))).filter((e=>e.item)).reduce(((e,t)=>(e[t.line]=t.item,e)),{}))).filter((e=>Object.keys(e).length))}var Ik={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},Pk={[ik]:[Ik.TOP,Ik.BOTTOM],[ak]:[Ik.BOTTOM,Ik.BOTTOM_RIGHT],[sk]:[Ik.TOP,Ik.TOP_RIGHT],[lk]:[Ik.TOP,Ik.BOTTOM],[ck]:[Ik.LEFT,Ik.BOTTOM_LEFT,Ik.TOP,Ik.TOP_RIGHT],[uk]:[Ik.BOTTOM,Ik.BOTTOM_LEFT,Ik.LEFT,Ik.TOP_RIGHT],[dk]:[Ik.BOTTOM,Ik.TOP],[pk]:[Ik.TOP,Ik.TOP_RIGHT,Ik.RIGHT],[mk]:[Ik.BOTTOM,Ik.BOTTOM_LEFT,Ik.LEFT],[fk]:[Ik.TOP],[hk]:[Ik.TOP],[gk]:[Ik.TOP,Ik.TOP_LEFT],[vk]:[Ik.BOTTOM_RIGHT],[yk]:[Ik.TOP,Ik.TOP_LEFT,Ik.LEFT,Ik.TOP_RIGHT,Ik.RIGHT],[bk]:[Ik.TOP,Ik.BOTTOM],[xk]:[Ik.TOP],[Sk]:[Ik.TOP],[Ek]:[Ik.TOP,Ik.BOTTOM],[Mk]:[Ik.TOP,Ik.BOTTOM,Ik.LEFT],[Ck]:[Ik.TOP]};function Dk({nodes:e,extract:t,style:n,measureText:r,size:o,horizontal:i,rtl:a,showLabel:s}){const l=Lk({nodes:e,extract:t,style:n,measureText:r,size:o,horizontal:i,rtl:a,showLabel:s}),c=[...l.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[u]=c,d=function({groups:e,threshold:t}){const n=e.map((e=>Object.keys(e).map((t=>e[t])))),r={};for(let e=0;e<=n.length;e++){const t=n[e];if(t)for(let e=0;e<t.length;e++){const n=t[e],{line:o}=n;r[o]||(r[o]=[]),r[o].push(n.bounds)}}const o=Object.keys(r).map((e=>r[e])),i=[];for(let e=0;e<o.length;e++)for(let n=0;n<o[e].length-1;n++){const r=o[e][n],a=o[e][n+1],s={x1:r.x,y1:r.y,x2:a.x,y2:a.y},l=s.x1-s.x2,c=s.y1-s.y2;Math.sqrt(l*l+c*c)>t&&i.push(s)}return i}({groups:l,threshold:u.node.localBounds.height}),p={getItems:()=>c,getLines:()=>d};return function({groups:e}){for(let t=0;t<e.length;t++){const n=Object.keys(e[t]).map((n=>e[t][n]));for(let r=0;r<n.length;r++){const o=n[r],i=Nk({previous:e[t-1]&&e[t-1][o.line],current:o,next:e[t+1]&&e[t+1][o.line]});o.setClassification(i)}}}({groups:l}),p.getItems().forEach((e=>e.setPreferences(Pk[e.classification]))),p}function qk({item:e,placement:t,size:n}){return t.x>=0-n.edgeBleed.left&&t.x<=n.width-e.bounds.width+n.edgeBleed.right&&t.y>=0-n.edgeBleed.top&&t.y<=n.height-e.bounds.height}function zk({line1:e,line2:t}){const n=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(0===n)return!1;const r=((t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1))/n,o=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&o>=0&&o<=1}function Bk({candidate:e,lines:t,rects:n}){return!!n.some((t=>function({rect1:e,rect2:t}){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)}({rect1:t,rect2:e})))||t.some((t=>function({line:e,rect:t}){const n={x:t.x,y:t.y},r={x:t.x+t.width,y:t.y},o={x:t.x+t.width,y:t.y+t.height},i={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:o.x,y2:o.y},s={x1:o.x,y1:o.y,x2:i.x,y2:i.y},l={x1:i.x,y1:i.y,x2:n.x,y2:n.y};return zk({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||zk({line1:e,line2:a})||zk({line1:e,line2:s})||zk({line1:e,line2:l})}({line:t,rect:e})))}const $k={x:0,width:0,y:0,height:0};const Fk=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),Hk=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),jk=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),Vk=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),Wk=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),_k=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),Uk=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),Yk=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var Gk=2.5,Kk=4;const Xk=[Ik.TOP,Ik.TOP_LEFT,Ik.TOP_RIGHT],Jk=[Ik.BOTTOM,Ik.BOTTOM_LEFT,Ik.BOTTOM_RIGHT];function Zk({position:e}){const t={x:Gk,width:-2*Gk,y:0,height:0},n=Xk.indexOf(e)>-1,r=Jk.indexOf(e)>-1;return n&&(t.y=Kk,t.height=-Kk),r&&(t.height=-Kk),t}function Qk({cx:e,cy:t,r:n,degrees:r}){const o=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(o)),y:Math.round(t+n*-Math.cos(o))}}function eN({coordinates:e,degrees:t,item:n}){const r={x:e.x,y:e.y};return t<=90?r.y-=n.bounds.height:t>180&&t<=270?r.x-=n.bounds.width:t>270&&(r.y-=n.bounds.height,r.x-=n.bounds.width),r}function tN({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),o=e.bounds.x,i=e.bounds.y;for(let a=0;a<r.length;a++){const s=r[a];for(let r=40;r<=180;r+=15){const a=eN({coordinates:Qk({cx:o,cy:i,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}for(let r=320;r>180;r-=15){const a=eN({coordinates:Qk({cx:o,cy:i,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const nN=void 0;function rN({item:e,validator:t,force:n=!1}){const r=[...e.preferences,...Object.keys(Ik).map((e=>Ik[e])).filter((t=>-1===e.preferences.indexOf(t)))],o={[Ik.TOP]:Fk,[Ik.TOP_RIGHT]:Hk,[Ik.RIGHT]:jk,[Ik.BOTTOM_RIGHT]:Vk,[Ik.BOTTOM]:Wk,[Ik.BOTTOM_LEFT]:_k,[Ik.LEFT]:Uk,[Ik.TOP_LEFT]:Yk},i=[];for(let a=0;a<r.length;a++){const s=r[a],l=o[s]({item:e}),c=Zk({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&i.push(l),u.valid)return l}const a=()=>tN({item:e,validator:t,force:n});if(n){const e=a();return e||(i[0]||nN)}return(e.extreme||e.elite)&&a()||nN}function oN({model:e,size:t,all:n}){const r={},o=e.getItems(),i=[...o.map((e=>({x:e.node.localBounds.x-e.border+1,y:e.node.localBounds.y-e.border+1,height:e.node.localBounds.height+2*e.border-2,width:e.node.localBounds.width+2*e.border-2})))],a=[],s=e.getLines();o.forEach((e=>{const{data:o}=e.node;if(!e.show||!e.inside||o.null&&o.null.value||o.interpolated&&o.interpolated.value)return;const{key:l}=e;if(r[l])return void e.setDuplicate();r[l]=!0;const c=function({size:e,lines:t,placements:n}){return function({item:r,placement:o,adjustment:i=$k,ignoreLines:a=!1}){const s={inside:qk({item:r,placement:o,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=Bk({candidate:{x:o.x+i.x,y:o.y+i.y,width:r.bounds.width+i.width,height:r.bounds.height+i.height},lines:a?[]:t,rects:n}),s.valid=!s.collides,s):s}}({size:t,lines:s,placements:i}),u=rN({item:e,validator:c});u?(u.height=e.bounds.height,u.width=e.bounds.width,i.push(u),e.setPlacement(u)):n&&a.push({item:e,validator:c})})),a.forEach((e=>{const{item:t,validator:n}=e,r=rN({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,i.push(r),t.setPlacement(r))}))}var iN={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,connect:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},target:{point:"point-component",allPoints:[]},lineIndex:"line",insideStrategy:"edge",labelSpace:{use:()=>!1,size:10}},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},{orientation:t,rtl:n,labelSpace:r}=this.settings.settings,{use:o,size:i}=r;if(o()){const r="horizontal"===t;e.edgeBleed.top=r?i:0,e.edgeBleed[n?"left":"right"]=r?0:i}return e},render(){if(!this.chart.component(this.settings.settings.target.point))return[];const{allPoints:e}=this.settings.settings.target,t=e.length?e=>this.settings.settings.target.allPoints.includes(e.key):e=>e.key===this.settings.settings.target.point,n=this.chart.findShapes("circle").filter(t);if(!n.length)return[];const{settings:r}=this.settings,o="horizontal"===r.orientation,i=o?"x":"y";n.sort(((e,t)=>e.localBounds[i]-t.localBounds[i]));const a={label:r.label,pointValue:r.pointValue,majorValue:r.majorValue,lineIndex:r.lineIndex},{height:s,width:l,edgeBleed:c}=this.rect,u={height:s,width:l,edgeBleed:c,insideStrategy:r.insideStrategy},{style:d}=this,p=Dk({nodes:n,extract:a,style:d,measureText:this.renderer.measureText,size:u,horizontal:o,rtl:r.rtl,showLabel:r.showLabel});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:p}),oN({model:p,size:u,all:r.all}),p.getItems().filter((e=>e.placement&&e.node.key===this.settings.settings.target.point)).map((e=>({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2,fontSize:d.fontSize,fontFamily:d.fontFamily,fill:d.fill,text:a.label(e.node.data),baseline:"central",anchor:"middle"})))}},aN={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var sN={require:["resolver","symbol"],defaultSettings:{settings:{type:"max",primaryExtremum:()=>{},secondaryExtremum:()=>{},primarySeries:[],secondarySeries:[],orientation:"horizontal",rtl:!1,major:{scale:"major-scale"},markerOffset:1,size:10},style:{fill:"#999"}},preferredSize(){return this.settings.settings.size},render(){const{items:e=[]}=this.data;if(!e.length)return[];const{type:t,orientation:n,rtl:r,markerOffset:o,size:i,major:a,primarySeries:s,secondarySeries:l}=this.settings.settings,c=this.settings.settings.primaryExtremum(),u=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==c,p=l.length&&void 0!==u;if(!d&&!p)return[];const m=s.map((e=>e.ref)),f=l.map((e=>e.ref)),h=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:o=[],primarySeries:i=[],secondarySeries:a=[]}){const s=[];return[...i,...a].forEach((i=>{const a=i.isPrimary?t:n,l=i.isPrimary?r:o;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const o="max"===e?e=>e>t:e=>e<t,i=n?e=>o(e.point.value<0?e.start.value:e.end.value):e=>o(e.end.value);return r.filter(i)})({type:e,extremum:a,items:l}))})),(({items:e})=>{const t=[],n=[];return e.forEach((e=>{const{value:r}=e.major;t[r]||(t[r]=!0,n.push(e))})),n})({items:s.reduce(((e,t)=>e.concat(t)),[])})}({type:t,primaryExtremum:c,secondaryExtremum:u,primaryItems:e.filter((e=>m.includes(e.end.source.field))),secondaryItems:e.filter((e=>f.includes(e.end.source.field))),primarySeries:s,secondarySeries:l});if(!h.length)return[];const g="horizontal"===n,v=this.rect[g?"width":"height"],y=this.resolver.resolve({data:{items:h},settings:{major:a},scaled:{major:v}}),b=("max"===t?90:-90)-(g?0:90)-(!g&&r?180:0),x=i/2*o,{fill:S}=this.settings.style;return y.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:o,y:i,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:o,y:i,data:a})}({symbol:this.symbol,size:i,fill:S,startAngle:b,x:g?v*e.major:x,y:g?x:v*e.major,data:e.data})))}};function lN({x:e,y:t,size:n,stroke:r,strokeWidth:o,fill:i}){return{type:"container",children:[{type:"line",stroke:r||i,strokeWidth:o,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:i,cx:e,cy:t,r:.25*n}]}}function cN({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))];return e.findShapes("path").filter((e=>r.some((t=>t===e.key)))).reduce(((e,n)=>((t.primary.some((e=>e.key===n.key))?e.primary:e.secondary).paths.push(n),e)),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function uN({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function dN({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(_a.SCALE.MAJOR),o=r&&r.max&&r.max(),i="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===o?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&i(e,t.max)))}}function pN({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:o,chart:i}){const a=e.brushes();if(!a.length)return[];const s=a[0],{minorRange:l,legendRange:c,legendTap:u}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let p=[c?e=>e.color.value:r[d]].filter(Boolean);if(o&&l&&p.push((e=>e.color.value)),!o&&u&&(p=[e=>e.color.value]),!p.length)return[];const m=function({brush:e,chart:t}){return("value"===e.type?uN:dN)({brush:e,chart:t})}({brush:s,chart:i});return m?n.reduce(((e,t,n)=>(p.some((e=>m({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function mN({chart:e,selected:t,connection:n,gradient:r,fallback:o}){const i=e.scale(_a.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a),c=l-s,u=0===c?1:c,d=i.domain().map((e=>({color:i(Math.min(l,Math.max(s,e)))||o,offset:Math.min(1,Math.max(0,(e-s)/u))}))),p=d.map((e=>e.offset)),m=p.lastIndexOf(0),f=p.indexOf(1),h=d.slice(-1===m?0:m,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function fN({chart:e,selected:t,connection:n,gradient:r,fallback:o}){const i=e.scale(_a.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a)-s,c=0===l?1:l,u=i.domain(),d=[];for(let e=0;e<u.length-1;e++){const t=u[e],n=i(t)||o;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/c))});const r=u[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/c))})}const p=d.map((e=>e.offset)),m=p.lastIndexOf(0),f=p.indexOf(1),h=d.slice(-1===m?0:m,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function hN({property:e,chart:t,connection:n,attrs:r,colorSettings:o,colorByData:i,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:c,orientation:u,rtl:d}){const p=r[e];if("gradient"!==p.type)return p;const{type:m,nil:f}=o;if(s||!i)return function({chart:e,selected:t,connection:n,gradient:r,fallback:o,orientation:i,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:c}){const u=e.scale(_a.SCALE.MAJOR),d=e.scale(_a.SCALE.COLOR),p=s?e=>u([e,0])+u.bandwidth()*l/2:e=>u(e),m=t.filter((e=>-1!==n.indexOf(e.index))),f=("vertical"===i&&c?m.reverse():m).map((e=>e.item)),h=f.map((e=>p(e.major.value))),g=Math.min(...h),v=Math.max(...h)-g,y=0===v?1:v,b=h.map(((e,t)=>0===t?0:t===h.length-1?1:(e-g)/y)),x=[];for(let e=0;e<f.length;e++){const t=f[e],n=a?t.color.value:d(t.color.value)||o,r=b[e];x.push({color:n,offset:0===e?0:Math.max(0,x[x.length-1].offset)}),x.push({color:n,offset:e===f.length-1?1:Math.max(0,parseFloat((r+(b[e+1]-r)/2).toFixed(5)))})}return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:x}}({chart:t,selected:a,connection:n,gradient:p,fallback:f,orientation:u,isColorCode:"color"===m,groupedByMeasure:l,itemsPerGroup:c,rtl:d});return("continuous"===m?mN:fN)({chart:t,selected:a,connection:n,gradient:p,fallback:f})}function gN({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:o,groupedByMeasure:i,itemsPerGroup:a,orientation:s,lineKey:l,primary:c,selected:u,connections:d,rtl:p,count:m}){const f=t.getLine(l,c),{attrs:h}=f,g=function({d:e}){return e.replace("Z","").split(/(?=[LMC])/).map((e=>{const t=e.substring(0,1),n={letter:t,x:0,y:0,raw:e},r=e.substring(1).split(",");return"M"===t||"L"===t?([n.x]=r,[,n.y]=r):"C"===t&&([,,,,n.x]=r,[,,,,,n.y]=r),n}))}({d:h.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:o,itemsPerGroup:i,orientation:a,selected:s,connection:l,commands:c,attrs:u,rtl:d,count:p}){return{path:l.map(((e,t)=>{const n=c[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join(""),attrs:u,stroke:hN({property:"stroke",chart:e,connection:l,attrs:u,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:o,itemsPerGroup:i,orientation:a,rtl:d,count:p})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:o,groupedByMeasure:i,itemsPerGroup:a,orientation:s,selected:u,connection:t,commands:g,attrs:h,rtl:p,count:m})))}function vN({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:o,items:i,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:p,rtl:m}){const f=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const o=n.typeIndex.value;var i;return e[o]||(e[o]={key:o,items:[],index:r,measureIx:null===(i=n.colorMeasureIdx)||void 0===i?void 0:i.value,primary:t.primary.some((e=>e.typeIndex===o))}),e[o].items.push(n),e}),{});return Object.keys(n).map((e=>n[e])).sort(((e,t)=>e.index-t.index)).map((e=>({lineKey:e.key,items:e.items,primary:e.primary,measureIx:e.measureIx})))}({items:function({items:e,selectionInfo:t,seriesInfo:n}){return e.filter((e=>{if("NaN"===e.end.value||Number.isNaN(e.end.value))return!1;const{minorRange:r,minorRangePrimary:o}=t;return!r||(o?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:i,selectionInfo:o,seriesInfo:n}),seriesInfo:n}),{lines:h}=f.reduce(((n,i)=>{const f=pN({brush:r,selectionInfo:o,items:i.items,selectionValues:a,colorByData:l,chart:e});if(f.length<2)return n;const h=function({selected:e}){return e.reduce(((e,t)=>{const{index:n}=t;if(e.length){const t=e[e.length-1];n===t[t.length-1]+1?t.push(n):e.push([n])}else e.push([n]);return e}),[]).filter((e=>e.length>1))}({selected:f});return h.length?(n.lines.push(...gN({chart:e,pathModel:t,colorSettings:s(i.measureIx),colorByData:l(i.measureIx),hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:p,lineKey:i.lineKey,primary:i.primary,selected:f,connections:h,rtl:m,count:i.items.length})),n):n}),{lines:[]}),g=[];return h.forEach((e=>g.push({type:"path",d:e.path,stroke:e.stroke,strokeLinejoin:e.attrs["stroke-linejoin"],strokeWidth:e.attrs["stroke-width"],strokeDasharray:e.attrs["stroke-dasharray"],fill:"none"}))),g}var yN={require:["chart","renderer"],defaultSettings:{settings:{seriesInfo:{primary:[],secondary:[]},selectionValues:{},colorSettings:void 0,colorByData:!1,isColorCode:!1,hasMultipleMeasures:!1,groupedByMeasure:!1,itemsPerGroup:1,orientation:"vertical",rtl:!1}},addListener(e,t){this.state.brush.addListener(e,t),this.state.listeners.push({type:e,fn:t})},removeListeners(){this.state.listeners.forEach((e=>this.state.brush.removeListener(e.type,e.fn))),this.state.listeners.length=0},created(){this.state={pathModel:cN({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),brush:this.chart.brush("selection"),listeners:[],selectionInfo:{minorRange:!1,minorRangePrimary:!1,legendRange:!1,legendTap:!1}}},mounted(){this.addListener("update",(()=>{this.state.selectionInfo=this.settings.settings.getSelectionInfo();const e=vN({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl});this.renderer.render(e)})),this.addListener("end",(()=>{this.renderer.render([])}))},render(){this.state.pathModel=cN({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return vN({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl})},destroyed(){this.removeListeners()}};const bN={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},xN=e=>void 0===e.marker?bN.circle:bN[e.marker],SN=e=>void 0===e.markerFill||e.markerFill;function EN({series:e,layoutService:t}){switch(su(e)){case Ua.MARKER:return(e=>({marker:xN(e),fill:SN(e)}))(e);case Ua.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);default:return{}}}function MN(e=Ga,t){return t?e.axis===Ya.PRIMARY:e.axis===Ya.PRIMARY||su(e)===Ua.BAR}var CN={exports:{}};var wN={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var kN="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=wN,r=kN,o=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let s=0;const l=(e,t,n)=>{const l=s++;r(l,t),a[e]=l,i[l]=t,o[l]=new RegExp(t,n?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),l("FULL",`^${i[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),l("LOOSE",`^${i[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",i[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",i[a.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),l("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",i[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(CN,CN.exports);const NN=["includePrerelease","loose","rtl"];var TN=e=>e?"object"!=typeof e?{loose:!0}:NN.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};const ON=/^[0-9]+$/,RN=(e,t)=>{const n=ON.test(e),r=ON.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var AN={compareIdentifiers:RN,rcompareIdentifiers:(e,t)=>RN(t,e)};const LN=kN,{MAX_LENGTH:IN,MAX_SAFE_INTEGER:PN}=wN,{re:DN,t:qN}=CN.exports,zN=TN,{compareIdentifiers:BN}=AN;class $N{constructor(e,t){if(t=zN(t),e instanceof $N){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>IN)throw new TypeError(`version is longer than ${IN} characters`);LN("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?DN[qN.LOOSE]:DN[qN.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>PN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>PN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>PN||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<PN)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(LN("SemVer.compare",this.version,this.options,e),!(e instanceof $N)){if("string"==typeof e&&e===this.version)return 0;e=new $N(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof $N||(e=new $N(e,this.options)),BN(this.major,e.major)||BN(this.minor,e.minor)||BN(this.patch,e.patch)}comparePre(e){if(e instanceof $N||(e=new $N(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],r=e.prerelease[t];if(LN("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return BN(n,r)}while(++t)}compareBuild(e){e instanceof $N||(e=new $N(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(LN("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return BN(n,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}var FN=$N;const{MAX_LENGTH:HN}=wN,{re:jN,t:VN}=CN.exports,WN=FN,_N=TN;var UN=(e,t)=>{if(t=_N(t),e instanceof WN)return e;if("string"!=typeof e)return null;if(e.length>HN)return null;if(!(t.loose?jN[VN.LOOSE]:jN[VN.FULL]).test(e))return null;try{return new WN(e,t)}catch(e){return null}};const YN=UN;var GN=(e,t)=>{const n=YN(e,t);return n?n.version:null};const KN=UN;var XN=(e,t)=>{const n=KN(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const JN=FN;var ZN=(e,t,n,r)=>{"string"==typeof n&&(r=n,n=void 0);try{return new JN(e,n).inc(t,r).version}catch(e){return null}};const QN=FN;var eT=(e,t,n)=>new QN(e,n).compare(new QN(t,n));const tT=eT;var nT=(e,t,n)=>0===tT(e,t,n);const rT=UN,oT=nT;var iT=(e,t)=>{if(oT(e,t))return null;{const n=rT(e),r=rT(t),o=n.prerelease.length||r.prerelease.length,i=o?"pre":"",a=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==r[e])return i+e;return a}};const aT=FN;var sT=(e,t)=>new aT(e,t).major;const lT=FN;var cT=(e,t)=>new lT(e,t).minor;const uT=FN;var dT=(e,t)=>new uT(e,t).patch;const pT=UN;var mT=(e,t)=>{const n=pT(e,t);return n&&n.prerelease.length?n.prerelease:null};const fT=eT;var hT=(e,t,n)=>fT(t,e,n);const gT=eT;var vT=(e,t)=>gT(e,t,!0);const yT=FN;var bT=(e,t,n)=>{const r=new yT(e,n),o=new yT(t,n);return r.compare(o)||r.compareBuild(o)};const xT=bT;var ST=(e,t)=>e.sort(((e,n)=>xT(e,n,t)));const ET=bT;var MT=(e,t)=>e.sort(((e,n)=>ET(n,e,t)));const CT=eT;var wT=(e,t,n)=>CT(e,t,n)>0;const kT=eT;var NT=(e,t,n)=>kT(e,t,n)<0;const TT=eT;var OT=(e,t,n)=>0!==TT(e,t,n);const RT=eT;var AT=(e,t,n)=>RT(e,t,n)>=0;const LT=eT;var IT=(e,t,n)=>LT(e,t,n)<=0;const PT=nT,DT=OT,qT=wT,zT=AT,BT=NT,$T=IT;var FT=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return PT(e,n,r);case"!=":return DT(e,n,r);case">":return qT(e,n,r);case">=":return zT(e,n,r);case"<":return BT(e,n,r);case"<=":return $T(e,n,r);default:throw new TypeError("Invalid operator: "+t)}};const HT=FN,jT=UN,{re:VT,t:WT}=CN.exports;var _T,UT,YT,GT,KT,XT,JT,ZT,QT,eO,tO=(e,t)=>{if(e instanceof HT)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=VT[WT.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),VT[WT.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;VT[WT.COERCERTL].lastIndex=-1}else n=e.match(VT[WT.COERCE]);return null===n?null:jT(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};function nO(){if(GT)return YT;function e(t){var n=this;if(n instanceof e||(n=new e),n.tail=null,n.head=null,n.length=0,t&&"function"==typeof t.forEach)t.forEach((function(e){n.push(e)}));else if(arguments.length>0)for(var r=0,o=arguments.length;r<o;r++)n.push(arguments[r]);return n}function t(e,t,n){var r=t===e.head?new o(n,null,t,e):new o(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function n(e,t){e.tail=new o(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function r(e,t){e.head=new o(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function o(e,t,n,r){if(!(this instanceof o))return new o(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}GT=1,YT=e,e.Node=o,e.create=e,e.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},e.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},e.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},e.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},e.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},e.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},e.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},e.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},e.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},e.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},e.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},e.prototype.map=function(t,n){n=n||this;for(var r=new e,o=this.head;null!==o;)r.push(t.call(n,o.value,this)),o=o.next;return r},e.prototype.mapReverse=function(t,n){n=n||this;for(var r=new e,o=this.tail;null!==o;)r.push(t.call(n,o.value,this)),o=o.prev;return r},e.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},e.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},e.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},e.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},e.prototype.slice=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var o=0,i=this.head;null!==i&&o<t;o++)i=i.next;for(;null!==i&&o<n;o++,i=i.next)r.push(i.value);return r},e.prototype.sliceReverse=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var o=this.length,i=this.tail;null!==i&&o>n;o--)i=i.prev;for(;null!==i&&o>t;o--,i=i.prev)r.push(i.value);return r},e.prototype.splice=function(e,n,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var o=0,i=this.head;null!==i&&o<e;o++)i=i.next;var a=[];for(o=0;i&&o<n;o++)a.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(o=0;o<r.length;o++)i=t(this,i,r[o]);return a},e.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(UT?_T:(UT=1,_T=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return YT}function rO(){if(ZT)return JT;ZT=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!d(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&p(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,i=t.get(n);if(i)return i;const p=this.options.loose,m=p?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE];e=e.replace(m,C(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),o("comparator trim",e,a[s.COMPARATORTRIM]),e=(e=(e=e.replace(a[s.TILDETRIM],c)).replace(a[s.CARETTRIM],u)).split(/\s+/).join(" ");const h=p?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],g=e.split(" ").map((e=>f(e,this.options))).join(" ").split(/\s+/).map((e=>M(e,this.options))).filter(this.options.loose?e=>!!e.match(h):()=>!0).map((e=>new r(e,this.options)));g.length;const v=new Map;for(const e of g){if(d(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const y=[...v.values()];return t.set(n,y),y}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>m(e,n)&&t.set.some((t=>m(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(w(this.set[t],e,this.options))return!0;return!1}}JT=e;const t=new(function(){if(XT)return KT;XT=1;const e=nO(),t=Symbol("max"),n=Symbol("length"),r=Symbol("lengthCalculator"),o=Symbol("allowStale"),i=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),c=Symbol("cache"),u=Symbol("updateAgeOnGet"),d=()=>1,p=(e,t,n)=>{const r=e[c].get(t);if(r){const t=r.value;if(m(e,t)){if(h(e,r),!e[o])return}else n&&(e[u]&&(r.value.now=Date.now()),e[l].unshiftNode(r));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[i])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[i]&&n>e[i]},f=e=>{if(e[n]>e[t])for(let r=e[l].tail;e[n]>e[t]&&null!==r;){const t=r.prev;h(e,r),r=t}},h=(e,t)=>{if(t){const r=t.value;e[a]&&e[a](r.key,r.value),e[n]-=r.length,e[c].delete(r.key),e[l].removeNode(t)}};class g{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const v=(e,t,n,r)=>{let i=n.value;m(e,i)&&(h(e,n),e[o]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};return KT=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[t]=e.max||1/0;const n=e.length||d;if(this[r]="function"!=typeof n?d:n,this[o]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[i]=e.maxAge||0,this[a]=e.dispose,this[s]=e.noDisposeOnSet||!1,this[u]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[t]=e||1/0,f(this)}get max(){return this[t]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[i]=e,f(this)}get maxAge(){return this[i]}set lengthCalculator(e){"function"!=typeof e&&(e=d),e!==this[r]&&(this[r]=e,this[n]=0,this[l].forEach((e=>{e.length=this[r](e.value,e.key),this[n]+=e.length}))),f(this)}get lengthCalculator(){return this[r]}get length(){return this[n]}get itemCount(){return this[l].length}rforEach(e,t){t=t||this;for(let n=this[l].tail;null!==n;){const r=n.prev;v(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[l].head;null!==n;){const r=n.next;v(this,e,n,t),n=r}}keys(){return this[l].toArray().map((e=>e.key))}values(){return this[l].toArray().map((e=>e.value))}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach((e=>this[a](e.key,e.value))),this[c]=new Map,this[l]=new e,this[n]=0}dump(){return this[l].map((e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[l]}set(e,o,u){if((u=u||this[i])&&"number"!=typeof u)throw new TypeError("maxAge must be a number");const d=u?Date.now():0,p=this[r](o,e);if(this[c].has(e)){if(p>this[t])return h(this,this[c].get(e)),!1;const r=this[c].get(e).value;return this[a]&&(this[s]||this[a](e,r.value)),r.now=d,r.maxAge=u,r.value=o,this[n]+=p-r.length,r.length=p,this.get(e),f(this),!0}const m=new g(e,o,p,d,u);return m.length>this[t]?(this[a]&&this[a](e,o),!1):(this[n]+=m.length,this[l].unshift(m),this[c].set(e,this[l].head),f(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!m(this,t)}get(e){return p(this,e,!0)}peek(e){return p(this,e,!1)}pop(){const e=this[l].tail;return e?(h(this,e),e.value):null}del(e){h(this,this[c].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[c].forEach(((e,t)=>p(this,t,!1)))}}}())({max:1e3}),n=TN,r=oO(),o=kN,i=FN,{re:a,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:u}=CN.exports,d=e=>"<0.0.0-0"===e.value,p=e=>""===e.value,m=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},f=(e,t)=>(o("comp",e,t),e=y(e,t),o("caret",e),e=g(e,t),o("tildes",e),e=x(e,t),o("xrange",e),e=E(e,t),o("stars",e),e),h=e=>!e||"x"===e.toLowerCase()||"*"===e,g=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{const n=t.loose?a[s.TILDELOOSE]:a[s.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),h(n)?s="":h(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:h(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},y=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{o("caret",e,t);const n=t.loose?a[s.CARETLOOSE]:a[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),h(n)?l="":h(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:h(a)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",l),l}))},x=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>{e=e.trim();const n=t.loose?a[s.XRANGELOOSE]:a[s.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=h(i),u=c||h(a),d=u||h(s),p=d;return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},E=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),M=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),C=e=>(t,n,r,o,i,a,s,l,c,u,d,p,m)=>`${n=h(r)?"":h(o)?`>=${r}.0.0${e?"-0":""}`:h(i)?`>=${r}.${o}.0${e?"-0":""}`:a?">="+n:`>=${n}${e?"-0":""}`} ${l=h(c)?"":h(u)?`<${+c+1}.0.0-0`:h(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:"<="+l}`.trim(),w=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return JT}function oO(){if(eO)return QT;eO=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError("Invalid comparator: "+t);this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new s(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");if(n&&"object"==typeof n||(n={loose:!!n,includePrerelease:!1}),""===this.operator)return""===this.value||new l(e.value,n).test(this.value);if(""===e.operator)return""===e.value||new l(this.value,n).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),c=i(this.semver,"<",e.semver,n)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=i(this.semver,">",e.semver,n)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||a&&s||c||u}}QT=t;const n=TN,{re:r,t:o}=CN.exports,i=FT,a=kN,s=FN,l=rO();return QT}const iO=rO();var aO=(e,t,n)=>{try{t=new iO(t,n)}catch(e){return!1}return t.test(e)};const sO=rO();var lO=(e,t)=>new sO(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const cO=FN,uO=rO();var dO=(e,t,n)=>{let r=null,o=null,i=null;try{i=new uO(t,n)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(r&&-1!==o.compare(e)||(r=e,o=new cO(r,n)))})),r};const pO=FN,mO=rO();var fO=(e,t,n)=>{let r=null,o=null,i=null;try{i=new mO(t,n)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new pO(r,n)))})),r};const hO=FN,gO=rO(),vO=wT;var yO=(e,t)=>{e=new gO(e,t);let n=new hO("0.0.0");if(e.test(n))return n;if(n=new hO("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let o=null;r.forEach((e=>{const t=new hO(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!vO(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})),!o||n&&!vO(n,o)||(n=o)}return n&&e.test(n)?n:null};const bO=rO();var xO=(e,t)=>{try{return new bO(e,t).range||"*"}catch(e){return null}};const SO=FN,EO=oO(),{ANY:MO}=EO,CO=rO(),wO=aO,kO=wT,NO=NT,TO=IT,OO=AT;var RO=(e,t,n,r)=>{let o,i,a,s,l;switch(e=new SO(e,r),t=new CO(t,r),n){case">":o=kO,i=TO,a=NO,s=">",l=">=";break;case"<":o=NO,i=OO,a=kO,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(wO(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const c=t.set[n];let u=null,d=null;if(c.forEach((e=>{e.semver===MO&&(e=new EO(">=0.0.0")),u=u||e,d=d||e,o(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===s||u.operator===l)return!1;if((!d.operator||d.operator===s)&&i(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const AO=RO;var LO=(e,t,n)=>AO(e,t,">",n);const IO=RO;var PO=(e,t,n)=>IO(e,t,"<",n);const DO=rO();var qO=(e,t,n)=>(e=new DO(e,n),t=new DO(t,n),e.intersects(t));const zO=aO,BO=eT;const $O=rO(),FO=oO(),{ANY:HO}=FO,jO=aO,VO=eT,WO=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===HO){if(1===t.length&&t[0].semver===HO)return!0;e=n.includePrerelease?[new FO(">=0.0.0-0")]:[new FO(">=0.0.0")]}if(1===t.length&&t[0].semver===HO){if(n.includePrerelease)return!0;t=[new FO(">=0.0.0")]}const r=new Set;let o,i,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?o=_O(o,t,n):"<"===t.operator||"<="===t.operator?i=UO(i,t,n):r.add(t.semver);if(r.size>1)return null;if(o&&i){if(a=VO(o.semver,i.semver,n),a>0)return null;if(0===a&&(">="!==o.operator||"<="!==i.operator))return null}for(const e of r){if(o&&!jO(e,String(o),n))return null;if(i&&!jO(e,String(i),n))return null;for(const r of t)if(!jO(e,String(r),n))return!1;return!0}let d=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver,p=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver;d&&1===d.prerelease.length&&"<"===i.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(u=u||">"===e.operator||">="===e.operator,c=c||"<"===e.operator||"<="===e.operator,o)if(p&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===p.major&&e.semver.minor===p.minor&&e.semver.patch===p.patch&&(p=!1),">"===e.operator||">="===e.operator){if(s=_O(o,e,n),s===e&&s!==o)return!1}else if(">="===o.operator&&!jO(o.semver,String(e),n))return!1;if(i)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=UO(i,e,n),l===e&&l!==i)return!1}else if("<="===i.operator&&!jO(i.semver,String(e),n))return!1;if(!e.operator&&(i||o)&&0!==a)return!1}return!(o&&c&&!i&&0!==a)&&(!(i&&u&&!o&&0!==a)&&(!p&&!d))},_O=(e,t,n)=>{if(!e)return t;const r=VO(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},UO=(e,t,n)=>{if(!e)return t;const r=VO(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var YO=(e,t,n={})=>{if(e===t)return!0;e=new $O(e,n),t=new $O(t,n);let r=!1;e:for(const o of e.set){for(const e of t.set){const t=WO(o,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const GO=CN.exports;var KO={re:GO.re,src:GO.src,tokens:GO.t,SEMVER_SPEC_VERSION:wN.SEMVER_SPEC_VERSION,SemVer:FN,compareIdentifiers:AN.compareIdentifiers,rcompareIdentifiers:AN.rcompareIdentifiers,parse:UN,valid:GN,clean:XN,inc:ZN,diff:iT,major:sT,minor:cT,patch:dT,prerelease:mT,compare:eT,rcompare:hT,compareLoose:vT,compareBuild:bT,sort:ST,rsort:MT,gt:wT,lt:NT,eq:nT,neq:OT,gte:AT,lte:IT,cmp:FT,coerce:tO,Comparator:oO(),Range:rO(),satisfies:aO,toComparators:lO,maxSatisfying:dO,minSatisfying:fO,minVersion:yO,validRange:xO,outside:RO,gtr:LO,ltr:PO,intersects:qO,simplifyRange:(e,t,n)=>{const r=[];let o=null,i=null;const a=e.sort(((e,t)=>BO(e,t,n)));for(const e of a){zO(e,t,n)?(i=e,o||(o=e)):(i&&r.push([o,i]),i=null,o=null)}o&&r.push([o,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push("<="+t):s.push(`${e} - ${t}`):s.push(">="+e):s.push("*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t},subset:YO},XO="0.23.1";const JO=e=>!e||KO.lt(KO.coerce(e),KO.coerce(XO));function ZO(){return function({layout:e}){var t,n,r;const o=E(e,"qHyperCube.qMeasureInfo",[]),i=o.some((({series:e=Ga})=>su(e)===Ua.LINE)),a=pe.continuous(e,(()=>i&&se.isTime(!0,e))),s=!JO(E(e,"version","")),l=o.filter((({series:e=Ga})=>su(e)===Ua.BAR)),c=l.length,u=l.filter((({series:e=Ga})=>e.axis!==Ya.SECONDARY)).length,d=l.filter((({series:e=Ga})=>e.axis===Ya.SECONDARY)).length,p=s?u>1||d>1:c>1,m=("grouped"!==E(e,"barGrouping.grouping")||a)&&p,f=!m&&c>1,h=s&&m&&(u>0&&d>1||u>1&&d>0),g=!(null==e||null===(t=e.qHyperCube)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n||null===(r=n[0])||void 0===r||!r.qLocked);return{canBeContinuous:se.canBeContinuous(e),isDiscrete:!a,isContinuous:a,isTime:se.isTime(a,e),isSnapshot:pe.snapshot(e),isBarSeriesStacked:m,isBarSeriesGrouped:f,isBarSeriesStackedInBothAxis:h,isGrouped:f||h,isGroupedByMeasure:f||h,isDimensionLocked:g,groupSize:h?2:c,hasLineSeries:i}}}function QO({layoutService:e}){const{dimensionCount:t,measureCount:n}=e.meta;return{qTop:0,qLeft:0,qWidth:t+n,qHeight:Math.min(2e3,1e4/(n+1))}}const eR=e=>"number"==typeof e&&!Number.isNaN(e);function tR({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),o=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),i=o.filter((e=>su(e.series)===Ua.BAR)),a=o.filter((e=>su(e.series)===Ua.LINE)),s=o.filter((e=>su(e.series)===Ua.MARKER));return{min:Math.min(...o.filter((e=>eR(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>eR(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...i.filter((e=>eR(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>eR(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>eR(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>eR(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>eR(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>eR(e.qMax))).map((e=>e.qMax)))}}}}function nR({isPrimary:e,layoutService:t,seriesModel:n}){const r=tR({isPrimary:e,layoutService:t,seriesModel:n}),o=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(Ua.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:o}=n,i={min:NaN,max:NaN};return o.forEach((e=>{let t=0,n=0;e.slice(1).filter(((e,t)=>r.some((e=>e===t))&&"NaN"!==e.qNum)).forEach((e=>{e.qNum>=0?n+=e.qNum:t+=e.qNum})),i.min=Number.isNaN(i.min)?t:Math.min(t,i.min),i.max=Number.isNaN(i.max)?n:Math.max(n,i.max)})),i}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=o({dataPage:e}),t.min=Math.min(t.bar.min,t.line.min,t.marker.min),t.max=Math.max(t.bar.max,t.line.max,t.marker.max),t}}function rR({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:o}){const i={min:NaN,max:NaN,implicit:{min:NaN,max:NaN,bar:{min:NaN,max:NaN},line:{min:NaN,max:NaN},marker:{min:NaN,max:NaN}},explicit:{min:NaN,max:NaN},meta:{hasExplicit:!1,hasExplicitMin:!1,hasExplicitMax:!1,includesZero:!1}},a=function({isPrimary:e,layoutService:t,seriesModel:n}){const{isBarSeriesStacked:r}=t.meta,o=n.query.series(Ua.BAR).filter((t=>t.isPrimary===e)).length;return!r||o<2?tR({isPrimary:e,layoutService:t,seriesModel:n}):nR({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:o});return{query:{getExtrema:()=>i},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,o=r("measureAxes."+(e?0:1),{});if(o.autoMinMax)return n;const{minMax:i,min:a,max:s}=o;return"min"!==i&&"minMax"!==i||(n.min=a),"max"!==i&&"minMax"!==i||(n.max=s),Number.isNaN(n.min)||Number.isNaN(n.max)||(n.min=Math.min(a,s),n.max=Math.max(a,s)),n}({isPrimary:e,layoutService:n});return i.explicit.min=s,i.explicit.max=l,i.meta.hasExplicitMin=!Number.isNaN(s),i.meta.hasExplicitMax=!Number.isNaN(l),i.meta.hasExplicit=i.meta.hasExplicitMin||i.meta.hasExplicitMax,function({continuousModel:e,layoutService:t,reducedModel:n}){const{isDiscrete:r}=t.meta;if(r){const e=n.query.getCube();return Promise.resolve({dataPage:e.qDataPages[0]})}return e.fetchMinMaxData().then((e=>({dataPage:e[0]})))}({continuousModel:t,layoutService:n,reducedModel:r}).then((({dataPage:t})=>{const{min:n,max:r,bar:s,line:l,marker:c}=a({dataPage:t}),u=o.query.seriesByAxis(e).some((e=>su(e)===Ua.BAR)),d=u?Math.min(n,0):n,p=u?Math.max(r,0):r,m=u?Math.min(s.min,0):s.min,f=u?Math.max(s.max,0):s.max,h=u?Math.min(l.min,0):l.min,g=u?Math.max(l.max,0):l.max,v=u?Math.min(c.min,0):c.min,y=u?Math.max(c.max,0):c.max;i.implicit.min=Number.isFinite(d)?d:0,i.implicit.max=Number.isFinite(p)?p:0,i.implicit.bar.min=Number.isFinite(m)?m:0,i.implicit.bar.max=Number.isFinite(f)?f:0,i.implicit.line.min=Number.isFinite(h)?h:0,i.implicit.line.max=Number.isFinite(g)?g:0,i.implicit.marker.min=Number.isFinite(v)?v:0,i.implicit.marker.max=Number.isFinite(y)?y:0,i.min=Number.isNaN(i.explicit.min)?i.implicit.min:i.explicit.min,i.max=Number.isNaN(i.explicit.max)?i.implicit.max:i.explicit.max,i.meta.hasExplicitMin&&!i.meta.hasExplicitMax&&(i.max=Math.max(i.min,i.max)),i.meta.hasExplicitMax&&!i.meta.hasExplicitMin&&(i.min=Math.min(i.min,i.max)),i.meta.includesZero=!!((0-i.min)*(0-i.max)<=0)}))}}}}function oR({extrema:e,ticks:t}){const n=e.meta.hasExplicit?2:3;return t.filter((t=>(t=>!e.meta.hasExplicitMin||t>=e.explicit.min)(t)&&(t=>!e.meta.hasExplicitMax||t<=e.explicit.max)(t))).length>=n}function iR({min:e,max:t,count:n,threshold:r,disable:o}){const i=function(e,t,n){const r=Ar().domain([e,t]);return r.nice(n),r}(e,t,n),a=function({min:e,max:t,threshold:n,scale:r,disable:o}){const i={start:!0,stop:!0};if(o)return i;const[a,s]=r.domain();return 0!==e&&0!==a&&(i.start=r(e)>n),0!==t&&0!==s&&(i.stop=r(t)<1-n),i}({min:e,max:t,threshold:r,scale:i,disable:o});if(!a.start||!a.stop){const[e,t]=i.domain(),r=i.ticks(n),o=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;i.domain([a.start?e:e-o,a.stop?t:t+s]),i.nice(n)}return i}const aR=50,sR=100,lR=200,cR=125;function uR({config:{measureAxesRef:e},layoutService:t,size:n}){const r=(e=>{switch(e){case.5:return aR;case 1:return sR;case 2:return lR;default:return e*cR}})(t.getLayoutValue(e+".spacing",1));return Math.max(1,Math.round(n/r))}function dR({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:i,min:a,max:s}){const l=uR({config:e,layoutService:n,size:i}),c=iR({min:a,max:s,count:l,threshold:.05,disable:!0}),u=c.domain(),d={roundedMin:u[0],roundedMax:u[1],ticks:c.ticks(l)},p="horizontal"===r.meta.major.orientation?"height":"width",m=e=>o(e)[p],f=t.formatter(e.formatter),h=()=>{const e=d.ticks.map(f);return!e.some(((t,n)=>e.indexOf(t)!==n))&&(e=>{const t=i/d.ticks.length;return Math.max(...e.map(m))<=t})(e)};for(let e=l-1;e>0&&!h();e--)c.domain([a,s]),c.nice(e),[d.roundedMin,d.roundedMax]=c.domain(),d.ticks=c.ticks(e);return d}function pR({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function mR({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}function fR({config:e,chart:t,extrema:n,min:r,max:o}){const i={roundedMin:0,roundedMax:0,ticks:[]},a=iR({min:r,max:o,count:10,threshold:.15,disable:!0});[i.roundedMin,i.roundedMax]=a.domain();const s=a.ticks(10),l=function({ticks:e}){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?pR:mR;i.ticks=s.filter(((e,t,n)=>c({tick:e,index:t,ticks:n})));i.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(i.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const u=t.formatter(e.formatter),d=i.ticks.map(u);return d.some(((e,t)=>d.indexOf(e)!==t))&&(i.ticks=[i.ticks[0],i.ticks[i.ticks.length-1]]),i}function hR({ticks:e,extrema:t}){let n=[...e];return t.meta.hasExplicit&&e.length?(t.meta.hasExplicitMin&&!e.some((e=>e===t.explicit.min))&&(n.unshift(t.explicit.min),n=n.filter((e=>e>=t.explicit.min))),t.meta.hasExplicitMax&&!e.some((e=>e===t.explicit.max))&&(n.push(t.explicit.max),n=n.filter((e=>e<=t.explicit.max))),n):n}function gR({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l}){const{ticks:c,roundedMin:u,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l}){if("SPARK"===r.meta.chart.mode)return function({min:e,max:t}){return{roundedMin:e,roundedMax:t,ticks:[]}}({min:s,max:l});const c=dR({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:a,min:s,max:l});return oR({extrema:o,ticks:c.ticks})?c:fR({config:e,chart:t,extrema:o,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l}),p=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const o=e[r],i=(e[r+1]-o)/(t+1);for(let e=1;e<=t;e++)n.push(o+i*e)}return n}({ticks:c,count:1});return{min:u,max:d,values:[...hR({ticks:c,extrema:o}).map((e=>({value:e,isMinor:!1}))),...p.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value))}}function vR({config:e,chart:t,layoutService:n,dockService:r,measureText:o,extrema:i,size:a}){const{min:s,max:l}=function({extrema:e}){const{min:t,max:n}=e;return t!==n?{min:t,max:n}:0===t||1===t?{min:t-1,max:n+1}:{min:t-.2*t*Math.sign(t),max:n+.2*n*Math.sign(n)}}({extrema:i});return gR({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l})}function yR({config:e,chart:t,layoutService:n,extremumModel:r,dockService:o,seriesModel:i,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,c=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:o,seriesModel:i,themeService:a}){const{measureText:s}=q.renderer("svg")();return()=>{const l=a.getStyles(),c=function({dockService:e,seriesModel:t,chart:n}){var r;const o=n.component(t.meta.seriesComponentKeys[0]),i=null!==(r=null==o?void 0:o.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?i.height:i.width}({chart:e,dockService:n,seriesModel:i}),u=r.query.getExtrema();return vR({config:t,chart:e,layoutService:o,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:u,size:c})}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:o,seriesModel:i,themeService:a}),u=()=>(s.locked&&s.resolved||(s.resolved=c()),s.resolved);return{query:{getValues:()=>u().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:u().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:u().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function bR({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:o,fieldType:i}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===o?"measure"===i?()=>({type:Ua.BAR}):()=>t.query.all()[0]:e=>t.query.all()[e.value];return{item:{shape:{type:({datum:e})=>{const{type:t,options:n}=s(e);switch(t){case"line":return a;case"marker":return n.marker;default:return"square"}},stroke:{},strokeWidth:({datum:e})=>{const{type:t,options:n}=s(e);return t===Ua.LINE?2:t!==Ua.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==Ua.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function xR({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function SR({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:o,genericObjectModel:i,layoutService:a,picasso:s,seriesModel:l,viewState:c}){let u;const{theme:d,translator:p}=o,m={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return u=k({picasso:s,model:i,app:n,translator:p,layoutService:a,createConfig:()=>{const e=a.getHyperCubeValue("qMeasureInfo").map((e=>e.color));return{theme:d,colorProps:{measureOverrides:e},legendProps:a.getLayoutValue("legend"),hc:a.getHyperCube(),key:_a.SCALE.COLOR}},config:{auto:xR,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>m.wrappedScales,legendComponents:()=>m.legendComponents,legendInteractions:()=>m.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:i}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:o,colorService:i,actions:a}){const{options:s}=o,l={eventName:"legend-c",key:_a.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",rtl:"rtl"===s.direction,settings:bR({layoutService:n,seriesModel:r,colorService:i})},{components:c,interactions:u}=i.getLegend(l,{actions:a,navigationDisabled:!a.interact.enabled()}),d=i.getScales();return{components:c.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=d[_a.SCALE.COLOR+"Range"];return!r||"right"!==n&&"left"!==n||(r.invert=!0),"legend-cat"===e.type&&(e.settings.item.shape.fill.scale=e.scale,e.settings.item.shape.stroke.scale=e.scale),e})),interactions:u,scales:d}}({viewState:c,chart:r,environment:o,colorService:u,seriesModel:l,layoutService:a,actions:e});m.wrappedScales=i,m.legendComponents=t,m.legendInteractions=n}}}),u}const ER="REJECTED",MR=()=>{},CR=1e4,wR=2,kR=20,NR=200,TR=10;var OR={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-TR<=t.qTop,o=n.qLeft+n.qWidth+TR>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+TR>=t.qTop+t.qHeight,a=n.qLeft-TR<=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 RR={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-TR<=t.qTop,o=n.qTop+n.qHeight+TR>=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 AR={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 LR="pages";const IR="discretePan";function PR({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:IR,pointers:1,threshold:10,enable(r,o){return this.started===IR||!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=IR;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 DR({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 qR({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{gestures:[PR({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:DR({chart:e,actions:t,componentKey:n,scroller:i})}}}}function zR({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(CR/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(NR,n));return{width:e,height:Math.max(kR,Math.min(n*wR,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 BR(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(ER),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(ER),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(ER),n=null)},o}const $R={command:{update:()=>{}}};var FR={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 HR={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 jR(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function VR(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 WR(e){return VR(e.qMatrix,(e=>e[0].qElemNumber))-1}var _R={inTotal:function({layoutService:e}){const t=jR(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=jR(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=jR(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=WR(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 UR=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function YR(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return UR(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:UR(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return UR(e,n);return VR(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var GR={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=YR(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=YR(t).area(e(),l,a.qArea),d=WR(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 KR({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 XR={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}};function JR({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:r,defaultValue:o,index:i})=>{const a=n&&Object.hasOwnProperty.call(n,r)?n[r]:o;if(void 0===i)return a;const{style:s}=e.getHyperCubeValue((e=>`qMeasureInfo.${e}.styling`)(i),[]).filter((e=>e.key===t))[0]||{};return s&&Object.hasOwnProperty.call(s,r)?s[r]:a}}function ZR({dataset:e,data:t,valueData:n}){var r;const{source:o,label:i,value:a}=n,s=e(o.key).field(o.field);return s.raw().isCustomFormatted?i:"-"===i||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a)}function QR({chart:e,actions:t,translator:n,rtl:r,dockService:o,seriesModel:i,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,p=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:m}=_a.COMPONENT,{PRIMARY:f,SECONDARY:h}=Ya,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:o,SLICED_HAT:i}=_a.COMPONENT,{PRIMARY:a,SECONDARY:s}=Ya,{orientation:l}=e.meta.chart,c="vertical"===l,u=[...t.meta.barComponentKeys,...t.meta.markerComponentKeys,...t.meta.pointComponentKeys];return[({chart:e,hovered:t,meta:l})=>{const[d]=t,{triggerer:p}=l,m=p===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${i}-max-${a}`||e.key===`${i}-max-${s}`)&&e.data&&e.data.value===m&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const f=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===o+"-max")&&e.data.major.value===m));if(c&&f)return{key:f.key,bounds:f.bounds};const h=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===o+"-min")&&e.data.major.value===m)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===m));if(c&&h&&!g.find((e=>e.data.end.source.field!==h.data.end.source.field)))return{key:h.key,bounds:h.bounds};const v=f||h;return!(c||!v||g.find((e=>e.data.end.source.field!==v.data.end.source.field)))&&{key:v.key,bounds:v.bounds}},"collectible"]}({dockService:o,seriesModel:i});return N({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:_a.COMPONENT.TOOLTIP,getGroupByValue:d,collectibles:[...i.meta.barComponentKeys.map((e=>({key:e,type:"bar",major:d}))),...i.meta.pointComponentKeys.map((e=>({key:e,type:"point",major:d}))),...i.meta.markers.map((e=>({key:e.key,type:e.type,major:d})))],triggers:[{keys:[_a.COMPONENT.AXIS.MAJOR],collect:{from:"dimension",by:({data:e})=>e.value,filter:p},placement:g},{keys:[...i.meta.barComponentKeys,...i.meta.markerComponentKeys,`${m}-max-${f}`,`${m}-max-${h}`,`${m}-min-${f}`,`${m}-min-${h}`,`${_a.COMPONENT.BAR_OOB}-max-${f}`,`${_a.COMPONENT.BAR_OOB}-max-${h}`,`${_a.COMPONENT.BAR_OOB}-min-${f}`,`${_a.COMPONENT.BAR_OOB}-min-${h}`,_a.COMPONENT.DATA_OOB_MARKER+"-max",_a.COMPONENT.DATA_OOB_MARKER+"-min"],collect:{from:"dimension",by:d,filter:p},placement:g},{keys:[...i.meta.pointComponentKeys],distance:3,collect:{from:"dimension",by:d,filter:p},placement:g}],section:({h:e,nodes:t,dataset:n,create:r,util:o})=>{const[i]=t,{title:a,description:s,measures:l}=c.isEnabled()?c.getAttributes({dataset:n,nodes:[i]}):{},u=[];a&&u.push(r.text({value:a,style:{bold:!0}})),s&&u.push(r.text({value:s}));const d=c.hideBasic();d&&!l.length&&(a||s)||u.push(r.text({value:i.data.label,style:{bold:!0}})),d||(u.push(r.color({nodes:t,property:_a.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:i}=e.data,a=t||i,{key:s,field:l}=a.source;return r.measure({label:o.dataset.title(s,l),value:ZR({dataset:n,data:e.data,valueData:a})})})))),l&&u.push(...l.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),c.chart.isEnabled()&&(c.chart.hasLimitation()?(c.chart.destroy(),u.push(r.raw({value:c.chart.createLimitationRow()}))):u.push(r.raw({value:c.chart.createContainer({h:e})})));const{customTooltipImages:p}=i.data;return c.isEnabled()&&p&&u.push(...p.map((t=>r.raw({value:c.createImageRow({value:t,h:e})})))),u},layout:{grouping:!0,single:()=>!(!c.isEnabled()||!c.hasImages())||c.chart.isEnabled()},events:{tooltip:{beforeShow:({collectNodes:e})=>c.isEnabled()&&c.hasImages()?c.addImages({nodes:e()}):Promise.resolve(),afterShow:({nodes:e})=>{c.chart.isEnabled()&&!c.chart.hasLimitation()&&c.chart.show({nodes:e,properties:l.query.getProperties()})}},interaction:{mouseleave:()=>{c.chart.isEnabled()&&c.chart.hasAlternateState()&&c.chart.hide()}}}},legend:{keys:{tooltip:_a.COMPONENT.LEGEND_TOOLTIP,component:_a.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:eA}=Pd;const tA={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};const nA={query:{getCanScroll:()=>!0}};function rA({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function oA({setSelectionInfo:e,event:t,components:n,clear:r}){const o=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:o,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&o[0]===_a.COMPONENT.LEGEND_CATEGORICAL}),r()}function iA({chart:e,actions:t}){const o=b(),i=a(),[s,l]=n();return r((()=>{if(null==e||!e.update||!e.scale||!o)return null;const n=e.scale(_a.SCALE.MAJOR),r=I({chart:e,actions:t,selections:o,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:n,selectionActions:{clear:rA},selectionEvents:{start:oA}}});r.setLayout(i);const{destroy:a}=r;return l(r),()=>{a()}}),[o,null==e?void 0:e.update,null==e?void 0:e.scale]),r((()=>{null!=s&&s.setLayout&&i&&s.setLayout(i)}),[i]),s}const aA={version:"1.19.1",qHyperCubeDef:{qAlwaysFullyExpanded:!0,qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},showTitles:!0,subtitle:"",title:"",footnote:"",barGrouping:{grouping:"grouped"},orientation:"vertical",scrollStartPos:0,nullMode:"gap",dataPoint:{show:!1,showLineLabels:!1,showBarLabels:!1},color:{auto:!0,mode:"primary",useBaseColors:"off",paletteColor:{index:6},useDimColVal:!0,useMeasureGradient:!0,persistent:!1,expressionIsColor:!0,expressionLabel:"",measureScheme:"sg",reverseScheme:!1,dimensionScheme:"12",autoMinMax:!0,measureMin:0,measureMax:10},legend:{dock:"auto",show:!0,showTitle:!0},components:[],dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},measureAxes:[{show:"all",dock:"near",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10},{show:"all",dock:"far",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10}],refLine:{refLines:[],refLines2:[],dimRefLines:[]},preferContinuousAxis:!0,showMiniChartForContinuousAxis:!0,tooltip:{auto:!0,hideBasic:!1,title:"",description:"",chart:void 0,imageComponents:void 0}};var sA=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let o;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)o=su(n[e].qDef.series),o===Ua.BAR?r[0]=1:o===Ua.LINE?r[1]=1:r[2]=1;const i=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(i)},lA=e=>(t,n)=>{let r;const o=t.qHyperCubeDef.qMeasures[n];if(o){const{type:e}=o.qDef.series;r=e===Ua.LINE?"Visualizations.Descriptions.HeightLine":e===Ua.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function cA(e){var t,n;const r=e.qHyperCubeDef.qMeasures,o=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===o&&1===r.length&&su(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===Ua.LINE?e.color.mode="primary":"byDimension"===o&&r.length>1&&(e.color.mode="byMultiple")}function uA(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:sA(t)},measures:{min:1,max:15,description:lA(t),added({qDef:e},t){var n;cA(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:Ua.LINE,axis:Ya.SECONDARY}:e.series={type:Ua.BAR,axis:Ya.PRIMARY})},moved(e,t){cA(t)}}}}function dA(e){const t=uA(e);return{properties:aA,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const o=V.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),i="linechart"===e.properties.visualization,a=[];o.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:i?"line":"bar",axis:0,marker:"circle",markerFill:!0}),a.indexOf(e.qDef.series.axis)<0&&a.push(e.qDef.series.axis)}));const s=a.sort().shift();return o.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&Z(!0,o.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),o},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>V.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}function pA(e){if(null!=e&&e.isEnabled("SENSECLIENT_IM_311_STYLINGPANEL_COMBOCHART"))return{component:"styling-panel",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barSection:{translation:"Visualizations.Descriptions.Bars",component:"accordion",items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue:.7,schemaIgnore:!0}}}}}}},lineSection:{translation:"Visualizations.Descriptions.Lines",component:"accordion",items:{dataPointSection:{translation:"LayerStyleEditor.style.dataPointSize",component:"panel-section",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{translation:"Line options",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"Thickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"Type",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"Curve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}};const t={component:"dropdown",type:"string",expression:"optional",baseRef:"style.strokeWidth",translation:"LayerStyleEditor.style.strokeWidth",show:!0,defaultValue:"none",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"}]},n={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:e=>"none"!==E(e,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(e,"bar")}.${t.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},r={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},o={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},i={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineType",translation:"LayerStyleEditor.style.lineType",show:!0,defaultValue:"solid",options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}]},a={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",show:!0,defaultValue:"linear",options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}]};return{component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:["bar","line"],ref:"components",defaultValue:[],defaultValues(e){const s="grouped"===e.barGrouping.grouping,l=e.qHyperCubeDef.qMeasures.filter((e=>su(e.qDef.series)===Ua.BAR)).length,c=s&&l>1;return[{key:"bar",style:{strokeWidth:t.defaultValue,strokeColor:n.defaultValue(),width:c?.9:.7}},{key:"line",style:{dataPointSize:r.defaultValue,lineThickness:o.defaultValue,lineType:i.defaultValue,lineCurve:a.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:t,barStrokeColor:n,barWidth:{component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>su(e.qDef.series)===Ua.LINE));return!pe.continuous(n.layout,r&&se.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01}}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:r,lineThickness:o,lineType:i,lineCurve:a}}}}}}}const mA={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barsSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barsHeader:{component:"header",translation:"Visualizations.Descriptions.Bars"},outlineSection:{component:"items",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891"},width:"auto",component:"color-picker"}}}}},widthSection:{component:"items",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:.7}}}}}}}}},linesSection:{component:"items",items:{wrapperItem:{component:"items",items:{linesHeader:{component:"header",translation:"Visualizations.Descriptions.Lines"},dataPointSection:{component:"items",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"LayerStyleEditor.style.lineType",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}},optionsSection:{component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollStartPos:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1}}}}}}};function fA(e){const t=E(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=Ga})=>su(e)===Ua.LINE));return pe.continuous(e,(()=>t&&se.isTime(!0,e)))}function hA(e){var t,n;return!(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n||!n.on)}function gA(e){var t,n,r;return hA(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(r=n.color)||void 0===r?void 0:r.mode)&&void 0!==t?t:"primary")}function vA(e){var t,n;return hA(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.mode)}function yA(e){var t,n,r,o,i;if(null!=e&&null!==(t=e.color)&&void 0!==t&&t.auto||"byExpression"!==(null==e||null===(n=e.color)||void 0===n?void 0:n.mode))return[];const a=null==e||null===(r=e.color)||void 0===r?void 0:r.colorExpression,s=null!==(o=null==e||null===(i=e.color)||void 0===i?void 0:i.expressionLabel)&&void 0!==o?o:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function bA(e){return vA(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function xA(e){var t,n;(null!==(t=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qMeasures)&&void 0!==t?t:[]).forEach(((t,n)=>function(e,t,n){e.qAttributeExpressions=0===t?[...yA(n),...bA(e)]:bA(e)}(t,n,e)))}function SA(e){var t,n;const r={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||fA(e)?"stacked":"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.bar",value:"bar"},{icon:"line_chart_line",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.line",value:"line"},{icon:"shapes",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.marker",value:"marker"}]},o={ref:"qDef.series.marker",type:"string",component:"dropdown",defaultValue:"circle",options:[{translation:"properties.marker.circle",value:"circle"},{translation:"properties.marker.rect",value:"rect"},{translation:"properties.marker.diamond",value:"diamond"},{translation:"properties.marker.triangle",value:"triangle"},{translation:"properties.marker.line",value:"line"}],show(e){var t;return su(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ua.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return su(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ua.MARKER&&!["line"].includes(e.qDef.series.marker)}},a={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>hA(...e)},s=null===(t=e.anything)||void 0===t||null===(n=t.sense)||void 0===n?void 0:n.theme;return{items:{series:{type:"items",items:{supPanel:{translation:"properties.measure.moreProperties",title:"properties.measure.moreProperties",subTitle:(e,t,n)=>{var r;return null===(r=n.measureTitle)||void 0===r?void 0:r.call(n)},component:"sub-panel",type:"items",items:{groups:{type:"items",component:"expandable-items",items:{presentation:{type:"items",translation:"properties.presentation",items:{seriesType:r,seriesAxis:{ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}]},seriesMarker:o,seriesMarkerFill:i}},color:{type:"items",translation:"properties.color",items:{customColor:{ref:"qDef.color.on",translation:"properties.colors",type:"boolean",component:"switch",defaultValue:!1,trueOption:{value:!1,translation:"Common.Auto"},falseOption:{value:!0,translation:"Common.Custom"}},colorMode:a,paletteColor:{ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=s.getDataColorSpecials(),n=null===(e=s.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,r=n.indexOf(t);return{index:-1===r?Math.min(6,n.length-1):r}},show:gA},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:vA}}}}}}}}}}}}const EA=!0;function MA(e,t,n){let r;const o=n||0;var i,a;t?r=t.getMeasureLayouts():r=null!==(i=null==e||null===(a=e.qHyperCubeDef)||void 0===a?void 0:a.qMeasures)&&void 0!==i?i:[];return r.filter((e=>{const{series:t}=e||{};return 0===o?MN(t,EA):!MN(t,EA)}))}function CA(e,t){return t.getMeasures().filter((e=>su(e.qDef.series)===Ua.LINE)).length>0}function wA(e,t,n){const r=t.getMeasures().filter((e=>su(e.qDef.series)===Ua.BAR));return r.filter((e=>e.qDef.series.axis!==Ya.SECONDARY)).length>n||r.filter((e=>e.qDef.series.axis===Ya.SECONDARY)).length>n}const kA=(e,t,n,r)=>{const o="vertical"===t.layout.orientation||fA(t.layout)?"y":"x",i=MA(e,t,r).map((e=>e.qFallbackTitle));let a;return a=i.length?n.get(`properties.${o}AxisWithInfo`,[i.join(",")]):n.get(`properties.${o}Axis`),a};function NA(e){var t,n,r;const{translator:o,flags:i,anything:a}=e,s=null==e||null===(t=e.anything)||void 0===t||null===(n=t.sense)||void 0===n||null===(r=n.isUnsupportedFeature)||void 0===r?void 0:r.call(n,"continuousData"),l={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>xA(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>hA(e)))}}},c=e=>!!e&&(e.coloring&&e.coloring.baseColor&&e.coloring.baseColor.color?e.coloring.baseColor:!(!e.baseColor||!e.baseColor.color)&&e.baseColor);const u=(e,t)=>!E(e,"color.auto")&&"primary"===E(e,"color.mode")&&!((e=>E(e,"layout.qHyperCube.qMeasureInfo",[]).filter((e=>!!c(e))).length>0)(t)&&"measure"===E(e,"color.useBaseColors")||function(e){return E(e,"layout.qHyperCube.qDimensionInfo",[]).filter((e=>!!c(e))).length>0}(t)&&"dimension"===E(e,"color.useBaseColors")),d=(e,t)=>{var n,r;return e.qHyperCubeDef.qMeasures.some((e=>hA(e)))||!i.isEnabled("SIMPLE_PROPERTIES_LIBRARY_COLOR")&&!(null!=e&&null!==(n=e.color)&&void 0!==n&&n.auto||"primary"!==(null==e||null===(r=e.color)||void 0===r?void 0:r.mode)||u(e,t))},p={items:{disclaimer:{show:(e,t)=>d(e,t),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;E(t=e,"qDef.color.on",void 0)&&P(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!d(e,t)}}},m={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},barLabels:{component:"checkbox",ref:"dataPoint.showBarLabels",type:"boolean",translation:"Simple.Label.Bar",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&wA(0,t,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&CA(0,t),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,o){o.dataPoint.showLineLabels=e,o.dataPoint.show=e}},reset(e){P(e,"dataPoint.show",!1),P(e,"dataPoint.showLineLabels",!1)}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,o){o.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t)=>o.get(MA(e,t,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&MA(e,t,0).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[0].show||"none"===r.measureAxes[0].show,set(e,t,n,r,o){o.measureAxes[0].show=e?"labels":"all"}}},secondaryMeasureTitle:{component:"checkbox",ref:"measureAxes.1.show",type:"string",translation:"Simple.Label.SecondaryMeasure.Hide",defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&MA(e,t,1).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[1].show||"none"===r.measureAxes[1].show,set(e,t,n,r,o){o.measureAxes[1].show=e?"labels":"all"}}}}}}},f={uses:"settings",items:{simpleStyling:null!=i&&i.isEnabled("COMBOCHART_SIMPLE_STYLING")?mA:void 0,simpleLabels:m,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:pA(i),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t,n)=>wA(0,t,1)&&!fA(n.layout)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>fA(n.layout),convertFunctions:(h="vertical",{get:(e,t,n)=>fA(n.layout)?h:e(t.type),set(e,t,n,r){t(n.type,fA(r.layout)?h:e,h)}})},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!fA(n.layout)},nullMode:{type:"string",component:"dropdown",ref:"nullMode",translation:"properties.nullMode",options:[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],defaultValue:"gap",show:(e,t)=>CA(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>CA(0,t),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t)=>wA(0,t,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:l,simpleColors:p,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||fA(t.layout)?"x":"y",r=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,t).map((e=>e.qFallbackTitle||"")).join(", ");let i;return i=r?o.get(`properties.${n}AxisWithInfo`,[r]):o.get(`properties.${n}Axis`),i},items:{othersGroup:{items:{dock:{options(e,t){let n="Common.Bottom",r="Common.Top";return"vertical"===t.layout.orientation||fA(t.layout)||(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!fA(n.layout),items:{axisDisplayMode:{type:"string",translation:"properties.axis.displaymode",ref:"dimensionAxis.axisDisplayMode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{type:"integer",translation:"properties.axis.maxvisiblevalues",ref:"dimensionAxis.maxVisibleItems",expression:"optional",defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode,invalid(e){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;return r<0||r>1e4/(t.length+n.length)},globalChange(e){if("custom"===e.dimensionAxis.axisDisplayMode){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;r<1?e.dimensionAxis.maxVisibleItems=10:r>1e4/(t.length+n.length)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(t.length+n.length))))}}},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint.combochart",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}}},continuousGroup:{show:!s}},measureAxis:{uses:"axis.measureAxis",label:(e,t)=>kA(e,t,o,0),show:(e,t)=>MA(e,t,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>kA(e,t,o,0),show:(e,t)=>MA(e,t,0).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&MN(null==e?void 0:e.series,EA)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t)=>"none"!==e.measureAxes[0].show&&MA(e,t,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||fA(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.0.spacing",show:(e,t)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&MA(e,t,0).length>0}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>MA(e,t,0).length>0,readOnly:e=>!(e.measureAxes[0].autoMinMax||"min"===e.measureAxes[0].minMax&&0===e.measureAxes[0].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:o,minMax:i,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===o?"lowest":o||"min"!==i||0!==a?e(t.type):"zero"},set(e,t,n,r,o){"zero"===e?(P(o,"measureAxes.0.autoMinMax",!1),P(o,"measureAxes.0.minMax","min"),P(o,"measureAxes.0.min",0)):P(o,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t)=>kA(e,t,o,1),show:(e,t)=>MA(e,t,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>kA(e,t,o,1),show:(e,t)=>MA(e,t,1).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!MN(null==e?void 0:e.series,EA)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t)=>"none"!==e.measureAxes[1].show&&MA(e,t,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||fA(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.1.spacing",show:(e,t)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&MA(e,t,1).length>0}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>MA(e,t,1).length>0,readOnly:e=>!(e.measureAxes[1].autoMinMax||"min"===e.measureAxes[1].minMax&&0===e.measureAxes[1].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:o,minMax:i,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===o?"lowest":o||"min"!==i||0!==a?e(t.type):"zero"},set(e,t,n,r,o){"zero"===e?(P(o,"measureAxes.1.autoMinMax",!1),P(o,"measureAxes.1.minMax","min"),P(o,"measureAxes.1.min",0)):P(o,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var h;i.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(f.items.dimensionAxis.items.othersGroup.items.label={options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]});return{type:"items",component:"accordion",items:{data:{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,n){var r,o;if(null!=a&&null!==(r=a.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"includeZeroValues"))return!1;return!fA(n.layout)}}}},measures:SA(e)}},sorting:{uses:"sortingWithDisclaimer"},addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},primaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines",translation:"properties.primaryMeasureAxisReferenceLines",title:{translation:"properties.primaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>MN(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,EA)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!MN(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,EA)},dimRefLines:{uses:"dimReflines"}}},settings:f}}}function TA(e){return e.qHyperCubeDef.qMeasures.filter((e=>su(e.qDef.series)===Ua.LINE)).length>0}function OA(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer"},presentation:{uses:"presentation",type:"items",translation:"properties.presentation",grouped:!0,show:(e,t)=>TA(e)||!fA(t),items:{grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){var n;return function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>su(e.qDef.series)===Ua.BAR));return t?n.filter((e=>e.qDef.series.axis===Ya.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===Ya.SECONDARY)).length>1:n.length>1}(e,!JO(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!fA(t)}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!fA(t)},nullMode:{type:"string",component:"radio-list",ref:"nullMode",translation:"properties.nullMode",options:()=>[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],show:e=>TA(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>TA(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>hA(e)))}}}}}}const RA={bar:{axis:0,icon:"bar-chart",tid:"as-bar",translation:"contextMenu.asBar"},line:{axis:1,icon:"line-chart",tid:"as-line",translation:"contextMenu.asLine"},marker:{axis:1,icon:"shapes",tid:"as-marker",translation:"contextMenu.asMarker"}};function AA(e,t,n,r,o){const{axis:i,icon:a,tid:s,translation:l}=RA[o];t.addItem({icon:a,tid:s,translation:l,async select(){let t;t="measure"===e.type?await r.addLibraryMeasure(e.id):await r.addExpressionMeasure(e.name,""),t.qDef.series.type=o,t.qDef.series.axis=i,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path","data."+t.qDef.cId)}})}function LA(e,t,n,r,o){!function(e,t,n){const{item:r}=e,o=["contextMenu.add",r.name];if(n.canAddMeasure()){const i=e.menu.addItem({translation:o,tid:"add-as"});AA(r,i,t,n,"bar"),AA(r,i,t,n,"line"),AA(r,i,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,o),e.ColorBy(n,t,o),r()}function IA(e){const t={},{tooltip:n}=e;if(n){var r,o;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(o=r.object)||void 0===o?void 0:o.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const PA=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function DA(e){return{definition:NA(e),softDefinition:OA(),support:{snapshot:PA,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:LA,extendMetrics:IA,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:uA(e),defaultPropertyValues:a,hypercubePath:o,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,o=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),o.indexOf(e.qDef.series.axis)<0&&o.push(e.qDef.series.axis)}));const i=o.sort().shift();e.qProperty.measureAxes[i]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&Z(!0,e.qProperty.measureAxes[i],n.properties.measureAxis,{logarithmic:!1}),xA(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return V.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:function(e){return JO(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=Ga),void 0===t.series.type&&(t.series.type=Ga.type),void 0===t.series.axis&&(t.series.axis=t.series.type===Ua.BAR?Ya.PRIMARY:Ya.SECONDARY),t.series.type===Ua.BAR&&t.series.axis===Ya.SECONDARY&&(t.series.axis=Ya.PRIMARY)})),e.version=XO),e}(e)}}}}}}));
|
|
47
|
+
*/var CE=EE&&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()}),ME))}};function wE(e){return e&&"[object Function]"==={}.toString.call(e)}function kE(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function NE(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function TE(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=kE(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:TE(NE(e))}function OE(e){return e&&e.referenceNode?e.referenceNode:e}var RE=EE&&!(!window.MSInputMethodContext||!document.documentMode),AE=EE&&/MSIE 10/.test(navigator.userAgent);function LE(e){return 11===e?RE:10===e?AE:RE||AE}function IE(e){if(!e)return document.documentElement;for(var t=LE(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"===kE(n,"position")?IE(n):n:e?e.ownerDocument.documentElement:document.documentElement}function PE(e){return null!==e.parentNode?PE(e.parentNode):e}function DE(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&&IE(a.firstElementChild)!==a?IE(l):l;var c=PE(e);return c.host?DE(c.host,t):DE(e,PE(t).host)}function qE(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 zE(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=qE(t,"top"),o=qE(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 BE(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 $E(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],LE(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function FE(e){var t=e.body,n=e.documentElement,r=LE(10)&&getComputedStyle(n);return{height:$E("Height",t,n,r),width:$E("Width",t,n,r)}}var HE=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},jE=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}}(),VE=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},WE=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 _E(e){return WE({},e,{right:e.left+e.width,bottom:e.top+e.height})}function UE(e){var t={};try{if(LE(10)){t=e.getBoundingClientRect();var n=qE(e,"top"),r=qE(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?FE(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=kE(e);l-=BE(u,"x"),c-=BE(u,"y"),o.width-=l,o.height-=c}return _E(o)}function YE(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=LE(10),o="HTML"===t.nodeName,i=UE(e),a=UE(t),s=TE(e),l=kE(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=_E({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=zE(d,t)),d}function GE(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=YE(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:qE(n),s=t?0:qE(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return _E(l)}function KE(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===kE(e,"position"))return!0;var n=NE(e);return!!n&&KE(n)}function XE(e){if(!e||!e.parentElement||LE())return document.documentElement;for(var t=e.parentElement;t&&"none"===kE(t,"transform");)t=t.parentElement;return t||document.documentElement}function JE(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?XE(e):DE(e,OE(t));if("viewport"===r)i=GE(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=TE(NE(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=YE(s,a,o);if("HTML"!==s.nodeName||KE(a))i=l;else{var c=FE(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 ZE(e){return e.width*e.height}function QE(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=JE(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 WE({key:e},s[e],{area:ZE(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 eM(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?XE(t):DE(t,OE(n));return YE(n,o,r)}function tM(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 nM(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 rM(e,t,n){n=n.split("-")[0];var r=tM(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[nM(s)],o}function oM(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function iM(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=oM(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&&wE(n)&&(t.offsets.popper=_E(t.offsets.popper),t.offsets.reference=_E(t.offsets.reference),t=n(t,e))})),t}function aM(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=eM(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=QE(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=rM(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=iM(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function sM(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function lM(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 cM(){return this.state.isDestroyed=!0,sM(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[lM("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function uM(e){var t=e.ownerDocument;return t?t.defaultView:window}function dM(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||dM(TE(i.parentNode),t,n,r),r.push(i)}function pM(e,t,n,r){n.updateBound=r,uM(e).addEventListener("resize",n.updateBound,{passive:!0});var o=TE(e);return dM(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function mM(){this.state.eventsEnabled||(this.state=pM(this.reference,this.options,this.state,this.scheduleUpdate))}function fM(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,uM(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 hM(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function gM(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&hM(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var vM=EE&&/Firefox/i.test(navigator.userAgent);function yM(e,t,n){var r=oM(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 bM=["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"],xM=bM.slice(3);function SM(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=xM.indexOf(e),r=xM.slice(n+1).concat(xM.slice(0,n));return t?r.reverse():r}var EM="flip",MM="clockwise",CM="counterclockwise";function wM(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(oM(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 _E(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){hM(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var kM={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:VE({},l,i[l]),end:VE({},l,i[l]+i[c]-a[c])};e.offsets.popper=WE({},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=hM(+n)?[+n,0]:wM(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||IE(e.instance.popper);e.instance.reference===n&&(n=IE(n));var r=lM("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=JE(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])),VE({},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))),VE({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=WE({},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(!yM(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=tM(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=_E(e.offsets.popper);var h=s[d]+s[c]/2-f/2,g=kE(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=(VE(n={},d,Math.round(b)),VE(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(sM(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=JE(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=nM(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case EM:a=[r,o];break;case MM:a=SM(r);break;case CM:a=SM(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=nM(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=WE({},e.offsets.popper,rM(e.instance.popper,e.offsets.reference,e.placement)),e=iM(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=nM(t),e.offsets.popper=_E(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!yM(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=oM(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=oM(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=IE(e.instance.popper),l=UE(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||!vM),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",m=lM("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=WE({},y,e.attributes),e.styles=WE({},c,e.styles),e.arrowStyles=WE({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return gM(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&&gM(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=eM(o,t,e,n.positionFixed),a=QE(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),gM(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},NM=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};HE(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=CE(this.update.bind(this)),this.options=WE({},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(WE({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=WE({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return WE({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&wE(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 jE(e,[{key:"update",value:function(){return aM.call(this)}},{key:"destroy",value:function(){return cM.call(this)}},{key:"enableEventListeners",value:function(){return mM.call(this)}},{key:"disableEventListeners",value:function(){return fM.call(this)}}]),e}();function TM(e){return"function"==typeof e?e():e}NM.Utils=("undefined"!=typeof window?window:global).PopperUtils,NM.placements=bM,NM.Defaults=kM;var OM="undefined"!=typeof window?B.useLayoutEffect:B.useEffect,RM={},AM=B.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,o=e.container,i=e.disablePortal,a=void 0!==i&&i,s=e.keepMounted,l=void 0!==s&&s,c=e.modifiers,u=e.open,d=e.placement,p=void 0===d?"bottom":d,m=e.popperOptions,f=void 0===m?RM:m,h=e.popperRef,g=e.transition,v=void 0!==g&&g,y=Ip(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition"]),b=B.useRef(null),x=Yv(b,t),S=B.useRef(null),E=Yv(S,h),M=B.useRef(E);OM((function(){M.current=E}),[E]),B.useImperativeHandle(h,(function(){return S.current}),[]);var C=B.useState(!0),w=C[0],k=C[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}}(p),T=B.useState(N),O=T[0],R=T[1],A=B.useCallback((function(){if(b.current&&n&&u){S.current&&(S.current.destroy(),M.current(null));var e=function(e){R(e.placement)};TM(n);var t=new NM(TM(n),b.current,Lp({placement:N},f,{modifiers:Lp({},a?{}:{preventOverflow:{boundariesElement:"window"}},{},c,{},f.modifiers),onCreate:ex(e,f.onCreate),onUpdate:ex(e,f.onUpdate)}));M.current(t)}}),[n,a,c,u,N,f]),L=B.useCallback((function(e){Uv(x,e),A()}),[x,A]),I=function(){S.current&&(S.current.destroy(),M.current(null))};if(B.useEffect((function(){A()}),[A]),B.useEffect((function(){return function(){I()}}),[]),B.useEffect((function(){u||v||I()}),[u,v]),!l&&!u&&(!v||w))return null;var P={placement:O};return v&&(P.TransitionProps={in:u,onEnter:function(){k(!1)},onExited:function(){k(!0),I()}}),B.createElement(Qb,{disablePortal:a,container:o},B.createElement("div",Lp({ref:L,role:"tooltip"},y,{style:Lp({position:"fixed",top:0,left:0},y.style)}),"function"==typeof r?r(P):r))})),LM=pb(B.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"})),IM=pb(B.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"})),PM=B.createElement(LM,null);var DM=lv((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 B.createElement("div",{className:Vg(n.root,t&&n.checked)},PM,B.createElement(IM,{className:n.layer}))})),qM=B.createContext(),zM=B.createElement(DM,{checked:!0}),BM=B.createElement(DM,null),$M=B.forwardRef((function(e,t){var n=e.checked,r=e.classes,o=e.color,i=void 0===o?"secondary":o,a=e.name,s=e.onChange,l=Ip(e,["checked","classes","color","name","onChange"]),c=B.useContext(qM),u=n,d=ex(s,c&&c.onChange),p=a;return c&&(void 0===u&&(u=c.value===e.value),void 0===p&&(p=c.name)),B.createElement(Ib,Lp({color:i,type:"radio",icon:BM,checkedIcon:zM,classes:{root:Vg(r.root,r["color".concat(cv(i))]),checked:r.checked,disabled:r.disabled},name:p,checked:u,onChange:d,ref:t},l))}));function FM(e){return(FM="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 HM(e){return(HM="function"==typeof Symbol&&"symbol"===FM(Symbol.iterator)?function(e){return FM(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":FM(e)})(e)}function jM(e,t){return"object"===HM(t)&&null!==t?e===t:String(e)===String(t)}lv((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Tp(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:Tp(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})($M),B.forwardRef((function(e,t){var n=e.actions,r=e.children,o=e.name,i=e.value,a=e.onChange,s=Ip(e,["actions","children","name","value","onChange"]),l=B.useRef(null),c=B.useRef(null!=i).current,u=B.useState((function(){return c?null:e.defaultValue})),d=u[0],p=u[1];B.useImperativeHandle(n,(function(){return{focus:function(){var e=l.current.querySelector("input:not(:disabled):checked");e||(e=l.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var m={name:o,onChange:function(e){c||p(e.target.value),a&&a(e,e.target.value)},value:c?i:d},f=Yv(t,l);return B.createElement(oS,Lp({role:"radiogroup",ref:f},s),B.createElement(qM.Provider,{value:m},r))})),B.Component;var VM=B.forwardRef((function(e,t){var n=e.autoFocus,r=e.autoWidth,o=e.children,i=e.classes,a=e.className,s=e.defaultValue,l=e.disabled,c=e.displayEmpty,u=e.labelId,d=e.IconComponent,p=e.inputRef,m=e.MenuProps,f=void 0===m?{}:m,h=e.multiple,g=e.name,v=e.onBlur,y=e.onChange,b=e.onClose,x=e.onFocus,S=e.onOpen,E=e.open,M=e.readOnly,C=e.renderValue;e.required;var w=e.SelectDisplayProps,k=void 0===w?{}:w,N=e.tabIndex;e.type;var T=e.value,O=e.variant,R=void 0===O?"standard":O,A=Ip(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"]),L=B.useRef(null!=T).current,I=B.useState(s),P=I[0],D=I[1],q=L?T:P,z=B.useRef(null),$=B.useState(null),F=$[0],H=$[1],j=B.useRef(null!=E).current,V=B.useState(),W=V[0],_=V[1],U=B.useState(!1),Y=U[0],G=U[1],K=Yv(t,p);B.useImperativeHandle(K,(function(){return{focus:function(){F.focus()},node:z.current,value:q}}),[F,q]),B.useEffect((function(){n&&F&&F.focus()}),[n,F]);var X,J,Z=function(e,t){e?S&&S(t):(F.focus(),b&&b(t)),j||(_(r?null:F.clientWidth),G(e))},Q=function(e){return function(t){var n;if(h||Z(!1,t),h){n=Array.isArray(q)?gy(q):[];var r=q.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;L||D(n),y&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:g}}),y(t,e))}},ee=null!==F&&(j?E:Y);delete A["aria-invalid"];var te=[],ne=!1;(Yx({value:q})||c)&&(C?X=C(q):ne=!0);var re=B.Children.map(o,(function(e){if(!B.isValidElement(e))return null;var t;if(h){if(!Array.isArray(q))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(t=q.some((function(t){return jM(t,e.props.value)})))&&ne&&te.push(e.props.children)}else(t=jM(q,e.props.value))&&ne&&(J=e.props.children);return B.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=h?te.join(", "):J);var oe,ie=W;!r&&j&&F&&(ie=F.clientWidth),oe=void 0!==N?N:l?null:0;var ae=k.id||(g?"mui-component-select-".concat(g):void 0);return B.createElement(B.Fragment,null,B.createElement("div",Lp({className:Vg(i.root,i.select,i.selectMenu,i[R],a,l&&i.disabled),ref:H,tabIndex:oe,role:"button","aria-expanded":ee?"true":void 0,"aria-labelledby":"".concat(u||""," ").concat(ae||""),"aria-haspopup":"listbox",onKeyDown:function(e){if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Z(!0,e))}},onClick:l||M?null:function(e){Z(!0,e)},onBlur:function(e){!ee&&v&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:g}}),v(e))},onFocus:x},k,{id:ae}),function(e){return null==e||"string"==typeof e&&!e.trim()}(X)?B.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):X),B.createElement("input",Lp({value:Array.isArray(q)?q.join(","):q,name:g,ref:z,type:"hidden",autoFocus:n},A)),B.createElement(d,{className:Vg(i.icon,i["icon".concat(cv(R))],ee&&i.iconOpen)}),B.createElement(cE,Lp({id:"menu-".concat(g||""),anchorEl:F,open:ee,onClose:function(e){Z(!1,e)}},f,{MenuListProps:Lp({"aria-labelledby":u,role:"listbox",disableListWrap:!0},f.MenuListProps),PaperProps:Lp({},f.PaperProps,{style:Lp({minWidth:ie},null!=f.PaperProps?f.PaperProps.style:null)})}),re))})),WM=hE,_M=B.createElement(TS,null),UM=B.createElement(Zx,null),YM=B.forwardRef((function e(t,n){var r=t.autoWidth,o=void 0!==r&&r,i=t.children,a=t.classes,s=t.displayEmpty,l=void 0!==s&&s,c=t.IconComponent,u=void 0===c?fE:c,d=t.id,p=t.input,m=t.inputProps,f=t.labelId,h=t.MenuProps,g=t.multiple,v=void 0!==g&&g,y=t.native,b=void 0!==y&&y,x=t.onClose,S=t.onOpen,E=t.open,M=t.renderValue,C=t.SelectDisplayProps,w=t.variant,k=void 0===w?"standard":w,N=t.labelWidth,T=void 0===N?0:N,O=Ip(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant","labelWidth"]),R=b?mE:VM,A=Hx({props:t,muiFormControl:Ob(),states:["variant"]}).variant||k,L=p||{standard:_M,outlined:B.createElement(SE,{labelWidth:T}),filled:UM}[A];return B.cloneElement(L,Lp({inputComponent:R,select:!0,inputProps:Lp({children:i,IconComponent:u,variant:A,type:void 0,multiple:v},b?{}:{autoWidth:o,displayEmpty:l,labelId:f,MenuProps:h,onClose:x,onOpen:S,open:E,renderValue:M,SelectDisplayProps:Lp({id:d},C)},{},m,{classes:m?Sg({baseClasses:a,newClasses:m.classes,Component:e}):a},p?p.props.inputProps:{}),ref:n},O))}));YM.muiName="Select";var GM=lv(WM,{name:"MuiSelect"})(YM);var KM=lv((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Lp({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,o=e.open,i=e.value,a=e.valueLabelDisplay;return"off"===a?t:B.cloneElement(t,{className:Vg(t.props.className,(o||"on"===a)&&n.open,n.thumb)},B.createElement("span",{className:Vg(n.offset,r)},B.createElement("span",{className:n.circle},B.createElement("span",{className:n.label},i))))}));function XM(e,t){return e-t}function JM(e,t,n){return e<t?t:e>n?n:e}function ZM(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 QM(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 eC(e,t,n){return 100*(e-t)/(n-t)}function tC(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 nC(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=gy(t);return i[o]=r,i}function rC(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 oC={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,"%")}}}},iC=[],aC=function(e){return e},sC=B.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],o=e["aria-valuetext"],i=e.classes,a=e.className,s=e.color,l=void 0===s?"primary":s,c=e.component,u=void 0===c?"span":c,d=e.defaultValue,p=e.disabled,m=void 0!==p&&p,f=e.getAriaLabel,h=e.getAriaValueText,g=e.marks,v=void 0===g?iC:g,y=e.max,b=void 0===y?100:y,x=e.min,S=void 0===x?0:x,E=e.name,M=e.onChange,C=e.onChangeCommitted,w=e.onMouseDown,k=e.orientation,N=void 0===k?"horizontal":k,T=e.step,O=void 0===T?1:T,R=e.ThumbComponent,A=void 0===R?"span":R,L=e.track,I=void 0===L?"normal":L,P=e.value,D=e.ValueLabelComponent,q=void 0===D?KM:D,z=e.valueLabelDisplay,$=void 0===z?"off":z,F=e.valueLabelFormat,H=void 0===F?aC:F,j=Ip(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=sv(),W=B.useRef(null!=P).current,_=B.useRef(),U=B.useState(-1),Y=U[0],G=U[1],K=B.useState(-1),X=K[0],J=K[1],Z=B.useState(d),Q=Z[0],ee=Z[1],te=W?P:Q,ne=Array.isArray(te),re=B.useRef(),oe=ne?gy(te).sort(XM):[te];oe=oe.map((function(e){return JM(e,S,b)}));var ie=!0===v&&null!==O?gy(Array(Math.floor((b-S)/O)+1)).map((function(e,t){return{value:S+O*t}})):v;re.current={source:te};var ae=fy(),se=ae.isFocusVisible,le=ae.onBlurVisible,ce=ae.ref,ue=B.useState(-1),de=ue[0],pe=ue[1],me=B.useRef(),fe=Yv(ce,me),he=Yv(t,fe),ge=ny((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));se(e)&&pe(t),J(t)})),ve=ny((function(){-1!==de&&(pe(-1),le()),J(-1)})),ye=ny((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));J(t)})),be=ny((function(){J(-1)})),xe=ny((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=oe[n],o=(b-S)/10,i=ie.map((function(e){return e.value})),a=i.indexOf(r);switch(e.key){case"Home":t=S;break;case"End":t=b;break;case"PageUp":O&&(t=r+o);break;case"PageDown":O&&(t=r-o);break;case"ArrowRight":case"ArrowUp":t=O?r+O:i[a+1]||i[i.length-1];break;case"ArrowLeft":case"ArrowDown":t=O?r-O:i[a-1]||i[0];break;default:return}if(e.preventDefault(),O&&(t=tC(t,O)),t=JM(t,S,b),ne){var s=t;t=nC({values:oe,source:te,newValue:t,index:n}).sort(XM),rC({sliderRef:me,activeIndex:t.indexOf(s)})}W||ee(t),pe(n),M&&M(e,t),C&&C(e,t)})),Se=B.useRef(),Ee=N;"rtl"===V.direction&&"vertical"!==N&&(Ee+="-reverse");var Me=B.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===Ee.indexOf("vertical")?(d-r.y)/u:(r.x-p)/c,-1!==Ee.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,S,b),O)n=tC(n,O);else{var m=ie.map((function(e){return e.value}));n=m[ZM(m,n)]}n=JM(n,S,b);var f=0;if(ne){var h=n;f=(n=nC({values:a,source:s,newValue:n,index:f=i?Se.current:ZM(a,n)}).sort(XM)).indexOf(h),Se.current=f}return{newValue:n,activeIndex:f}}),[b,S,Ee,ne,O,ie]),Ce=ny((function(e){var t=QM(e,_);if(t){var n=Me({finger:t,move:!0,values:oe,source:te}),r=n.newValue,o=n.activeIndex;rC({sliderRef:me,activeIndex:o,setActive:G}),W||ee(r),M&&M(e,r)}})),we=ny((function(e){var t=QM(e,_);if(t){var n=Me({finger:t,values:oe,source:te}).newValue;G(-1),"touchend"===e.type&&J(-1),C&&C(e,n),_.current=void 0,document.body.removeEventListener("mousemove",Ce),document.body.removeEventListener("mouseup",we),document.body.removeEventListener("mouseenter",ke),document.body.removeEventListener("touchmove",Ce),document.body.removeEventListener("touchend",we)}})),ke=ny((function(e){0===e.buttons&&we(e)})),Ne=ny((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(_.current=t.identifier);var n=QM(e,_),r=Me({finger:n,values:oe,source:te}),o=r.newValue,i=r.activeIndex;rC({sliderRef:me,activeIndex:i,setActive:G}),W||ee(o),M&&M(e,o),document.body.addEventListener("touchmove",Ce),document.body.addEventListener("touchend",we)}));B.useEffect((function(){var e=me.current;return e.addEventListener("touchstart",Ne),function(){e.removeEventListener("touchstart",Ne),document.body.removeEventListener("mousemove",Ce),document.body.removeEventListener("mouseup",we),document.body.removeEventListener("mouseenter",ke),document.body.removeEventListener("touchmove",Ce),document.body.removeEventListener("touchend",we)}}),[ke,we,Ce,Ne]);var Te=ny((function(e){w&&w(e),e.preventDefault();var t=QM(e,_),n=Me({finger:t,values:oe,source:te}),r=n.newValue,o=n.activeIndex;rC({sliderRef:me,activeIndex:o,setActive:G}),W||ee(r),M&&M(e,r),document.body.addEventListener("mousemove",Ce),document.body.addEventListener("mouseenter",ke),document.body.addEventListener("mouseup",we)})),Oe=eC(ne?oe[0]:S,S,b),Re=eC(oe[oe.length-1],S,b)-Oe,Ae=Lp({},oC[Ee].offset(Oe),{},oC[Ee].leap(Re));return B.createElement(u,Lp({ref:he,className:Vg(i.root,i["color".concat(cv(l))],a,m&&i.disabled,ie.length>0&&ie.some((function(e){return e.label}))&&i.marked,!1===I&&i.trackFalse,{vertical:i.vertical}[N],{inverted:i.trackInverted}[I]),onMouseDown:Te},j),B.createElement("span",{className:i.rail}),B.createElement("span",{className:i.track,style:Ae}),B.createElement("input",{value:oe.join(","),name:E,type:"hidden"}),ie.map((function(e){var t,n=eC(e.value,S,b),r=oC[Ee].offset(n);if(!1===I)t=-1!==oe.indexOf(e.value);else{var o=ne?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0];t=o&&"normal"===I||!o&&"inverted"===I}return B.createElement(B.Fragment,{key:e.value},B.createElement("span",{style:r,className:Vg(i.mark,t&&i.markActive)}),B.createElement("span",{"aria-hidden":!0,style:r,className:Vg(i.markLabel,t&&i.markLabelActive)},e.label))})),oe.map((function(e,t){var a=eC(e,S,b),s=oC[Ee].offset(a);return B.createElement(q,{key:t,valueLabelFormat:H,valueLabelDisplay:$,className:i.valueLabel,value:"function"==typeof H?H(e,t):H,index:t,open:X===t||Y===t||"on"===$,disabled:m},B.createElement(A,{className:Vg(i.thumb,i["thumbColor".concat(cv(l))],Y===t&&i.active,m&&i.disabled,de===t&&i.focusVisible),tabIndex:m?null:0,role:"slider",style:s,"data-index":t,"aria-label":f?f(t):n,"aria-labelledby":r,"aria-orientation":N,"aria-valuemax":b,"aria-valuemin":S,"aria-valuenow":e,"aria-valuetext":h?h(e,t):o,onKeyDown:xe,onFocus:ge,onBlur:ve,onMouseOver:ye,onMouseLeave:be}))})))}));lv((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?Rp(e.palette.primary.main,.62):Op(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(Tp(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Tp(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(Tp(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Tp(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:Lp({},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"})(sC);var lC=B.forwardRef((function(e,t){var n=e.action,r=e.classes,o=e.className,i=e.message,a=e.role,s=void 0===a?"alert":a,l=Ip(e,["action","classes","className","message","role"]);return B.createElement(dv,Lp({component:cb,variant:"body2",variantMapping:{body1:"div",body2:"div"},role:s,square:!0,elevation:6,className:Vg(r.root,o),ref:t},l),B.createElement("div",{className:r.message},i),n?B.createElement("div",{className:r.action},n):null)})),cC=lv((function(e){var t="light"===e.palette.type?.8:.98,n=Np(e.palette.background.default,t);return{root:Ap({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"})(lC),uC=B.forwardRef((function(e,t){var n=e.action,r=e.anchorOrigin,o=(r=void 0===r?{vertical:"bottom",horizontal:"center"}:r).vertical,i=r.horizontal,a=e.autoHideDuration,s=e.children,l=e.classes,c=e.className,u=e.ClickAwayListenerProps,d=e.ContentProps,p=e.disableWindowBlurListener,m=void 0!==p&&p,f=e.message,h=e.onClose,g=e.onEnter,v=e.onEntered,y=e.onEntering,b=e.onExit,x=e.onExited,S=e.onExiting,E=e.onMouseEnter,M=e.onMouseLeave,C=e.open,w=e.resumeHideDuration,k=e.TransitionComponent,N=void 0===k?bS:k,T=e.transitionDuration,O=void 0===T?{enter:Mm.enteringScreen,exit:Mm.leavingScreen}:T,R=e.TransitionProps,A=Ip(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"]),L=B.useRef(),I=B.useState(!0),P=I[0],D=I[1],q=B.useCallback((function(e){var t=null!=e?e:a;h&&null!=t&&(clearTimeout(L.current),L.current=setTimeout((function(){h&&null!=(null!=e?e:a)&&h(null,"timeout")}),t))}),[a,h]);B.useEffect((function(){return C&&q(),function(){clearTimeout(L.current)}}),[C,q]);var z=function(){clearTimeout(L.current)},$=B.useCallback((function(){if(null!=a){if(null!=w)return void q(w);q(.5*a)}}),[a,w,q]);return B.useEffect((function(){if(!m&&C)return window.addEventListener("focus",$),window.addEventListener("blur",z),function(){window.removeEventListener("focus",$),window.removeEventListener("blur",z)}}),[m,$,C]),!C&&P?null:B.createElement(Gb,Lp({onClickAway:function(e){h&&h(e,"clickaway")}},u),B.createElement("div",Lp({className:Vg(l.root,l["anchorOrigin".concat(cv(o)).concat(cv(i))],c),onMouseEnter:function(e){E&&E(e),z()},onMouseLeave:function(e){M&&M(e),$()},ref:t},A),B.createElement(N,Lp({appear:!0,in:C,onEnter:ex((function(){D(!1)}),g),onEntered:v,onEntering:y,onExit:b,onExited:ex((function(){D(!0)}),x),onExiting:S,timeout:O,direction:"top"===o?"down":"up"},R),s||B.createElement(cC,Lp({message:f,action:n},d)))))}));lv((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:Lp({},t,Ap({},e.breakpoints.up("sm"),Lp({},i,{},c))),anchorOriginBottomCenter:Lp({},n,Ap({},e.breakpoints.up("sm"),Lp({},a,{},c))),anchorOriginTopRight:Lp({},t,{},r,Ap({},e.breakpoints.up("sm"),Lp({left:"auto"},i,{},s))),anchorOriginBottomRight:Lp({},n,{},r,Ap({},e.breakpoints.up("sm"),Lp({left:"auto"},a,{},s))),anchorOriginTopLeft:Lp({},t,{},o,Ap({},e.breakpoints.up("sm"),Lp({right:"auto"},i,{},l))),anchorOriginBottomLeft:Lp({},n,{},o,Ap({},e.breakpoints.up("sm"),Lp({right:"auto"},a,{},l)))}}),{flip:!1,name:"MuiSnackbar"})(uC);var dC=B.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.alternativeLabel,i=e.children,a=e.classes,s=e.className,l=e.completed,c=void 0!==l&&l,u=e.connector,d=e.disabled,p=void 0!==d&&d,m=e.index,f=e.last,h=e.orientation,g=Ip(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","index","last","orientation"]);return B.createElement("div",Lp({className:Vg(a.root,a[h],s,o&&a.alternativeLabel,c&&a.completed),ref:t},g),u&&o&&0!==m&&B.cloneElement(u,{orientation:h,alternativeLabel:o,index:m,active:r,completed:c,disabled:p}),B.Children.map(i,(function(e){return B.isValidElement(e)?B.cloneElement(e,Lp({active:r,alternativeLabel:o,completed:c,disabled:p,last:f,icon:m+1,orientation:h},e.props)):null})))}));lv({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(dC);var pC=pb(B.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"})),mC=pb(B.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})),fC=B.createElement("circle",{cx:"12",cy:"12",r:"12"}),hC=B.forwardRef((function(e,t){var n=e.completed,r=void 0!==n&&n,o=e.icon,i=e.active,a=void 0!==i&&i,s=e.error,l=void 0!==s&&s,c=e.classes;return"number"==typeof o||"string"==typeof o?l?B.createElement(mC,{className:Vg(c.root,c.error),ref:t}):r?B.createElement(pC,{className:Vg(c.root,c.completed),ref:t}):B.createElement(db,{className:Vg(c.root,a&&c.active),ref:t},fC,B.createElement("text",{className:c.text,x:"12",y:"16",textAnchor:"middle"},o)):o})),gC=lv((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"})(hC),vC=B.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.alternativeLabel,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.completed,u=void 0!==c&&c,d=e.disabled,p=void 0!==d&&d,m=e.error,f=void 0!==m&&m,h=e.icon;e.last;var g=e.optional,v=e.orientation,y=void 0===v?"horizontal":v,b=e.StepIconComponent,x=e.StepIconProps,S=Ip(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),E=b;return h&&!E&&(E=gC),B.createElement("span",Lp({className:Vg(s.root,s[y],l,p&&s.disabled,i&&s.alternativeLabel,f&&s.error),ref:t},S),h||E?B.createElement("span",{className:Vg(s.iconContainer,i&&s.alternativeLabel)},B.createElement(E,Lp({completed:u,active:r,error:f,icon:h},x))):null,B.createElement("span",{className:s.labelContainer},B.createElement(cb,{variant:"body2",component:"span",className:Vg(s.label,i&&s.alternativeLabel,u&&s.completed,r&&s.active,f&&s.error),display:"block"},a),g))}));vC.muiName="StepLabel";var yC=lv((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"})(vC),bC=B.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,o=e.children,i=e.classes,a=e.className,s=e.completed,l=e.disabled,c=e.icon;e.last;var u=e.optional,d=e.orientation,p=Ip(e,["active","alternativeLabel","children","classes","className","completed","disabled","icon","last","optional","orientation"]),m={active:n,alternativeLabel:r,completed:s,disabled:l,icon:c,optional:u,orientation:d},f=Qx(o,["StepLabel"])?B.cloneElement(o,m):B.createElement(yC,m,o);return B.createElement(My,Lp({disabled:l,TouchRippleProps:{className:i.touchRipple},className:Vg(i.root,i[d],a),ref:t},p),f)}));lv({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"})(bC);var xC=B.forwardRef((function(e,t){var n=e.active,r=e.alternativeLabel,o=void 0!==r&&r,i=e.classes,a=e.className,s=e.completed,l=e.disabled;e.index;var c=e.orientation,u=void 0===c?"horizontal":c,d=Ip(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return B.createElement("div",Lp({className:Vg(i.root,i[u],a,o&&i.alternativeLabel,n&&i.active,s&&i.completed,l&&i.disabled),ref:t},d),B.createElement("span",{className:Vg(i.line,"vertical"===u?i.lineVertical:i.lineHorizontal)}))})),SC=lv((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"})(xC),EC=B.forwardRef((function(e,t){var n=e.active;e.alternativeLabel;var r=e.children,o=e.classes,i=e.className;e.completed;var a=e.last;e.optional,e.orientation;var s=e.TransitionComponent,l=void 0===s?Xb:s,c=e.transitionDuration,u=void 0===c?"auto":c,d=e.TransitionProps,p=Ip(e,["active","alternativeLabel","children","classes","className","completed","last","optional","orientation","TransitionComponent","transitionDuration","TransitionProps"]),m=u;return"auto"!==u||l.muiSupportAuto||(m=void 0),B.createElement("div",Lp({className:Vg(o.root,i,a&&o.last),ref:t},p),B.createElement(l,Lp({in:n,className:o.transition,timeout:m,unmountOnExit:!0},d),r))}));lv((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"})(EC);var MC=B.createElement(SC,null),CC=B.forwardRef((function(e,t){var n=e.activeStep,r=void 0===n?0:n,o=e.alternativeLabel,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.connector,u=void 0===c?MC:c,d=e.nonLinear,p=void 0!==d&&d,m=e.orientation,f=void 0===m?"horizontal":m,h=Ip(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),g=B.isValidElement(u)?B.cloneElement(u,{orientation:f}):null,v=B.Children.toArray(a),y=v.map((function(e,t){var n={alternativeLabel:i,connector:u,last:t+1===v.length,orientation:f},o={index:t,active:!1,completed:!1,disabled:!1};return r===t?o.active=!0:!p&&r>t?o.completed=!0:!p&&r<t&&(o.disabled=!0),[!i&&g&&0!==t&&B.cloneElement(g,Lp({key:t},o)),B.cloneElement(e,Lp({},n,{},o,{},e.props))]}));return B.createElement(dv,Lp({square:!0,elevation:0,className:Vg(s.root,s[f],l,i&&s.alternativeLabel),ref:t},h),y)}));lv({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(CC);var wC=B.forwardRef((function(e,t){var n=e.anchor,r=e.classes,o=e.className,i=e.width,a=Ip(e,["anchor","classes","className","width"]);return B.createElement("div",Lp({className:Vg(r.root,r["anchor".concat(cv(n))],o),ref:t,style:Ap({},Ox(n)?"width":"height",i)},a))})),kC=lv((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"})(wC),NC=null;function TC(e,t){return"right"===e?document.body.offsetWidth-t[0].pageX:t[0].pageX}function OC(e,t){return"bottom"===e?window.innerHeight-t[0].clientY:t[0].clientY}function RC(e,t){return e?t.clientWidth:t.clientHeight}function AC(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}var LC="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),IC={enter:Mm.enteringScreen,exit:Mm.leavingScreen},PC="undefined"!=typeof window?B.useLayoutEffect:B.useEffect;B.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,o=e.disableBackdropTransition,i=void 0!==o&&o,a=e.disableDiscovery,s=void 0!==a&&a,l=e.disableSwipeToOpen,c=void 0===l?LC:l,u=e.hideBackdrop,d=e.hysteresis,p=void 0===d?.52:d,m=e.minFlingVelocity,f=void 0===m?450:m,h=e.ModalProps,g=(h=void 0===h?{}:h).BackdropProps,v=Ip(h,["BackdropProps"]),y=e.onClose,b=e.onOpen,x=e.open,S=e.PaperProps,E=void 0===S?{}:S,M=e.SwipeAreaProps,C=e.swipeAreaWidth,w=void 0===C?20:C,k=e.transitionDuration,N=void 0===k?IC:k,T=e.variant,O=void 0===T?"temporary":T,R=Ip(e,["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"]),A=sv(),L=B.useState(!1),I=L[0],P=L[1],D=B.useRef({isSwiping:null}),q=B.useRef(),z=B.useRef(),$=B.useRef(),F=B.useRef(!1),H=B.useRef();PC((function(){H.current=null}),[x]);var V=B.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,o=void 0===n?null:n,a=t.changeTransition,s=void 0===a||a,l=Rx(A,r),c=-1!==["right","bottom"].indexOf(l)?1:-1,d=Ox(r),p=d?"translate(".concat(c*e,"px, 0)"):"translate(0, ".concat(c*e,"px)"),m=$.current.style;m.webkitTransform=p,m.transform=p;var f="";if(o&&(f=A.transitions.create("all",_v({timeout:N},{mode:o}))),s&&(m.webkitTransition=f,m.transition=f),!i&&!u){var h=z.current.style;h.opacity=1-e/RC(d,$.current),s&&(h.webkitTransition=f,h.transition=f)}}),[r,i,u,A,N]),W=ny((function(e){if(F.current)if(NC=null,F.current=!1,P(!1),D.current.isSwiping){D.current.isSwiping=null;var t,n=Rx(A,r),o=Ox(r);t=o?TC(n,e.changedTouches):OC(n,e.changedTouches);var i=o?D.current.startX:D.current.startY,a=RC(o,$.current),s=AC(t,i,x,a),l=s/a;Math.abs(D.current.velocity)>f&&(H.current=1e3*Math.abs((a-s)/D.current.velocity)),x?D.current.velocity>f||l>p?y():V(0,{mode:"exit"}):D.current.velocity<-f||1-l>p?b():V(RC(o,$.current),{mode:"enter"})}else D.current.isSwiping=null})),_=ny((function(e){if($.current&&F.current&&(null==NC||NC===D.current)){var t=Rx(A,r),n=Ox(r),o=TC(t,e.touches),i=OC(t,e.touches);if(x&&$.current.contains(e.target)&&null==NC){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,$.current),start:n?D.current.startX:D.current.startY,current:n?o:i,anchor:r});if(a)return void(NC=a);NC=D.current}if(null==D.current.isSwiping){var l=Math.abs(o-D.current.startX),c=Math.abs(i-D.current.startY);l>c&&e.cancelable&&e.preventDefault();var u=n?l>c&&l>3:c>l&&c>3;if(!0===u||(n?c>3:l>3)){if(D.current.isSwiping=u,!u)return void W(e);D.current.startX=o,D.current.startY=i,s||x||(n?D.current.startX-=w:D.current.startY-=w)}}if(D.current.isSwiping){var d=RC(n,$.current),p=n?D.current.startX:D.current.startY;x&&!D.current.paperHit&&(p=Math.min(p,d));var m=AC(n?o:i,p,x,d);if(x)if(D.current.paperHit)0===m&&(D.current.startX=o,D.current.startY=i);else{if(!(n?o<d:i<d))return;D.current.paperHit=!0,D.current.startX=o,D.current.startY=i}null===D.current.lastTranslate&&(D.current.lastTranslate=m,D.current.lastTime=performance.now()+1);var f=(m-D.current.lastTranslate)/(performance.now()-D.current.lastTime)*1e3;D.current.velocity=.4*D.current.velocity+.6*f,D.current.lastTranslate=m,D.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),V(m)}}})),U=ny((function(e){if(!e.defaultPrevented&&!e.muiHandled&&(!x||z.current.contains(e.target)||$.current.contains(e.target))){var t=Rx(A,r),n=Ox(r),o=TC(t,e.touches),i=OC(t,e.touches);if(!x){if(c||e.target!==q.current)return;if(n){if(o>w)return}else if(i>w)return}e.muiHandled=!0,NC=null,D.current.startX=o,D.current.startY=i,P(!0),!x&&$.current&&V(RC(n,$.current)+(s?20:-w),{changeTransition:!1}),D.current.velocity=0,D.current.lastTime=null,D.current.lastTranslate=null,D.current.paperHit=!1,F.current=!0}}));B.useEffect((function(){if("temporary"===O)return document.body.addEventListener("touchstart",U),document.body.addEventListener("touchmove",_,{passive:!1}),document.body.addEventListener("touchend",W),function(){document.body.removeEventListener("touchstart",U),document.body.removeEventListener("touchmove",_,{passive:!1}),document.body.removeEventListener("touchend",W)}}),[O,U,_,W]),B.useEffect((function(){return function(){NC===D.current&&(NC=null)}}),[]),B.useEffect((function(){x||P(!1)}),[x]);var Y=B.useCallback((function(e){z.current=j.findDOMNode(e)}),[]),G=B.useCallback((function(e){$.current=j.findDOMNode(e)}),[]);return B.createElement(B.Fragment,null,B.createElement(Ix,Lp({open:!("temporary"!==O||!I)||x,variant:O,ModalProps:Lp({BackdropProps:Lp({},g,{ref:Y})},v),PaperProps:Lp({},E,{style:Lp({pointerEvents:"temporary"!==O||x?"":"none"},E.style),ref:G}),anchor:r,transitionDuration:H.current||N,onClose:y,ref:t},R)),!c&&"temporary"===O&&B.createElement(oy,null,B.createElement(kC,Lp({anchor:r,ref:q,width:w},M))))}));var DC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"secondary":o,a=e.edge,s=void 0!==a&&a,l=e.size,c=void 0===l?"medium":l,u=Ip(e,["classes","className","color","edge","size"]),d=B.createElement("span",{className:n.thumb});return B.createElement("span",{className:Vg(n.root,r,{start:n.edgeStart,end:n.edgeEnd}[s],{small:n["size".concat(cv(c))]}[c])},B.createElement(Ib,Lp({type:"checkbox",icon:d,checkedIcon:d,classes:{root:Vg(n.switchBase,n["color".concat(cv(i))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},u)),B.createElement("span",{className:n.track}))}));lv((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:Tp(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:Tp(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"})(DC);var qC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disabled,i=void 0!==o&&o,a=e.disableFocusRipple,s=void 0!==a&&a,l=e.fullWidth,c=e.icon,u=e.indicator,d=e.label,p=e.onChange,m=e.onClick,f=e.selected,h=e.textColor,g=void 0===h?"inherit":h,v=e.value,y=e.wrapped,b=void 0!==y&&y,x=Ip(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","selected","textColor","value","wrapped"]);return B.createElement(My,Lp({focusRipple:!s,className:Vg(n.root,n["textColor".concat(cv(g))],r,i&&n.disabled,f&&n.selected,d&&c&&n.labelIcon,l&&n.fullWidth,b&&n.wrapped),ref:t,role:"tab","aria-selected":f,disabled:i,onClick:function(e){p&&p(e,v),m&&m(e)}},x),B.createElement("span",{className:n.wrapper},c,d),u)}));lv((function(e){var t;return{root:Lp({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},Ap(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),Ap(t,"overflow","hidden"),Ap(t,"whiteSpace","normal"),Ap(t,"textAlign","center"),Ap(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"})(qC);var zC=B.createContext(),BC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"table":o,a=e.padding,s=void 0===a?"default":a,l=e.size,c=void 0===l?"medium":l,u=e.stickyHeader,d=void 0!==u&&u,p=Ip(e,["classes","className","component","padding","size","stickyHeader"]),m=B.useMemo((function(){return{padding:s,size:c,stickyHeader:d}}),[s,c,d]);return B.createElement(zC.Provider,{value:m},B.createElement(i,Lp({ref:t,className:Vg(n.root,r,d&&n.stickyHeader)},p)))}));lv((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Lp({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(BC);var $C=B.createContext(),FC={variant:"body"},HC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tbody":o,a=Ip(e,["classes","className","component"]);return B.createElement($C.Provider,{value:FC},B.createElement(i,Lp({className:Vg(n.root,r),ref:t},a)))}));lv({root:{display:"table-row-group"}},{name:"MuiTableBody"})(HC);var jC=B.forwardRef((function(e,t){var n,r=e.align,o=void 0===r?"inherit":r,i=e.classes,a=e.className,s=e.component,l=e.padding,c=e.scope,u=e.size,d=e.sortDirection,p=e.variant,m=Ip(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),f=B.useContext(zC),h=B.useContext($C);n=s||(h&&"head"===h.variant?"th":"td");var g=c;!g&&h&&"head"===h.variant&&(g="col");var v=l||(f&&f.padding?f.padding:"default"),y=u||(f&&f.size?f.size:"medium"),b=p||h&&h.variant,x=null;return d&&(x="asc"===d?"ascending":"descending"),B.createElement(n,Lp({ref:t,className:Vg(i.root,i[b],a,"inherit"!==o&&i["align".concat(cv(o))],"default"!==v&&i["padding".concat(cv(v))],"medium"!==y&&i["size".concat(cv(y))],{head:f&&f.stickyHeader&&i.stickyHeader}[b]),"aria-sort":x,scope:g},m))})),VC=lv((function(e){return{root:Lp({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?Rp(Tp(e.palette.divider,1),.88):Op(Tp(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"})(jC),WC={variant:"footer"},_C=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tfoot":o,a=Ip(e,["classes","className","component"]);return B.createElement($C.Provider,{value:WC},B.createElement(i,Lp({className:Vg(n.root,r),ref:t},a)))}));lv({root:{display:"table-footer-group"}},{name:"MuiTableFooter"})(_C);var UC={variant:"head"},YC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"thead":o,a=Ip(e,["classes","className","component"]);return B.createElement($C.Provider,{value:UC},B.createElement(i,Lp({className:Vg(n.root,r),ref:t},a)))}));lv({root:{display:"table-header-group"}},{name:"MuiTableHead"})(YC);var GC=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.disableGutters,s=void 0!==a&&a,l=e.variant,c=void 0===l?"regular":l,u=Ip(e,["classes","className","component","disableGutters","variant"]);return B.createElement(i,Lp({className:Vg(n.root,n[c],r,!s&&n.gutters),ref:t},u))})),KC=lv((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Ap({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"})(GC),XC=pb(B.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),JC=pb(B.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),ZC=B.createElement(JC,null),QC=B.createElement(XC,null),ew=B.createElement(XC,null),tw=B.createElement(JC,null),nw=B.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,o=e.nextIconButtonProps,i=e.onChangePage,a=e.page,s=e.rowsPerPage,l=Ip(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),c=sv();return B.createElement("div",Lp({ref:t},l),B.createElement(Ab,Lp({onClick:function(e){i(e,a-1)},disabled:0===a,color:"inherit"},n),"rtl"===c.direction?ZC:QC),B.createElement(Ab,Lp({onClick:function(e){i(e,a+1)},disabled:a>=Math.ceil(r/s)-1,color:"inherit"},o),"rtl"===c.direction?ew:tw))})),rw=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(-1===n?r:n," of ").concat(r)},ow=[10,25,50,100],iw=B.forwardRef((function(e,t){var n,r=e.ActionsComponent,o=void 0===r?nw:r,i=e.backIconButtonProps,a=e.classes,s=e.className,l=e.colSpan,c=e.component,u=void 0===c?VC:c,d=e.count,p=e.labelDisplayedRows,m=void 0===p?rw:p,f=e.labelRowsPerPage,h=void 0===f?"Rows per page:":f,g=e.nextIconButtonProps,v=e.onChangePage,y=e.onChangeRowsPerPage,b=e.page,x=e.rowsPerPage,S=e.rowsPerPageOptions,E=void 0===S?ow:S,M=e.SelectProps,C=void 0===M?{}:M,w=Ip(e,["ActionsComponent","backIconButtonProps","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);u!==VC&&"td"!==u||(n=l||1e3);var k=C.native?"option":dE;return B.createElement(u,Lp({className:Vg(a.root,s),colSpan:n,ref:t},w),B.createElement(KC,{className:a.toolbar},B.createElement("div",{className:a.spacer}),E.length>1&&B.createElement(cb,{color:"inherit",variant:"body2",className:a.caption},h),E.length>1&&B.createElement(GM,Lp({classes:{select:a.select,icon:a.selectIcon},input:B.createElement(Xx,{className:Vg(a.input,a.selectRoot)}),value:x,onChange:y},C),E.map((function(e){return B.createElement(k,{className:a.menuItem,key:e,value:e.value?e.value:e},e.label?e.label:e)}))),B.createElement(cb,{color:"inherit",variant:"body2",className:a.caption},m({from:0===d?0:b*x+1,to:Math.min(d,(b+1)*x),count:d,page:b})),B.createElement(o,{className:a.actions,backIconButtonProps:i,count:d,nextIconButtonProps:g,onChangePage:v,page:b,rowsPerPage:x})))}));lv((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"})(iw);var aw=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tr":o,a=e.hover,s=void 0!==a&&a,l=e.selected,c=void 0!==l&&l,u=Ip(e,["classes","className","component","hover","selected"]),d=B.useContext($C);return B.createElement(i,Lp({ref:t,className:Vg(n.root,r,d&&{head:n.head,footer:n.footer}[d.variant],s&&n.hover,c&&n.selected)},u))}));lv((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"})(aw);var sw=pb(B.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),lw=B.forwardRef((function(e,t){var n=e.active,r=void 0!==n&&n,o=e.children,i=e.classes,a=e.className,s=e.direction,l=void 0===s?"desc":s,c=e.hideSortIcon,u=void 0!==c&&c,d=e.IconComponent,p=void 0===d?sw:d,m=Ip(e,["active","children","classes","className","direction","hideSortIcon","IconComponent"]);return B.createElement(My,Lp({className:Vg(i.root,a,r&&i.active),component:"span",disableRipple:!0,ref:t},m),o,u&&!r?null:B.createElement(p,{className:Vg(i.icon,i["iconDirection".concat(cv(l))])}))}));lv((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"})(lw);var cw,uw=!("undefined"==typeof window||!window.document||!window.document.createElement);function dw(){if(cw)return cw;if(!uw||!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),cw="reverse",e.scrollLeft>0?cw="default":(e.scrollLeft=1,0===e.scrollLeft&&(cw="negative")),document.body.removeChild(e),cw}function pw(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=dw();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 mw(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var fw={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function hw(e){var t=e.onChange,n=Ip(e,["onChange"]),r=B.useRef(),o=B.useRef(null),i=function(){r.current=o.current.offsetHeight-o.current.clientHeight};return B.useEffect((function(){var e=Cx((function(){var e=r.current;i(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),B.useEffect((function(){i(),t(r.current)}),[t]),B.createElement("div",Lp({style:fw,ref:o},n))}var gw=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=e.orientation,a=Ip(e,["classes","className","color","orientation"]);return B.createElement("span",Lp({className:Vg(n.root,n["color".concat(cv(o))],r,{vertical:n.vertical}[i]),ref:t},a))})),vw=lv((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"})(gw),yw=B.createElement(XC,{fontSize:"small"}),bw=B.createElement(JC,{fontSize:"small"}),xw=B.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.direction,i=e.orientation,a=e.visible,s=Ip(e,["classes","className","direction","orientation","visible"]),l=Vg(n.root,r,{vertical:n.vertical}[i]);return a?B.createElement(My,Lp({component:"div",className:l,ref:t,role:null,tabIndex:null},s),"left"===o?yw:bw):B.createElement("div",{className:l})})),Sw=lv({root:{width:40,flexShrink:0},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}}},{name:"PrivateTabScrollButton"})(xw),Ew=B.forwardRef((function(e,t){var n=e.action,r=e.centered,o=void 0!==r&&r,i=e.children,a=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,u=e.indicatorColor,d=void 0===u?"secondary":u,p=e.onChange,m=e.orientation,f=void 0===m?"horizontal":m,h=e.ScrollButtonComponent,g=void 0===h?Sw:h,v=e.scrollButtons,y=void 0===v?"auto":v,b=e.TabIndicatorProps,x=void 0===b?{}:b,S=e.textColor,E=void 0===S?"inherit":S,M=e.value,C=e.variant,w=void 0===C?"standard":C,k=Ip(e,["action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","value","variant"]),N=sv(),T="scrollable"===w,O="rtl"===N.direction,R="vertical"===f,A=R?"scrollTop":"scrollLeft",L=R?"top":"left",I=R?"bottom":"right",P=R?"clientHeight":"clientWidth",D=R?"height":"width",q=B.useState(!1),z=q[0],$=q[1],F=B.useState({}),H=F[0],j=F[1],V=B.useState({start:!1,end:!1}),W=V[0],_=V[1],U=B.useState({overflow:"hidden",marginBottom:null}),Y=U[0],G=U[1],K=new Map,X=B.useRef(null),J=B.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:pw(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[K.get(M)];t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Q=ny((function(){var e,t=Z(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(R)o=r.top-n.top+n.scrollTop;else{var i=O?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(Ap(e={},L,o),Ap(e,D,r?r[D]:0),e);if(isNaN(H[L])||isNaN(H[D]))j(a);else{var s=Math.abs(H[L]-a[L]),l=Math.abs(H[D]-a[D]);(s>=1||l>=1)&&j(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?mw: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)}(A,X.current,e)},te=function(e){var t=X.current[A];R?t+=e:(t+=e*(O?-1:1),t*=O&&"reverse"===dw()?-1:1),ee(t)},ne=function(){te(-X.current[P])},re=function(){te(X.current[P])},oe=B.useCallback((function(e){G({overflow:null,marginBottom:-e})}),[]),ie=ny((function(){var e=Z(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[L]<t[L]){var r=t[A]+(n[L]-t[L]);ee(r)}else if(n[I]>t[I]){var o=t[A]+(n[I]-t[I]);ee(o)}})),ae=ny((function(){if(T&&"off"!==y){var e,t,n=X.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(R)e=r>1,t=r<o-i-1;else{var l=pw(X.current,N.direction);e=O?l<a-s-1:l>1,t=O?l>1:l<a-s-1}e===W.start&&t===W.end||_({start:e,end:t})}}));B.useEffect((function(){var e=Cx((function(){Q(),ae()})),t=ix(X.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[Q,ae]);var se=B.useCallback(Cx((function(){ae()})));B.useEffect((function(){return function(){se.clear()}}),[se]),B.useEffect((function(){$(!0)}),[]),B.useEffect((function(){Q(),ae()})),B.useEffect((function(){ie()}),[ie,H]),B.useImperativeHandle(n,(function(){return{updateIndicator:Q,updateScrollButtons:ae}}),[Q,ae]);var le=B.createElement(vw,Lp({className:a.indicator,orientation:f,color:d},x,{style:Lp({},H,{},x.style)})),ce=0,ue=B.Children.map(i,(function(e){if(!B.isValidElement(e))return null;var t=void 0===e.props.value?ce:e.props.value;K.set(t,ce);var n=t===M;return ce+=1,B.cloneElement(e,{fullWidth:"fullWidth"===w,indicator:n&&!z&&le,selected:n,onChange:p,textColor:E,value:t})})),de=function(){var e={};e.scrollbarSizeListener=T?B.createElement(hw,{className:a.scrollable,onChange:oe}):null;var t=W.start||W.end,n=T&&("auto"===y&&t||"desktop"===y||"on"===y);return e.scrollButtonStart=n?B.createElement(g,{orientation:f,direction:O?"right":"left",onClick:ne,visible:W.start,className:Vg(a.scrollButtons,"on"!==y&&a.scrollButtonsDesktop)}):null,e.scrollButtonEnd=n?B.createElement(g,{orientation:f,direction:O?"left":"right",onClick:re,visible:W.end,className:Vg(a.scrollButtons,"on"!==y&&a.scrollButtonsDesktop)}):null,e}();return B.createElement(c,Lp({className:Vg(a.root,s,R&&a.vertical),ref:t},k),de.scrollButtonStart,de.scrollbarSizeListener,B.createElement("div",{className:Vg(a.scroller,T?a.scrollable:a.fixed),style:Y,ref:X,onScroll:se},B.createElement("div",{className:Vg(a.flexContainer,R&&a.flexContainerVertical,o&&!T&&a.centered),ref:J,role:"tablist"},ue),z&&le),de.scrollButtonEnd)}));lv((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:Ap({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(Ew);var Mw={standard:TS,filled:Zx,outlined:SE},Cw=B.forwardRef((function(e,t){var n=e.autoComplete,r=e.autoFocus,o=e.children,i=e.classes,a=e.className,s=e.color,l=void 0===s?"primary":s,c=e.defaultValue,u=e.error,d=e.FormHelperTextProps,p=e.fullWidth,m=e.helperText,f=e.hiddenLabel,h=e.id,g=e.InputLabelProps,v=e.inputProps,y=e.InputProps,b=e.inputRef,x=e.label,S=e.multiline,E=e.name,M=e.onBlur,C=e.onChange,w=e.onFocus,k=e.placeholder,N=e.required,T=void 0!==N&&N,O=e.rows,R=e.rowsMax,A=e.select,L=void 0!==A&&A,I=e.SelectProps,P=e.type,D=e.value,q=e.variant,z=void 0===q?"standard":q,$=Ip(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"]),F=B.useState(0),H=F[0],V=F[1],W=B.useRef(null);B.useEffect((function(){if("outlined"===z){var e=j.findDOMNode(W.current);V(null!=e?e.offsetWidth:0)}}),[z,T,x]);var _={};"outlined"===z&&(g&&void 0!==g.shrink&&(_.notched=g.shrink),_.labelWidth=H),L&&(I&&I.native||(_.id=void 0),_["aria-describedby"]=void 0);var U=m&&h?"".concat(h,"-helper-text"):void 0,Y=x&&h?"".concat(h,"-label"):void 0,G=Mw[z],K=B.createElement(G,Lp({"aria-describedby":U,autoComplete:n,autoFocus:r,defaultValue:c,fullWidth:p,multiline:S,name:E,rows:O,rowsMax:R,type:P,value:D,id:h,inputRef:b,onBlur:M,onChange:C,onFocus:w,placeholder:k,inputProps:v},_,y));return B.createElement(tS,Lp({className:Vg(i.root,a),error:u,fullWidth:p,hiddenLabel:f,ref:t,required:T,color:l,variant:z},$),x&&B.createElement(AS,Lp({htmlFor:h,ref:W,id:Y},g),x),L?B.createElement(GM,Lp({"aria-describedby":U,id:h,labelId:Y,value:D,input:K},I),o):K,m&&B.createElement(aS,Lp({id:U},d),m))}));function ww(e){return Math.round(1e5*e)/1e5}lv({root:{}},{name:"MuiTextField"})(Cw);var kw=B.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.disableFocusListener,i=void 0!==o&&o,a=e.disableHoverListener,s=void 0!==a&&a,l=e.disableTouchListener,c=void 0!==l&&l,u=e.enterDelay,d=void 0===u?0:u,p=e.enterTouchDelay,m=void 0===p?700:p,f=e.id,h=e.interactive,g=void 0!==h&&h,v=e.leaveDelay,y=void 0===v?0:v,b=e.leaveTouchDelay,x=void 0===b?1500:b,S=e.onClose,E=e.onOpen,M=e.open,C=e.placement,w=void 0===C?"bottom":C,k=e.PopperProps,N=e.title,T=e.TransitionComponent,O=void 0===T?bS:T,R=e.TransitionProps,A=Ip(e,["children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperProps","title","TransitionComponent","TransitionProps"]),L=sv(),I=B.useState(!1),P=I[0],D=I[1],q=B.useState(0)[1],z=B.useState(),$=z[0],F=z[1],H=B.useRef(!1),V=B.useRef(null!=M).current,W=B.useRef(),_=B.useRef(),U=B.useRef(),Y=B.useRef(),G=B.useRef();B.useEffect((function(){W.current||(W.current="mui-tooltip-".concat(Math.round(1e5*Math.random()))),M&&q((function(e){return!e}))}),[M]),B.useEffect((function(){return function(){clearTimeout(_.current),clearTimeout(U.current),clearTimeout(Y.current),clearTimeout(G.current)}}),[]);var K=function(e){V||P||D(!0),E&&E(e)},X=function(e){var t=n.props;"mouseover"===e.type&&t.onMouseOver&&t.onMouseOver(e),H.current&&"touchstart"!==e.type||($&&$.removeAttribute("title"),clearTimeout(U.current),clearTimeout(Y.current),d?(e.persist(),U.current=setTimeout((function(){K(e)}),d)):K(e))},J=fy(),Z=J.isFocusVisible,Q=J.onBlurVisible,ee=J.ref,te=B.useState(!1),ne=te[0],re=te[1],oe=function(e){V||D(!1),S&&S(e),clearTimeout(_.current),_.current=setTimeout((function(){H.current=!1}),L.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(U.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),y)},ae=Yv(F,t),se=Yv(ee,ae),le=B.useCallback((function(e){Uv(se,j.findDOMNode(e))}),[se]),ce=Yv(n.ref,le),ue=V?M:P;""===N&&(ue=!1);var de=!ue&&!s,pe=Lp({"aria-describedby":ue?f||W.current:null,title:de&&"string"==typeof N?N:null},A,{},n.props,{className:Vg(A.className,n.props.className)});c||(pe.onTouchStart=function(e){H.current=!0;var t=n.props;t.onTouchStart&&t.onTouchStart(e),clearTimeout(Y.current),clearTimeout(_.current),clearTimeout(G.current),e.persist(),G.current=setTimeout((function(){X(e)}),m)},pe.onTouchEnd=function(e){n.props.onTouchEnd&&n.props.onTouchEnd(e),clearTimeout(G.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){oe(e)}),x)}),s||(pe.onMouseOver=X,pe.onMouseLeave=ie),i||(pe.onFocus=function(e){$||F(e.currentTarget),Z(e)&&(re(!0),X(e));var t=n.props;t.onFocus&&t.onFocus(e)},pe.onBlur=ie);var me=g?{onMouseOver:pe.onMouseOver,onMouseLeave:pe.onMouseLeave,onFocus:pe.onFocus,onBlur:pe.onBlur}:{};return B.createElement(B.Fragment,null,B.cloneElement(n,Lp({ref:ce},pe)),B.createElement(AM,Lp({className:Vg(r.popper,g&&r.popperInteractive),placement:w,anchorEl:$,open:!!$&&ue,id:pe["aria-describedby"],transition:!0},me,k),(function(e){var t=e.placement,n=e.TransitionProps;return B.createElement(O,Lp({timeout:L.transitions.duration.shorter},n,R),B.createElement("div",{className:Vg(r.tooltip,r["tooltipPlacement".concat(cv(t.split("-")[0]))],H.current&&r.touch)},N))})))}));lv((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none",flip:!1},popperInteractive:{pointerEvents:"auto"},tooltip:{backgroundColor:Tp(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(ww(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(ww(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Ap({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Ap({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Ap({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Ap({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip"})(kw);var Nw={entering:{transform:"none"},entered:{transform:"none"}},Tw={enter:Mm.enteringScreen,exit:Mm.leavingScreen};function Ow(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Rw({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Ow(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return B.createElement("i",{style:o},B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},B.createElement("path",{d:e})))}B.forwardRef((function(e,t){var n=e.children,r=e.in,o=e.onEnter,i=e.onExit,a=e.style,s=e.timeout,l=void 0===s?Tw:s,c=Ip(e,["children","in","onEnter","onExit","style","timeout"]),u=sv(),d=Yv(n.ref,t);return B.createElement(wv,Lp({appear:!0,in:r,onEnter:function(e,t){Wv(e);var n=_v({style:a,timeout:l},{mode:"enter"});e.style.webkitTransition=u.transitions.create("transform",n),e.style.transition=u.transitions.create("transform",n),o&&o(e,t)},onExit:function(e){var t=_v({style:a,timeout:l},{mode:"exit"});e.style.webkitTransition=u.transitions.create("transform",t),e.style.transition=u.transitions.create("transform",t),i&&i(e)},timeout:l},c),(function(e,t){return B.cloneElement(n,Lp({style:Lp({transform:"scale(0)",visibility:"exited"!==e||r?void 0:"hidden"},Nw[e],{},a,{},n.props.style),ref:d},t))}))}));const Aw={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"},Lw={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"},Iw="M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z",Pw={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"},Dw={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 qw(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=Yi.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 zw(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=Z(!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}),qw(e,a,s)}))}function Bw({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){zw(r,e,t,"qDimensions",a)}}}function $w(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 Fw({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){zw(o,e,t,"qMeasures",i,a)}}}function Hw(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle}}const jw={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"}}},Vw=({children:e,...t})=>B.createElement(yb,lp({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e);const Ww=Nm({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 _w=Rm({productionPrefix:"qf8e0",disableGlobal:!0,seed:""});function Uw(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:Uw(o,t,n)},o}function Yw(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),Uw(o,a,l,e.invert)}))}const Gw={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(Z({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function Kw({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=Z({},{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 Xw({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=Z(!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:Z(!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:Z(!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:Z(!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 Jw=["oob"];const Zw={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=Xw({keys:Jw,data:o,defaultSettings:{oob:Gw.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=Kw}){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(Gw.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:Jw,symbol:s,dockValue:n})}},Qw={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},ek=["hat"];function tk(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 nk({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=Z({},e.hat,{type:"path",d:tk(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,Z({},e.hat,{type:"path",d:tk(p)})]}const rk={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=Xw({keys:ek,data:r,defaultSettings:Qw,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=Kw}){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(...nk({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:ek})}};var ok="unclassified",ik="equal-equal",ak="equal-higher",sk="equal-lower",lk="equal-void",ck="higher-equal",uk="higher-higher-acute",dk="higher-higher-obtuse",pk="higher-lower-negative",mk="higher-lower-positive",fk="higher-void",hk="lower-equal",gk="lower-higher-negative",vk="lower-higher-positive",yk="lower-lower-acute",bk="lower-lower-obtuse",xk="lower-void",Sk="void-equal",Ek="void-higher",Mk="void-lower",Ck="void-void";function wk(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function kk(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),o=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),i=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((o*o+r*r-i*i)/(2*o*r))*(180/Math.PI)}function Nk({previous:e,current:t,next:n}){const r=e&&e.value,o=t&&t.value,i=n&&n.value;return e||n?e?n?r===o?o===i?ik:o<i?ak:sk:o===i?r>o?ck:hk:r>o?o<i?kk(e,t,n)>90?dk:uk:wk(e,t)>wk(e,n)?mk:pk:o>i?kk(e,t,n)>90?bk:yk:wk(e,t)>wk(e,n)?vk:gk:r===o?lk:r>o?fk:xk:o===i?Sk:o<i?Ek:Mk:Ck}function Tk({bounds:e,size:t}){const{x:n,y:r,width:o,height:i}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+o/2)>=0&&Math.ceil(n+o/2)<=t.width&&Math.floor(r+i/2)>=0&&Math.ceil(r+i/2)<=t.height:Math.floor(n+o)>0&&Math.ceil(n)<t.width&&Math.floor(r+i/2)>=0&&Math.ceil(r+i/2)<=t.height}const Ok=1,Rk=0;function Ak({node:e,line:t,groupIndex:n,extract:r,style:o,measureText:i,size:a,horizontal:s,rtl:l,meta:c,showLabel:u}){const d=r.label(e.data);if("string"!=typeof d&&"number"!=typeof d||""===d)return!1;const p=i({fontFamily:o.fontFamily,fontSize:o.fontSize,text:d}),{localBounds:m}=e,{"stroke-width":f}=e.attrs,h=r.pointValue(e.data),g={x:m.x+m.width/2,y:m.y+m.height/2,width:p.width+2*Ok,height:p.height+2*Rk},v=`${g.x}-${g.y}`,y=!s&&!l,b=s?a.height:a.width,x=(s?g.y:g.x)/b,S=(y?1-x:x)<=(b<=200?.25:.1),E={key:v,node:e,line:t,group:n,value:h,labelMeasurements:p,bounds:g,inside:Tk({bounds:m,size:a}),border:f?f/2:0,classification:ok,setClassification(e){E.classification=e},preferences:[],setPreferences(e){E.preferences.push(...e)},placement:void 0,setPlacement(e){E.placement=e},duplicate:!1,setDuplicate(){E.duplicate=!0},extreme:c.getExtreme(v),elite:S,show:u(e)};return E}function Lk({nodes:e,extract:t,style:n,measureText:r,size:o,horizontal:i,rtl:a,showLabel:s}){const l=function({nodes:e}){const t={top:[],right:[],bottom:[],left:[]},n=e.map((e=>{const{localBounds:t}=e,n={x:t.x+t.width/2,y:t.y+t.height/2};return{key:`${n.x}-${n.y}`,center:n}})),r=n.reduce(((e,t)=>((!e.top||t.center.y<e.top.center.y)&&(e.top=t),(!e.right||t.center.x>e.right.center.x)&&(e.right=t),(!e.bottom||t.center.y>e.bottom.center.y)&&(e.bottom=t),(!e.left||t.center.x<e.left.center.x)&&(e.left=t),e)),{});return t.top=n.filter((e=>e.center.y===r.top.center.y)).map((e=>e.key)),t.right=n.filter((e=>e.center.x===r.right.center.x)).map((e=>e.key)),t.bottom=n.filter((e=>e.center.y===r.bottom.center.y)).map((e=>e.key)),t.left=n.filter((e=>e.center.x===r.left.center.x)).map((e=>e.key)),{getExtrema:e=>({top:-1!==t.top.indexOf(e),right:-1!==t.right.indexOf(e),bottom:-1!==t.bottom.indexOf(e),left:-1!==t.left.indexOf(e)}),getExtreme:e=>{const{top:n,right:r,bottom:o,left:i}=t;return[n,r,o,i].some((t=>-1!==t.indexOf(e)))}}}({nodes:e});return function({nodes:e,by:t,lineIndex:n}){const r=e.reduce(((e,r,o)=>{const i=t(r.data);return e[i]||(e[i]={items:[],index:o}),e[i].items.push({node:r,line:r.data[n].value}),e}),{});return Object.keys(r).map((e=>r[e])).sort(((e,t)=>e.index-t.index)).map((e=>e.items))}({nodes:e,by:t.majorValue,lineIndex:t.lineIndex}).map(((e,c)=>e.map((e=>({line:e.line,item:Ak({node:e.node,line:e.line,groupIndex:c,extract:t,style:n,measureText:r,size:o,horizontal:i,rtl:a,meta:l,showLabel:s})}))).filter((e=>e.item)).reduce(((e,t)=>(e[t.line]=t.item,e)),{}))).filter((e=>Object.keys(e).length))}var Ik={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},Pk={[ik]:[Ik.TOP,Ik.BOTTOM],[ak]:[Ik.BOTTOM,Ik.BOTTOM_RIGHT],[sk]:[Ik.TOP,Ik.TOP_RIGHT],[lk]:[Ik.TOP,Ik.BOTTOM],[ck]:[Ik.LEFT,Ik.BOTTOM_LEFT,Ik.TOP,Ik.TOP_RIGHT],[uk]:[Ik.BOTTOM,Ik.BOTTOM_LEFT,Ik.LEFT,Ik.TOP_RIGHT],[dk]:[Ik.BOTTOM,Ik.TOP],[pk]:[Ik.TOP,Ik.TOP_RIGHT,Ik.RIGHT],[mk]:[Ik.BOTTOM,Ik.BOTTOM_LEFT,Ik.LEFT],[fk]:[Ik.TOP],[hk]:[Ik.TOP],[gk]:[Ik.TOP,Ik.TOP_LEFT],[vk]:[Ik.BOTTOM_RIGHT],[yk]:[Ik.TOP,Ik.TOP_LEFT,Ik.LEFT,Ik.TOP_RIGHT,Ik.RIGHT],[bk]:[Ik.TOP,Ik.BOTTOM],[xk]:[Ik.TOP],[Sk]:[Ik.TOP],[Ek]:[Ik.TOP,Ik.BOTTOM],[Mk]:[Ik.TOP,Ik.BOTTOM,Ik.LEFT],[Ck]:[Ik.TOP]};function Dk({nodes:e,extract:t,style:n,measureText:r,size:o,horizontal:i,rtl:a,showLabel:s}){const l=Lk({nodes:e,extract:t,style:n,measureText:r,size:o,horizontal:i,rtl:a,showLabel:s}),c=[...l.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[u]=c,d=function({groups:e,threshold:t}){const n=e.map((e=>Object.keys(e).map((t=>e[t])))),r={};for(let e=0;e<=n.length;e++){const t=n[e];if(t)for(let e=0;e<t.length;e++){const n=t[e],{line:o}=n;r[o]||(r[o]=[]),r[o].push(n.bounds)}}const o=Object.keys(r).map((e=>r[e])),i=[];for(let e=0;e<o.length;e++)for(let n=0;n<o[e].length-1;n++){const r=o[e][n],a=o[e][n+1],s={x1:r.x,y1:r.y,x2:a.x,y2:a.y},l=s.x1-s.x2,c=s.y1-s.y2;Math.sqrt(l*l+c*c)>t&&i.push(s)}return i}({groups:l,threshold:u.node.localBounds.height}),p={getItems:()=>c,getLines:()=>d};return function({groups:e}){for(let t=0;t<e.length;t++){const n=Object.keys(e[t]).map((n=>e[t][n]));for(let r=0;r<n.length;r++){const o=n[r],i=Nk({previous:e[t-1]&&e[t-1][o.line],current:o,next:e[t+1]&&e[t+1][o.line]});o.setClassification(i)}}}({groups:l}),p.getItems().forEach((e=>e.setPreferences(Pk[e.classification]))),p}function qk({item:e,placement:t,size:n}){return t.x>=0-n.edgeBleed.left&&t.x<=n.width-e.bounds.width+n.edgeBleed.right&&t.y>=0-n.edgeBleed.top&&t.y<=n.height-e.bounds.height}function zk({line1:e,line2:t}){const n=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(0===n)return!1;const r=((t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1))/n,o=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&o>=0&&o<=1}function Bk({candidate:e,lines:t,rects:n}){return!!n.some((t=>function({rect1:e,rect2:t}){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)}({rect1:t,rect2:e})))||t.some((t=>function({line:e,rect:t}){const n={x:t.x,y:t.y},r={x:t.x+t.width,y:t.y},o={x:t.x+t.width,y:t.y+t.height},i={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:o.x,y2:o.y},s={x1:o.x,y1:o.y,x2:i.x,y2:i.y},l={x1:i.x,y1:i.y,x2:n.x,y2:n.y};return zk({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||zk({line1:e,line2:a})||zk({line1:e,line2:s})||zk({line1:e,line2:l})}({line:t,rect:e})))}const $k={x:0,width:0,y:0,height:0};const Fk=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),Hk=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),jk=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),Vk=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),Wk=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),_k=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),Uk=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),Yk=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var Gk=2.5,Kk=4;const Xk=[Ik.TOP,Ik.TOP_LEFT,Ik.TOP_RIGHT],Jk=[Ik.BOTTOM,Ik.BOTTOM_LEFT,Ik.BOTTOM_RIGHT];function Zk({position:e}){const t={x:Gk,width:-2*Gk,y:0,height:0},n=Xk.indexOf(e)>-1,r=Jk.indexOf(e)>-1;return n&&(t.y=Kk,t.height=-Kk),r&&(t.height=-Kk),t}function Qk({cx:e,cy:t,r:n,degrees:r}){const o=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(o)),y:Math.round(t+n*-Math.cos(o))}}function eN({coordinates:e,degrees:t,item:n}){const r={x:e.x,y:e.y};return t<=90?r.y-=n.bounds.height:t>180&&t<=270?r.x-=n.bounds.width:t>270&&(r.y-=n.bounds.height,r.x-=n.bounds.width),r}function tN({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),o=e.bounds.x,i=e.bounds.y;for(let a=0;a<r.length;a++){const s=r[a];for(let r=40;r<=180;r+=15){const a=eN({coordinates:Qk({cx:o,cy:i,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}for(let r=320;r>180;r-=15){const a=eN({coordinates:Qk({cx:o,cy:i,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const nN=void 0;function rN({item:e,validator:t,force:n=!1}){const r=[...e.preferences,...Object.keys(Ik).map((e=>Ik[e])).filter((t=>-1===e.preferences.indexOf(t)))],o={[Ik.TOP]:Fk,[Ik.TOP_RIGHT]:Hk,[Ik.RIGHT]:jk,[Ik.BOTTOM_RIGHT]:Vk,[Ik.BOTTOM]:Wk,[Ik.BOTTOM_LEFT]:_k,[Ik.LEFT]:Uk,[Ik.TOP_LEFT]:Yk},i=[];for(let a=0;a<r.length;a++){const s=r[a],l=o[s]({item:e}),c=Zk({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&i.push(l),u.valid)return l}const a=()=>tN({item:e,validator:t,force:n});if(n){const e=a();return e||(i[0]||nN)}return(e.extreme||e.elite)&&a()||nN}function oN({model:e,size:t,all:n}){const r={},o=e.getItems(),i=[...o.map((e=>({x:e.node.localBounds.x-e.border+1,y:e.node.localBounds.y-e.border+1,height:e.node.localBounds.height+2*e.border-2,width:e.node.localBounds.width+2*e.border-2})))],a=[],s=e.getLines();o.forEach((e=>{const{data:o}=e.node;if(!e.show||!e.inside||o.null&&o.null.value||o.interpolated&&o.interpolated.value)return;const{key:l}=e;if(r[l])return void e.setDuplicate();r[l]=!0;const c=function({size:e,lines:t,placements:n}){return function({item:r,placement:o,adjustment:i=$k,ignoreLines:a=!1}){const s={inside:qk({item:r,placement:o,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=Bk({candidate:{x:o.x+i.x,y:o.y+i.y,width:r.bounds.width+i.width,height:r.bounds.height+i.height},lines:a?[]:t,rects:n}),s.valid=!s.collides,s):s}}({size:t,lines:s,placements:i}),u=rN({item:e,validator:c});u?(u.height=e.bounds.height,u.width=e.bounds.width,i.push(u),e.setPlacement(u)):n&&a.push({item:e,validator:c})})),a.forEach((e=>{const{item:t,validator:n}=e,r=rN({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,i.push(r),t.setPlacement(r))}))}var iN={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,connect:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},target:{point:"point-component",allPoints:[]},lineIndex:"line",insideStrategy:"edge",labelSpace:{use:()=>!1,size:10}},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},{orientation:t,rtl:n,labelSpace:r}=this.settings.settings,{use:o,size:i}=r;if(o()){const r="horizontal"===t;e.edgeBleed.top=r?i:0,e.edgeBleed[n?"left":"right"]=r?0:i}return e},render(){if(!this.chart.component(this.settings.settings.target.point))return[];const{allPoints:e}=this.settings.settings.target,t=e.length?e=>this.settings.settings.target.allPoints.includes(e.key):e=>e.key===this.settings.settings.target.point,n=this.chart.findShapes("circle").filter(t);if(!n.length)return[];const{settings:r}=this.settings,o="horizontal"===r.orientation,i=o?"x":"y";n.sort(((e,t)=>e.localBounds[i]-t.localBounds[i]));const a={label:r.label,pointValue:r.pointValue,majorValue:r.majorValue,lineIndex:r.lineIndex},{height:s,width:l,edgeBleed:c}=this.rect,u={height:s,width:l,edgeBleed:c,insideStrategy:r.insideStrategy},{style:d}=this,p=Dk({nodes:n,extract:a,style:d,measureText:this.renderer.measureText,size:u,horizontal:o,rtl:r.rtl,showLabel:r.showLabel});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:p}),oN({model:p,size:u,all:r.all}),p.getItems().filter((e=>e.placement&&e.node.key===this.settings.settings.target.point)).map((e=>({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2,fontSize:d.fontSize,fontFamily:d.fontFamily,fill:d.fill,text:a.label(e.node.data),baseline:"central",anchor:"middle"})))}},aN={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var sN={require:["resolver","symbol"],defaultSettings:{settings:{type:"max",primaryExtremum:()=>{},secondaryExtremum:()=>{},primarySeries:[],secondarySeries:[],orientation:"horizontal",rtl:!1,major:{scale:"major-scale"},markerOffset:1,size:10},style:{fill:"#999"}},preferredSize(){return this.settings.settings.size},render(){const{items:e=[]}=this.data;if(!e.length)return[];const{type:t,orientation:n,rtl:r,markerOffset:o,size:i,major:a,primarySeries:s,secondarySeries:l}=this.settings.settings,c=this.settings.settings.primaryExtremum(),u=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==c,p=l.length&&void 0!==u;if(!d&&!p)return[];const m=s.map((e=>e.ref)),f=l.map((e=>e.ref)),h=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:o=[],primarySeries:i=[],secondarySeries:a=[]}){const s=[];return[...i,...a].forEach((i=>{const a=i.isPrimary?t:n,l=i.isPrimary?r:o;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const o="max"===e?e=>e>t:e=>e<t,i=n?e=>o(e.point.value<0?e.start.value:e.end.value):e=>o(e.end.value);return r.filter(i)})({type:e,extremum:a,items:l}))})),(({items:e})=>{const t=[],n=[];return e.forEach((e=>{const{value:r}=e.major;t[r]||(t[r]=!0,n.push(e))})),n})({items:s.reduce(((e,t)=>e.concat(t)),[])})}({type:t,primaryExtremum:c,secondaryExtremum:u,primaryItems:e.filter((e=>m.includes(e.end.source.field))),secondaryItems:e.filter((e=>f.includes(e.end.source.field))),primarySeries:s,secondarySeries:l});if(!h.length)return[];const g="horizontal"===n,v=this.rect[g?"width":"height"],y=this.resolver.resolve({data:{items:h},settings:{major:a},scaled:{major:v}}),b=("max"===t?90:-90)-(g?0:90)-(!g&&r?180:0),x=i/2*o,{fill:S}=this.settings.style;return y.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:o,y:i,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:o,y:i,data:a})}({symbol:this.symbol,size:i,fill:S,startAngle:b,x:g?v*e.major:x,y:g?x:v*e.major,data:e.data})))}};function lN({x:e,y:t,size:n,stroke:r,strokeWidth:o,fill:i}){return{type:"container",children:[{type:"line",stroke:r||i,strokeWidth:o,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:i,cx:e,cy:t,r:.25*n}]}}function cN({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))];return e.findShapes("path").filter((e=>r.some((t=>t===e.key)))).reduce(((e,n)=>((t.primary.some((e=>e.key===n.key))?e.primary:e.secondary).paths.push(n),e)),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function uN({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function dN({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(_a.SCALE.MAJOR),o=r&&r.max&&r.max(),i="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===o?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&i(e,t.max)))}}function pN({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:o,chart:i}){const a=e.brushes();if(!a.length)return[];const s=a[0],{minorRange:l,legendRange:c,legendTap:u}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let p=[c?e=>e.color.value:r[d]].filter(Boolean);if(o&&l&&p.push((e=>e.color.value)),!o&&u&&(p=[e=>e.color.value]),!p.length)return[];const m=function({brush:e,chart:t}){return("value"===e.type?uN:dN)({brush:e,chart:t})}({brush:s,chart:i});return m?n.reduce(((e,t,n)=>(p.some((e=>m({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function mN({chart:e,selected:t,connection:n,gradient:r,fallback:o}){const i=e.scale(_a.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a),c=l-s,u=0===c?1:c,d=i.domain().map((e=>({color:i(Math.min(l,Math.max(s,e)))||o,offset:Math.min(1,Math.max(0,(e-s)/u))}))),p=d.map((e=>e.offset)),m=p.lastIndexOf(0),f=p.indexOf(1),h=d.slice(-1===m?0:m,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function fN({chart:e,selected:t,connection:n,gradient:r,fallback:o}){const i=e.scale(_a.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a)-s,c=0===l?1:l,u=i.domain(),d=[];for(let e=0;e<u.length-1;e++){const t=u[e],n=i(t)||o;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/c))});const r=u[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/c))})}const p=d.map((e=>e.offset)),m=p.lastIndexOf(0),f=p.indexOf(1),h=d.slice(-1===m?0:m,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function hN({property:e,chart:t,connection:n,attrs:r,colorSettings:o,colorByData:i,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:c,orientation:u,rtl:d}){const p=r[e];if("gradient"!==p.type)return p;const{type:m,nil:f}=o;if(s||!i)return function({chart:e,selected:t,connection:n,gradient:r,fallback:o,orientation:i,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:c}){const u=e.scale(_a.SCALE.MAJOR),d=e.scale(_a.SCALE.COLOR),p=s?e=>u([e,0])+u.bandwidth()*l/2:e=>u(e),m=t.filter((e=>-1!==n.indexOf(e.index))),f=("vertical"===i&&c?m.reverse():m).map((e=>e.item)),h=f.map((e=>p(e.major.value))),g=Math.min(...h),v=Math.max(...h)-g,y=0===v?1:v,b=h.map(((e,t)=>0===t?0:t===h.length-1?1:(e-g)/y)),x=[];for(let e=0;e<f.length;e++){const t=f[e],n=a?t.color.value:d(t.color.value)||o,r=b[e];x.push({color:n,offset:0===e?0:Math.max(0,x[x.length-1].offset)}),x.push({color:n,offset:e===f.length-1?1:Math.max(0,parseFloat((r+(b[e+1]-r)/2).toFixed(5)))})}return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:x}}({chart:t,selected:a,connection:n,gradient:p,fallback:f,orientation:u,isColorCode:"color"===m,groupedByMeasure:l,itemsPerGroup:c,rtl:d});return("continuous"===m?mN:fN)({chart:t,selected:a,connection:n,gradient:p,fallback:f})}function gN({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:o,groupedByMeasure:i,itemsPerGroup:a,orientation:s,lineKey:l,primary:c,selected:u,connections:d,rtl:p,count:m}){const f=t.getLine(l,c),{attrs:h}=f,g=function({d:e}){return e.replace("Z","").split(/(?=[LMC])/).map((e=>{const t=e.substring(0,1),n={letter:t,x:0,y:0,raw:e},r=e.substring(1).split(",");return"M"===t||"L"===t?([n.x]=r,[,n.y]=r):"C"===t&&([,,,,n.x]=r,[,,,,,n.y]=r),n}))}({d:h.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:o,itemsPerGroup:i,orientation:a,selected:s,connection:l,commands:c,attrs:u,rtl:d,count:p}){return{path:l.map(((e,t)=>{const n=c[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join(""),attrs:u,stroke:hN({property:"stroke",chart:e,connection:l,attrs:u,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:o,itemsPerGroup:i,orientation:a,rtl:d,count:p})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:o,groupedByMeasure:i,itemsPerGroup:a,orientation:s,selected:u,connection:t,commands:g,attrs:h,rtl:p,count:m})))}function vN({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:o,items:i,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:p,rtl:m}){const f=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const o=n.typeIndex.value;var i;return e[o]||(e[o]={key:o,items:[],index:r,measureIx:null===(i=n.colorMeasureIdx)||void 0===i?void 0:i.value,primary:t.primary.some((e=>e.typeIndex===o))}),e[o].items.push(n),e}),{});return Object.keys(n).map((e=>n[e])).sort(((e,t)=>e.index-t.index)).map((e=>({lineKey:e.key,items:e.items,primary:e.primary,measureIx:e.measureIx})))}({items:function({items:e,selectionInfo:t,seriesInfo:n}){return e.filter((e=>{if("NaN"===e.end.value||Number.isNaN(e.end.value))return!1;const{minorRange:r,minorRangePrimary:o}=t;return!r||(o?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:i,selectionInfo:o,seriesInfo:n}),seriesInfo:n}),{lines:h}=f.reduce(((n,i)=>{const f=pN({brush:r,selectionInfo:o,items:i.items,selectionValues:a,colorByData:l,chart:e});if(f.length<2)return n;const h=function({selected:e}){return e.reduce(((e,t)=>{const{index:n}=t;if(e.length){const t=e[e.length-1];n===t[t.length-1]+1?t.push(n):e.push([n])}else e.push([n]);return e}),[]).filter((e=>e.length>1))}({selected:f});return h.length?(n.lines.push(...gN({chart:e,pathModel:t,colorSettings:s(i.measureIx),colorByData:l(i.measureIx),hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:p,lineKey:i.lineKey,primary:i.primary,selected:f,connections:h,rtl:m,count:i.items.length})),n):n}),{lines:[]}),g=[];return h.forEach((e=>g.push({type:"path",d:e.path,stroke:e.stroke,strokeLinejoin:e.attrs["stroke-linejoin"],strokeWidth:e.attrs["stroke-width"],strokeDasharray:e.attrs["stroke-dasharray"],fill:"none"}))),g}var yN={require:["chart","renderer"],defaultSettings:{settings:{seriesInfo:{primary:[],secondary:[]},selectionValues:{},colorSettings:void 0,colorByData:!1,isColorCode:!1,hasMultipleMeasures:!1,groupedByMeasure:!1,itemsPerGroup:1,orientation:"vertical",rtl:!1}},addListener(e,t){this.state.brush.addListener(e,t),this.state.listeners.push({type:e,fn:t})},removeListeners(){this.state.listeners.forEach((e=>this.state.brush.removeListener(e.type,e.fn))),this.state.listeners.length=0},created(){this.state={pathModel:cN({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),brush:this.chart.brush("selection"),listeners:[],selectionInfo:{minorRange:!1,minorRangePrimary:!1,legendRange:!1,legendTap:!1}}},mounted(){this.addListener("update",(()=>{this.state.selectionInfo=this.settings.settings.getSelectionInfo();const e=vN({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl});this.renderer.render(e)})),this.addListener("end",(()=>{this.renderer.render([])}))},render(){this.state.pathModel=cN({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return vN({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl})},destroyed(){this.removeListeners()}};const bN={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},xN=e=>void 0===e.marker?bN.circle:bN[e.marker],SN=e=>void 0===e.markerFill||e.markerFill;function EN({series:e,layoutService:t}){switch(su(e)){case Ua.MARKER:return(e=>({marker:xN(e),fill:SN(e)}))(e);case Ua.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);default:return{}}}function MN(e=Ga,t){return t?e.axis===Ya.PRIMARY:e.axis===Ya.PRIMARY||su(e)===Ua.BAR}var CN={exports:{}};var wN={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var kN="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=wN,r=kN,o=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let s=0;const l=(e,t,n)=>{const l=s++;r(l,t),a[e]=l,i[l]=t,o[l]=new RegExp(t,n?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),l("FULL",`^${i[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),l("LOOSE",`^${i[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",i[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",i[a.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),l("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",i[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(CN,CN.exports);const NN=["includePrerelease","loose","rtl"];var TN=e=>e?"object"!=typeof e?{loose:!0}:NN.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};const ON=/^[0-9]+$/,RN=(e,t)=>{const n=ON.test(e),r=ON.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var AN={compareIdentifiers:RN,rcompareIdentifiers:(e,t)=>RN(t,e)};const LN=kN,{MAX_LENGTH:IN,MAX_SAFE_INTEGER:PN}=wN,{re:DN,t:qN}=CN.exports,zN=TN,{compareIdentifiers:BN}=AN;class $N{constructor(e,t){if(t=zN(t),e instanceof $N){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>IN)throw new TypeError(`version is longer than ${IN} characters`);LN("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?DN[qN.LOOSE]:DN[qN.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>PN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>PN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>PN||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<PN)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(LN("SemVer.compare",this.version,this.options,e),!(e instanceof $N)){if("string"==typeof e&&e===this.version)return 0;e=new $N(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof $N||(e=new $N(e,this.options)),BN(this.major,e.major)||BN(this.minor,e.minor)||BN(this.patch,e.patch)}comparePre(e){if(e instanceof $N||(e=new $N(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],r=e.prerelease[t];if(LN("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return BN(n,r)}while(++t)}compareBuild(e){e instanceof $N||(e=new $N(e,this.options));let t=0;do{const n=this.build[t],r=e.build[t];if(LN("prerelease compare",t,n,r),void 0===n&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(n!==r)return BN(n,r)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}var FN=$N;const{MAX_LENGTH:HN}=wN,{re:jN,t:VN}=CN.exports,WN=FN,_N=TN;var UN=(e,t)=>{if(t=_N(t),e instanceof WN)return e;if("string"!=typeof e)return null;if(e.length>HN)return null;if(!(t.loose?jN[VN.LOOSE]:jN[VN.FULL]).test(e))return null;try{return new WN(e,t)}catch(e){return null}};const YN=UN;var GN=(e,t)=>{const n=YN(e,t);return n?n.version:null};const KN=UN;var XN=(e,t)=>{const n=KN(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const JN=FN;var ZN=(e,t,n,r)=>{"string"==typeof n&&(r=n,n=void 0);try{return new JN(e,n).inc(t,r).version}catch(e){return null}};const QN=FN;var eT=(e,t,n)=>new QN(e,n).compare(new QN(t,n));const tT=eT;var nT=(e,t,n)=>0===tT(e,t,n);const rT=UN,oT=nT;var iT=(e,t)=>{if(oT(e,t))return null;{const n=rT(e),r=rT(t),o=n.prerelease.length||r.prerelease.length,i=o?"pre":"",a=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==r[e])return i+e;return a}};const aT=FN;var sT=(e,t)=>new aT(e,t).major;const lT=FN;var cT=(e,t)=>new lT(e,t).minor;const uT=FN;var dT=(e,t)=>new uT(e,t).patch;const pT=UN;var mT=(e,t)=>{const n=pT(e,t);return n&&n.prerelease.length?n.prerelease:null};const fT=eT;var hT=(e,t,n)=>fT(t,e,n);const gT=eT;var vT=(e,t)=>gT(e,t,!0);const yT=FN;var bT=(e,t,n)=>{const r=new yT(e,n),o=new yT(t,n);return r.compare(o)||r.compareBuild(o)};const xT=bT;var ST=(e,t)=>e.sort(((e,n)=>xT(e,n,t)));const ET=bT;var MT=(e,t)=>e.sort(((e,n)=>ET(n,e,t)));const CT=eT;var wT=(e,t,n)=>CT(e,t,n)>0;const kT=eT;var NT=(e,t,n)=>kT(e,t,n)<0;const TT=eT;var OT=(e,t,n)=>0!==TT(e,t,n);const RT=eT;var AT=(e,t,n)=>RT(e,t,n)>=0;const LT=eT;var IT=(e,t,n)=>LT(e,t,n)<=0;const PT=nT,DT=OT,qT=wT,zT=AT,BT=NT,$T=IT;var FT=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return PT(e,n,r);case"!=":return DT(e,n,r);case">":return qT(e,n,r);case">=":return zT(e,n,r);case"<":return BT(e,n,r);case"<=":return $T(e,n,r);default:throw new TypeError("Invalid operator: "+t)}};const HT=FN,jT=UN,{re:VT,t:WT}=CN.exports;var _T,UT,YT,GT,KT,XT,JT,ZT,QT,eO,tO=(e,t)=>{if(e instanceof HT)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=VT[WT.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),VT[WT.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;VT[WT.COERCERTL].lastIndex=-1}else n=e.match(VT[WT.COERCE]);return null===n?null:jT(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};function nO(){if(GT)return YT;function e(t){var n=this;if(n instanceof e||(n=new e),n.tail=null,n.head=null,n.length=0,t&&"function"==typeof t.forEach)t.forEach((function(e){n.push(e)}));else if(arguments.length>0)for(var r=0,o=arguments.length;r<o;r++)n.push(arguments[r]);return n}function t(e,t,n){var r=t===e.head?new o(n,null,t,e):new o(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function n(e,t){e.tail=new o(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function r(e,t){e.head=new o(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function o(e,t,n,r){if(!(this instanceof o))return new o(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}GT=1,YT=e,e.Node=o,e.create=e,e.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},e.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},e.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},e.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},e.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},e.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},e.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},e.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},e.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},e.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},e.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},e.prototype.map=function(t,n){n=n||this;for(var r=new e,o=this.head;null!==o;)r.push(t.call(n,o.value,this)),o=o.next;return r},e.prototype.mapReverse=function(t,n){n=n||this;for(var r=new e,o=this.tail;null!==o;)r.push(t.call(n,o.value,this)),o=o.prev;return r},e.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},e.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},e.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},e.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},e.prototype.slice=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var o=0,i=this.head;null!==i&&o<t;o++)i=i.next;for(;null!==i&&o<n;o++,i=i.next)r.push(i.value);return r},e.prototype.sliceReverse=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var o=this.length,i=this.tail;null!==i&&o>n;o--)i=i.prev;for(;null!==i&&o>t;o--,i=i.prev)r.push(i.value);return r},e.prototype.splice=function(e,n,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var o=0,i=this.head;null!==i&&o<e;o++)i=i.next;var a=[];for(o=0;i&&o<n;o++)a.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(o=0;o<r.length;o++)i=t(this,i,r[o]);return a},e.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(UT?_T:(UT=1,_T=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return YT}function rO(){if(ZT)return JT;ZT=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!d(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&p(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,i=t.get(n);if(i)return i;const p=this.options.loose,m=p?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE];e=e.replace(m,C(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),o("comparator trim",e,a[s.COMPARATORTRIM]),e=(e=(e=e.replace(a[s.TILDETRIM],c)).replace(a[s.CARETTRIM],u)).split(/\s+/).join(" ");const h=p?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],g=e.split(" ").map((e=>f(e,this.options))).join(" ").split(/\s+/).map((e=>M(e,this.options))).filter(this.options.loose?e=>!!e.match(h):()=>!0).map((e=>new r(e,this.options)));g.length;const v=new Map;for(const e of g){if(d(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const y=[...v.values()];return t.set(n,y),y}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>m(e,n)&&t.set.some((t=>m(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(w(this.set[t],e,this.options))return!0;return!1}}JT=e;const t=new(function(){if(XT)return KT;XT=1;const e=nO(),t=Symbol("max"),n=Symbol("length"),r=Symbol("lengthCalculator"),o=Symbol("allowStale"),i=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),c=Symbol("cache"),u=Symbol("updateAgeOnGet"),d=()=>1,p=(e,t,n)=>{const r=e[c].get(t);if(r){const t=r.value;if(m(e,t)){if(h(e,r),!e[o])return}else n&&(e[u]&&(r.value.now=Date.now()),e[l].unshiftNode(r));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[i])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[i]&&n>e[i]},f=e=>{if(e[n]>e[t])for(let r=e[l].tail;e[n]>e[t]&&null!==r;){const t=r.prev;h(e,r),r=t}},h=(e,t)=>{if(t){const r=t.value;e[a]&&e[a](r.key,r.value),e[n]-=r.length,e[c].delete(r.key),e[l].removeNode(t)}};class g{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const v=(e,t,n,r)=>{let i=n.value;m(e,i)&&(h(e,n),e[o]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};return KT=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[t]=e.max||1/0;const n=e.length||d;if(this[r]="function"!=typeof n?d:n,this[o]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[i]=e.maxAge||0,this[a]=e.dispose,this[s]=e.noDisposeOnSet||!1,this[u]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[t]=e||1/0,f(this)}get max(){return this[t]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[i]=e,f(this)}get maxAge(){return this[i]}set lengthCalculator(e){"function"!=typeof e&&(e=d),e!==this[r]&&(this[r]=e,this[n]=0,this[l].forEach((e=>{e.length=this[r](e.value,e.key),this[n]+=e.length}))),f(this)}get lengthCalculator(){return this[r]}get length(){return this[n]}get itemCount(){return this[l].length}rforEach(e,t){t=t||this;for(let n=this[l].tail;null!==n;){const r=n.prev;v(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[l].head;null!==n;){const r=n.next;v(this,e,n,t),n=r}}keys(){return this[l].toArray().map((e=>e.key))}values(){return this[l].toArray().map((e=>e.value))}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach((e=>this[a](e.key,e.value))),this[c]=new Map,this[l]=new e,this[n]=0}dump(){return this[l].map((e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[l]}set(e,o,u){if((u=u||this[i])&&"number"!=typeof u)throw new TypeError("maxAge must be a number");const d=u?Date.now():0,p=this[r](o,e);if(this[c].has(e)){if(p>this[t])return h(this,this[c].get(e)),!1;const r=this[c].get(e).value;return this[a]&&(this[s]||this[a](e,r.value)),r.now=d,r.maxAge=u,r.value=o,this[n]+=p-r.length,r.length=p,this.get(e),f(this),!0}const m=new g(e,o,p,d,u);return m.length>this[t]?(this[a]&&this[a](e,o),!1):(this[n]+=m.length,this[l].unshift(m),this[c].set(e,this[l].head),f(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!m(this,t)}get(e){return p(this,e,!0)}peek(e){return p(this,e,!1)}pop(){const e=this[l].tail;return e?(h(this,e),e.value):null}del(e){h(this,this[c].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[c].forEach(((e,t)=>p(this,t,!1)))}}}())({max:1e3}),n=TN,r=oO(),o=kN,i=FN,{re:a,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:u}=CN.exports,d=e=>"<0.0.0-0"===e.value,p=e=>""===e.value,m=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},f=(e,t)=>(o("comp",e,t),e=y(e,t),o("caret",e),e=g(e,t),o("tildes",e),e=x(e,t),o("xrange",e),e=E(e,t),o("stars",e),e),h=e=>!e||"x"===e.toLowerCase()||"*"===e,g=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{const n=t.loose?a[s.TILDELOOSE]:a[s.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),h(n)?s="":h(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:h(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},y=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{o("caret",e,t);const n=t.loose?a[s.CARETLOOSE]:a[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),h(n)?l="":h(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:h(a)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",l),l}))},x=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>{e=e.trim();const n=t.loose?a[s.XRANGELOOSE]:a[s.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=h(i),u=c||h(a),d=u||h(s),p=d;return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},E=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),M=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),C=e=>(t,n,r,o,i,a,s,l,c,u,d,p,m)=>`${n=h(r)?"":h(o)?`>=${r}.0.0${e?"-0":""}`:h(i)?`>=${r}.${o}.0${e?"-0":""}`:a?">="+n:`>=${n}${e?"-0":""}`} ${l=h(c)?"":h(u)?`<${+c+1}.0.0-0`:h(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:"<="+l}`.trim(),w=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return JT}function oO(){if(eO)return QT;eO=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError("Invalid comparator: "+t);this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new s(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");if(n&&"object"==typeof n||(n={loose:!!n,includePrerelease:!1}),""===this.operator)return""===this.value||new l(e.value,n).test(this.value);if(""===e.operator)return""===e.value||new l(this.value,n).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),c=i(this.semver,"<",e.semver,n)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=i(this.semver,">",e.semver,n)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||a&&s||c||u}}QT=t;const n=TN,{re:r,t:o}=CN.exports,i=FT,a=kN,s=FN,l=rO();return QT}const iO=rO();var aO=(e,t,n)=>{try{t=new iO(t,n)}catch(e){return!1}return t.test(e)};const sO=rO();var lO=(e,t)=>new sO(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const cO=FN,uO=rO();var dO=(e,t,n)=>{let r=null,o=null,i=null;try{i=new uO(t,n)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(r&&-1!==o.compare(e)||(r=e,o=new cO(r,n)))})),r};const pO=FN,mO=rO();var fO=(e,t,n)=>{let r=null,o=null,i=null;try{i=new mO(t,n)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new pO(r,n)))})),r};const hO=FN,gO=rO(),vO=wT;var yO=(e,t)=>{e=new gO(e,t);let n=new hO("0.0.0");if(e.test(n))return n;if(n=new hO("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let o=null;r.forEach((e=>{const t=new hO(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!vO(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})),!o||n&&!vO(n,o)||(n=o)}return n&&e.test(n)?n:null};const bO=rO();var xO=(e,t)=>{try{return new bO(e,t).range||"*"}catch(e){return null}};const SO=FN,EO=oO(),{ANY:MO}=EO,CO=rO(),wO=aO,kO=wT,NO=NT,TO=IT,OO=AT;var RO=(e,t,n,r)=>{let o,i,a,s,l;switch(e=new SO(e,r),t=new CO(t,r),n){case">":o=kO,i=TO,a=NO,s=">",l=">=";break;case"<":o=NO,i=OO,a=kO,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(wO(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const c=t.set[n];let u=null,d=null;if(c.forEach((e=>{e.semver===MO&&(e=new EO(">=0.0.0")),u=u||e,d=d||e,o(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===s||u.operator===l)return!1;if((!d.operator||d.operator===s)&&i(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const AO=RO;var LO=(e,t,n)=>AO(e,t,">",n);const IO=RO;var PO=(e,t,n)=>IO(e,t,"<",n);const DO=rO();var qO=(e,t,n)=>(e=new DO(e,n),t=new DO(t,n),e.intersects(t));const zO=aO,BO=eT;const $O=rO(),FO=oO(),{ANY:HO}=FO,jO=aO,VO=eT,WO=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===HO){if(1===t.length&&t[0].semver===HO)return!0;e=n.includePrerelease?[new FO(">=0.0.0-0")]:[new FO(">=0.0.0")]}if(1===t.length&&t[0].semver===HO){if(n.includePrerelease)return!0;t=[new FO(">=0.0.0")]}const r=new Set;let o,i,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?o=_O(o,t,n):"<"===t.operator||"<="===t.operator?i=UO(i,t,n):r.add(t.semver);if(r.size>1)return null;if(o&&i){if(a=VO(o.semver,i.semver,n),a>0)return null;if(0===a&&(">="!==o.operator||"<="!==i.operator))return null}for(const e of r){if(o&&!jO(e,String(o),n))return null;if(i&&!jO(e,String(i),n))return null;for(const r of t)if(!jO(e,String(r),n))return!1;return!0}let d=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver,p=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver;d&&1===d.prerelease.length&&"<"===i.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(u=u||">"===e.operator||">="===e.operator,c=c||"<"===e.operator||"<="===e.operator,o)if(p&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===p.major&&e.semver.minor===p.minor&&e.semver.patch===p.patch&&(p=!1),">"===e.operator||">="===e.operator){if(s=_O(o,e,n),s===e&&s!==o)return!1}else if(">="===o.operator&&!jO(o.semver,String(e),n))return!1;if(i)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=UO(i,e,n),l===e&&l!==i)return!1}else if("<="===i.operator&&!jO(i.semver,String(e),n))return!1;if(!e.operator&&(i||o)&&0!==a)return!1}return!(o&&c&&!i&&0!==a)&&(!(i&&u&&!o&&0!==a)&&(!p&&!d))},_O=(e,t,n)=>{if(!e)return t;const r=VO(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},UO=(e,t,n)=>{if(!e)return t;const r=VO(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var YO=(e,t,n={})=>{if(e===t)return!0;e=new $O(e,n),t=new $O(t,n);let r=!1;e:for(const o of e.set){for(const e of t.set){const t=WO(o,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const GO=CN.exports;var KO={re:GO.re,src:GO.src,tokens:GO.t,SEMVER_SPEC_VERSION:wN.SEMVER_SPEC_VERSION,SemVer:FN,compareIdentifiers:AN.compareIdentifiers,rcompareIdentifiers:AN.rcompareIdentifiers,parse:UN,valid:GN,clean:XN,inc:ZN,diff:iT,major:sT,minor:cT,patch:dT,prerelease:mT,compare:eT,rcompare:hT,compareLoose:vT,compareBuild:bT,sort:ST,rsort:MT,gt:wT,lt:NT,eq:nT,neq:OT,gte:AT,lte:IT,cmp:FT,coerce:tO,Comparator:oO(),Range:rO(),satisfies:aO,toComparators:lO,maxSatisfying:dO,minSatisfying:fO,minVersion:yO,validRange:xO,outside:RO,gtr:LO,ltr:PO,intersects:qO,simplifyRange:(e,t,n)=>{const r=[];let o=null,i=null;const a=e.sort(((e,t)=>BO(e,t,n)));for(const e of a){zO(e,t,n)?(i=e,o||(o=e)):(i&&r.push([o,i]),i=null,o=null)}o&&r.push([o,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push("<="+t):s.push(`${e} - ${t}`):s.push(">="+e):s.push("*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t},subset:YO},XO="0.23.1";const JO=e=>!e||KO.lt(KO.coerce(e),KO.coerce(XO));function ZO(){return function({layout:e}){var t,n,r;const o=E(e,"qHyperCube.qMeasureInfo",[]),i=o.some((({series:e=Ga})=>su(e)===Ua.LINE)),a=pe.continuous(e,(()=>i&&se.isTime(!0,e))),s=!JO(E(e,"version","")),l=o.filter((({series:e=Ga})=>su(e)===Ua.BAR)),c=l.length,u=l.filter((({series:e=Ga})=>e.axis!==Ya.SECONDARY)).length,d=l.filter((({series:e=Ga})=>e.axis===Ya.SECONDARY)).length,p=s?u>1||d>1:c>1,m=("grouped"!==E(e,"barGrouping.grouping")||a)&&p,f=!m&&c>1,h=s&&m&&(u>0&&d>1||u>1&&d>0),g=!(null==e||null===(t=e.qHyperCube)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n||null===(r=n[0])||void 0===r||!r.qLocked);return{canBeContinuous:se.canBeContinuous(e),isDiscrete:!a,isContinuous:a,isTime:se.isTime(a,e),isSnapshot:pe.snapshot(e),isBarSeriesStacked:m,isBarSeriesGrouped:f,isBarSeriesStackedInBothAxis:h,isGrouped:f||h,isGroupedByMeasure:f||h,isDimensionLocked:g,groupSize:h?2:c,hasLineSeries:i}}}function QO({layoutService:e}){const{dimensionCount:t,measureCount:n}=e.meta;return{qTop:0,qLeft:0,qWidth:t+n,qHeight:Math.min(2e3,1e4/(n+1))}}const eR=e=>"number"==typeof e&&!Number.isNaN(e);function tR({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),o=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),i=o.filter((e=>su(e.series)===Ua.BAR)),a=o.filter((e=>su(e.series)===Ua.LINE)),s=o.filter((e=>su(e.series)===Ua.MARKER));return{min:Math.min(...o.filter((e=>eR(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>eR(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...i.filter((e=>eR(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>eR(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>eR(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>eR(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>eR(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>eR(e.qMax))).map((e=>e.qMax)))}}}}function nR({isPrimary:e,layoutService:t,seriesModel:n}){const r=tR({isPrimary:e,layoutService:t,seriesModel:n}),o=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(Ua.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:o}=n,i={min:NaN,max:NaN};return o.forEach((e=>{let t=0,n=0;e.slice(1).filter(((e,t)=>r.some((e=>e===t))&&"NaN"!==e.qNum)).forEach((e=>{e.qNum>=0?n+=e.qNum:t+=e.qNum})),i.min=Number.isNaN(i.min)?t:Math.min(t,i.min),i.max=Number.isNaN(i.max)?n:Math.max(n,i.max)})),i}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=o({dataPage:e}),t.min=Math.min(t.bar.min,t.line.min,t.marker.min),t.max=Math.max(t.bar.max,t.line.max,t.marker.max),t}}function rR({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:o}){const i={min:NaN,max:NaN,implicit:{min:NaN,max:NaN,bar:{min:NaN,max:NaN},line:{min:NaN,max:NaN},marker:{min:NaN,max:NaN}},explicit:{min:NaN,max:NaN},meta:{hasExplicit:!1,hasExplicitMin:!1,hasExplicitMax:!1,includesZero:!1}},a=function({isPrimary:e,layoutService:t,seriesModel:n}){const{isBarSeriesStacked:r}=t.meta,o=n.query.series(Ua.BAR).filter((t=>t.isPrimary===e)).length;return!r||o<2?tR({isPrimary:e,layoutService:t,seriesModel:n}):nR({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:o});return{query:{getExtrema:()=>i},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,o=r("measureAxes."+(e?0:1),{});if(o.autoMinMax)return n;const{minMax:i,min:a,max:s}=o;return"min"!==i&&"minMax"!==i||(n.min=a),"max"!==i&&"minMax"!==i||(n.max=s),Number.isNaN(n.min)||Number.isNaN(n.max)||(n.min=Math.min(a,s),n.max=Math.max(a,s)),n}({isPrimary:e,layoutService:n});return i.explicit.min=s,i.explicit.max=l,i.meta.hasExplicitMin=!Number.isNaN(s),i.meta.hasExplicitMax=!Number.isNaN(l),i.meta.hasExplicit=i.meta.hasExplicitMin||i.meta.hasExplicitMax,function({continuousModel:e,layoutService:t,reducedModel:n}){const{isDiscrete:r}=t.meta;if(r){const e=n.query.getCube();return Promise.resolve({dataPage:e.qDataPages[0]})}return e.fetchMinMaxData().then((e=>({dataPage:e[0]})))}({continuousModel:t,layoutService:n,reducedModel:r}).then((({dataPage:t})=>{const{min:n,max:r,bar:s,line:l,marker:c}=a({dataPage:t}),u=o.query.seriesByAxis(e).some((e=>su(e)===Ua.BAR)),d=u?Math.min(n,0):n,p=u?Math.max(r,0):r,m=u?Math.min(s.min,0):s.min,f=u?Math.max(s.max,0):s.max,h=u?Math.min(l.min,0):l.min,g=u?Math.max(l.max,0):l.max,v=u?Math.min(c.min,0):c.min,y=u?Math.max(c.max,0):c.max;i.implicit.min=Number.isFinite(d)?d:0,i.implicit.max=Number.isFinite(p)?p:0,i.implicit.bar.min=Number.isFinite(m)?m:0,i.implicit.bar.max=Number.isFinite(f)?f:0,i.implicit.line.min=Number.isFinite(h)?h:0,i.implicit.line.max=Number.isFinite(g)?g:0,i.implicit.marker.min=Number.isFinite(v)?v:0,i.implicit.marker.max=Number.isFinite(y)?y:0,i.min=Number.isNaN(i.explicit.min)?i.implicit.min:i.explicit.min,i.max=Number.isNaN(i.explicit.max)?i.implicit.max:i.explicit.max,i.meta.hasExplicitMin&&!i.meta.hasExplicitMax&&(i.max=Math.max(i.min,i.max)),i.meta.hasExplicitMax&&!i.meta.hasExplicitMin&&(i.min=Math.min(i.min,i.max)),i.meta.includesZero=!!((0-i.min)*(0-i.max)<=0)}))}}}}function oR({extrema:e,ticks:t}){const n=e.meta.hasExplicit?2:3;return t.filter((t=>(t=>!e.meta.hasExplicitMin||t>=e.explicit.min)(t)&&(t=>!e.meta.hasExplicitMax||t<=e.explicit.max)(t))).length>=n}function iR({min:e,max:t,count:n,threshold:r,disable:o}){const i=function(e,t,n){const r=Ar().domain([e,t]);return r.nice(n),r}(e,t,n),a=function({min:e,max:t,threshold:n,scale:r,disable:o}){const i={start:!0,stop:!0};if(o)return i;const[a,s]=r.domain();return 0!==e&&0!==a&&(i.start=r(e)>n),0!==t&&0!==s&&(i.stop=r(t)<1-n),i}({min:e,max:t,threshold:r,scale:i,disable:o});if(!a.start||!a.stop){const[e,t]=i.domain(),r=i.ticks(n),o=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;i.domain([a.start?e:e-o,a.stop?t:t+s]),i.nice(n)}return i}const aR=50,sR=100,lR=200,cR=125;function uR({config:{measureAxesRef:e},layoutService:t,size:n}){const r=(e=>{switch(e){case.5:return aR;case 1:return sR;case 2:return lR;default:return e*cR}})(t.getLayoutValue(e+".spacing",1));return Math.max(1,Math.round(n/r))}function dR({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:i,min:a,max:s}){const l=uR({config:e,layoutService:n,size:i}),c=iR({min:a,max:s,count:l,threshold:.05,disable:!0}),u=c.domain(),d={roundedMin:u[0],roundedMax:u[1],ticks:c.ticks(l)},p="horizontal"===r.meta.major.orientation?"height":"width",m=e=>o(e)[p],f=t.formatter(e.formatter),h=()=>{const e=d.ticks.map(f);return!e.some(((t,n)=>e.indexOf(t)!==n))&&(e=>{const t=i/d.ticks.length;return Math.max(...e.map(m))<=t})(e)};for(let e=l-1;e>0&&!h();e--)c.domain([a,s]),c.nice(e),[d.roundedMin,d.roundedMax]=c.domain(),d.ticks=c.ticks(e);return d}function pR({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function mR({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}function fR({config:e,chart:t,extrema:n,min:r,max:o}){const i={roundedMin:0,roundedMax:0,ticks:[]},a=iR({min:r,max:o,count:10,threshold:.15,disable:!0});[i.roundedMin,i.roundedMax]=a.domain();const s=a.ticks(10),l=function({ticks:e}){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?pR:mR;i.ticks=s.filter(((e,t,n)=>c({tick:e,index:t,ticks:n})));i.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(i.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const u=t.formatter(e.formatter),d=i.ticks.map(u);return d.some(((e,t)=>d.indexOf(e)!==t))&&(i.ticks=[i.ticks[0],i.ticks[i.ticks.length-1]]),i}function hR({ticks:e,extrema:t}){let n=[...e];return t.meta.hasExplicit&&e.length?(t.meta.hasExplicitMin&&!e.some((e=>e===t.explicit.min))&&(n.unshift(t.explicit.min),n=n.filter((e=>e>=t.explicit.min))),t.meta.hasExplicitMax&&!e.some((e=>e===t.explicit.max))&&(n.push(t.explicit.max),n=n.filter((e=>e<=t.explicit.max))),n):n}function gR({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l}){const{ticks:c,roundedMin:u,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l}){if("SPARK"===r.meta.chart.mode)return function({min:e,max:t}){return{roundedMin:e,roundedMax:t,ticks:[]}}({min:s,max:l});const c=dR({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:a,min:s,max:l});return oR({extrema:o,ticks:c.ticks})?c:fR({config:e,chart:t,extrema:o,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l}),p=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const o=e[r],i=(e[r+1]-o)/(t+1);for(let e=1;e<=t;e++)n.push(o+i*e)}return n}({ticks:c,count:1});return{min:u,max:d,values:[...hR({ticks:c,extrema:o}).map((e=>({value:e,isMinor:!1}))),...p.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value))}}function vR({config:e,chart:t,layoutService:n,dockService:r,measureText:o,extrema:i,size:a}){const{min:s,max:l}=function({extrema:e}){const{min:t,max:n}=e;return t!==n?{min:t,max:n}:0===t||1===t?{min:t-1,max:n+1}:{min:t-.2*t*Math.sign(t),max:n+.2*n*Math.sign(n)}}({extrema:i});return gR({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l})}function yR({config:e,chart:t,layoutService:n,extremumModel:r,dockService:o,seriesModel:i,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,c=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:o,seriesModel:i,themeService:a}){const{measureText:s}=q.renderer("svg")();return()=>{const l=a.getStyles(),c=function({dockService:e,seriesModel:t,chart:n}){var r;const o=n.component(t.meta.seriesComponentKeys[0]),i=null!==(r=null==o?void 0:o.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?i.height:i.width}({chart:e,dockService:n,seriesModel:i}),u=r.query.getExtrema();return vR({config:t,chart:e,layoutService:o,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:u,size:c})}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:o,seriesModel:i,themeService:a}),u=()=>(s.locked&&s.resolved||(s.resolved=c()),s.resolved);return{query:{getValues:()=>u().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:u().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:u().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function bR({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:o,fieldType:i}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===o?"measure"===i?()=>({type:Ua.BAR}):()=>t.query.all()[0]:e=>t.query.all()[e.value];return{item:{shape:{type:({datum:e})=>{const{type:t,options:n}=s(e);switch(t){case"line":return a;case"marker":return n.marker;default:return"square"}},stroke:{},strokeWidth:({datum:e})=>{const{type:t,options:n}=s(e);return t===Ua.LINE?2:t!==Ua.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==Ua.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function xR({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function SR({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:o,genericObjectModel:i,layoutService:a,picasso:s,seriesModel:l,viewState:c}){let u;const{theme:d,translator:p}=o,m={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return u=k({picasso:s,model:i,app:n,translator:p,layoutService:a,createConfig:()=>{const e=a.getHyperCubeValue("qMeasureInfo").map((e=>e.color));return{theme:d,colorProps:{measureOverrides:e},legendProps:a.getLayoutValue("legend"),hc:a.getHyperCube(),key:_a.SCALE.COLOR}},config:{auto:xR,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>m.wrappedScales,legendComponents:()=>m.legendComponents,legendInteractions:()=>m.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:i}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:o,colorService:i,actions:a}){const{options:s}=o,l={eventName:"legend-c",key:_a.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",rtl:"rtl"===s.direction,settings:bR({layoutService:n,seriesModel:r,colorService:i})},{components:c,interactions:u}=i.getLegend(l,{actions:a,navigationDisabled:!a.interact.enabled()}),d=i.getScales();return{components:c.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=d[_a.SCALE.COLOR+"Range"];return!r||"right"!==n&&"left"!==n||(r.invert=!0),"legend-cat"===e.type&&(e.settings.item.shape.fill.scale=e.scale,e.settings.item.shape.stroke.scale=e.scale),e})),interactions:u,scales:d}}({viewState:c,chart:r,environment:o,colorService:u,seriesModel:l,layoutService:a,actions:e});m.wrappedScales=i,m.legendComponents=t,m.legendInteractions=n}}}),u}const ER="REJECTED",MR=()=>{},CR=1e4,wR=2,kR=20,NR=200,TR=10;var OR={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-TR<=t.qTop,o=n.qLeft+n.qWidth+TR>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+TR>=t.qTop+t.qHeight,a=n.qLeft-TR<=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 RR={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-TR<=t.qTop,o=n.qTop+n.qHeight+TR>=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 AR={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 LR="pages";const IR="discretePan";function PR({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:IR,pointers:1,threshold:10,enable(r,o){return this.started===IR||!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=IR;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 DR({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 qR({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{gestures:[PR({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:DR({chart:e,actions:t,componentKey:n,scroller:i})}}}}function zR({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(CR/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(NR,n));return{width:e,height:Math.max(kR,Math.min(n*wR,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 BR(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(ER),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(ER),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(ER),n=null)},o}const $R={command:{update:()=>{}}};var FR={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 HR={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 jR(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function VR(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 WR(e){return VR(e.qMatrix,(e=>e[0].qElemNumber))-1}var _R={inTotal:function({layoutService:e}){const t=jR(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=jR(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=jR(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=WR(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 UR=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function YR(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return UR(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:UR(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return UR(e,n);return VR(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var GR={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=YR(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=YR(t).area(e(),l,a.qArea),d=WR(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 KR({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 XR={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}};function JR({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:r,defaultValue:o,index:i})=>{const a=n&&Object.hasOwnProperty.call(n,r)?n[r]:o;if(void 0===i)return a;const{style:s}=e.getHyperCubeValue((e=>`qMeasureInfo.${e}.styling`)(i),[]).filter((e=>e.key===t))[0]||{};return s&&Object.hasOwnProperty.call(s,r)?s[r]:a}}function ZR({dataset:e,data:t,valueData:n}){var r;const{source:o,label:i,value:a}=n,s=e(o.key).field(o.field);return s.raw().isCustomFormatted?i:"-"===i||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a)}function QR({chart:e,actions:t,translator:n,rtl:r,dockService:o,seriesModel:i,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,p=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:m}=_a.COMPONENT,{PRIMARY:f,SECONDARY:h}=Ya,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:o,SLICED_HAT:i}=_a.COMPONENT,{PRIMARY:a,SECONDARY:s}=Ya,{orientation:l}=e.meta.chart,c="vertical"===l,u=[...t.meta.barComponentKeys,...t.meta.markerComponentKeys,...t.meta.pointComponentKeys];return[({chart:e,hovered:t,meta:l})=>{const[d]=t,{triggerer:p}=l,m=p===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${i}-max-${a}`||e.key===`${i}-max-${s}`)&&e.data&&e.data.value===m&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const f=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===o+"-max")&&e.data.major.value===m));if(c&&f)return{key:f.key,bounds:f.bounds};const h=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===o+"-min")&&e.data.major.value===m)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===m));if(c&&h&&!g.find((e=>e.data.end.source.field!==h.data.end.source.field)))return{key:h.key,bounds:h.bounds};const v=f||h;return!(c||!v||g.find((e=>e.data.end.source.field!==v.data.end.source.field)))&&{key:v.key,bounds:v.bounds}},"collectible"]}({dockService:o,seriesModel:i});return N({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:_a.COMPONENT.TOOLTIP,getGroupByValue:d,collectibles:[...i.meta.barComponentKeys.map((e=>({key:e,type:"bar",major:d}))),...i.meta.pointComponentKeys.map((e=>({key:e,type:"point",major:d}))),...i.meta.markers.map((e=>({key:e.key,type:e.type,major:d})))],triggers:[{keys:[_a.COMPONENT.AXIS.MAJOR],collect:{from:"dimension",by:({data:e})=>e.value,filter:p},placement:g},{keys:[...i.meta.barComponentKeys,...i.meta.markerComponentKeys,`${m}-max-${f}`,`${m}-max-${h}`,`${m}-min-${f}`,`${m}-min-${h}`,`${_a.COMPONENT.BAR_OOB}-max-${f}`,`${_a.COMPONENT.BAR_OOB}-max-${h}`,`${_a.COMPONENT.BAR_OOB}-min-${f}`,`${_a.COMPONENT.BAR_OOB}-min-${h}`,_a.COMPONENT.DATA_OOB_MARKER+"-max",_a.COMPONENT.DATA_OOB_MARKER+"-min"],collect:{from:"dimension",by:d,filter:p},placement:g},{keys:[...i.meta.pointComponentKeys],distance:3,collect:{from:"dimension",by:d,filter:p},placement:g}],section:({h:e,nodes:t,dataset:n,create:r,util:o})=>{const[i]=t,{title:a,description:s,measures:l}=c.isEnabled()?c.getAttributes({dataset:n,nodes:[i]}):{},u=[];a&&u.push(r.text({value:a,style:{bold:!0}})),s&&u.push(r.text({value:s}));const d=c.hideBasic();d&&!l.length&&(a||s)||u.push(r.text({value:i.data.label,style:{bold:!0}})),d||(u.push(r.color({nodes:t,property:_a.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:i}=e.data,a=t||i,{key:s,field:l}=a.source;return r.measure({label:o.dataset.title(s,l),value:ZR({dataset:n,data:e.data,valueData:a})})})))),l&&u.push(...l.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),c.chart.isEnabled()&&(c.chart.hasLimitation()?(c.chart.destroy(),u.push(r.raw({value:c.chart.createLimitationRow()}))):u.push(r.raw({value:c.chart.createContainer({h:e})})));const{customTooltipImages:p}=i.data;return c.isEnabled()&&p&&u.push(...p.map((t=>r.raw({value:c.createImageRow({value:t,h:e})})))),u},layout:{grouping:!0,single:()=>!(!c.isEnabled()||!c.hasImages())||c.chart.isEnabled()},events:{tooltip:{beforeShow:({collectNodes:e})=>c.isEnabled()&&c.hasImages()?c.addImages({nodes:e()}):Promise.resolve(),afterShow:({nodes:e})=>{c.chart.isEnabled()&&!c.chart.hasLimitation()&&c.chart.show({nodes:e,properties:l.query.getProperties()})}},interaction:{mouseleave:()=>{c.chart.isEnabled()&&c.chart.hasAlternateState()&&c.chart.hide()}}}},legend:{keys:{tooltip:_a.COMPONENT.LEGEND_TOOLTIP,component:_a.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:eA}=Pd;const tA={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};const nA={query:{getCanScroll:()=>!0}};function rA({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function oA({setSelectionInfo:e,event:t,components:n,clear:r}){const o=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:o,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&o[0]===_a.COMPONENT.LEGEND_CATEGORICAL}),r()}function iA({chart:e,actions:t}){const o=b(),i=a(),[s,l]=n();return r((()=>{if(null==e||!e.update||!e.scale||!o)return null;const n=e.scale(_a.SCALE.MAJOR),r=I({chart:e,actions:t,selections:o,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:n,selectionActions:{clear:rA},selectionEvents:{start:oA}}});r.setLayout(i);const{destroy:a}=r;return l(r),()=>{a()}}),[o,null==e?void 0:e.update,null==e?void 0:e.scale]),r((()=>{null!=s&&s.setLayout&&i&&s.setLayout(i)}),[i]),s}const aA={version:"1.19.2",qHyperCubeDef:{qAlwaysFullyExpanded:!0,qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},showTitles:!0,subtitle:"",title:"",footnote:"",barGrouping:{grouping:"grouped"},orientation:"vertical",scrollStartPos:0,nullMode:"gap",dataPoint:{show:!1,showLineLabels:!1,showBarLabels:!1},color:{auto:!0,mode:"primary",useBaseColors:"off",paletteColor:{index:6},useDimColVal:!0,useMeasureGradient:!0,persistent:!1,expressionIsColor:!0,expressionLabel:"",measureScheme:"sg",reverseScheme:!1,dimensionScheme:"12",autoMinMax:!0,measureMin:0,measureMax:10},legend:{dock:"auto",show:!0,showTitle:!0},components:[],dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},measureAxes:[{show:"all",dock:"near",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10},{show:"all",dock:"far",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10}],refLine:{refLines:[],refLines2:[],dimRefLines:[]},preferContinuousAxis:!0,showMiniChartForContinuousAxis:!0,tooltip:{auto:!0,hideBasic:!1,title:"",description:"",chart:void 0,imageComponents:void 0}};var sA=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let o;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)o=su(n[e].qDef.series),o===Ua.BAR?r[0]=1:o===Ua.LINE?r[1]=1:r[2]=1;const i=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(i)},lA=e=>(t,n)=>{let r;const o=t.qHyperCubeDef.qMeasures[n];if(o){const{type:e}=o.qDef.series;r=e===Ua.LINE?"Visualizations.Descriptions.HeightLine":e===Ua.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function cA(e){var t,n;const r=e.qHyperCubeDef.qMeasures,o=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===o&&1===r.length&&su(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===Ua.LINE?e.color.mode="primary":"byDimension"===o&&r.length>1&&(e.color.mode="byMultiple")}function uA(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:sA(t)},measures:{min:1,max:15,description:lA(t),added({qDef:e},t){var n;cA(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:Ua.LINE,axis:Ya.SECONDARY}:e.series={type:Ua.BAR,axis:Ya.PRIMARY})},moved(e,t){cA(t)}}}}function dA(e){const t=uA(e);return{properties:aA,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const o=V.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),i="linechart"===e.properties.visualization,a=[];o.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:i?"line":"bar",axis:0,marker:"circle",markerFill:!0}),a.indexOf(e.qDef.series.axis)<0&&a.push(e.qDef.series.axis)}));const s=a.sort().shift();return o.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&Z(!0,o.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),o},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>V.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}function pA(e){if(null!=e&&e.isEnabled("SENSECLIENT_IM_311_STYLINGPANEL_COMBOCHART"))return{component:"styling-panel",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barSection:{translation:"Visualizations.Descriptions.Bars",component:"accordion",items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue:.7,schemaIgnore:!0}}}}}}},lineSection:{translation:"Visualizations.Descriptions.Lines",component:"accordion",items:{dataPointSection:{translation:"LayerStyleEditor.style.dataPointSize",component:"panel-section",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{translation:"Line options",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"Thickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"Type",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"Curve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}};const t={component:"dropdown",type:"string",expression:"optional",baseRef:"style.strokeWidth",translation:"LayerStyleEditor.style.strokeWidth",show:!0,defaultValue:"none",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"}]},n={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:e=>"none"!==E(e,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(e,"bar")}.${t.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},r={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},o={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},i={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineType",translation:"LayerStyleEditor.style.lineType",show:!0,defaultValue:"solid",options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}]},a={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",show:!0,defaultValue:"linear",options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}]};return{component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:["bar","line"],ref:"components",defaultValue:[],defaultValues(e){const s="grouped"===e.barGrouping.grouping,l=e.qHyperCubeDef.qMeasures.filter((e=>su(e.qDef.series)===Ua.BAR)).length,c=s&&l>1;return[{key:"bar",style:{strokeWidth:t.defaultValue,strokeColor:n.defaultValue(),width:c?.9:.7}},{key:"line",style:{dataPointSize:r.defaultValue,lineThickness:o.defaultValue,lineType:i.defaultValue,lineCurve:a.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:t,barStrokeColor:n,barWidth:{component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>su(e.qDef.series)===Ua.LINE));return!pe.continuous(n.layout,r&&se.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01}}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:r,lineThickness:o,lineType:i,lineCurve:a}}}}}}}const mA={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barsSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barsHeader:{component:"header",translation:"Visualizations.Descriptions.Bars"},outlineSection:{component:"items",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891"},width:"auto",component:"color-picker"}}}}},widthSection:{component:"items",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:.7}}}}}}}}},linesSection:{component:"items",items:{wrapperItem:{component:"items",items:{linesHeader:{component:"header",translation:"Visualizations.Descriptions.Lines"},dataPointSection:{component:"items",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"LayerStyleEditor.style.lineType",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}},optionsSection:{component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollStartPos:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1}}}}}}};function fA(e){const t=E(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=Ga})=>su(e)===Ua.LINE));return pe.continuous(e,(()=>t&&se.isTime(!0,e)))}function hA(e){var t,n;return!(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n||!n.on)}function gA(e){var t,n,r;return hA(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(r=n.color)||void 0===r?void 0:r.mode)&&void 0!==t?t:"primary")}function vA(e){var t,n;return hA(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.mode)}function yA(e){var t,n,r,o,i;if(null!=e&&null!==(t=e.color)&&void 0!==t&&t.auto||"byExpression"!==(null==e||null===(n=e.color)||void 0===n?void 0:n.mode))return[];const a=null==e||null===(r=e.color)||void 0===r?void 0:r.colorExpression,s=null!==(o=null==e||null===(i=e.color)||void 0===i?void 0:i.expressionLabel)&&void 0!==o?o:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function bA(e){return vA(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function xA(e){var t,n;(null!==(t=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qMeasures)&&void 0!==t?t:[]).forEach(((t,n)=>function(e,t,n){e.qAttributeExpressions=0===t?[...yA(n),...bA(e)]:bA(e)}(t,n,e)))}function SA(e){var t,n;const r={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||fA(e)?"stacked":"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.bar",value:"bar"},{icon:"line_chart_line",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.line",value:"line"},{icon:"shapes",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.marker",value:"marker"}]},o={ref:"qDef.series.marker",type:"string",component:"dropdown",defaultValue:"circle",options:[{translation:"properties.marker.circle",value:"circle"},{translation:"properties.marker.rect",value:"rect"},{translation:"properties.marker.diamond",value:"diamond"},{translation:"properties.marker.triangle",value:"triangle"},{translation:"properties.marker.line",value:"line"}],show(e){var t;return su(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ua.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return su(null===(t=e.qDef)||void 0===t?void 0:t.series)===Ua.MARKER&&!["line"].includes(e.qDef.series.marker)}},a={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>hA(...e)},s=null===(t=e.anything)||void 0===t||null===(n=t.sense)||void 0===n?void 0:n.theme;return{items:{series:{type:"items",items:{supPanel:{translation:"properties.measure.moreProperties",title:"properties.measure.moreProperties",subTitle:(e,t,n)=>{var r;return null===(r=n.measureTitle)||void 0===r?void 0:r.call(n)},component:"sub-panel",type:"items",items:{groups:{type:"items",component:"expandable-items",items:{presentation:{type:"items",translation:"properties.presentation",items:{seriesType:r,seriesAxis:{ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}]},seriesMarker:o,seriesMarkerFill:i}},color:{type:"items",translation:"properties.color",items:{customColor:{ref:"qDef.color.on",translation:"properties.colors",type:"boolean",component:"switch",defaultValue:!1,trueOption:{value:!1,translation:"Common.Auto"},falseOption:{value:!0,translation:"Common.Custom"}},colorMode:a,paletteColor:{ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=s.getDataColorSpecials(),n=null===(e=s.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,r=n.indexOf(t);return{index:-1===r?Math.min(6,n.length-1):r}},show:gA},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:vA}}}}}}}}}}}}const EA=!0;function MA(e,t,n){let r;const o=n||0;var i,a;t?r=t.getMeasureLayouts():r=null!==(i=null==e||null===(a=e.qHyperCubeDef)||void 0===a?void 0:a.qMeasures)&&void 0!==i?i:[];return r.filter((e=>{const{series:t}=e||{};return 0===o?MN(t,EA):!MN(t,EA)}))}function CA(e,t){return t.getMeasures().filter((e=>su(e.qDef.series)===Ua.LINE)).length>0}function wA(e,t,n){const r=t.getMeasures().filter((e=>su(e.qDef.series)===Ua.BAR));return r.filter((e=>e.qDef.series.axis!==Ya.SECONDARY)).length>n||r.filter((e=>e.qDef.series.axis===Ya.SECONDARY)).length>n}const kA=(e,t,n,r)=>{const o="vertical"===t.layout.orientation||fA(t.layout)?"y":"x",i=MA(e,t,r).map((e=>e.qFallbackTitle));let a;return a=i.length?n.get(`properties.${o}AxisWithInfo`,[i.join(",")]):n.get(`properties.${o}Axis`),a};function NA(e){var t,n,r;const{translator:o,flags:i,anything:a}=e,s=null==e||null===(t=e.anything)||void 0===t||null===(n=t.sense)||void 0===n||null===(r=n.isUnsupportedFeature)||void 0===r?void 0:r.call(n,"continuousData"),l={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>xA(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>hA(e)))}}},c=e=>!!e&&(e.coloring&&e.coloring.baseColor&&e.coloring.baseColor.color?e.coloring.baseColor:!(!e.baseColor||!e.baseColor.color)&&e.baseColor);const u=(e,t)=>!E(e,"color.auto")&&"primary"===E(e,"color.mode")&&!((e=>E(e,"layout.qHyperCube.qMeasureInfo",[]).filter((e=>!!c(e))).length>0)(t)&&"measure"===E(e,"color.useBaseColors")||function(e){return E(e,"layout.qHyperCube.qDimensionInfo",[]).filter((e=>!!c(e))).length>0}(t)&&"dimension"===E(e,"color.useBaseColors")),d=(e,t)=>{var n,r;return e.qHyperCubeDef.qMeasures.some((e=>hA(e)))||!i.isEnabled("SIMPLE_PROPERTIES_LIBRARY_COLOR")&&!(null!=e&&null!==(n=e.color)&&void 0!==n&&n.auto||"primary"!==(null==e||null===(r=e.color)||void 0===r?void 0:r.mode)||u(e,t))},p={items:{disclaimer:{show:(e,t)=>d(e,t),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;E(t=e,"qDef.color.on",void 0)&&P(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!d(e,t)}}},m={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},barLabels:{component:"checkbox",ref:"dataPoint.showBarLabels",type:"boolean",translation:"Simple.Label.Bar",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&wA(0,t,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&CA(0,t),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,o){o.dataPoint.showLineLabels=e,o.dataPoint.show=e}},reset(e){P(e,"dataPoint.show",!1),P(e,"dataPoint.showLineLabels",!1)}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,o){o.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t)=>o.get(MA(e,t,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&MA(e,t,0).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[0].show||"none"===r.measureAxes[0].show,set(e,t,n,r,o){o.measureAxes[0].show=e?"labels":"all"}}},secondaryMeasureTitle:{component:"checkbox",ref:"measureAxes.1.show",type:"string",translation:"Simple.Label.SecondaryMeasure.Hide",defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&MA(e,t,1).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[1].show||"none"===r.measureAxes[1].show,set(e,t,n,r,o){o.measureAxes[1].show=e?"labels":"all"}}}}}}},f={uses:"settings",items:{simpleStyling:null!=i&&i.isEnabled("COMBOCHART_SIMPLE_STYLING")?mA:void 0,simpleLabels:m,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:pA(i),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t,n)=>wA(0,t,1)&&!fA(n.layout)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>fA(n.layout),convertFunctions:(h="vertical",{get:(e,t,n)=>fA(n.layout)?h:e(t.type),set(e,t,n,r){t(n.type,fA(r.layout)?h:e,h)}})},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!fA(n.layout)},nullMode:{type:"string",component:"dropdown",ref:"nullMode",translation:"properties.nullMode",options:[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],defaultValue:"gap",show:(e,t)=>CA(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>CA(0,t),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t)=>wA(0,t,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:l,simpleColors:p,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||fA(t.layout)?"x":"y",r=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,t).map((e=>e.qFallbackTitle||"")).join(", ");let i;return i=r?o.get(`properties.${n}AxisWithInfo`,[r]):o.get(`properties.${n}Axis`),i},items:{othersGroup:{items:{dock:{options(e,t){let n="Common.Bottom",r="Common.Top";return"vertical"===t.layout.orientation||fA(t.layout)||(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!fA(n.layout),items:{axisDisplayMode:{type:"string",translation:"properties.axis.displaymode",ref:"dimensionAxis.axisDisplayMode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{type:"integer",translation:"properties.axis.maxvisiblevalues",ref:"dimensionAxis.maxVisibleItems",expression:"optional",defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode,invalid(e){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;return r<0||r>1e4/(t.length+n.length)},globalChange(e){if("custom"===e.dimensionAxis.axisDisplayMode){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;r<1?e.dimensionAxis.maxVisibleItems=10:r>1e4/(t.length+n.length)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(t.length+n.length))))}}},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint.combochart",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}}},continuousGroup:{show:!s}},measureAxis:{uses:"axis.measureAxis",label:(e,t)=>kA(e,t,o,0),show:(e,t)=>MA(e,t,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>kA(e,t,o,0),show:(e,t)=>MA(e,t,0).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&MN(null==e?void 0:e.series,EA)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t)=>"none"!==e.measureAxes[0].show&&MA(e,t,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||fA(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.0.spacing",show:(e,t)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&MA(e,t,0).length>0}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>MA(e,t,0).length>0,readOnly:e=>!(e.measureAxes[0].autoMinMax||"min"===e.measureAxes[0].minMax&&0===e.measureAxes[0].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:o,minMax:i,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===o?"lowest":o||"min"!==i||0!==a?e(t.type):"zero"},set(e,t,n,r,o){"zero"===e?(P(o,"measureAxes.0.autoMinMax",!1),P(o,"measureAxes.0.minMax","min"),P(o,"measureAxes.0.min",0)):P(o,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t)=>kA(e,t,o,1),show:(e,t)=>MA(e,t,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>kA(e,t,o,1),show:(e,t)=>MA(e,t,1).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!MN(null==e?void 0:e.series,EA)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t)=>"none"!==e.measureAxes[1].show&&MA(e,t,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||fA(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.1.spacing",show:(e,t)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&MA(e,t,1).length>0}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>MA(e,t,1).length>0,readOnly:e=>!(e.measureAxes[1].autoMinMax||"min"===e.measureAxes[1].minMax&&0===e.measureAxes[1].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:o,minMax:i,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===o?"lowest":o||"min"!==i||0!==a?e(t.type):"zero"},set(e,t,n,r,o){"zero"===e?(P(o,"measureAxes.1.autoMinMax",!1),P(o,"measureAxes.1.minMax","min"),P(o,"measureAxes.1.min",0)):P(o,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var h;i.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(f.items.dimensionAxis.items.othersGroup.items.label={options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]});return{type:"items",component:"accordion",items:{data:{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,n){var r,o;if(null!=a&&null!==(r=a.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"includeZeroValues"))return!1;return!fA(n.layout)}}}},measures:SA(e)}},sorting:{uses:"sortingWithDisclaimer"},addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},primaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines",translation:"properties.primaryMeasureAxisReferenceLines",title:{translation:"properties.primaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>MN(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,EA)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!MN(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,EA)},dimRefLines:{uses:"dimReflines"}}},settings:f}}}function TA(e){return e.qHyperCubeDef.qMeasures.filter((e=>su(e.qDef.series)===Ua.LINE)).length>0}function OA(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer"},presentation:{uses:"presentation",type:"items",translation:"properties.presentation",grouped:!0,show:(e,t)=>TA(e)||!fA(t),items:{grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){var n;return function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>su(e.qDef.series)===Ua.BAR));return t?n.filter((e=>e.qDef.series.axis===Ya.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===Ya.SECONDARY)).length>1:n.length>1}(e,!JO(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!fA(t)}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!fA(t)},nullMode:{type:"string",component:"radio-list",ref:"nullMode",translation:"properties.nullMode",options:()=>[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],show:e=>TA(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>TA(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>hA(e)))}}}}}}const RA={bar:{axis:0,icon:"bar-chart",tid:"as-bar",translation:"contextMenu.asBar"},line:{axis:1,icon:"line-chart",tid:"as-line",translation:"contextMenu.asLine"},marker:{axis:1,icon:"shapes",tid:"as-marker",translation:"contextMenu.asMarker"}};function AA(e,t,n,r,o){const{axis:i,icon:a,tid:s,translation:l}=RA[o];t.addItem({icon:a,tid:s,translation:l,async select(){let t;t="measure"===e.type?await r.addLibraryMeasure(e.id):await r.addExpressionMeasure(e.name,""),t.qDef.series.type=o,t.qDef.series.axis=i,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path","data."+t.qDef.cId)}})}function LA(e,t,n,r,o){!function(e,t,n){const{item:r}=e,o=["contextMenu.add",r.name];if(n.canAddMeasure()){const i=e.menu.addItem({translation:o,tid:"add-as"});AA(r,i,t,n,"bar"),AA(r,i,t,n,"line"),AA(r,i,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,o),e.ColorBy(n,t,o),r()}function IA(e){const t={},{tooltip:n}=e;if(n){var r,o;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(o=r.object)||void 0===o?void 0:o.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const PA=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function DA(e){return{definition:NA(e),softDefinition:OA(),support:{snapshot:PA,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:LA,extendMetrics:IA,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:uA(e),defaultPropertyValues:a,hypercubePath:o,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,o=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),o.indexOf(e.qDef.series.axis)<0&&o.push(e.qDef.series.axis)}));const i=o.sort().shift();e.qProperty.measureAxes[i]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&Z(!0,e.qProperty.measureAxes[i],n.properties.measureAxis,{logarithmic:!1}),xA(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return V.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:function(e){return JO(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=Ga),void 0===t.series.type&&(t.series.type=Ga.type),void 0===t.series.axis&&(t.series.axis=t.series.type===Ua.BAR?Ya.PRIMARY:Ya.SECONDARY),t.series.type===Ua.BAR&&t.series.axis===Ya.SECONDARY&&(t.series.axis=Ya.PRIMARY)})),e.version=XO),e}(e)}}}}}}));
|