@fluentui/react-charting 5.21.10 → 5.21.11
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/CHANGELOG.json +46 -1
- package/CHANGELOG.md +16 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/components/AreaChart/AreaChart.base.d.ts +1 -0
- package/lib/components/AreaChart/AreaChart.base.js +8 -4
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.d.ts +2 -0
- package/lib/components/CommonComponents/CartesianChart.base.js +23 -2
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +1 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +1 -0
- package/lib/components/HeatMapChart/HeatMapChart.base.js +6 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +1 -0
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +5 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.d.ts +1 -0
- package/lib/components/LineChart/LineChart.base.js +11 -4
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +9 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +10 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.d.ts +1 -0
- package/lib-amd/components/AreaChart/AreaChart.base.js +8 -4
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +2 -0
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +23 -2
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +1 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +1 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +6 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +1 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +5 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.d.ts +1 -0
- package/lib-amd/components/LineChart/LineChart.base.js +11 -4
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +1 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +9 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +10 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +1 -0
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +8 -4
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.d.ts +2 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +23 -2
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +1 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +7 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +1 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +6 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +1 -0
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +5 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.d.ts +1 -0
- package/lib-commonjs/components/LineChart/LineChart.base.js +11 -4
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +1 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +9 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +10 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +5 -5
package/dist/react-charting.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var FluentUIReactCharting;!function(){"use strict";var t={179:function(t,n,i){i.d(n,{C6:function(){return r},Cl:function(){return o},Tt:function(){return u},fX:function(){return a}});var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},e(t,n)};function r(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var o=function(){return o=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o.apply(this,arguments)};function u(t,n){var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(i[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(e=Object.getOwnPropertySymbols(t);r<e.length;r++)n.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(t,e[r])&&(i[e[r]]=t[e[r]])}return i}function a(t,n,i){if(i||2===arguments.length)for(var e,r=0,o=n.length;r<o;r++)!e&&r in n||(e||(e=Array.prototype.slice.call(n,0,r)),e[r]=n[r]);return t.concat(e||Array.prototype.slice.call(n))}Object.create,Object.create},934:function(t,n,i){i.d(n,{DU:function(){return o},Iy:function(){return a}});var e,r=i(192);function o(t){e!==t&&(e=t)}function u(){return void 0===e&&(e="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),e}function a(){return{rtl:u(),shadowConfig:r.ou}}e=u()},290:function(t,n,i){i.d(n,{nr:function(){return l}});var e,r=i(179),o=i(192),u="__stylesheet__",a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(t){}var l=function(){function t(t,n){var i,e,o,u,a,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,r.Cl)({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(i=null==n?void 0:n.classNameToArgs)&&void 0!==i?i:this._classNameToArgs,this._counter=null!==(e=null==n?void 0:n.counter)&&void 0!==e?e:this._counter,this._keyToClassName=null!==(u=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==n?void 0:n.keyToClassName)&&void 0!==u?u:this._keyToClassName,this._preservedRules=null!==(a=null==n?void 0:n.preservedRules)&&void 0!==a?a:this._preservedRules,this._rules=null!==(s=null==n?void 0:n.rules)&&void 0!==s?s:this._rules}return t.getInstance=function(n){if(e=s[u],s[o.Se])return s[o.Se].getInstance(n);if(!e||e._lastStyleElement&&e._lastStyleElement.ownerDocument!==document){var i=(null==s?void 0:s.FabricConfig)||{},r=new t(i.mergeStyles,i.serializedStylesheet);e=r,s[u]=r}return e},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,r.Cl)((0,r.Cl)({},this._config),t)},t.prototype.onReset=function(t){var n=this;return this._onResetCallbacks.push(t),function(){n._onResetCallbacks=n._onResetCallbacks.filter((function(n){return n!==t}))}},t.prototype.onInsertRule=function(t){var n=this;return this._onInsertRuleCallbacks.push(t),function(){n._onInsertRuleCallbacks=n._onInsertRuleCallbacks.filter((function(n){return n!==t}))}},t.prototype.getClassName=function(t){var n=this._config.namespace,i=t||this._config.defaultPrefix;return"".concat(n?n+"-":"").concat(i,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,n,i,e){this._keyToClassName[this._getCacheKey(n)]=t,this._classNameToArgs[t]={args:i,rules:e}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[this._getCacheKey(t)]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.args},t.prototype.insertedRulesFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.rules},t.prototype.insertRule=function(t,n,i){void 0===i&&(i=o.P6);var e=this._config.injectionMode,r=0!==e?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),r)switch(e){case 1:this._insertRuleIntoSheet(r.sheet,t);break;case 2:r.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(n){return n({key:i,sheet:r?r.sheet:void 0,rule:t})}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._createStyleElement=function(){var t,n=(null===(t=this._config.window)||void 0===t?void 0:t.document)||document,i=n.head,e=n.createElement("style"),r=null;e.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&e.setAttribute("nonce",o.nonce),this._lastStyleElement)r=this._lastStyleElement.nextElementSibling;else{var u=this._findPlaceholderStyleTag();r=u?u.nextElementSibling:i.childNodes[0]}return i.insertBefore(e,i.contains(r)?r:null),this._lastStyleElement=e,e},t.prototype._insertRuleIntoSheet=function(t,n){if(!t)return!1;try{return t.insertRule(n,t.cssRules.length),!0}catch(t){}return!1},t.prototype._getCacheKey=function(t){return t},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||(this._styleElement=this._createStyleElement(),a||(this._config.window||window).requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}()},572:function(t,n,i){i.d(n,{T:function(){return o}});var e=i(179),r=i(192);function o(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles&&!(0,r.db)(t[0]))return t[0];for(var i={},u={},a=0,s=t;a<s.length;a++){var l=s[a];if(l&&!(0,r.db)(l))for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var f=l.subComponentStyles;for(var h in f)f.hasOwnProperty(h)&&(u.hasOwnProperty(h)?u[h].push(f[h]):u[h]=[f[h]]);continue}var d=i[c],v=l[c];i[c]=void 0===d?v:(0,e.fX)((0,e.fX)([],Array.isArray(d)?d:[d],!0),Array.isArray(v)?v:[v],!0)}}if(Object.keys(u).length>0){i.subComponentStyles={};var p=i.subComponentStyles,g=function(t){if(u.hasOwnProperty(t)){var n=u[t];p[t]=function(t){return o.apply(void 0,n.map((function(n){return"function"==typeof n?n(t):n})))}}};for(var h in u)g(h)}return i}},316:function(t,n,i){i.d(n,{h:function(){return r}});var e=i(192);function r(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=[],o=[],u=t;return function t(n){for(var i=0,a=n;i<a.length;i++){var s=a[i];if(s&&!(0,e.db)(s))if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=u.argsFromClassName(s);l?t(l):-1===r.indexOf(s)&&r.push(s)}else Array.isArray(s)?t(s):"object"==typeof s&&o.push(s)}}(n),{classes:r,objects:o}}},106:function(t,n,i){i.d(n,{Z:function(){return s}});var e=i(316),r=i(192),o=i(934),u=i(290),a=i(359);function s(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(t,n){var i=t instanceof Array?t:[t],o=n||{};(0,r.db)(i[0])&&(o.shadowConfig=i[0]),o.stylesheet=u.nr.getInstance(o.shadowConfig);var s=(0,e.h)(o.stylesheet,i),l=s.classes,c=s.objects;return c.length&&l.push((0,a.kG)(o,c)),l.join(" ")}(t,(0,o.Iy)())}},192:function(t,n,i){i.d(n,{P6:function(){return e},Se:function(){return r},db:function(){return u},ou:function(){return o}});var e="__global__",r="__shadow_dom_stylesheet__",o={stylesheetKey:e,inShadow:!1,window:void 0,__isShadowConfig__:!0},u=function(t){return!!t&&!0===t.__isShadowConfig__}},359:function(t,n,i){i.d(n,{Ae:function(){return V},bz:function(){return L},kG:function(){return A},GJ:function(){return S}});var e,r=i(179),o=i(290),u={},a={"user-select":1};function s(t,n){var i=function(){var t;if(!e){var n="undefined"!=typeof document?document:void 0,i="undefined"!=typeof navigator?navigator:void 0,r=null===(t=null==i?void 0:i.userAgent)||void 0===t?void 0:t.toLowerCase();e=n?{isWebkit:!(!n||!("WebkitAppearance"in n.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!i||!/rv:11.0/i.test(i.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return e}(),r=t[n];if(a[r]){var o=t[n+1];a[r]&&(i.isWebkit&&t.push("-webkit-"+r,o),i.isMoz&&t.push("-moz-"+r,o),i.isMs&&t.push("-ms-"+r,o),i.isOpera&&t.push("-o-"+r,o))}}var l,c=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function f(t,n){var i=t[n],e=t[n+1];if("number"==typeof e){var r=c.indexOf(i)>-1,o=i.indexOf("--")>-1,u=r||o?"":"px";t[n+1]="".concat(e).concat(u)}}var h="left",d="right",v="@noflip",p=((l={})[h]=d,l[d]=h,l),g={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function m(t,n,i){if(t.rtl){var e=n[i];if(!e)return;var r=n[i+1];if("string"==typeof r&&r.indexOf(v)>=0)n[i+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(e.indexOf(h)>=0)n[i]=e.replace(h,d);else if(e.indexOf(d)>=0)n[i]=e.replace(d,h);else if(String(r).indexOf(h)>=0)n[i+1]=r.replace(h,d);else if(String(r).indexOf(d)>=0)n[i+1]=r.replace(d,h);else if(p[e])n[i]=p[e];else if(g[r])n[i+1]=g[r];else switch(e){case"margin":case"padding":n[i+1]=function(t){if("string"==typeof t){var n=t.split(" ");if(4===n.length)return"".concat(n[0]," ").concat(n[3]," ").concat(n[2]," ").concat(n[1])}return t}(r);break;case"box-shadow":n[i+1]=function(t,n){var i=t.split(" "),e=parseInt(i[0],10);return i[0]=i[0].replace(String(e),String(-1*e)),i.join(" ")}(r)}}}var y="displayName",b=/\:global\((.+?)\)/g;function x(t,n){return t.indexOf(":global(")>=0?t.replace(b,"$1"):0===t.indexOf(":host(")?t:0===t.indexOf(":")?n+t:t.indexOf("&")<0?n+" "+t:t}function w(t,n,i,e,r){void 0===n&&(n={__order:[]}),0===i.indexOf("@")?C([e],n,i=i+"{"+t,r):i.indexOf(",")>-1?function(t){if(!b.test(t))return t;for(var n=[],i=/\:global\((.+?)\)/g,e=null;e=i.exec(t);)e[1].indexOf(",")>-1&&n.push([e.index,e.index+e[0].length,e[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return n.reverse().reduce((function(t,n){var i=n[0],e=n[1],r=n[2];return t.slice(0,i)+r+t.slice(e)}),t)}(i).split(",").map((function(t){return t.trim()})).forEach((function(i){return C([e],n,x(i,t),r)})):C([e],n,x(i,t),r)}function C(t,n,i,e){void 0===n&&(n={__order:[]}),void 0===i&&(i="&");var r=n[i];r||(r={},n[i]=r,n.__order.push(i));for(var o=0,u=t;o<u.length;o++){var a=u[o];if("string"==typeof a){var s=e.argsFromClassName(a);s&&C(s,n,i,e)}else if(Array.isArray(a))C(a,n,i,e);else for(var l in a)if(a.hasOwnProperty(l)){var c=a[l];if("selectors"===l){var f=a.selectors;for(var h in f)f.hasOwnProperty(h)&&w(i,n,h,f[h],e)}else"object"==typeof c?null!==c&&w(i,n,l,c,e):void 0!==c&&("margin"===l||"padding"===l?M(r,l,c):r[l]=c)}}return n}function M(t,n,i){var e="string"==typeof i?function(t){for(var n=[],i=0,e=0,r=0;r<t.length;r++)switch(t[r]){case"(":e++;break;case")":e&&e--;break;case"\t":case" ":e||(r>i&&n.push(t.substring(i,r)),i=r+1)}return i<t.length&&n.push(t.substring(i)),n}(i):[i];0===e.length&&e.push(i),"!important"===e[e.length-1]&&(e=e.slice(0,-1).map((function(t){return t+" !important"}))),t[n+"Top"]=e[0],t[n+"Right"]=e[1]||e[0],t[n+"Bottom"]=e[2]||e[0],t[n+"Left"]=e[3]||e[1]||e[0]}function k(t,n){return n<=0?"":1===n?t:t+k(t,n-1)}function L(t,n){if(!n)return"";var i,e,r,o=[];for(var a in n)n.hasOwnProperty(a)&&a!==y&&void 0!==n[a]&&o.push(a,n[a]);for(var l=0;l<o.length;l+=2)r=void 0,"-"!==(r=(i=o)[e=l]).charAt(0)&&(i[e]=u[r]=u[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase()),f(o,l),m(t,o,l),s(o,l);for(l=1;l<o.length;l+=4)o.splice(l,1,":",o[l],";");return o.join("")}function S(t){for(var n,i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var r=null!==(n=t.stylesheet)&&void 0!==n?n:o.nr.getInstance(t.shadowConfig),u=C(i,void 0,void 0,r),a=function(t,n){for(var i=[t.rtl?"rtl":"ltr"],e=!1,r=0,o=n.__order;r<o.length;r++){var u=o[r];i.push(u);var a=n[u];for(var s in a)a.hasOwnProperty(s)&&void 0!==a[s]&&(e=!0,i.push(s,a[s]))}return e?i.join(""):void 0}(t,u);if(a){var s={className:r.classNameFromKey(a),key:a,args:i};if(!s.className){s.className=r.getClassName(function(t){var n=t&&t["&"];return n?n.displayName:void 0}(u));for(var l=[],c=0,f=u.__order;c<f.length;c++){var h=f[c];l.push(h,L(t,u[h]))}s.rulesToInsert=l}return s}}function V(t,n,i,e){void 0===n&&(n=1);var r=null!=e?e:o.nr.getInstance(i),u=t.className,a=t.key,s=t.args,l=t.rulesToInsert;if(l){for(var c=0;c<l.length;c+=2){var f=l[c+1];if(f){var h=l[c];h=h.replace(/&/g,k(".".concat(t.className),n));var d="".concat(h,"{").concat(f,"}").concat(0===h.indexOf("@")?"}":"");r.insertRule(d)}}r.cacheClassName(u,a,s,l)}}function A(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=S.apply(void 0,(0,r.fX)([t],n,!1));return e?(V(e,t.specificityMultiplier,t.shadowConfig,t.stylesheet),e.className):""}},395:function(t,n,i){i.r(n),i.d(n,{ChartHoverCard:function(){return f}});var e=i(761),r=i(179),o=i(594),u=i(799),a=i(464),s=(0,u.Z)(),l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.color,i=t.Legend,e=t.XValue,r=t.YValue,u=t.styles,l=t.theme,c=t.ratio,f=t.descriptionMessage,h=t.culture;return this._classNames=s(u,{theme:l,color:n,XValue:e,isRatioPresent:!!c}),o.createElement("div",{className:this._classNames.calloutContentRoot},o.createElement("div",{className:this._classNames.calloutDateTimeContainer},o.createElement("div",{className:this._classNames.calloutContentX},e," ")),o.createElement("div",{className:this._classNames.calloutInfoContainer},o.createElement("div",{className:this._classNames.calloutBlockContainer},o.createElement("div",{className:this._classNames.calloutlegendText},(0,a.U)(i,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,a.U)(r,h))),!!c&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,a.U)(c[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,a.U)(c[1],h))))),!!f&&o.createElement("div",{className:this._classNames.descriptionMessage},f))},n}(o.Component),c=i(714),f=(0,e.I)(l,c.J)},714:function(t,n,i){i.d(n,{J:function(){return r}});var e=i(286),r=function(t){var n,i,r,o=t.color,u=t.XValue,a=t.theme,s=t.isRatioPresent,l=void 0!==s&&s;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:a.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[a.fonts.small,{lineHeight:"16px",opacity:"0.85",color:a.semanticColors.bodySubtext}],calloutBlockContainer:[a.fonts.xxLarge,{marginTop:u?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:a.semanticColors.bodyText,borderLeft:"4px solid ".concat(o),selectors:(n={},n[e.up]={forcedColorAdjust:"none"},n)}],calloutlegendText:[a.fonts.small,{lineHeight:"16px",color:a.semanticColors.bodyText,selectors:(i={},i[e.NK]={color:"rgb(255, 255, 255)"},i)}],calloutContentY:[a.fonts.xxLarge,{color:o||a.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px",selectors:(r={},r[e.NK]={color:"rgb(255, 255, 255)"},r)}],calloutInfoContainer:[l&&{display:"flex",alignItems:"flex-end"}],ratio:[a.fonts.small,{marginLeft:"6px",color:a.semanticColors.bodyText}],numerator:{fontWeight:e.BO.bold},denominator:{fontWeight:e.BO.semibold},descriptionMessage:[a.fonts.small,{color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}}},464:function(t,n,i){i.d(n,{U:function(){return e}});var e=function(t,n){return t?(n=n||void 0,"number"==typeof t?t.toLocaleString(n):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(n):t:Number(t).toLocaleString(n)):t}},409:function(t,n,i){i.d(n,{v:function(){return o}});var e={},r=void 0;try{r=window}catch(t){}function o(t,n){if(void 0!==r){var i=r.__packages__=r.__packages__||{};i[t]&&e[t]||(e[t]=n,(i[t]=i[t]||[]).push(n))}}o("@fluentui/set-version","6.0.0")},286:function(t,n,i){i.d(n,{lw:function(){return K},bp:function(){return kt.b},s:function(){return Lt.s},BO:function(){return Lt.BO},up:function(){return it},NK:function(){return et},nA:function(){return nt},QN:function(){return ut},gm:function(){return ot},Km:function(){return tt},O4:function(){return Mt},dX:function(){return J}});var e=i(106),r=i(934),o=i(290),u=i(359);function a(t){var n=o.nr.getInstance(),i=[];for(var e in t)t.hasOwnProperty(e)&&i.push(e,"{",(0,u.bz)((0,r.Iy)(),t[e]),"}");var a=i.join(""),s=n.classNameFromKey(a);if(s)return s;var l=n.getClassName();return n.insertRule("@keyframes ".concat(l,"{").concat(a,"}"),!0),n.cacheClassName(l,a,[],["keyframes",a]),l}var s="cubic-bezier(.1,.9,.2,1)",l="cubic-bezier(.1,.25,.75,.9)",c="0.167s",f="0.267s",h="0.367s",d="0.467s",v=a({from:{opacity:0},to:{opacity:1}}),p=a({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),g=$(-10),m=$(-20),y=$(-40),b=$(-400),x=$(10),w=$(20),C=$(40),M=$(400),k=U(10),L=U(20),S=U(-10),V=U(-20),A=G(10),N=G(20),D=G(40),T=G(400),O=G(-10),P=G(-20),E=G(-40),F=G(-400),B=Z(-10),H=Z(-20),_=Z(10),I=Z(20),W=a({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),R=a({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),z=a({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),j=a({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),X=a({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Y=a({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function q(t,n,i){return{animationName:t,animationDuration:n,animationTimingFunction:i,animationFillMode:"both"}}function $(t){return a({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function U(t){return a({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function G(t){return a({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function Z(t){return a({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var K=function(t){var n={},i=function(i){var r;t.hasOwnProperty(i)&&Object.defineProperty(n,i,{get:function(){return void 0===r&&(r=(0,e.Z)(t[i]).toString()),r},enumerable:!0,configurable:!0})};for(var r in t)i(r);return n}({slideRightIn10:q("".concat(v,",").concat(g),h,s),slideRightIn20:q("".concat(v,",").concat(m),h,s),slideRightIn40:q("".concat(v,",").concat(y),h,s),slideRightIn400:q("".concat(v,",").concat(b),h,s),slideLeftIn10:q("".concat(v,",").concat(x),h,s),slideLeftIn20:q("".concat(v,",").concat(w),h,s),slideLeftIn40:q("".concat(v,",").concat(C),h,s),slideLeftIn400:q("".concat(v,",").concat(M),h,s),slideUpIn10:q("".concat(v,",").concat(k),h,s),slideUpIn20:q("".concat(v,",").concat(L),h,s),slideDownIn10:q("".concat(v,",").concat(S),h,s),slideDownIn20:q("".concat(v,",").concat(V),h,s),slideRightOut10:q("".concat(p,",").concat(A),h,s),slideRightOut20:q("".concat(p,",").concat(N),h,s),slideRightOut40:q("".concat(p,",").concat(D),h,s),slideRightOut400:q("".concat(p,",").concat(T),h,s),slideLeftOut10:q("".concat(p,",").concat(O),h,s),slideLeftOut20:q("".concat(p,",").concat(P),h,s),slideLeftOut40:q("".concat(p,",").concat(E),h,s),slideLeftOut400:q("".concat(p,",").concat(F),h,s),slideUpOut10:q("".concat(p,",").concat(B),h,s),slideUpOut20:q("".concat(p,",").concat(H),h,s),slideDownOut10:q("".concat(p,",").concat(_),h,s),slideDownOut20:q("".concat(p,",").concat(I),h,s),scaleUpIn100:q("".concat(v,",").concat(W),h,s),scaleDownIn100:q("".concat(v,",").concat(z),h,s),scaleUpOut103:q("".concat(p,",").concat(j),c,l),scaleDownOut98:q("".concat(p,",").concat(R),c,l),fadeIn100:q(v,c,l),fadeIn200:q(v,f,l),fadeIn400:q(v,h,l),fadeIn500:q(v,d,l),fadeOut100:q(p,c,l),fadeOut200:q(p,f,l),fadeOut400:q(p,h,l),fadeOut500:q(p,d,l),rotate90deg:q(X,"0.1s",l),rotateN90deg:q(Y,"0.1s",l)}),J={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Q=(0,i(351).J9)((function(t,n){var i=o.nr.getInstance();return n?Object.keys(t).reduce((function(n,e){return n[e]=i.getClassName(t[e]),n}),{}):t}));function tt(t,n,i){return Q(t,void 0!==i?i:n.disableGlobalClassNames)}var nt,it="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",et="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",rt=i(119);function ot(t,n,i,e,r,o,u,a){return function(t,n){var i,e;void 0===n&&(n={});var r=n.borderRadius,o=n.inset,u=void 0===o?0:o,a=n.width,s=void 0===a?1:a,l=n.position,c=void 0===l?"relative":l,f=n.highContrastStyle,h=n.borderColor,d=void 0===h?t.palette.white:h,v=n.outlineColor,p=void 0===v?t.palette.neutralSecondary:v,g=n.isFocusedOnly,m=void 0===g||g,y=n.pointerEvents;return{outline:"transparent",position:c,selectors:(i={"::-moz-focus-inner":{border:"0"}},i[".".concat(rt.Y2," &").concat(m?":focus":"",":after, :host(.").concat(rt.Y2,") &").concat(m?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:u+1,top:u+1,bottom:u+1,right:u+1,border:"".concat(s,"px solid ").concat(d),outline:"".concat(s,"px solid ").concat(p),zIndex:nt.FocusStyle,borderRadius:r,selectors:(e={},e[it]=f,e)},i)}}(t,"number"!=typeof n&&n?n:{inset:n,position:i,highContrastStyle:e,borderColor:r,outlineColor:o,isFocusedOnly:u,borderRadius:a})}function ut(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}(nt||(nt={}));var at,st=i(179),lt=i(308),ct=i(86),ft=function(){return ft=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},ft.apply(this,arguments)},ht="undefined"==typeof window?i.g:window,dt=ht&&ht.CSPSettings&&ht.CSPSettings.nonce,vt=((at=ht.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(at=ft({},at,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),at.registeredThemableStyles||(at=ft({},at,{registeredThemableStyles:[]})),ht.__themeState__=at,at);function pt(t){vt.theme=t,function(){if(vt.theme){for(var t=[],n=0,i=vt.registeredThemableStyles;n<i.length;n++){var e=i[n];t.push(e.themableStyle)}t.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(gt(vt.registeredStyles),vt.registeredStyles=[]),3!==o&&1!==o||(gt(vt.registeredThemableStyles),vt.registeredThemableStyles=[]),r=[].concat.apply([],t),vt.loadStyles?vt.loadStyles(mt(r).styleString,r):function(t){if("undefined"!=typeof document){var n=document.getElementsByTagName("head")[0],i=document.createElement("style"),e=mt(t),r=e.styleString,o=e.themable;i.setAttribute("data-load-themed-styles","true"),i.type="text/css",dt&&i.setAttribute("nonce",dt),i.appendChild(document.createTextNode(r)),vt.perf.count++,n.appendChild(i);var u=document.createEvent("HTMLEvents");u.initEvent("styleinsert",!0,!1),u.args={newStyle:i},document.dispatchEvent(u);var a={styleElement:i,themableStyle:t};o?vt.registeredThemableStyles.push(a):vt.registeredStyles.push(a)}}(r))}var r,o}()}function gt(t){t.forEach((function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)}))}function mt(t){var n=vt.theme,i=!1;return{styleString:(t||[]).map((function(t){var e=t.theme;if(e){i=!0;var r=n?n[e]:void 0,o=t.defaultValue||"inherit";return n&&!r&&console&&!(e in n)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+e+'". Falling back to "'+o+'".'),r||o}return t.rawString})).join(""),themable:i}}var yt=i(253),bt=(0,yt.a)({}),xt=[],wt="theme";function Ct(){var t,n,i,e=(0,lt.z)();(null===(n=null==e?void 0:e.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(t,n){var i;void 0===n&&(n=!1),bt=(0,yt.a)(t,n),pt((0,st.Cl)((0,st.Cl)((0,st.Cl)((0,st.Cl)({},bt.palette),bt.semanticColors),bt.effects),function(t){for(var n={},i=0,e=Object.keys(t.fonts);i<e.length;i++)for(var r=e[i],o=t.fonts[r],u=0,a=Object.keys(o);u<a.length;u++){var s=a[u],l=r+s.charAt(0).toUpperCase()+s.slice(1),c=o[s];"fontSize"===s&&"number"==typeof c&&(c+="px"),n[l]=c}return n}(bt))),ct.X.applySettings(((i={})[wt]=bt,i)),xt.forEach((function(t){try{t(bt)}catch(t){}}))}(e.FabricConfig.legacyTheme):ct.X.getSettings([wt]).theme||((null===(i=null==e?void 0:e.FabricConfig)||void 0===i?void 0:i.theme)&&(bt=(0,yt.a)(e.FabricConfig.theme)),ct.X.applySettings(((t={})[wt]=bt,t)))}function Mt(t){return void 0===t&&(t=!1),!0===t&&(bt=(0,yt.a)({},t)),bt}Ct();var kt=i(823),Lt=i(703);(0,i(409).v)("@fluentui/style-utilities","8.10.10"),Ct()},823:function(t,n,i){i.d(n,{b:function(){return e}});var e={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"}},253:function(t,n,i){i.d(n,{a:function(){return O}});var e,r=i(823);!function(t){t.depth0="0 0 0 0 transparent",t.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",t.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",t.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",t.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(e||(e={}));var o={elevation4:e.depth4,elevation8:e.depth8,elevation16:e.depth16,elevation64:e.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},u=i(934),a=i(290),s=i(359),l=i(703),c="'Segoe UI', '".concat(l.Dn.WestEuropean,"'"),f={ar:l.bi.Arabic,bg:l.bi.Cyrillic,cs:l.bi.EastEuropean,el:l.bi.Greek,et:l.bi.EastEuropean,he:l.bi.Hebrew,hi:l.bi.Hindi,hr:l.bi.EastEuropean,hu:l.bi.EastEuropean,ja:l.bi.Japanese,kk:l.bi.EastEuropean,ko:l.bi.Korean,lt:l.bi.EastEuropean,lv:l.bi.EastEuropean,pl:l.bi.EastEuropean,ru:l.bi.Cyrillic,sk:l.bi.EastEuropean,"sr-latn":l.bi.EastEuropean,th:l.bi.Thai,tr:l.bi.EastEuropean,uk:l.bi.Cyrillic,vi:l.bi.Vietnamese,"zh-hans":l.bi.ChineseSimplified,"zh-hant":l.bi.ChineseTraditional,hy:l.bi.Armenian,ka:l.bi.Georgian};function h(t,n,i){return{fontFamily:i,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:n}}var d,v,p,g,m,y,b=i(741),x=i(308),w=i(74),C="language",M=(v=function(t){for(var n in f)if(f.hasOwnProperty(n)&&t&&0===n.indexOf(t))return f[n];return c}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===d){var n=(0,b.Y)(),i="localStorage"===t?function(t){var n=null;try{var i=(0,x.z)();n=i?i.localStorage.getItem(t):null}catch(t){}return n}(C):"sessionStorage"===t?w.G(C):void 0;i&&(d=i),void 0===d&&n&&(d=n.documentElement.getAttribute("lang")),void 0===d&&(d="en")}return d}()),p="".concat(v,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:h(l.s.mini,l.BO.regular,p),xSmall:h(l.s.xSmall,l.BO.regular,p),small:h(l.s.small,l.BO.regular,p),smallPlus:h(l.s.smallPlus,l.BO.regular,p),medium:h(l.s.medium,l.BO.regular,p),mediumPlus:h(l.s.mediumPlus,l.BO.regular,p),large:h(l.s.large,l.BO.regular,p),xLarge:h(l.s.xLarge,l.BO.semibold,p),xLargePlus:h(l.s.xLargePlus,l.BO.semibold,p),xxLarge:h(l.s.xxLarge,l.BO.semibold,p),xxLargePlus:h(l.s.xxLargePlus,l.BO.semibold,p),superLarge:h(l.s.superLarge,l.BO.semibold,p),mega:h(l.s.mega,l.BO.semibold,p)});function k(t,n,i,e){!function(t){var n=a.nr.getInstance(),i=(0,s.bz)((0,u.Iy)(),t);if(!n.classNameFromKey(i)){var e=n.getClassName();n.insertRule("@font-face{".concat(i,"}"),!0),n.cacheClassName(e,i,[],["font-face",i])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==e?"local('".concat(e,"'),"):"")+"url('".concat(n,".woff2') format('woff2'),")+"url('".concat(n,".woff') format('woff')"),fontWeight:i,fontStyle:"normal",fontDisplay:"swap"})}function L(t,n,i,e,r){void 0===e&&(e="segoeui");var o="".concat(t,"/").concat(i,"/").concat(e);k(n,o+"-light",l.BO.light,r&&r+" Light"),k(n,o+"-semilight",l.BO.semilight,r&&r+" SemiLight"),k(n,o+"-regular",l.BO.regular,r),k(n,o+"-semibold",l.BO.semibold,r&&r+" SemiBold"),k(n,o+"-bold",l.BO.bold,r&&r+" Bold")}function S(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=0,r=n;e<r.length;e++)V(t||{},r[e]);return t}function V(t,n,i){for(var e in void 0===i&&(i=[]),i.push(n),n)if(n.hasOwnProperty(e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var r=n[e];if("object"!=typeof r||null===r||Array.isArray(r))t[e]=r;else{var o=i.indexOf(r)>-1;t[e]=o?r:V(t[e]||{},r,i)}}return i.pop(),t}!function(t){if(t){var n="".concat(t,"/fonts");L(n,l.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),L(n,l.Dn.Arabic,"segoeui-arabic"),L(n,l.Dn.Cyrillic,"segoeui-cyrillic"),L(n,l.Dn.EastEuropean,"segoeui-easteuropean"),L(n,l.Dn.Greek,"segoeui-greek"),L(n,l.Dn.Hebrew,"segoeui-hebrew"),L(n,l.Dn.Vietnamese,"segoeui-vietnamese"),L(n,l.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),L(n,l.bi.Selawik,"selawik","selawik"),L(n,l.Dn.Armenian,"segoeui-armenian"),L(n,l.Dn.Georgian,"segoeui-georgian"),k("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-semilight"),l.BO.light),k("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-bold"),l.BO.semibold)}}((y=null===(g=(0,x.z)())||void 0===g?void 0:g.FabricConfig,null!==(m=null==y?void 0:y.fontBaseUrl)&&void 0!==m?m:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"));var A=i(179);function N(t,n,i,e,r){return void 0===r&&(r=!1),function(t,n){var i="";return!0===n&&(i=" /* @deprecated */"),t.listTextColor=t.listText+i,t.menuItemBackgroundChecked+=i,t.warningHighlight+=i,t.warningText=t.messageText+i,t.successText+=i,t}(D(t,n,(0,A.Cl)({primaryButtonBorder:"transparent",errorText:e?"#F1707B":"#a4262c",messageText:e?"#F3F2F1":"#323130",messageLink:e?"#6CB8F6":"#005A9E",messageLinkHovered:e?"#82C7FF":"#004578",infoIcon:e?"#C8C6C4":"#605e5c",errorIcon:e?"#F1707B":"#A80000",blockingIcon:e?"#442726":"#FDE7E9",warningIcon:e?"#C8C6C4":"#797775",severeWarningIcon:e?"#FCE100":"#D83B01",successIcon:e?"#92C353":"#107C10",infoBackground:e?"#323130":"#f3f2f1",errorBackground:e?"#442726":"#FDE7E9",blockingBackground:e?"#442726":"#FDE7E9",warningBackground:e?"#433519":"#FFF4CE",severeWarningBackground:e?"#4F2A0F":"#FED9CC",successBackground:e?"#393D1B":"#DFF6DD",warningHighlight:e?"#fff100":"#ffb900",successText:e?"#92c353":"#107C10"},i),e),r)}function D(t,n,i,e,r){void 0===r&&(r=!1);var o={},u=t||{},a=u.white,s=u.black,l=u.themePrimary,c=u.themeDark,f=u.themeDarker,h=u.themeDarkAlt,d=u.themeLighter,v=u.neutralLight,p=u.neutralLighter,g=u.neutralDark,m=u.neutralQuaternary,y=u.neutralQuaternaryAlt,b=u.neutralPrimary,x=u.neutralSecondary,w=u.neutralSecondaryAlt,C=u.neutralTertiary,M=u.neutralTertiaryAlt,k=u.neutralLighterAlt,L=u.accent;return a&&(o.bodyBackground=a,o.bodyFrameBackground=a,o.accentButtonText=a,o.buttonBackground=a,o.primaryButtonText=a,o.primaryButtonTextHovered=a,o.primaryButtonTextPressed=a,o.inputBackground=a,o.inputForegroundChecked=a,o.listBackground=a,o.menuBackground=a,o.cardStandoutBackground=a),s&&(o.bodyTextChecked=s,o.buttonTextCheckedHovered=s),l&&(o.link=l,o.primaryButtonBackground=l,o.inputBackgroundChecked=l,o.inputIcon=l,o.inputFocusBorderAlt=l,o.menuIcon=l,o.menuHeader=l,o.accentButtonBackground=l),c&&(o.primaryButtonBackgroundPressed=c,o.inputBackgroundCheckedHovered=c,o.inputIconHovered=c),f&&(o.linkHovered=f),h&&(o.primaryButtonBackgroundHovered=h),d&&(o.inputPlaceholderBackgroundChecked=d),v&&(o.bodyBackgroundChecked=v,o.bodyFrameDivider=v,o.bodyDivider=v,o.variantBorder=v,o.buttonBackgroundCheckedHovered=v,o.buttonBackgroundPressed=v,o.listItemBackgroundChecked=v,o.listHeaderBackgroundPressed=v,o.menuItemBackgroundPressed=v,o.menuItemBackgroundChecked=v),p&&(o.bodyBackgroundHovered=p,o.buttonBackgroundHovered=p,o.buttonBackgroundDisabled=p,o.buttonBorderDisabled=p,o.primaryButtonBackgroundDisabled=p,o.disabledBackground=p,o.listItemBackgroundHovered=p,o.listHeaderBackgroundHovered=p,o.menuItemBackgroundHovered=p),m&&(o.primaryButtonTextDisabled=m,o.disabledSubtext=m),y&&(o.listItemBackgroundCheckedHovered=y),C&&(o.disabledBodyText=C,o.variantBorderHovered=(null==i?void 0:i.variantBorderHovered)||C,o.buttonTextDisabled=C,o.inputIconDisabled=C,o.disabledText=C),b&&(o.bodyText=b,o.actionLink=b,o.buttonText=b,o.inputBorderHovered=b,o.inputText=b,o.listText=b,o.menuItemText=b),k&&(o.bodyStandoutBackground=k,o.defaultStateBackground=k),g&&(o.actionLinkHovered=g,o.buttonTextHovered=g,o.buttonTextChecked=g,o.buttonTextPressed=g,o.inputTextHovered=g,o.menuItemTextHovered=g),x&&(o.bodySubtext=x,o.focusBorder=x,o.inputBorder=x,o.smallInputBorder=x,o.inputPlaceholderText=x),w&&(o.buttonBorder=w),M&&(o.disabledBodySubtext=M,o.disabledBorder=M,o.buttonBackgroundChecked=M,o.menuDivider=M),L&&(o.accentButtonBackground=L),(null==n?void 0:n.elevation4)&&(o.cardShadow=n.elevation4),!e&&(null==n?void 0:n.elevation8)?o.cardShadowHovered=n.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),(0,A.Cl)((0,A.Cl)({},o),i)}var T={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function O(t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var i=!!t.isInverted;return function(t,n){var i,e,r;void 0===n&&(n={});var o=S({},t,n,{semanticColors:D(n.palette,n.effects,n.semanticColors,void 0===n.isInverted?t.isInverted:n.isInverted)});if((null===(i=n.palette)||void 0===i?void 0:i.themePrimary)&&!(null===(e=n.palette)||void 0===e?void 0:e.accent)&&(o.palette.accent=n.palette.themePrimary),n.defaultFontStyle)for(var u=0,a=Object.keys(o.fonts);u<a.length;u++){var s=a[u];o.fonts[s]=S(o.fonts[s],n.defaultFontStyle,null===(r=null==n?void 0:n.fonts)||void 0===r?void 0:r[s])}return o}({palette:r.b,effects:o,fonts:M,spacing:T,isInverted:i,disableGlobalClassNames:!1,semanticColors:N(r.b,o,void 0,i,n),rtl:void 0},t)}},703:function(t,n,i){var e,r,o,u,a;i.d(n,{BO:function(){return u},Dn:function(){return e},bi:function(){return r},s:function(){return o}}),function(t){t.Arabic="Segoe UI Web (Arabic)",t.Cyrillic="Segoe UI Web (Cyrillic)",t.EastEuropean="Segoe UI Web (East European)",t.Greek="Segoe UI Web (Greek)",t.Hebrew="Segoe UI Web (Hebrew)",t.Thai="Leelawadee UI Web",t.Vietnamese="Segoe UI Web (Vietnamese)",t.WestEuropean="Segoe UI Web (West European)",t.Selawik="Selawik Web",t.Armenian="Segoe UI Web (Armenian)",t.Georgian="Segoe UI Web (Georgian)"}(e||(e={})),function(t){t.Arabic="'".concat(e.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(e.Cyrillic,"'"),t.EastEuropean="'".concat(e.EastEuropean,"'"),t.Greek="'".concat(e.Greek,"'"),t.Hebrew="'".concat(e.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(e.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(e.Vietnamese,"'"),t.WestEuropean="'".concat(e.WestEuropean,"'"),t.Armenian="'".concat(e.Armenian,"'"),t.Georgian="'".concat(e.Georgian,"'")}(r||(r={})),function(t){t.size10="10px",t.size12="12px",t.size14="14px",t.size16="16px",t.size18="18px",t.size20="20px",t.size24="24px",t.size28="28px",t.size32="32px",t.size42="42px",t.size68="68px",t.mini="10px",t.xSmall="10px",t.small="12px",t.smallPlus="12px",t.medium="14px",t.mediumPlus="16px",t.icon="16px",t.large="18px",t.xLarge="20px",t.xLargePlus="24px",t.xxLarge="28px",t.xxLargePlus="32px",t.superLarge="42px",t.mega="68px"}(o||(o={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(u||(u={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(a||(a={}))},799:function(t,n,i){i.d(n,{Z:function(){return g}});var e=i(290),r=i(179),o=i(572),u=i(316),a=i(359),s=i(192);var l=i(709),c=i(308),f=50,h=5,d=0,v=e.nr.getInstance();v&&v.onReset&&v.onReset((function(){return d++}));var p="__retval__";function g(t){void 0===t&&(t={});var n=new Map,i=0,v=0,g=d;return function(m,b){var x;if(void 0===b&&(b={}),t.useStaticStyles&&"function"==typeof m&&m.__noStyleOverride__)return m(b);v++;var w=m?m.__shadowConfig__:void 0,C=w&&w.window?w.window:"__default__";n.has(C)||n.set(C,new Map);var M=n.get(C),k=b.theme,L=k&&void 0!==k.rtl?k.rtl:(0,l.jI)(),S=t.disableCaching;if(g!==d&&(g=d,n.set(C,new Map),M=n.get(C),i=0),t.disableCaching||(M=y(n.get(C),m),M=y(M,b)),!S&&M[p]||(M[p]=void 0===m?{}:function(t,n){var i,l={subComponentStyles:{}},c=void 0;(0,s.db)(t[0])?(c=t[0],i=t[1]):i=t[0],null!=c||(c=null==n?void 0:n.shadowConfig);var f=(0,r.Cl)((0,r.Cl)({},n),{shadowConfig:c});if(!i&&t.length<=1)return{subComponentStyles:{}};var h=e.nr.getInstance(c);f.stylesheet=h;var d=o.T.apply(void 0,t),v=[];for(var p in d)if(d.hasOwnProperty(p)){if("subComponentStyles"===p){l.subComponentStyles=d.subComponentStyles||{};continue}if("__shadowConfig__"===p)continue;var g=d[p],m=(0,u.h)(h,g),y=m.classes,b=m.objects;(null==b?void 0:b.length)?(C=(0,a.GJ)(f||{},{displayName:p},b))&&(v.push(C),l[p]=y.concat([C.className]).join(" ")):l[p]=y.join(" ")}for(var x=0,w=v;x<w.length;x++){var C;(C=w[x])&&(0,a.Ae)(C,null==n?void 0:n.specificityMultiplier,c)}return l}(["function"==typeof m?m(b):m],{shadowConfig:m.__shadowConfig__,rtl:!!L,specificityMultiplier:t.useStaticStyles?h:void 0}),S||i++),i>(t.cacheSize||f)){var V=(0,c.z)();(null===(x=null==V?void 0:V.FabricConfig)||void 0===x?void 0:x.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(i,"/").concat(v,".")),console.trace()),n.get(C).clear(),i=0,t.disableCaching=!0}return M[p]}}function m(t,n){return n=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(n),t.has(n)||t.set(n,new Map),t.get(n)}function y(t,n){if("function"==typeof n)if(n.__cachedInputs__)for(var i=0,e=n.__cachedInputs__;i<e.length;i++)t=m(t,e[i]);else t=m(t,n);else if("object"==typeof n)for(var r in n)n.hasOwnProperty(r)&&(t=m(t,n[r]));return t}},86:function(t,n,i){i.d(n,{X:function(){return v}});var e=i(179),r=i(308),o="__globalSettings__",u="__callbacks__",a=0,s=function(){function t(){}return t.getValue=function(t,n){var i=l();return void 0===i[t]&&(i[t]="function"==typeof n?n():n),i[t]},t.setValue=function(t,n){var i=l(),e=i[u],r=i[t];if(n!==r){i[t]=n;var o={oldValue:r,value:n,key:t};for(var a in e)e.hasOwnProperty(a)&&e[a](o)}return n},t.addChangeListener=function(t){var n=t.__id__,i=c();n||(n=t.__id__=String(a++)),i[n]=t},t.removeChangeListener=function(t){delete c()[t.__id__]},t}();function l(){var t,n=(0,r.z)()||{};return n[o]||(n[o]=((t={})[u]={},t)),n[o]}function c(){return l()[u]}var f={settings:{},scopedSettings:{},inCustomizerContext:!1},h=s.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),d=[],v=function(){function t(){}return t.reset=function(){h.settings={},h.scopedSettings={}},t.applySettings=function(n){h.settings=(0,e.Cl)((0,e.Cl)({},h.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,i){h.scopedSettings[n]=(0,e.Cl)((0,e.Cl)({},h.scopedSettings[n]),i),t._raiseChange()},t.getSettings=function(t,n,i){void 0===i&&(i=f);for(var e={},r=n&&i.scopedSettings[n]||{},o=n&&h.scopedSettings[n]||{},u=0,a=t;u<a.length;u++){var s=a[u];e[s]=r[s]||i.settings[s]||o[s]||h.settings[s]}return e},t.applyBatchedUpdates=function(n,i){t._suppressUpdates=!0;try{n()}catch(t){}t._suppressUpdates=!1,i||t._raiseChange()},t.observe=function(t){d.push(t)},t.unobserve=function(t){d=d.filter((function(n){return n!==t}))},t._raiseChange=function(){t._suppressUpdates||d.forEach((function(t){return t()}))},t}()},956:function(t,n,i){i.d(n,{z:function(){return e}});var e=i(594).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},927:function(t,n,i){function e(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}i.d(n,{S:function(){return e}})},741:function(t,n,i){i.d(n,{Y:function(){return r}});var e=i(927);function r(t){if((0,e.S)()&&"undefined"!=typeof document){var n=t;return n&&n.ownerDocument?n.ownerDocument:document}}},308:function(t,n,i){i.d(n,{z:function(){return o}});var e=i(927),r=void 0;try{r=window}catch(t){}function o(t){if((0,e.S)()&&void 0!==r){var n=t;return n&&n.ownerDocument&&n.ownerDocument.defaultView?n.ownerDocument.defaultView:r}}},351:function(t,n,i){i.d(n,{J5:function(){return f},J9:function(){return c}});var e=i(290),r=!1,o=0,u={empty:!0},a={},s="undefined"==typeof WeakMap?null:WeakMap;function l(){o++}function c(t,n,i){if(void 0===n&&(n=100),void 0===i&&(i=!1),!s)return t;if(!r){var c=e.nr.getInstance();c&&c.onReset&&e.nr.getInstance().onReset(l),r=!0}var f,d=0,v=o;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var s,l=f;(void 0===f||v!==o||n>0&&d>n)&&(f=h(),d=0,v=o),l=f;for(var c=0;c<e.length;c++){var p=(s=e[c])?"object"==typeof s||"function"==typeof s?s:(a[s]||(a[s]={val:s}),a[s]):u;l.map.has(p)||l.map.set(p,h()),l=l.map.get(p)}return l.hasOwnProperty("value")||(l.value=t.apply(void 0,e),d++),!i||null!==l.value&&void 0!==l.value||(l.value=t.apply(void 0,e)),l.value}}function f(t){if(!s)return t;var n=new s;return function(i){if(!i||"function"!=typeof i&&"object"!=typeof i)return t(i);if(n.has(i))return n.get(i);var e=t(i);return n.set(i,e),e}}function h(){return{map:s?new s:null}}},709:function(t,n,i){i.d(n,{jI:function(){return s}});var e,r=i(741),o=i(74),u=i(934),a="isRTL";function s(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===e){var n=(0,o.G)(a);null!==n&&function(t,n){void 0===n&&(n=!1);var i=(0,r.Y)();i&&i.documentElement.setAttribute("dir",t?"rtl":"ltr"),n&&(0,o.S)(a,t?"1":"0"),e=t,(0,u.DU)(e)}(e="1"===n);var i=(0,r.Y)();void 0===e&&i&&(e="rtl"===(i.body&&i.body.getAttribute("dir")||i.documentElement.getAttribute("dir")),(0,u.DU)(e))}return!!e}},74:function(t,n,i){i.d(n,{G:function(){return r},S:function(){return o}});var e=i(308);function r(t){var n=null;try{var i=(0,e.z)();n=i?i.sessionStorage.getItem(t):null}catch(t){}return n}function o(t,n){var i;try{null===(i=(0,e.z)())||void 0===i||i.sessionStorage.setItem(t,n)}catch(t){}}},119:function(t,n,i){i.d(n,{Y2:function(){return e}});var e="ms-Fabric--isFocusVisible"},761:function(t,n,i){i.d(n,{I:function(){return v}});var e=i(179),r=i(594),o=i(572),u=i(192),a=function(){return!1},s=function(){},l=r.createContext({stylesheets:new Map,useAdoptedStylesheetEx:a,useAdoptedStylesheet:a,useShadowConfig:function(){return u.ou},useMergeStylesShadowRootContext:s,useHasMergeStylesShadowRootContext:a,useMergeStylesRootStylesheets:function(){return new Map},useWindow:s,useStyled:s}),c=function(){var t=r.useContext(l);return{useAdoptedStylesheet:t.useAdoptedStylesheet,useAdoptedStylesheetEx:t.useAdoptedStylesheetEx,useShadowConfig:t.useShadowConfig,useMergeStylesShadowRootContext:t.useMergeStylesShadowRootContext,useHasMergeStylesShadowRootContext:t.useHasMergeStylesShadowRootContext,useMergeStylesRootStylesheets:t.useMergeStylesRootStylesheets,useWindow:t.useWindow,useStyled:t.useStyled}},f=i(86),h=i(956);var d=["theme","styles"];function v(t,n,i,u,a){var s=(u=u||{scope:"",fields:void 0}).scope,l=u.fields,v=void 0===l?d:l,p=r.forwardRef((function(u,a){var l,d,p,g,m,y,b=r.useRef(),x=(l=v,d=s,p=r.useState(0)[1],g=function(){return p((function(t){return++t}))},m=r.useContext(h.z).customizations,y=m.inCustomizerContext,r.useEffect((function(){return y||f.X.observe(g),function(){y||f.X.unobserve(g)}}),[y]),f.X.getSettings(l,d,m)),w=x.styles,C=(x.dir,(0,e.Tt)(x,["styles","dir"])),M=i?i(u):void 0,k=c().useStyled,L=b.current&&b.current.__cachedInputs__||[],S=u.styles;if(!b.current||w!==L[1]||S!==L[2]){var V=function(t){return function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=[],r=0,u=n;r<u.length;r++){var a=u[r];a&&e.push("function"==typeof a?a(t):a)}return 1===e.length?e[0]:e.length?o.T.apply(void 0,e):{}}(t,n,w,S)};V.__cachedInputs__=[n,w,S],V.__noStyleOverride__=!w&&!S,b.current=V}return b.current.__shadowConfig__=k(s),r.createElement(t,(0,e.Cl)({ref:a},C,M,u,{styles:b.current}))}));p.displayName="Styled".concat(t.displayName||t.name);var g=a?r.memo(p):p;return p.displayName&&(g.displayName=p.displayName),g}},594:function(t){t.exports=React}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,{a:n}),n},i.d=function(t,n){for(var e in n)i.o(n,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};!function(){i.r(e),i.d(e,{AreaChart:function(){return Wf},CartesianChart:function(){return rf},ChartHoverCard:function(){return ys.ChartHoverCard},DataVizPalette:function(){return Oc},DonutChart:function(){return zc},GaugeChart:function(){return Vd},GaugeChartVariant:function(){return pd},GaugeValueFormat:function(){return vd},GroupedVerticalBarChart:function(){return vh},HeatMapChart:function(){return yh},HorizontalBarChart:function(){return il},HorizontalBarChartVariant:function(){return h},HorizontalBarChartWithAxis:function(){return wd},Legends:function(){return Ul},LineChart:function(){return Mf},MultiStackedBarChart:function(){return ih},MultiStackedBarChartVariant:function(){return Yf},NodesComposition:function(){return sd},PieChart:function(){return Gf},SankeyChart:function(){return Uh},Shape:function(){return Yl},Sparkline:function(){return yd},StackedBarChart:function(){return Jf},Textbox:function(){return mf},TreeChart:function(){return dd},TreeTraverse:function(){return ld},VerticalBarChart:function(){return ah},VerticalStackedBarChart:function(){return ch},getChartHoverCardStyles:function(){return ph.J},getColorFromToken:function(){return Ic},getNextColor:function(){return _c}});var t=i(761),n=i(179),r=i(594),o=i(799),u=i(709),a=i(308),s=i(290),l="__currentId__",c="id__",f=(0,a.z)()||{};void 0===f[l]&&(f[l]=0);var h,d=!1;function v(t){if(!d){var n=s.nr.getInstance();n&&n.onReset&&n.onReset(p),d=!0}var i=f[l]++;return(void 0===t?c:t)+i}function p(t){void 0===t&&(t=0),f[l]=t}function g(t,n,i){void 0===i&&(i=0);for(var e=-1,r=i;t&&r<t.length;r++)if(n(t[r],r)){e=r;break}return e}function m(t,n){var i=g(t,n);if(!(i<0))return t[i]}!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(h||(h={}));var y={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function b(t,n){var i,e;if(void 0===n&&(n=!0),!t)return null;var r=n&&function(t){var n,i;return t&&(i=t)&&i._virtual&&(n=t._virtual.parent),n}(t);return r||("function"!=typeof t.assignedElements&&(null===(i=t.assignedSlot)||void 0===i?void 0:i.parentNode)?t.assignedSlot:11===(null===(e=t.parentNode)||void 0===e?void 0:e.nodeType)?t.parentNode.host:t.parentNode)}function x(t,n,i){return null!=i||(i=document),t&&t!==i.body?n(t)?t:x(b(t),n):null}function w(t,n,i){void 0===i&&(i=!0);var e=!1;if(t&&n)if(i)if(t===n)e=!0;else for(e=!1;n;){var r=b(n);if(r===t){e=!0;break}n=r}else t.contains&&(e=t.contains(n));return e}var C=i(741),M="data-is-focusable",k="data-is-visible",L="data-focuszone-id",S="data-is-sub-focuszone";function V(t,n,i){var e=N(t,t,!0,!1,!1,!0,void 0,void 0,n,i);return!!e&&(B(e),!0)}function A(t,n,i,e,r,o,u,a,s){var l;if(!n||!u&&n===t)return null;var c=D(n);if(r&&c&&(o||!P(n)&&!E(n))){var f=A(t,n.lastElementChild||s&&(null===(l=n.shadowRoot)||void 0===l?void 0:l.lastElementChild),!0,!0,!0,o,u,a,s);if(f){if(a&&O(f,!0,s)||!a)return f;var h=A(t,f.previousElementSibling,!0,!0,!0,o,u,a,s);if(h)return h;for(var d=f.parentElement;d&&d!==n;){var v=A(t,d.previousElementSibling,!0,!0,!0,o,u,a,s);if(v)return v;d=d.parentElement}}}return i&&c&&O(n,a,s)?n:A(t,n.previousElementSibling,!0,!0,!0,o,u,a,s)||(e?null:A(t,n.parentElement,!0,!1,!1,o,u,a,s))}function N(t,n,i,e,r,o,u,a,s,l){var c;if(!n||n===t&&r&&!u)return null;var f=(s?T:D)(n);if(i&&f&&O(n,a,l))return n;if(!r&&f&&(o||!P(n)&&!E(n))){var h=N(t,n.firstElementChild||l&&(null===(c=n.shadowRoot)||void 0===c?void 0:c.firstElementChild),!0,!0,!1,o,u,a,s,l);if(h)return h}return n===t?null:N(t,n.nextElementSibling,!0,!0,!1,o,u,a,s,l)||(e?null:N(t,n.parentElement,!1,!1,!0,o,u,a,s,l))}function D(t){if(!t||!t.getAttribute)return!1;var n=t.getAttribute(k);return null!=n?"true"===n:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function T(t,n){var i=null!=n?n:(0,a.z)();return!!t&&D(t)&&!t.hidden&&"hidden"!==i.getComputedStyle(t).visibility}function O(t,n,i){if(void 0===i&&(i=!0),!t||t.disabled)return!1;var e=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(e=parseInt(r,10));var o=t.getAttribute?t.getAttribute(M):null,u=null!==r&&e>=0,a=!(!i||!t.shadowRoot||!t.shadowRoot.delegatesFocus),s=!!t&&"false"!==o&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===o||u||a);return n?-1!==e&&s:s}function P(t){return!!(t&&t.getAttribute&&t.getAttribute(L))}function E(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(S))}var F=void 0;function B(t){if(t){var n=(0,a.z)(t);n&&(void 0!==F&&n.cancelAnimationFrame(F),F=n.requestAnimationFrame((function(){t&&t.focus(),F=void 0})))}}function H(t,n,i,e){return t.addEventListener(n,i,e),function(){return t.removeEventListener(n,i,e)}}function _(t,i){for(var e=(0,n.Cl)({},i),r=0,o=Object.keys(t);r<o.length;r++){var u=o[r];void 0===e[u]&&(e[u]=t[u])}return e}var I=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i={},e=0,r=t;e<r.length;e++)for(var o=r[e],u=0,a=Array.isArray(o)?o:Object.keys(o);u<a.length;u++)i[a[u]]=1;return i},W=I(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),R=I(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),z=I(R,W),j=(I(z,["form"]),I(z,["height","loop","muted","preload","src","width"])),X=(I(j,["poster"]),I(z,["start"]),I(z,["value"]),I(z,["download","href","hrefLang","media","rel","target","type"]),I(z,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Y=(I(X,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),I(X,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),I(X,["form","multiple","required"]),I(z,["selected","value"]),I(z,["cellPadding","cellSpacing"]),I(z,["rowSpan","scope"]),I(z,["colSpan","headers","rowSpan","scope"]),I(z,["span"]),I(z,["span"]),I(z,["acceptCharset","action","encType","encType","method","noValidate","target"]),I(z,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),I(z,["alt","crossOrigin","height","src","srcSet","useMap","width"]),z);function q(t,n,i){for(var e=Array.isArray(n),r={},o=0,u=Object.keys(t);o<u.length;o++){var a=u[o];!(!e&&n[a]||e&&n.indexOf(a)>=0||0===a.indexOf("data-")||0===a.indexOf("aria-"))||i&&-1!==(null==i?void 0:i.indexOf(a))||(r[a]=t[a])}return r}function $(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=[],e=0,r=t;e<r.length;e++){var o=r[e];if(o)if("string"==typeof o)i.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)i.push(o.toString());else for(var u in o)o[u]&&i.push(u)}return i.join(" ")}function U(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return G.apply(this,[null,t].concat(n))}function G(t,n){for(var i=[],e=2;e<arguments.length;e++)i[e-2]=arguments[e];n=n||{};for(var r=0,o=i;r<o.length;r++){var u=o[r];if(u)for(var a in u)!u.hasOwnProperty(a)||t&&!t(a)||(n[a]=u[a])}return n}var Z,K,J,Q=i(106),tt=((0,Q.Z)({overflow:"hidden !important"}),"data-is-scrollable");function nt(t){for(var n=t,i=(0,C.Y)(t);n&&n!==i.body;){if("true"===n.getAttribute(tt))return n;n=n.parentElement}for(n=t;n&&n!==i.body;){if("false"!==n.getAttribute(tt)){var e=getComputedStyle(n),r=e?e.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return n}n=n.parentElement}return n&&n!==i.body||(n=(0,a.z)(t)),n}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}(K||(K={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(J||(J={}));var it,et=function(){function t(t,n,i,e){void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===e&&(e=0),this.top=i,this.bottom=e,this.left=t,this.right=n}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function rt(t,n,i){return{targetEdge:t,alignmentEdge:n,isAuto:i}}var ot=((it={})[y.topLeftEdge]=rt(K.top,K.left),it[y.topCenter]=rt(K.top),it[y.topRightEdge]=rt(K.top,K.right),it[y.topAutoEdge]=rt(K.top,void 0,!0),it[y.bottomLeftEdge]=rt(K.bottom,K.left),it[y.bottomCenter]=rt(K.bottom),it[y.bottomRightEdge]=rt(K.bottom,K.right),it[y.bottomAutoEdge]=rt(K.bottom,void 0,!0),it[y.leftTopEdge]=rt(K.left,K.top),it[y.leftCenter]=rt(K.left),it[y.leftBottomEdge]=rt(K.left,K.bottom),it[y.rightTopEdge]=rt(K.right,K.top),it[y.rightCenter]=rt(K.right),it[y.rightBottomEdge]=rt(K.right,K.bottom),it);function ut(t,n){return!(t.top<n.top||t.bottom>n.bottom||t.left<n.left||t.right>n.right)}function at(t,n){var i=[];return t.top<n.top&&i.push(K.top),t.bottom>n.bottom&&i.push(K.bottom),t.left<n.left&&i.push(K.left),t.right>n.right&&i.push(K.right),i}function st(t,n){return t[K[n]]}function lt(t,n,i){return t[K[n]]=i,t}function ct(t,n){var i=Ct(n);return(st(t,i.positiveEdge)+st(t,i.negativeEdge))/2}function ft(t,n){return t>0?n:-1*n}function ht(t,n){return ft(t,st(n,t))}function dt(t,n,i){return ft(i,st(t,i)-st(n,i))}function vt(t,n,i,e){void 0===e&&(e=!0);var r=st(t,n)-i,o=lt(t,n,i);return e&&(o=lt(t,-1*n,st(t,-1*n)-r)),o}function pt(t,n,i,e){return void 0===e&&(e=0),vt(t,i,st(n,i)+ft(i,e))}function gt(t,n,i){return ht(i,t)>ht(i,n)}function mt(t,n){for(var i=0,e=0,r=at(t,n);e<r.length;e++){var o=r[e];i+=Math.pow(dt(t,n,o),2)}return i}function yt(t,n,i,e){return void 0===e&&(e=200),(i===K.bottom||i===K.top)&&dt(t,n,i)>=e}function bt(t,n,i,e){for(var r=0,o=t;r<o.length;r++){var u=o[r],a=void 0;e&&e===-1*u?(a=vt(n.elementRectangle,u,st(i,u),!1),n.forcedInBounds=!0):gt(a=pt(n.elementRectangle,i,u),i,-1*u)||(a=vt(a,-1*u,st(i,-1*u),!1),n.forcedInBounds=!0),n.elementRectangle=a}return n}function xt(t,n,i){var e=Ct(n).positiveEdge;return vt(t,e,i-(ct(t,n)-st(t,e)))}function wt(t,n,i,e,r){void 0===e&&(e=0);var o=new et(t.left,t.right,t.top,t.bottom),u=i.alignmentEdge,a=i.targetEdge,s=r?a:-1*a;return o=r?pt(o,n,a,e):function(t,n,i,e){void 0===e&&(e=0);var r=ft(-1*i,e);return vt(t,-1*i,st(n,i)+r)}(o,n,a,e),o=u?pt(o,n,u):xt(o,s,ct(n,a))}function Ct(t){return t===K.top||t===K.bottom?{positiveEdge:K.left,negativeEdge:K.right}:{positiveEdge:K.top,negativeEdge:K.bottom}}function Mt(t,n,i){return i&&Math.abs(dt(t,i,n))>Math.abs(dt(t,i,-1*n))?-1*n:n}function kt(t,n,i,e,r,o,u,a){var s,l={},c=Vt(n),f=o?i:-1*i,h=r||Ct(i).positiveEdge;return u&&!function(t,n,i){return void 0!==i&&st(t,n)===st(i,n)}(t,(s=h,-1*s),e)||(h=Mt(t,h,e)),l[K[f]]=dt(t,c,f),l[K[h]]=dt(t,c,h),a&&(l[K[-1*f]]=dt(t,c,-1*f),l[K[-1*h]]=dt(t,c,-1*h)),l}function Lt(t,n,i){var e=ct(n,t),r=ct(i,t),o=Ct(t),u=o.positiveEdge,a=o.negativeEdge;return e<=r?u:a}function St(t,n,i,e,r,o,a,s,l){void 0===o&&(o=!1);var c=wt(t,n,e,r,l);return ut(c,i)?{elementRectangle:c,targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}:function(t,n,i,e,r,o,a,s,l){void 0===r&&(r=!1),void 0===a&&(a=0);var c=e.alignmentEdge,f=e.alignTargetEdge,h={elementRectangle:t,targetEdge:e.targetEdge,alignmentEdge:c};s||l||(h=function(t,n,i,e,r,o,a){void 0===r&&(r=!1),void 0===a&&(a=0);var s=[K.left,K.right,K.bottom,K.top];(0,u.jI)()&&(s[0]*=-1,s[1]*=-1);for(var l,c=t,f=e.targetEdge,h=e.alignmentEdge,d=f,v=h,p=0;p<4;p++){if(gt(c,i,f))return{elementRectangle:c,targetEdge:f,alignmentEdge:h};if(r&&yt(n,i,f,o)){switch(f){case K.bottom:c.bottom=i.bottom;break;case K.top:c.top=i.top}return{elementRectangle:c,targetEdge:f,alignmentEdge:h,forcedInBounds:!0}}var g=mt(c,i);(!l||g<l)&&(l=g,d=f,v=h),s.splice(s.indexOf(f),1),s.length>0&&(s.indexOf(-1*f)>-1?f*=-1:(h=f,f=s.slice(-1)[0]),c=wt(t,n,{targetEdge:f,alignmentEdge:h},a))}return{elementRectangle:c=wt(t,n,{targetEdge:d,alignmentEdge:v},a),targetEdge:d,alignmentEdge:v}}(t,n,i,e,r,o,a));var d=at(h.elementRectangle,i),v=s?-h.targetEdge:void 0;if(d.length>0)if(f)if(h.alignmentEdge&&d.indexOf(-1*h.alignmentEdge)>-1){var p=function(t,n,i,e){var r=t.alignmentEdge,o=t.targetEdge,u=-1*r;return{elementRectangle:wt(t.elementRectangle,n,{targetEdge:o,alignmentEdge:u},i,e),targetEdge:o,alignmentEdge:u}}(h,n,a,l);if(ut(p.elementRectangle,i))return p;h=bt(at(p.elementRectangle,i),h,i,v)}else h=bt(d,h,i,v);else h=bt(d,h,i,v);return h}(c,n,i,e,o,a,r,s,l)}function Vt(t){var n=t.getBoundingClientRect();return new et(n.left,n.right,n.top,n.bottom)}function At(t,i,e,r,o,a){void 0===o&&(o=!1);var s=t.gapSpace?t.gapSpace:0,l=function(t,n){var i;if(n){if(n.preventDefault){var e=n;i=new et(e.clientX,e.clientX,e.clientY,e.clientY)}else if(n.getBoundingClientRect)i=Vt(n);else{var r=n,o=r.left||r.x,u=r.top||r.y,a=r.right||o,s=r.bottom||u;i=new et(o,a,u,s)}if(!ut(i,t))for(var l=0,c=at(i,t);l<c.length;l++){var f=c[l];i[K[f]]=t[K[f]]}}else i=new et(0,0,0,0);return i}(e,t.target),c=function(t,n,i,e,r){return t.isAuto&&(t.alignmentEdge=Lt(t.targetEdge,n,i)),t.alignTargetEdge=r,t}(function(t,i,e){if(void 0===t&&(t=y.bottomAutoEdge),e)return{alignmentEdge:e.alignmentEdge,isAuto:e.isAuto,targetEdge:e.targetEdge};var r=(0,n.Cl)({},ot[t]);return(0,u.jI)()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==i?ot[i]:r):r}(t.directionalHint,t.directionalHintForRTL,r),l,e,t.coverTarget,t.alignTargetEdge),f=St(Vt(i),l,e,c,s,o,a,t.directionalHintFixed,t.coverTarget);return(0,n.Cl)((0,n.Cl)({},f),{targetRectangle:l})}function Nt(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),function(t){return Math.sqrt(t*t*2)}(t?n:0)/2+i}function Dt(t,i,e,r,o,u,s,l){void 0===o&&(o=!1);var c=null!=l?l:(0,a.z)(),f=t.isBeakVisible&&t.beakWidth||0,h=Nt(t.isBeakVisible,t.beakWidth,t.gapSpace),d=t;d.gapSpace=h;var v,p,g,m,y,b,x,w,M,k=t.bounds?(M=t.bounds,new et(M.left,M.right,M.top,M.bottom)):new et(0,c.innerWidth-function(t){if(void 0===Z){var n=(0,C.Y)(),i=n.createElement("div");i.style.setProperty("width","100px"),i.style.setProperty("height","100px"),i.style.setProperty("overflow","scroll"),i.style.setProperty("position","absolute"),i.style.setProperty("top","-9999px"),n.body.appendChild(i),Z=i.offsetWidth-i.clientWidth,n.body.removeChild(i)}return Z}(),0,c.innerHeight),L=At(d,e,k,r,o,u),S=(v=L,p=function(t,n){var i=n.targetRectangle,e=Ct(n.targetEdge),r=e.positiveEdge,o=e.negativeEdge,u=ct(i,n.targetEdge),a=new et(t/2,n.elementRectangle.width-t/2,t/2,n.elementRectangle.height-t/2),s=new et(0,t,0,t);return gt(s=xt(s=vt(s,-1*n.targetEdge,-t/2),-1*n.targetEdge,u-ht(r,n.elementRectangle)),a,r)?gt(s,a,o)||(s=pt(s,a,o)):s=pt(s,a,r),s}(f,L),g=k,m=-1*v.targetEdge,y=new et(0,v.elementRectangle.width,0,v.elementRectangle.height),b={},x=Mt(v.elementRectangle,v.alignmentEdge?v.alignmentEdge:Ct(m).positiveEdge,g),w=dt(v.elementRectangle,v.targetRectangle,m)>Math.abs(st(p,m)),b[K[m]]=st(p,m),b[K[x]]=dt(p,y,x),{elementPosition:(0,n.Cl)({},b),closestEdge:Lt(v.targetEdge,p,y),targetEdge:m,hideBeak:!w});return(0,n.Cl)((0,n.Cl)({},function(t,n,i,e,r){return{elementPosition:kt(t.elementRectangle,n,t.targetEdge,i,t.alignmentEdge,e,r,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(L,i,k,t.coverTarget,s)),{beakPosition:S})}var Tt=["TEMPLATE","STYLE","SCRIPT"];function Ot(t){var n=(0,C.Y)(t);if(!n)return function(){};for(var i=[];t!==n.body&&t.parentElement;){for(var e=0,r=t.parentElement.children;e<r.length;e++){var o=r[e],u=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==u?void 0:u.toLowerCase())&&-1===Tt.indexOf(o.tagName)&&i.push([o,u])}t=t.parentElement}return i.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var n=t[0],i=t[1];i?n.setAttribute("aria-hidden",i):n.removeAttribute("aria-hidden")}))}(i),i=[]}}var Pt=27,Et=function(){function t(t,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=n,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,n){var i=this,e=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),e=setTimeout((function(){try{i._timeoutIds&&delete i._timeoutIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._timeoutIds[e]=!0),e},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,n){var i=this,e=0,r=(0,a.z)(n);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),e=r.setTimeout((function(){try{i._immediateIds&&delete i._immediateIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),0),this._immediateIds[e]=!0),e},t.prototype.clearImmediate=function(t,n){var i=(0,a.z)(n);this._immediateIds&&this._immediateIds[t]&&(i.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,n){var i=this,e=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),e=setInterval((function(){try{t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._intervalIds[e]=!0),e},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,n,i){var e=this;if(this._isDisposed)return this._noop;var r,o,u=n||0,a=!0,s=!0,l=0,c=null;i&&"boolean"==typeof i.leading&&(a=i.leading),i&&"boolean"==typeof i.trailing&&(s=i.trailing);var f=function(n){var i=Date.now(),h=i-l,d=a?u-h:u;return h>=u&&(!n||a)?(l=i,c&&(e.clearTimeout(c),c=null),r=t.apply(e._parent,o)):null===c&&s&&(c=e.setTimeout(f,d)),r};return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o=t,f(!0)}},t.prototype.debounce=function(t,n,i){var e=this;if(this._isDisposed){var r=function(){};return r.cancel=function(){},r.flush=function(){return null},r.pending=function(){return!1},r}var o,u,a=n||0,s=!1,l=!0,c=null,f=0,h=Date.now(),d=null;i&&"boolean"==typeof i.leading&&(s=i.leading),i&&"boolean"==typeof i.trailing&&(l=i.trailing),i&&"number"==typeof i.maxWait&&!isNaN(i.maxWait)&&(c=i.maxWait);var v=function(t){d&&(e.clearTimeout(d),d=null),h=t},p=function(n){v(n),o=t.apply(e._parent,u)},g=function(t){var n=Date.now(),i=!1;t&&(s&&n-f>=a&&(i=!0),f=n);var r=n-f,u=a-r,v=n-h,m=!1;return null!==c&&(v>=c&&d?m=!0:u=Math.min(u,c-v)),r>=a||m||i?p(n):null!==d&&t||!l||(d=e.setTimeout(g,u)),o},m=function(){return!!d},y=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return u=t,g(!0)};return y.cancel=function(){m()&&v(Date.now())},y.flush=function(){return m()&&p(Date.now()),o},y.pending=m,y},t.prototype.requestAnimationFrame=function(t,n){var i=this,e=0,r=(0,a.z)(n);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{i._animationFrameIds&&delete i._animationFrameIds[e],t.apply(i._parent)}catch(t){i._logError(t)}};e=r.requestAnimationFrame?r.requestAnimationFrame(o):r.setTimeout(o,0),this._animationFrameIds[e]=!0}return e},t.prototype.cancelAnimationFrame=function(t,n){var i=(0,a.z)(n);this._animationFrameIds&&this._animationFrameIds[t]&&(i.cancelAnimationFrame?i.cancelAnimationFrame(t):i.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function Ft(){var t=r.useRef();return t.current||(t.current=new Et),r.useEffect((function(){return function(){var n;null===(n=t.current)||void 0===n||n.dispose(),t.current=void 0}}),[]),t.current}function Bt(t,n,i,e){var o=r.useRef(i);o.current=i,r.useEffect((function(){var i=t&&"current"in t?t.current:t;if(i&&i.addEventListener)return H(i,n,(function(t){return o.current(t)}),e)}),[t,n,e])}function Ht(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var e=r.useCallback((function(n){e.current=n;for(var i=0,r=t;i<r.length;i++){var o=r[i];"function"==typeof o?o(n):o&&(o.current=n)}}),(0,n.fX)([],t,!0));return e}var _t=r.createContext({window:"object"==typeof window?window:void 0}),It=function(){return r.useContext(_t).window},Wt=function(){var t;return null===(t=r.useContext(_t).window)||void 0===t?void 0:t.document};function Rt(t){var n=t.originalElement,i=t.containsFocus;n&&i&&n!==(0,a.z)()&&setTimeout((function(){var t;null===(t=n.focus)||void 0===t||t.call(n)}),0)}var zt=r.forwardRef((function(t,i){var e=_({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),o=r.useRef(),u=Ht(o,i);!function(t,n){var i="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;r.useEffect((function(){if(i&&n.current)return Ot(n.current)}),[n,i])}(e,o),function(t,n){var i=t.onRestoreFocus,e=void 0===i?Rt:i,o=r.useRef(),u=r.useRef(!1);r.useEffect((function(){var t,i,r;return o.current=(0,C.Y)().activeElement,t=n.current,(r=(i=(0,C.Y)(t))&&i.activeElement)&&w(t,r)&&(u.current=!0),function(){var t;null==e||e({originalElement:o.current,containsFocus:u.current,documentContainsFocus:(null===(t=(0,C.Y)())||void 0===t?void 0:t.hasFocus())||!1}),o.current=void 0}}),[]),Bt(n,"focus",r.useCallback((function(){u.current=!0}),[]),!0),Bt(n,"blur",r.useCallback((function(t){n.current&&t.relatedTarget&&!n.current.contains(t.relatedTarget)&&(u.current=!1)}),[]),!0)}(e,o);var a=e.role,s=e.className,l=e.ariaLabel,c=e.ariaLabelledBy,f=e.ariaDescribedBy,h=e.style,d=e.children,v=e.onDismiss,p=function(t,n){var i=Ft(),e=r.useState(!1),o=e[0],u=e[1];return r.useEffect((function(){return i.requestAnimationFrame((function(){var i;if(!t.style||!t.style.overflowY){var e=!1;if(n&&n.current&&(null===(i=n.current)||void 0===i?void 0:i.firstElementChild)){var r=n.current.clientHeight,a=n.current.firstElementChild.clientHeight;r>0&&a>r&&(e=a-r>1)}o!==e&&u(e)}})),function(){return i.dispose()}})),o}(e,o),g=r.useCallback((function(t){t.which===Pt&&v&&(v(t),t.preventDefault(),t.stopPropagation())}),[v]);return Bt(It(),"keydown",g),r.createElement("div",(0,n.Cl)({ref:u},q(e,Y),{className:s,role:a,"aria-label":l,"aria-labelledby":c,"aria-describedby":f,onKeyDown:g,style:(0,n.Cl)({overflowY:p?"scroll":void 0,outline:"none"},h)}),d)}));zt.displayName="Popup";var jt=i(286);function Xt(t){var n=r.useRef();return void 0===n.current&&(n.current={value:"function"==typeof t?t():t}),n.current.value}var Yt,qt=function(){var t;return(null!==(t=It())&&void 0!==t?t:"undefined"!=typeof window)?window:void 0},$t=function(t){var n,i;return(null!==(i=null===(n=null==t?void 0:t.window)||void 0===n?void 0:n.document)&&void 0!==i?i:"undefined"!=typeof document)?document:void 0},Ut=((Yt={})[K.top]=jt.lw.slideUpIn10,Yt[K.bottom]=jt.lw.slideDownIn10,Yt[K.left]=jt.lw.slideLeftIn10,Yt[K.right]=jt.lw.slideRightIn10,Yt),Gt={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Zt=["role","aria-roledescription"],Kt={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:y.bottomAutoEdge},Jt=(0,o.Z)({disableCaching:!0});function Qt(t,n,i,e){var o,u=t.calloutMaxHeight,a=t.finalHeight,s=t.directionalHint,l=t.directionalHintFixed,c=t.hidden,f=t.gapSpace,h=t.beakWidth,d=t.isBeakVisible,v=t.coverTarget,p=r.useState(),g=p[0],m=p[1],y=null!==(o=null==e?void 0:e.elementPosition)&&void 0!==o?o:{},b=y.top,x=y.bottom,w=(null==i?void 0:i.current)?function(t){var n,i,e,r,o=t,u=t,a=t,s=null!==(n=a.left)&&void 0!==n?n:a.x,l=null!==(i=a.top)&&void 0!==i?i:a.y,c=null!==(e=a.right)&&void 0!==e?e:s,f=null!==(r=a.bottom)&&void 0!==r?r:l;return o.stopPropagation?new et(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==s&&void 0!==l?new et(s,c,l,f):Vt(u)}(i.current):void 0;return r.useEffect((function(){var t,i,r=null!==(t=n())&&void 0!==t?t:{},o=r.top,a=r.bottom;(null==e?void 0:e.targetEdge)===K.top&&(null==w?void 0:w.top)&&!v&&(a=w.top-function(t,n,i){return Nt(t,n,i)}(d,h,f)),"number"==typeof b&&a?i=a-b:"number"==typeof x&&"number"==typeof o&&a&&(i=a-o-x),m(!u&&!c||u&&i&&u>i?i:u||void 0)}),[x,u,a,s,l,n,c,e,b,f,h,d,w,v]),g}function tn(t,i,e,o,u,s){var l,c=r.useState(),f=c[0],h=c[1],d=r.useRef(0),v=r.useRef(),p=Ft(),g=t.hidden,m=t.target,y=t.finalHeight,b=t.calloutMaxHeight,x=t.onPositioned,w=t.directionalHint,C=t.hideOverflow,M=t.preferScrollResizePositioning,k=qt(),L=r.useRef();L.current!==s.current&&(L.current=s.current,l=s.current?null==k?void 0:k.getComputedStyle(s.current):void 0);var S=null==l?void 0:l.overflowY;return r.useEffect((function(){if(!g){var r=p.requestAnimationFrame((function(){var r,s,l,c;if(i.current&&e){var p=(0,n.Cl)((0,n.Cl)({},t),{target:o.current,bounds:u()}),g=e.cloneNode(!0);g.style.maxHeight=b?"".concat(b):"",g.style.visibility="hidden",null===(r=e.parentElement)||void 0===r||r.appendChild(g);var w=v.current===m?f:void 0,L=M&&!(C||"clip"===S||"hidden"===S),V=y?function(t,n,i,e,r){return function(t,n,i,e,r){return Dt(t,n,i,e,!1,void 0,!0,null!=r?r:(0,a.z)())}(t,n,i,e,r)}(p,i.current,g,w,k):function(t,n,i,e,r,o,u){return Dt(t,n,i,e,r,void 0,void 0,u)}(p,i.current,g,w,L,0,k);null===(s=e.parentElement)||void 0===s||s.removeChild(g),!f&&V||f&&V&&(c=V,!rn((l=f).elementPosition,c.elementPosition)||!rn(l.beakPosition.elementPosition,c.beakPosition.elementPosition))&&d.current<5?(d.current++,h(V)):d.current>0&&(d.current=0,null==x||x(f))}}),e);return v.current=m,function(){p.cancelAnimationFrame(r),v.current=void 0}}h(void 0),d.current=0}),[g,w,p,e,b,i,o,y,u,x,f,t,m,C,M,S,k]),f}var nn=r.memo(r.forwardRef((function(t,i){var e=_(Kt,t),o=e.styles,u=e.style,a=e.ariaLabel,s=e.ariaDescribedBy,l=e.ariaLabelledBy,c=e.className,f=e.isBeakVisible,h=e.children,d=e.beakWidth,v=e.calloutWidth,p=e.calloutMaxWidth,g=e.calloutMinWidth,m=e.doNotLayer,y=e.finalHeight,b=e.hideOverflow,x=void 0===b?!!y:b,M=e.backgroundColor,k=e.calloutMaxHeight,L=e.onScroll,S=e.shouldRestoreFocus,A=void 0===S||S,N=e.target,D=e.hidden,T=e.onLayerMounted,O=e.popupProps,P=r.useRef(null),E=Ht(r.useRef(null),null==O?void 0:O.ref),F=r.useState(null),B=F[0],I=F[1],W=r.useCallback((function(t){I(t)}),[]),R=Ht(P,i),z=function(t,n){var i,e,o,u=r.useRef(),a=r.useRef(null),s=It();if(!t||t!==u.current||"string"==typeof t){var l=null==n?void 0:n.current;if(t)if("string"==typeof t)if(null===(i=null==l?void 0:l.getRootNode())||void 0===i?void 0:i.host)a.current=null!==(o=null===(e=null==l?void 0:l.getRootNode())||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null;else{var c=(0,C.Y)(l);a.current=c?c.querySelector(t):null}else a.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;u.current=t}return[a,s]}(e.target,{current:B}),j=z[0],X=z[1],U=function(t,n,i){var e=t.bounds,o=t.minPagePadding,u=void 0===o?Kt.minPagePadding:o,a=t.target,s=r.useState(!1),l=s[0],c=s[1],f=r.useRef(),h=r.useCallback((function(){if(!f.current||l){var t="function"==typeof e?i?e(a,i):void 0:e;!t&&i&&(t=function(t,n){return function(t,n){var i=void 0;if(n.getWindowSegments&&(i=n.getWindowSegments()),void 0===i||i.length<=1)return{top:0,left:0,right:n.innerWidth,bottom:n.innerHeight,width:n.innerWidth,height:n.innerHeight};var e=0,r=0;if(null!==t&&t.getBoundingClientRect){var o=t.getBoundingClientRect();e=(o.left+o.right)/2,r=(o.top+o.bottom)/2}else null!==t&&(e=t.left||t.x,r=t.top||t.y);for(var u={top:0,left:0,right:0,bottom:0,width:0,height:0},a=0,s=i;a<s.length;a++){var l=s[a];e&&l.left<=e&&l.right>=e&&r&&l.top<=r&&l.bottom>=r&&(u={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return u}(t,n)}(n.current,i),t={top:t.top+u,left:t.left+u,right:t.right-u,bottom:t.bottom-u,width:t.width-2*u,height:t.height-2*u}),f.current=t,l&&c(!1)}return f.current}),[e,u,a,n,i,l]),d=Ft();return Bt(i,"resize",d.debounce((function(){c(!0)}),500,{leading:!0})),h}(e,j,X),G=tn(e,P,B,j,U,E),Z=Qt(e,U,j,G),K=function(t,n,i,e,o){var u=t.hidden,a=t.onDismiss,s=t.preventDismissOnScroll,l=t.preventDismissOnResize,c=t.preventDismissOnLostFocus,f=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,d=t.preventDismissOnEvent,v=r.useRef(!1),p=Ft(),g=Xt([function(){v.current=!0},function(){v.current=!1}]),m=!!n;return r.useEffect((function(){var t=function(t){m&&!s&&g(t)},n=function(t){l||d&&d(t)||null==a||a(t)},r=function(t){c||g(t)},g=function(t){var n=t.composedPath?t.composedPath():[],r=n.length>0?n[0]:t.target,u=i.current&&!w(i.current,r);if(u&&v.current)v.current=!1;else if(!e.current&&u||t.target!==o&&u&&(!e.current||"stopPropagation"in e.current||f||r!==e.current&&!w(e.current,r))){if(d&&d(t))return;null==a||a(t)}},y=function(t){h&&((!d||d(t))&&(d||c)||(null==o?void 0:o.document.hasFocus())||null!==t.relatedTarget||null==a||a(t))},b=new Promise((function(i){p.setTimeout((function(){if(!u&&o){var e=[H(o,"scroll",t,!0),H(o,"resize",n,!0),H(o.document.documentElement,"focus",r,!0),H(o.document.documentElement,"click",r,!0),H(o,"blur",y,!0)];i((function(){e.forEach((function(t){return t()}))}))}}),0)}));return function(){b.then((function(t){return t()}))}}),[u,p,i,e,o,a,h,f,c,l,s,m,d]),g}(e,G,P,j,X),J=K[0],Q=K[1],tt=(null==G?void 0:G.elementPosition.top)&&(null==G?void 0:G.elementPosition.bottom),nt=(0,n.Cl)((0,n.Cl)({},null==G?void 0:G.elementPosition),{maxHeight:Z});if(tt&&(nt.bottom=void 0),function(t,n,i){var e=t.hidden,o=t.setInitialFocus,u=Ft(),a=!!n;r.useEffect((function(){if(!e&&o&&a&&i){var t=u.requestAnimationFrame((function(){return V(i)}),i);return function(){return u.cancelAnimationFrame(t)}}}),[e,a,u,i,o])}(e,G,B),r.useEffect((function(){D||null==T||T()}),[D]),!X)return null;var it=x,et=f&&!!N,rt=Jt(o,{theme:e.theme,className:c,overflowYHidden:it,calloutWidth:v,positions:G,beakWidth:d,backgroundColor:M,calloutMaxWidth:p,calloutMinWidth:g,doNotLayer:m}),ot=(0,n.Cl)((0,n.Cl)({maxHeight:k||"100%"},u),it&&{overflowY:"hidden"}),ut=e.hidden?{visibility:"hidden"}:void 0;return r.createElement("div",{ref:R,className:rt.container,style:ut},r.createElement("div",(0,n.Cl)({},q(e,Y,Zt),{className:$(rt.root,G&&G.targetEdge&&Ut[G.targetEdge]),style:G?(0,n.Cl)({},nt):Gt,tabIndex:-1,ref:W}),et&&r.createElement("div",{className:rt.beak,style:en(G)}),et&&r.createElement("div",{className:rt.beakCurtain}),r.createElement(zt,(0,n.Cl)({role:e.role,"aria-roledescription":e["aria-roledescription"],ariaDescribedBy:s,ariaLabel:a,ariaLabelledBy:l,className:rt.calloutMain,onDismiss:e.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:e.onRestoreFocus,onScroll:L,shouldRestoreFocus:A,style:ot},O,{ref:E}),h)))})),(function(t,n){return!(n.shouldUpdateWhenHidden||!t.hidden||!n.hidden)||function(t,n){if(!t||!n)return!t&&!n;for(var i in t)if(t.hasOwnProperty(i)&&(!n.hasOwnProperty(i)||n[i]!==t[i]))return!1;for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0}(t,n)}));function en(t){var i,e,r=(0,n.Cl)((0,n.Cl)({},null===(i=null==t?void 0:t.beakPosition)||void 0===i?void 0:i.elementPosition),{display:(null===(e=null==t?void 0:t.beakPosition)||void 0===e?void 0:e.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=0,r.top=0),r}function rn(t,n){for(var i in n)if(n.hasOwnProperty(i)){var e=t[i],r=n[i];if(void 0===e||void 0===r)return!1;if(e.toFixed(2)!==r.toFixed(2))return!1}return!0}function on(t){return{height:t,width:t}}nn.displayName="CalloutContentBase";var un={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},an=(0,t.I)(nn,(function(t){var n,i=t.theme,e=t.className,r=t.overflowYHidden,o=t.calloutWidth,u=t.beakWidth,a=t.backgroundColor,s=t.calloutMaxWidth,l=t.calloutMinWidth,c=t.doNotLayer,f=(0,jt.Km)(un,i),h=i.semanticColors,d=i.effects;return{container:[f.container,{position:"relative"}],root:[f.root,i.fonts.medium,{position:"absolute",display:"flex",zIndex:c?jt.nA.Layer:void 0,boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(n={},n[jt.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},n)},(0,jt.QN)(),e,!!o&&{width:o},!!s&&{maxWidth:s},!!l&&{minWidth:l}],beak:[f.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},on(u),a&&{backgroundColor:a}],beakCurtain:[f.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:d.roundedCorner2}],calloutMain:[f.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:d.roundedCorner2},r&&{overflowY:"hidden"},a&&{backgroundColor:a}]}}),void 0,{scope:"CalloutContent"}),sn=r.createContext(void 0),ln=function(){return function(){}};sn.Provider;var cn=ReactDOM,fn=i(351);new WeakMap,new WeakMap;var hn=r.createContext(void 0),dn=function(t){var n=t.providerRef,i=t.layerRoot,e=r.useState([])[0],o=r.useContext(hn),u=void 0!==o&&!i,a=r.useMemo((function(){return u?void 0:{providerRef:n,registeredProviders:e,registerProvider:function(t){e.push(t),null==o||o.registerProvider(t)},unregisterProvider:function(t){null==o||o.unregisterProvider(t);var n=e.indexOf(t);n>=0&&e.splice(n,1)}}}),[n,e,o,u]);return r.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?r.createElement(hn.Provider,{value:a},t.children):r.createElement(r.Fragment,null,t.children)},vn=i(86),pn=i(956);function gn(t,i){void 0===t&&(t={});var e=mn(i)?i:function(t){return function(i){return t?(0,n.Cl)((0,n.Cl)({},i),t):i}}(i);return e(t)}function mn(t){return"function"==typeof t}var yn=function(t){function i(){var n=null!==t&&t.apply(this,arguments)||this;return n._onCustomizationChange=function(){return n.forceUpdate()},n}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){vn.X.observe(this._onCustomizationChange)},i.prototype.componentWillUnmount=function(){vn.X.unobserve(this._onCustomizationChange)},i.prototype.render=function(){var t=this,i=this.props.contextTransform;return r.createElement(pn.z.Consumer,null,(function(e){var o=function(t,i){var e,r,o,u=(i||{}).customizations,a=void 0===u?{settings:{},scopedSettings:{}}:u;return{customizations:{settings:gn(a.settings,t.settings),scopedSettings:(e=a.scopedSettings,r=t.scopedSettings,void 0===e&&(e={}),(mn(r)?r:(void 0===(o=r)&&(o={}),function(t){var i=(0,n.Cl)({},t);for(var e in o)o.hasOwnProperty(e)&&(i[e]=(0,n.Cl)((0,n.Cl)({},t[e]),o[e]));return i}))(e)),inCustomizerContext:!0}}}(t.props,e);return i&&(o=i(o)),r.createElement(pn.z.Provider,{value:o},t.props.children)}))},i}(r.Component),bn=i(253),xn=(0,o.Z)(),wn=(0,fn.J9)((function(t,i){return(0,bn.a)((0,n.Cl)((0,n.Cl)({},t),{rtl:i}))})),Cn=r.forwardRef((function(t,i){var e=t.className,o=t.theme,a=t.applyTheme,s=t.applyThemeToBody,l=t.styles,c=xn(l,{theme:o,applyTheme:a,className:e}),f=r.useRef(null);return function(t,n,i){var e=n.bodyThemed;r.useEffect((function(){if(t){var n=(0,C.Y)(i.current);if(n)return n.body.classList.add(e),function(){n.body.classList.remove(e)}}}),[e,t,i])}(s,c,f),r.createElement(r.Fragment,null,function(t,i,e,o){var a=i.root,s=t.as,l=void 0===s?"div":s,c=t.dir,f=t.theme,h=q(t,Y,["dir"]),d=function(t){var n=t.theme,i=t.dir,e=(0,u.jI)(n)?"rtl":"ltr",r=(0,u.jI)()?"rtl":"ltr",o=i||e;return{rootDir:o!==e||o!==r?o:i,needsTheme:o!==e}}(t),v=d.rootDir,p=d.needsTheme,g=r.createElement(dn,{providerRef:e},r.createElement(l,(0,n.Cl)({dir:v},h,{className:a,ref:Ht(e,o)})));return p&&(g=r.createElement(yn,{settings:{theme:wn(f,"rtl"===c)}},g)),g}(t,c,f,i))}));Cn.displayName="FabricBase";var Mn,kn={fontFamily:"inherit"},Ln={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Sn=(0,t.I)(Cn,(function(t){var n=t.applyTheme,i=t.className,e=t.preventBlanketFontInheritance,r=t.theme;return{root:[(0,jt.Km)(Ln,r).root,r.fonts.medium,{color:r.palette.neutralPrimary},!e&&{"& button":kn,"& input":kn,"& textarea":kn},n&&{color:r.semanticColors.bodyText,backgroundColor:r.semanticColors.bodyBackground},i],bodyThemed:[{backgroundColor:r.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Vn=i(119),An="data-portal-element",Nn={},Dn={},Tn="fluent-default-layer-host",On="#".concat(Tn),Pn=i(927),En=(0,Pn.S)()?r.useLayoutEffect:r.useEffect,Fn=void 0;function Bn(t){Fn?Fn(t):console&&console.warn&&console.warn(t)}function Hn(t,n,i,e,r){if(!0===r)for(var o=0,u=i;o<u.length;o++){var a=u[o];a in n||Bn("".concat(t," property '").concat(a,"' is required when '").concat(e,"' is used.'"))}}function _n(t,n,i){for(var e in i)if(n&&e in n){var r="".concat(t," property '").concat(e,"' was used but has been deprecated."),o=i[e];o&&(r+=" Use '".concat(o,"' instead.")),Bn(r)}}function In(t,n){return void 0!==t[n]&&null!==t[n]}function Wn(t){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=t})),n.current}Mn={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var Rn=0;function zn(t){var i=t.name,e=t.props,o=t.other,u=void 0===o?[]:o,a=t.conditionallyRequired,s=t.deprecations,l=t.mutuallyExclusive,c=t.controlledUsage,f=r.useRef(!1),h=Xt((function(){return"useWarnings_".concat(Rn++)})),d=Wn(e);if(!f.current){f.current=!0;for(var v=0,p=u;v<p.length;v++)Bn(p[v]);if(a)for(var g=0,m=a;g<m.length;g++){var y=m[g];Hn(i,e,y.requiredProps,y.conditionalPropName,y.condition)}s&&_n(i,e,s),l&&function(t,n,i){for(var e in i)if(n&&void 0!==n[e]){var r=i[e];r&&void 0!==n[r]&&Bn("".concat(t," property '").concat(e,"' is mutually exclusive with '").concat(i[e],"'. ")+"Use one or the other.")}}(i,e,l)}c&&function(t){var n=t.componentId,i=t.componentName,e=t.defaultValueProp,r=t.props,o=t.oldProps,u=t.onChangeProp,a=t.readOnlyProp,s=t.valueProp,l=o?In(o,s):void 0,c=In(r,s);if(c){var f=!!r[u],h=!(!a||!r[a]);f||h||Mn.valueOnChange[n]||(Mn.valueOnChange[n]=!0,Bn("Warning: You provided a '".concat(String(s),"' prop to a ").concat(String(i)," without an '").concat(String(u),"' handler. ")+"This will render a read-only field. If the field should be mutable use '".concat(String(e),"'. ")+"Otherwise, set '".concat(String(u),"'").concat(a?" or '".concat(String(a),"'"):"","."))),null==r[e]||Mn.valueDefaultValue[n]||(Mn.valueDefaultValue[n]=!0,Bn("Warning: You provided both '".concat(String(s),"' and '").concat(String(e),"' to a ").concat(i,". ")+"Form fields must be either controlled or uncontrolled (specify either the '".concat(String(s),"' prop, ")+"or the '".concat(String(e),"' prop, but not both). Decide between using a controlled or uncontrolled ")+"".concat(i," and remove one of these props. More info: https://fb.me/react-controlled-components")))}if(o&&c!==l){var d=l?"a controlled":"an uncontrolled",v=l?"uncontrolled":"controlled",p=l?Mn.controlledToUncontrolled:Mn.uncontrolledToControlled;p[n]||(p[n]=!0,Bn("Warning: A component is changing ".concat(d," ").concat(i," to be ").concat(v,". ")+"".concat(i,"s should not switch from controlled to uncontrolled (or vice versa). ")+"Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}((0,n.Cl)((0,n.Cl)({},c),{componentId:h,props:e,componentName:i,oldProps:d}))}var jn,Xn=(0,o.Z)(),Yn=r.forwardRef((function(t,i){var e,o=null!==(e=r.useContext(sn))&&void 0!==e?e:ln,u=r.useRef(null),a=Ht(u,i),s=r.useRef(),l=r.useRef(null),c=r.useContext(hn),f=r.useState(!1),h=f[0],d=f[1],v=r.useCallback((function(t){var n,i=!!(null==(n=null==c?void 0:c.providerRef)?void 0:n.current)&&n.current.classList.contains(Vn.Y2);t&&i&&t.classList.add(Vn.Y2)}),[c]),p=t.children,g=t.className,m=t.eventBubblingEnabled,y=t.fabricProps,b=t.hostId,x=t.insertFirst,w=t.onLayerDidMount,M=void 0===w?function(){}:w,k=t.onLayerMounted,L=void 0===k?function(){}:k,S=t.onLayerWillUnmount,V=t.styles,A=t.theme,N=Ht(l,null==y?void 0:y.ref,v),D=Xn(V,{theme:A,className:g,isNotHost:!b}),T=function(){null==S||S();var t=s.current;s.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},O=function(){var t,n,i,e,r=(0,C.Y)(u.current),o=(null===(n=null===(t=u.current)||void 0===t?void 0:t.getRootNode())||void 0===n?void 0:n.host)?null===(i=null==u?void 0:u.current)||void 0===i?void 0:i.getRootNode():void 0;if(r&&(r||o)){var a=function(t,n){var i,e;void 0===n&&(n=null);var r=null!=n?n:t;if(b){var o=function(t){var n=Dn[t];return n&&n[0]||void 0}(b);return o?null!==(i=o.rootRef.current)&&void 0!==i?i:null:null!==(e=r.getElementById(b))&&void 0!==e?e:null}var u=On,a=u?r.querySelector(u):null;return a||(a=function(t,n){void 0===n&&(n=null);var i=t.createElement("div");return i.setAttribute("id",Tn),i.style.cssText="position:fixed;z-index:1000000",n?n.appendChild(i):null==t||t.body.appendChild(i),i}(t,n)),a}(r,o);if(a){a.__tabsterElementFlags||(a.__tabsterElementFlags={}),a.__tabsterElementFlags.noDirectAriaHidden=!0,T();var l=(null!==(e=a.ownerDocument)&&void 0!==e?e:r).createElement("div");l.className=D.root,l.setAttribute(An,"true"),function(t,n){var i=t,e=n;i._virtual||(i._virtual={children:[]});var r=i._virtual.parent;if(r&&r!==n){var o=r._virtual.children.indexOf(i);o>-1&&r._virtual.children.splice(o,1)}i._virtual.parent=e||void 0,e&&(e._virtual||(e._virtual={children:[]}),e._virtual.children.push(i))}(l,u.current),x?a.insertBefore(l,a.firstChild):a.appendChild(l),s.current=l,d(!0)}}};return En((function(){O(),b&&function(t,n){Nn[t]||(Nn[t]=[]),Nn[t].push(n);var i=Dn[t];if(i)for(var e=0,r=i;e<r.length;e++)r[e].notifyLayersChanged()}(b,O);var t=s.current?o(s.current):void 0;return function(){t&&t(),T(),b&&function(t,n){var i=Nn[t];if(i){var e=i.indexOf(n);e>=0&&(i.splice(e,1),0===i.length&&delete Nn[t])}var r=Dn[t];if(r)for(var o=0,u=r;o<u.length;o++)u[o].notifyLayersChanged()}(b,O)}}),[b]),r.useEffect((function(){s.current&&h&&(null==L||L(),null==M||M(),d(!1))}),[h,L,M]),function(t){zn({name:"Layer",props:t,deprecations:{onLayerMounted:"onLayerDidMount"}})}(t),r.createElement("span",{className:"ms-layer",ref:a},s.current&&cn.createPortal(r.createElement(dn,{layerRoot:!0,providerRef:N},r.createElement(Sn,(0,n.Cl)({},!m&&(jn||(jn={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return jn[t]=qn}))),jn),y,{className:$(D.content,null==y?void 0:y.className),ref:N}),p)),s.current))}));Yn.displayName="LayerBase";var qn=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},$n={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Un=(0,t.I)(Yn,(function(t){var n=t.className,i=t.isNotHost,e=t.theme,r=(0,jt.Km)($n,e);return{root:[r.root,e.fonts.medium,i&&[r.rootNoHost,{position:"fixed",zIndex:jt.nA.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],n],content:[r.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Gn=r.forwardRef((function(t,i){var e=t.layerProps,o=t.doNotLayer,u=(0,n.Tt)(t,["layerProps","doNotLayer"]),a=r.createElement(an,(0,n.Cl)({},u,{doNotLayer:o,ref:i}));return o?a:r.createElement(Un,(0,n.Cl)({},e),a)}));Gn.displayName="Callout";var Zn=i(464),Kn=Array.prototype.slice;function Jn(t){return t}var Qn=1,ti=2,ni=3,ii=4,ei=1e-6;function ri(t){return"translate("+t+",0)"}function oi(t){return"translate(0,"+t+")"}function ui(t){return n=>+t(n)}function ai(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),i=>+t(i)+n}function si(){return!this.__axis}function li(t,n){var i=[],e=null,r=null,o=6,u=6,a=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=t===Qn||t===ii?-1:1,c=t===ii||t===ti?"x":"y",f=t===Qn||t===ni?ri:oi;function h(h){var d=null==e?n.ticks?n.ticks.apply(n,i):n.domain():e,v=null==r?n.tickFormat?n.tickFormat.apply(n,i):Jn:r,p=Math.max(o,0)+a,g=n.range(),m=+g[0]+s,y=+g[g.length-1]+s,b=(n.bandwidth?ai:ui)(n.copy(),s),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),C=x.selectAll(".tick").data(d,n).order(),M=C.exit(),k=C.enter().append("g").attr("class","tick"),L=C.select("line"),S=C.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(k),L=L.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),S=S.merge(k.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",t===Qn?"0em":t===ni?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),C=C.transition(h),L=L.transition(h),S=S.transition(h),M=M.transition(h).attr("opacity",ei).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),k.attr("opacity",ei).attr("transform",(function(t){var n=this.parentNode.__axis;return f((n&&isFinite(n=n(t))?n:b(t))+s)}))),M.remove(),w.attr("d",t===ii||t===ti?u?"M"+l*u+","+m+"H"+s+"V"+y+"H"+l*u:"M"+s+","+m+"V"+y:u?"M"+m+","+l*u+"V"+s+"H"+y+"V"+l*u:"M"+m+","+s+"H"+y),C.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),L.attr(c+"2",l*o),S.attr(c,l*p).text(v),x.filter(si).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ti?"start":t===ii?"end":"middle"),x.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return i=Kn.call(arguments),h},h.tickArguments=function(t){return arguments.length?(i=null==t?[]:Kn.call(t),h):i.slice()},h.tickValues=function(t){return arguments.length?(e=null==t?null:Kn.call(t),h):e&&e.slice()},h.tickFormat=function(t){return arguments.length?(r=t,h):r},h.tickSize=function(t){return arguments.length?(o=u=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(u=+t,h):u},h.tickPadding=function(t){return arguments.length?(a=+t,h):a},h.offset=function(t){return arguments.length?(s=+t,h):s},h}function ci(t){return li(ti,t)}function fi(t){return li(ni,t)}function hi(t){return li(ii,t)}function di(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}function vi(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}var pi=Math.sqrt(50),gi=Math.sqrt(10),mi=Math.sqrt(2);function yi(t,n,i){var e=(n-t)/Math.max(0,i),r=Math.floor(Math.log(e)/Math.LN10),o=e/Math.pow(10,r);return r>=0?(o>=pi?10:o>=gi?5:o>=mi?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=pi?10:o>=gi?5:o>=mi?2:1)}function bi(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function xi(t){let n=t,i=t;function e(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)<0?e=o+1:r=o}return e}return 1===t.length&&(n=(n,i)=>t(n)-i,i=function(t){return(n,i)=>bi(t(n),i)}(t)),{left:e,center:function(t,i,r,o){null==r&&(r=0),null==o&&(o=t.length);const u=e(t,i,r,o-1);return u>r&&n(t[u-1],i)>-n(t[u],i)?u-1:u},right:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)>0?r=o:e=o+1}return e}}}const wi=xi(bi),Ci=wi.right;wi.left,xi((function(t){return null===t?NaN:+t})).center;var Mi=Ci;function ki(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function Li(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function Si(){}var Vi=.7,Ai=1/Vi,Ni="\\s*([+-]?\\d+)\\s*",Di="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ti="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oi=/^#([0-9a-f]{3,8})$/,Pi=new RegExp("^rgb\\("+[Ni,Ni,Ni]+"\\)$"),Ei=new RegExp("^rgb\\("+[Ti,Ti,Ti]+"\\)$"),Fi=new RegExp("^rgba\\("+[Ni,Ni,Ni,Di]+"\\)$"),Bi=new RegExp("^rgba\\("+[Ti,Ti,Ti,Di]+"\\)$"),Hi=new RegExp("^hsl\\("+[Di,Ti,Ti]+"\\)$"),_i=new RegExp("^hsla\\("+[Di,Ti,Ti,Di]+"\\)$"),Ii={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Wi(){return this.rgb().formatHex()}function Ri(){return this.rgb().formatRgb()}function zi(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=Oi.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?ji(n):3===i?new qi(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===i?new qi(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===i?new qi(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Pi.exec(t))?new qi(n[1],n[2],n[3],1):(n=Ei.exec(t))?new qi(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Fi.exec(t))?Xi(n[1],n[2],n[3],n[4]):(n=Bi.exec(t))?Xi(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Hi.exec(t))?Zi(n[1],n[2]/100,n[3]/100,1):(n=_i.exec(t))?Zi(n[1],n[2]/100,n[3]/100,n[4]):Ii.hasOwnProperty(t)?ji(Ii[t]):"transparent"===t?new qi(NaN,NaN,NaN,0):null}function ji(t){return new qi(t>>16&255,t>>8&255,255&t,1)}function Xi(t,n,i,e){return e<=0&&(t=n=i=NaN),new qi(t,n,i,e)}function Yi(t,n,i,e){return 1===arguments.length?((r=t)instanceof Si||(r=zi(r)),r?new qi((r=r.rgb()).r,r.g,r.b,r.opacity):new qi):new qi(t,n,i,null==e?1:e);var r}function qi(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function $i(){return"#"+Gi(this.r)+Gi(this.g)+Gi(this.b)}function Ui(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Gi(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Zi(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new Ji(t,n,i,e)}function Ki(t){if(t instanceof Ji)return new Ji(t.h,t.s,t.l,t.opacity);if(t instanceof Si||(t=zi(t)),!t)return new Ji;if(t instanceof Ji)return t;var n=(t=t.rgb()).r/255,i=t.g/255,e=t.b/255,r=Math.min(n,i,e),o=Math.max(n,i,e),u=NaN,a=o-r,s=(o+r)/2;return a?(u=n===o?(i-e)/a+6*(i<e):i===o?(e-n)/a+2:(n-i)/a+4,a/=s<.5?o+r:2-o-r,u*=60):a=s>0&&s<1?0:u,new Ji(u,a,s,t.opacity)}function Ji(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function Qi(t,n,i){return 255*(t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n)}function te(t,n,i,e,r){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*i+(1+3*t+3*o-3*u)*e+u*r)/6}function ne(t){return function(){return t}}function ie(t,n){var i=n-t;return i?function(t,n){return function(i){return t+i*n}}(t,i):ne(isNaN(t)?n:t)}ki(Si,zi,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Wi,formatHex:Wi,formatHsl:function(){return Ki(this).formatHsl()},formatRgb:Ri,toString:Ri}),ki(qi,Yi,Li(Si,{brighter:function(t){return t=null==t?Ai:Math.pow(Ai,t),new qi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Vi:Math.pow(Vi,t),new qi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$i,formatHex:$i,formatRgb:Ui,toString:Ui})),ki(Ji,(function(t,n,i,e){return 1===arguments.length?Ki(t):new Ji(t,n,i,null==e?1:e)}),Li(Si,{brighter:function(t){return t=null==t?Ai:Math.pow(Ai,t),new Ji(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Vi:Math.pow(Vi,t),new Ji(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,e=i+(i<.5?i:1-i)*n,r=2*i-e;return new qi(Qi(t>=240?t-240:t+120,r,e),Qi(t,r,e),Qi(t<120?t+240:t-120,r,e),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var ee=function t(n){var i=function(t){return 1==(t=+t)?ie:function(n,i){return i-n?function(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(e){return Math.pow(t+e*n,i)}}(n,i,t):ne(isNaN(n)?i:n)}}(n);function e(t,n){var e=i((t=Yi(t)).r,(n=Yi(n)).r),r=i(t.g,n.g),o=i(t.b,n.b),u=ie(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=r(n),t.b=o(n),t.opacity=u(n),t+""}}return e.gamma=t,e}(1);function re(t){return function(n){var i,e,r=n.length,o=new Array(r),u=new Array(r),a=new Array(r);for(i=0;i<r;++i)e=Yi(n[i]),o[i]=e.r||0,u[i]=e.g||0,a[i]=e.b||0;return o=t(o),u=t(u),a=t(a),e.opacity=1,function(t){return e.r=o(t),e.g=u(t),e.b=a(t),e+""}}}function oe(t,n){var i,e=n?n.length:0,r=t?Math.min(e,t.length):0,o=new Array(r),u=new Array(e);for(i=0;i<r;++i)o[i]=de(t[i],n[i]);for(;i<e;++i)u[i]=n[i];return function(t){for(i=0;i<r;++i)u[i]=o[i](t);return u}}function ue(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function ae(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function se(t,n){var i,e={},r={};for(i in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)i in t?e[i]=de(t[i],n[i]):r[i]=n[i];return function(t){for(i in e)r[i]=e[i](t);return r}}re((function(t){var n=t.length-1;return function(i){var e=i<=0?i=0:i>=1?(i=1,n-1):Math.floor(i*n),r=t[e],o=t[e+1],u=e>0?t[e-1]:2*r-o,a=e<n-1?t[e+2]:2*o-r;return te((i-e/n)*n,u,r,o,a)}})),re((function(t){var n=t.length;return function(i){var e=Math.floor(((i%=1)<0?++i:i)*n),r=t[(e+n-1)%n],o=t[e%n],u=t[(e+1)%n],a=t[(e+2)%n];return te((i-e/n)*n,r,o,u,a)}}));var le=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ce=new RegExp(le.source,"g");function fe(t,n){var i,e,r,o=le.lastIndex=ce.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(i=le.exec(t))&&(e=ce.exec(n));)(r=e.index)>o&&(r=n.slice(o,r),a[u]?a[u]+=r:a[++u]=r),(i=i[0])===(e=e[0])?a[u]?a[u]+=e:a[++u]=e:(a[++u]=null,s.push({i:u,x:ae(i,e)})),o=ce.lastIndex;return o<n.length&&(r=n.slice(o),a[u]?a[u]+=r:a[++u]=r),a.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var i,e=0;e<n;++e)a[(i=s[e]).i]=i.x(t);return a.join("")})}function he(t,n){n||(n=[]);var i,e=t?Math.min(n.length,t.length):0,r=n.slice();return function(o){for(i=0;i<e;++i)r[i]=t[i]*(1-o)+n[i]*o;return r}}function de(t,n){var i,e,r=typeof n;return null==n||"boolean"===r?ne(n):("number"===r?ae:"string"===r?(i=zi(n))?(n=i,ee):fe:n instanceof zi?ee:n instanceof Date?ue:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?oe:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?se:ae:he))(t,n)}function ve(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function pe(t){return+t}var ge=[0,1];function me(t){return t}function ye(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:(i=isNaN(n)?NaN:.5,function(){return i});var i}function be(t,n,i){var e=t[0],r=t[1],o=n[0],u=n[1];return r<e?(e=ye(r,e),o=i(u,o)):(e=ye(e,r),o=i(o,u)),function(t){return o(e(t))}}function xe(t,n,i){var e=Math.min(t.length,n.length)-1,r=new Array(e),o=new Array(e),u=-1;for(t[e]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<e;)r[u]=ye(t[u],t[u+1]),o[u]=i(n[u],n[u+1]);return function(n){var i=Mi(t,n,1,e)-1;return o[i](r[i](n))}}function we(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ce(){return function(){var t,n,i,e,r,o,u=ge,a=ge,s=de,l=me;function c(){var t,n,i,s=Math.min(u.length,a.length);return l!==me&&(t=u[0],n=u[s-1],t>n&&(i=t,t=n,n=i),l=function(i){return Math.max(t,Math.min(n,i))}),e=s>2?xe:be,r=o=null,f}function f(n){return null==n||isNaN(n=+n)?i:(r||(r=e(u.map(t),a,s)))(t(l(n)))}return f.invert=function(i){return l(n((o||(o=e(a,u.map(t),ae)))(i)))},f.domain=function(t){return arguments.length?(u=Array.from(t,pe),c()):u.slice()},f.range=function(t){return arguments.length?(a=Array.from(t),c()):a.slice()},f.rangeRound=function(t){return a=Array.from(t),s=ve,c()},f.clamp=function(t){return arguments.length?(l=!!t||me,c()):l!==me},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(i=t,f):i},function(i,e){return t=i,n=e,c()}}()(me,me)}function Me(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var ke,Le=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Se(t){if(!(n=Le.exec(t)))throw new Error("invalid format: "+t);var n;return new Ve({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Ve(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ae(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}function Ne(t){return(t=Ae(Math.abs(t)))?t[1]:NaN}function De(t,n){var i=Ae(t,n);if(!i)return t+"";var e=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+e:e.length>r+1?e.slice(0,r+1)+"."+e.slice(r+1):e+new Array(r-e.length+2).join("0")}Se.prototype=Ve.prototype,Ve.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Te={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return De(100*t,n)},r:De,s:function(t,n){var i=Ae(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(ke=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,u=e.length;return o===u?e:o>u?e+new Array(o-u+1).join("0"):o>0?e.slice(0,o)+"."+e.slice(o):"0."+new Array(1-o).join("0")+Ae(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Oe(t){return t}var Pe,Ee,Fe,Be=Array.prototype.map,He=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _e(t){var n=t.domain;return t.ticks=function(t){var i=n();return function(t,n,i){var e,r,o,u,a=-1;if(i=+i,(t=+t)==(n=+n)&&i>0)return[t];if((e=n<t)&&(r=t,t=n,n=r),0===(u=yi(t,n,i))||!isFinite(u))return[];if(u>0){let i=Math.round(t/u),e=Math.round(n/u);for(i*u<t&&++i,e*u>n&&--e,o=new Array(r=e-i+1);++a<r;)o[a]=(i+a)*u}else{u=-u;let i=Math.round(t*u),e=Math.round(n*u);for(i/u<t&&++i,e/u>n&&--e,o=new Array(r=e-i+1);++a<r;)o[a]=(i+a)/u}return e&&o.reverse(),o}(i[0],i[i.length-1],null==t?10:t)},t.tickFormat=function(t,i){var e=n();return function(t,n,i,e){var r,o=function(t,n,i){var e=Math.abs(n-t)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),o=e/r;return o>=pi?r*=10:o>=gi?r*=5:o>=mi&&(r*=2),n<t?-r:r}(t,n,i);switch((e=Se(null==e?",f":e)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ne(n)/3)))-Ne(Math.abs(t)))}(o,u))||(e.precision=r),Fe(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ne(n)-Ne(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-Ne(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return Ee(e)}(e[0],e[e.length-1],null==t?10:t,i)},t.nice=function(i){null==i&&(i=10);var e,r,o=n(),u=0,a=o.length-1,s=o[u],l=o[a],c=10;for(l<s&&(r=s,s=l,l=r,r=u,u=a,a=r);c-- >0;){if((r=yi(s,l,i))===e)return o[u]=s,o[a]=l,n(o);if(r>0)s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r}e=r}return t},t}function Ie(){var t=Ce();return t.copy=function(){return we(t,Ie())},Me.apply(t,arguments),_e(t)}Pe=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?Oe:(n=Be.call(t.grouping,Number),i=t.thousands+"",function(t,e){for(var r=t.length,o=[],u=0,a=n[0],s=0;r>0&&a>0&&(s+a+1>e&&(a=Math.max(1,e-s)),o.push(t.substring(r-=a,r+a)),!((s+=a+1)>e));)a=n[u=(u+1)%n.length];return o.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Oe:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Be.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=Se(t)).fill,i=t.align,f=t.sign,h=t.symbol,d=t.zero,v=t.width,p=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):Te[y]||(void 0===g&&(g=12),m=!0,y="g"),(d||"0"===n&&"="===i)&&(d=!0,n="0",i="=");var b="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?s:"",w=Te[y],C=/[defgprs%]/.test(y);function M(t){var r,o,s,h=b,M=x;if("c"===y)M=w(t)+M,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(Math.abs(t),g),m&&(t=function(t){t:for(var n,i=t.length,e=1,r=-1;e<i;++e)switch(t[e]){case".":r=n=e;break;case"0":0===r&&(r=e),n=e;break;default:if(!+t[e])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(n+1):t}(t)),k&&0==+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:l:"-"===f||"("===f?"":f)+h,M=("s"===y?He[8+ke/3]:"")+M+(k&&"("===f?")":""),C)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){M=(46===s?u+t.slice(r+1):t.slice(r))+M,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var L=h.length+t.length+M.length,S=L<v?new Array(v-L+1).join(n):"";switch(p&&d&&(t=e(S+t,S.length?v-M.length:1/0),S=""),i){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,L=S.length>>1)+h+t+M+S.slice(L);break;default:t=S+h+t+M}return a(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,n){var i=f(((t=Se(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(Ne(n)/3))),r=Math.pow(10,-e),o=He[8+e/3];return function(t){return i(r*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ee=Pe.format,Fe=Pe.formatPrefix;var We=Math.sqrt(50),Re=Math.sqrt(10),ze=Math.sqrt(2);function je(t,n,i){var e=Math.abs(n-t)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),o=e/r;return o>=We?r*=10:o>=Re?r*=5:o>=ze&&(r*=2),n<t?-r:r}const Xe=1e3,Ye=6e4,qe=36e5,$e=864e5,Ue=6048e5,Ge=31536e6;var Ze=new Date,Ke=new Date;function Je(t,n,i,e){function r(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return r.floor=function(n){return t(n=new Date(+n)),n},r.ceil=function(i){return t(i=new Date(i-1)),n(i,1),t(i),i},r.round=function(t){var n=r(t),i=r.ceil(t);return t-n<i-t?n:i},r.offset=function(t,i){return n(t=new Date(+t),null==i?1:Math.floor(i)),t},r.range=function(i,e,o){var u,a=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return a;do{a.push(u=new Date(+i)),n(i,o),t(i)}while(u<i&&i<e);return a},r.filter=function(i){return Je((function(n){if(n>=n)for(;t(n),!i(n);)n.setTime(n-1)}),(function(t,e){if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););}))},i&&(r.count=function(n,e){return Ze.setTime(+n),Ke.setTime(+e),t(Ze),t(Ke),Math.floor(i(Ze,Ke))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(e?function(n){return e(n)%t==0}:function(n){return r.count(0,n)%t==0}):r:null}),r}var Qe=Je((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Qe.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Je((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,i){n.setTime(+n+i*t)}),(function(n,i){return(i-n)/t})):Qe:null};var tr=Qe,nr=(Qe.range,Je((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Xe)}),(function(t,n){return(n-t)/Xe}),(function(t){return t.getUTCSeconds()}))),ir=nr,er=(nr.range,Je((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xe)}),(function(t,n){t.setTime(+t+n*Ye)}),(function(t,n){return(n-t)/Ye}),(function(t){return t.getMinutes()}))),rr=er,or=(er.range,Je((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xe-t.getMinutes()*Ye)}),(function(t,n){t.setTime(+t+n*qe)}),(function(t,n){return(n-t)/qe}),(function(t){return t.getHours()}))),ur=or,ar=(or.range,Je((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ye)/$e),(t=>t.getDate()-1))),sr=ar;function lr(t){return Je((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ye)/Ue}))}ar.range;var cr=lr(0),fr=lr(1),hr=lr(2),dr=lr(3),vr=lr(4),pr=lr(5),gr=lr(6),mr=(cr.range,fr.range,hr.range,dr.range,vr.range,pr.range,gr.range,Je((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),yr=mr,br=(mr.range,Je((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));br.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Je((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,i){n.setFullYear(n.getFullYear()+i*t)})):null};var xr=br,wr=(br.range,Je((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Ye)}),(function(t,n){return(n-t)/Ye}),(function(t){return t.getUTCMinutes()}))),Cr=wr,Mr=(wr.range,Je((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*qe)}),(function(t,n){return(n-t)/qe}),(function(t){return t.getUTCHours()}))),kr=Mr,Lr=(Mr.range,Je((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/$e}),(function(t){return t.getUTCDate()-1}))),Sr=Lr;function Vr(t){return Je((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Ue}))}Lr.range;var Ar=Vr(0),Nr=Vr(1),Dr=Vr(2),Tr=Vr(3),Or=Vr(4),Pr=Vr(5),Er=Vr(6),Fr=(Ar.range,Nr.range,Dr.range,Tr.range,Or.range,Pr.range,Er.range,Je((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),Br=Fr,Hr=(Fr.range,Je((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Hr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Je((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,i){n.setUTCFullYear(n.getUTCFullYear()+i*t)})):null};var _r=Hr;function Ir(t,n,i,e,r,o){const u=[[ir,1,Xe],[ir,5,5e3],[ir,15,15e3],[ir,30,3e4],[o,1,Ye],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,qe],[r,3,108e5],[r,6,216e5],[r,12,432e5],[e,1,$e],[e,2,1728e5],[i,1,Ue],[n,1,2592e6],[n,3,7776e6],[t,1,Ge]];function a(n,i,e){const r=Math.abs(i-n)/e,o=function(t){let n=t,i=t;function e(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)<0?e=o+1:r=o}return e}return 1===t.length&&(n=(n,i)=>t(n)-i,i=function(t){return(n,i)=>{return(e=t(n))<(r=i)?-1:e>r?1:e>=r?0:NaN;var e,r}}(t)),{left:e,center:function(t,i,r,o){null==r&&(r=0),null==o&&(o=t.length);const u=e(t,i,r,o-1);return u>r&&n(t[u-1],i)>-n(t[u],i)?u-1:u},right:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)>0?r=o:e=o+1}return e}}}((([,,t])=>t)).right(u,r);if(o===u.length)return t.every(je(n/Ge,i/Ge,e));if(0===o)return tr.every(Math.max(je(n,i,e),1));const[a,s]=u[r/u[o-1][2]<u[o][2]/r?o-1:o];return a.every(s)}return[function(t,n,i){const e=n<t;e&&([t,n]=[n,t]);const r=i&&"function"==typeof i.range?i:a(t,n,i),o=r?r.range(t,+n+1):[];return e?o.reverse():o},a]}Hr.range;const[Wr,Rr]=Ir(_r,Br,Ar,Sr,kr,Cr),[zr,jr]=Ir(xr,yr,cr,sr,ur,rr);function Xr(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Yr(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function qr(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function $r(t){var n=t.dateTime,i=t.date,e=t.time,r=t.periods,o=t.days,u=t.shortDays,a=t.months,s=t.shortMonths,l=eo(r),c=ro(r),f=eo(o),h=ro(o),d=eo(u),v=ro(u),p=eo(a),g=ro(a),m=eo(s),y=ro(s),b={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:So,e:So,f:To,g:zo,G:Xo,H:Vo,I:Ao,j:No,L:Do,m:Oo,M:Po,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:du,s:vu,S:Eo,u:Fo,U:Bo,V:_o,w:Io,W:Wo,x:null,X:null,y:Ro,Y:jo,Z:Yo,"%":hu},x={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:qo,e:qo,f:Ko,g:su,G:cu,H:$o,I:Uo,j:Go,L:Zo,m:Jo,M:Qo,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:du,s:vu,S:tu,u:nu,U:iu,V:ru,w:ou,W:uu,x:null,X:null,y:au,Y:lu,Z:fu,"%":hu},w={a:function(t,n,i){var e=d.exec(n.slice(i));return e?(t.w=v.get(e[0].toLowerCase()),i+e[0].length):-1},A:function(t,n,i){var e=f.exec(n.slice(i));return e?(t.w=h.get(e[0].toLowerCase()),i+e[0].length):-1},b:function(t,n,i){var e=m.exec(n.slice(i));return e?(t.m=y.get(e[0].toLowerCase()),i+e[0].length):-1},B:function(t,n,i){var e=p.exec(n.slice(i));return e?(t.m=g.get(e[0].toLowerCase()),i+e[0].length):-1},c:function(t,i,e){return k(t,n,i,e)},d:go,e:go,f:Co,g:fo,G:co,H:yo,I:yo,j:mo,L:wo,m:po,M:bo,p:function(t,n,i){var e=l.exec(n.slice(i));return e?(t.p=c.get(e[0].toLowerCase()),i+e[0].length):-1},q:vo,Q:ko,s:Lo,S:xo,u:uo,U:ao,V:so,w:oo,W:lo,x:function(t,n,e){return k(t,i,n,e)},X:function(t,n,i){return k(t,e,n,i)},y:fo,Y:co,Z:ho,"%":Mo};function C(t,n){return function(i){var e,r,o,u=[],a=-1,s=0,l=t.length;for(i instanceof Date||(i=new Date(+i));++a<l;)37===t.charCodeAt(a)&&(u.push(t.slice(s,a)),null!=(r=Kr[e=t.charAt(++a)])?e=t.charAt(++a):r="e"===e?" ":"0",(o=n[e])&&(e=o(i,r)),u.push(e),s=a+1);return u.push(t.slice(s,a)),u.join("")}}function M(t,n){return function(i){var e,r,o=qr(1900,void 0,1);if(k(o,t,i+="",0)!=i.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(e=Yr(qr(o.y,0,1))).getUTCDay(),e=r>4||0===r?Nr.ceil(e):Nr(e),e=Sr.offset(e,7*(o.V-1)),o.y=e.getUTCFullYear(),o.m=e.getUTCMonth(),o.d=e.getUTCDate()+(o.w+6)%7):(r=(e=Xr(qr(o.y,0,1))).getDay(),e=r>4||0===r?fr.ceil(e):fr(e),e=sr.offset(e,7*(o.V-1)),o.y=e.getFullYear(),o.m=e.getMonth(),o.d=e.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?Yr(qr(o.y,0,1)).getUTCDay():Xr(qr(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Yr(o)):Xr(o)}}function k(t,n,i,e){for(var r,o,u=0,a=n.length,s=i.length;u<a;){if(e>=s)return-1;if(37===(r=n.charCodeAt(u++))){if(r=n.charAt(u++),!(o=w[r in Kr?n.charAt(u++):r])||(e=o(t,i,e))<0)return-1}else if(r!=i.charCodeAt(e++))return-1}return e}return b.x=C(i,b),b.X=C(e,b),b.c=C(n,b),x.x=C(i,x),x.X=C(e,x),x.c=C(n,x),{format:function(t){var n=C(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=C(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var Ur,Gr,Zr,Kr={"-":"",_:" ",0:"0"},Jr=/^\s*\d+/,Qr=/^%/,to=/[\\^$*+?|[\]().{}]/g;function no(t,n,i){var e=t<0?"-":"",r=(e?-t:t)+"",o=r.length;return e+(o<i?new Array(i-o+1).join(n)+r:r)}function io(t){return t.replace(to,"\\$&")}function eo(t){return new RegExp("^(?:"+t.map(io).join("|")+")","i")}function ro(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function oo(t,n,i){var e=Jr.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function uo(t,n,i){var e=Jr.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function ao(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function so(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function lo(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function co(t,n,i){var e=Jr.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function fo(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function ho(t,n,i){var e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return e?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),i+e[0].length):-1}function vo(t,n,i){var e=Jr.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function po(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function go(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function mo(t,n,i){var e=Jr.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function yo(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function bo(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function xo(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function wo(t,n,i){var e=Jr.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function Co(t,n,i){var e=Jr.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function Mo(t,n,i){var e=Qr.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function ko(t,n,i){var e=Jr.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function Lo(t,n,i){var e=Jr.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function So(t,n){return no(t.getDate(),n,2)}function Vo(t,n){return no(t.getHours(),n,2)}function Ao(t,n){return no(t.getHours()%12||12,n,2)}function No(t,n){return no(1+sr.count(xr(t),t),n,3)}function Do(t,n){return no(t.getMilliseconds(),n,3)}function To(t,n){return Do(t,n)+"000"}function Oo(t,n){return no(t.getMonth()+1,n,2)}function Po(t,n){return no(t.getMinutes(),n,2)}function Eo(t,n){return no(t.getSeconds(),n,2)}function Fo(t){var n=t.getDay();return 0===n?7:n}function Bo(t,n){return no(cr.count(xr(t)-1,t),n,2)}function Ho(t){var n=t.getDay();return n>=4||0===n?vr(t):vr.ceil(t)}function _o(t,n){return t=Ho(t),no(vr.count(xr(t),t)+(4===xr(t).getDay()),n,2)}function Io(t){return t.getDay()}function Wo(t,n){return no(fr.count(xr(t)-1,t),n,2)}function Ro(t,n){return no(t.getFullYear()%100,n,2)}function zo(t,n){return no((t=Ho(t)).getFullYear()%100,n,2)}function jo(t,n){return no(t.getFullYear()%1e4,n,4)}function Xo(t,n){var i=t.getDay();return no((t=i>=4||0===i?vr(t):vr.ceil(t)).getFullYear()%1e4,n,4)}function Yo(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+no(n/60|0,"0",2)+no(n%60,"0",2)}function qo(t,n){return no(t.getUTCDate(),n,2)}function $o(t,n){return no(t.getUTCHours(),n,2)}function Uo(t,n){return no(t.getUTCHours()%12||12,n,2)}function Go(t,n){return no(1+Sr.count(_r(t),t),n,3)}function Zo(t,n){return no(t.getUTCMilliseconds(),n,3)}function Ko(t,n){return Zo(t,n)+"000"}function Jo(t,n){return no(t.getUTCMonth()+1,n,2)}function Qo(t,n){return no(t.getUTCMinutes(),n,2)}function tu(t,n){return no(t.getUTCSeconds(),n,2)}function nu(t){var n=t.getUTCDay();return 0===n?7:n}function iu(t,n){return no(Ar.count(_r(t)-1,t),n,2)}function eu(t){var n=t.getUTCDay();return n>=4||0===n?Or(t):Or.ceil(t)}function ru(t,n){return t=eu(t),no(Or.count(_r(t),t)+(4===_r(t).getUTCDay()),n,2)}function ou(t){return t.getUTCDay()}function uu(t,n){return no(Nr.count(_r(t)-1,t),n,2)}function au(t,n){return no(t.getUTCFullYear()%100,n,2)}function su(t,n){return no((t=eu(t)).getUTCFullYear()%100,n,2)}function lu(t,n){return no(t.getUTCFullYear()%1e4,n,4)}function cu(t,n){var i=t.getUTCDay();return no((t=i>=4||0===i?Or(t):Or.ceil(t)).getUTCFullYear()%1e4,n,4)}function fu(){return"+0000"}function hu(){return"%"}function du(t){return+t}function vu(t){return Math.floor(+t/1e3)}function pu(t){return new Date(t)}function gu(t){return t instanceof Date?+t:+new Date(+t)}function mu(t,n,i,e,r,o,u,a,s,l){var c=Ce(),f=c.invert,h=c.domain,d=l(".%L"),v=l(":%S"),p=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),y=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(s(t)<t?d:a(t)<t?v:u(t)<t?p:o(t)<t?g:e(t)<t?r(t)<t?m:y:i(t)<t?b:x)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,gu)):h().map(pu)},c.ticks=function(n){var i=h();return t(i[0],i[i.length-1],null==n?10:n)},c.tickFormat=function(t,n){return null==n?w:l(n)},c.nice=function(t){var i=h();return t&&"function"==typeof t.range||(t=n(i[0],i[i.length-1],null==t?10:t)),t?h(function(t,n){var i,e=0,r=(t=t.slice()).length-1,o=t[e],u=t[r];return u<o&&(i=e,e=r,r=i,i=o,o=u,u=i),t[e]=n.floor(o),t[r]=n.ceil(u),t}(i,t)):c},c.copy=function(){return we(c,mu(t,n,i,e,r,o,u,a,s,l))},c}function yu(){return Me.apply(mu(Wr,Rr,_r,Br,Ar,Sr,kr,Cr,ir,Zr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}Ur=$r({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Gr=Ur.format,Ur.parse,Zr=Ur.utcFormat,Ur.utcParse;class bu extends Map{constructor(t,n=wu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(xu(this,t))}has(t){return super.has(xu(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):(t.set(e,i),i)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)&&(i=t.get(i),t.delete(e)),i}(this,t))}}function xu({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function wu(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Cu=Symbol("implicit");function Mu(){var t=new bu,n=[],i=[],e=Cu;function r(r){let o=t.get(r);if(void 0===o){if(e!==Cu)return e;t.set(r,o=n.push(r)-1)}return i[o%i.length]}return r.domain=function(i){if(!arguments.length)return n.slice();n=[],t=new bu;for(const e of i)t.has(e)||t.set(e,n.push(e)-1);return r},r.range=function(t){return arguments.length?(i=Array.from(t),r):i.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Mu(n,i).unknown(e)},Me.apply(r,arguments),r}function ku(){var t,n,i=Mu().unknown(void 0),e=i.domain,r=i.range,o=0,u=1,a=!1,s=0,l=0,c=.5;function f(){var i=e().length,f=u<o,h=f?u:o,d=f?o:u;t=(d-h)/Math.max(1,i-s+2*l),a&&(t=Math.floor(t)),h+=(d-h-t*(i-s))*c,n=t*(1-s),a&&(h=Math.round(h),n=Math.round(n));var v=function(t,n,i){t=+t,n=+n,i=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+i;for(var e=-1,r=0|Math.max(0,Math.ceil((n-t)/i)),o=new Array(r);++e<r;)o[e]=t+e*i;return o}(i).map((function(n){return h+t*n}));return r(f?v.reverse():v)}return delete i.unknown,i.domain=function(t){return arguments.length?(e(t),f()):e()},i.range=function(t){return arguments.length?([o,u]=t,o=+o,u=+u,f()):[o,u]},i.rangeRound=function(t){return[o,u]=t,o=+o,u=+u,a=!0,f()},i.bandwidth=function(){return n},i.step=function(){return t},i.round=function(t){return arguments.length?(a=!!t,f()):a},i.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),f()):s},i.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},i.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},i.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),f()):c},i.copy=function(){return ku(e(),[o,u]).round(a).paddingInner(s).paddingOuter(l).align(c)},Me.apply(f(),arguments)}function Lu(){}function Su(t){return null==t?Lu:function(){return this.querySelector(t)}}function Vu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Au(){return[]}function Nu(t){return function(n){return n.matches(t)}}var Du=Array.prototype.find;function Tu(){return this.firstElementChild}var Ou=Array.prototype.filter;function Pu(){return this.children}function Eu(t){return new Array(t.length)}function Fu(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Bu(t,n,i,e,r,o){for(var u,a=0,s=n.length,l=o.length;a<l;++a)(u=n[a])?(u.__data__=o[a],e[a]=u):i[a]=new Fu(t,o[a]);for(;a<s;++a)(u=n[a])&&(r[a]=u)}function Hu(t,n,i,e,r,o,u){var a,s,l,c=new Map,f=n.length,h=o.length,d=new Array(f);for(a=0;a<f;++a)(s=n[a])&&(d[a]=l=u.call(s,s.__data__,a,n)+"",c.has(l)?r[a]=s:c.set(l,s));for(a=0;a<h;++a)l=u.call(t,o[a],a,o)+"",(s=c.get(l))?(e[a]=s,s.__data__=o[a],c.delete(l)):i[a]=new Fu(t,o[a]);for(a=0;a<f;++a)(s=n[a])&&c.get(d[a])===s&&(r[a]=s)}function _u(t){return t.__data__}function Iu(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Fu.prototype={constructor:Fu,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Wu="http://www.w3.org/1999/xhtml",Ru={svg:"http://www.w3.org/2000/svg",xhtml:Wu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function zu(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),Ru.hasOwnProperty(n)?{space:Ru[n],local:t}:t}function ju(t){return function(){this.removeAttribute(t)}}function Xu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Yu(t,n){return function(){this.setAttribute(t,n)}}function qu(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function $u(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function Uu(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Gu(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Zu(t){return function(){this.style.removeProperty(t)}}function Ku(t,n,i){return function(){this.style.setProperty(t,n,i)}}function Ju(t,n,i){return function(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,i)}}function Qu(t){return function(){delete this[t]}}function ta(t,n){return function(){this[t]=n}}function na(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function ia(t){return t.trim().split(/^|\s+/)}function ea(t){return t.classList||new ra(t)}function ra(t){this._node=t,this._names=ia(t.getAttribute("class")||"")}function oa(t,n){for(var i=ea(t),e=-1,r=n.length;++e<r;)i.add(n[e])}function ua(t,n){for(var i=ea(t),e=-1,r=n.length;++e<r;)i.remove(n[e])}function aa(t){return function(){oa(this,t)}}function sa(t){return function(){ua(this,t)}}function la(t,n){return function(){(n.apply(this,arguments)?oa:ua)(this,t)}}function ca(){this.textContent=""}function fa(t){return function(){this.textContent=t}}function ha(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function da(){this.innerHTML=""}function va(t){return function(){this.innerHTML=t}}function pa(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ga(){this.nextSibling&&this.parentNode.appendChild(this)}function ma(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ya(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Wu&&n.documentElement.namespaceURI===Wu?n.createElement(t):n.createElementNS(i,t)}}function ba(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function xa(t){var n=zu(t);return(n.local?ba:ya)(n)}function wa(){return null}function Ca(){var t=this.parentNode;t&&t.removeChild(this)}function Ma(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ka(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function La(t){return function(){var n=this.__on;if(n){for(var i,e=0,r=-1,o=n.length;e<o;++e)i=n[e],t.type&&i.type!==t.type||i.name!==t.name?n[++r]=i:this.removeEventListener(i.type,i.listener,i.options);++r?n.length=r:delete this.__on}}}function Sa(t,n,i){return function(){var e,r=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(r)for(var u=0,a=r.length;u<a;++u)if((e=r[u]).type===t.type&&e.name===t.name)return this.removeEventListener(e.type,e.listener,e.options),this.addEventListener(e.type,e.listener=o,e.options=i),void(e.value=n);this.addEventListener(t.type,o,i),e={type:t.type,name:t.name,value:n,listener:o,options:i},r?r.push(e):this.__on=[e]}}function Va(t,n,i){var e=Gu(t),r=e.CustomEvent;"function"==typeof r?r=new r(n,i):(r=e.document.createEvent("Event"),i?(r.initEvent(n,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(n,!1,!1)),t.dispatchEvent(r)}function Aa(t,n){return function(){return Va(this,t,n)}}function Na(t,n){return function(){return Va(this,t,n.apply(this,arguments))}}ra.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Da=[null];function Ta(t,n){this._groups=t,this._parents=n}function Oa(t){return"string"==typeof t?new Ta([[document.querySelector(t)]],[document.documentElement]):new Ta([[t]],Da)}function Pa(t){return"string"==typeof t?new Ta([document.querySelectorAll(t)],[document.documentElement]):new Ta([null==t?[]:Vu(t)],Da)}function Ea(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}Ta.prototype=function(){return new Ta([[document.documentElement]],Da)}.prototype={constructor:Ta,select:function(t){"function"!=typeof t&&(t=Su(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,u,a=n[r],s=a.length,l=e[r]=new Array(s),c=0;c<s;++c)(o=a[c])&&(u=t.call(o,o.__data__,c,a))&&("__data__"in o&&(u.__data__=o.__data__),l[c]=u);return new Ta(e,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);return null==n?[]:Vu(n)}}(t):function(t){return null==t?Au:function(){return this.querySelectorAll(t)}}(t);for(var n=this._groups,i=n.length,e=[],r=[],o=0;o<i;++o)for(var u,a=n[o],s=a.length,l=0;l<s;++l)(u=a[l])&&(e.push(t.call(u,u.__data__,l,a)),r.push(u));return new Ta(e,r)},selectChild:function(t){return this.select(null==t?Tu:function(t){return function(){return Du.call(this.children,t)}}("function"==typeof t?t:Nu(t)))},selectChildren:function(t){return this.selectAll(null==t?Pu:function(t){return function(){return Ou.call(this.children,t)}}("function"==typeof t?t:Nu(t)))},filter:function(t){"function"!=typeof t&&(t=function(t){return function(){return this.matches(t)}}(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,u=n[r],a=u.length,s=e[r]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new Ta(e,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,_u);var i,e=n?Hu:Bu,r=this._parents,o=this._groups;"function"!=typeof t&&(i=t,t=function(){return i});for(var u=o.length,a=new Array(u),s=new Array(u),l=new Array(u),c=0;c<u;++c){var f=r[c],h=o[c],d=h.length,v=Vu(t.call(f,f&&f.__data__,c,r)),p=v.length,g=s[c]=new Array(p),m=a[c]=new Array(p);e(f,h,g,m,l[c]=new Array(d),v,n);for(var y,b,x=0,w=0;x<p;++x)if(y=g[x]){for(x>=w&&(w=x+1);!(b=m[w])&&++w<p;);y._next=b||null}}return(a=new Ta(a,r))._enter=s,a._exit=l,a},enter:function(){return new Ta(this._enter||this._groups.map(Eu),this._parents)},exit:function(){return new Ta(this._exit||this._groups.map(Eu),this._parents)},join:function(t,n,i){var e=this.enter(),r=this,o=this.exit();return e="function"==typeof t?t(e):e.append(t+""),null!=n&&(r=n(r)),null==i?o.remove():i(o),e&&r?e.merge(r).order():r},merge:function(t){if(!(t instanceof Ta))throw new Error("invalid merge");for(var n=this._groups,i=t._groups,e=n.length,r=i.length,o=Math.min(e,r),u=new Array(e),a=0;a<o;++a)for(var s,l=n[a],c=i[a],f=l.length,h=u[a]=new Array(f),d=0;d<f;++d)(s=l[d]||c[d])&&(h[d]=s);for(;a<e;++a)u[a]=n[a];return new Ta(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,i=t.length;++n<i;)for(var e,r=t[n],o=r.length-1,u=r[o];--o>=0;)(e=r[o])&&(u&&4^e.compareDocumentPosition(u)&&u.parentNode.insertBefore(e,u),u=e);return this},sort:function(t){function n(n,i){return n&&i?t(n.__data__,i.__data__):!n-!i}t||(t=Iu);for(var i=this._groups,e=i.length,r=new Array(e),o=0;o<e;++o){for(var u,a=i[o],s=a.length,l=r[o]=new Array(s),c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(n)}return new Ta(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e=t[n],r=0,o=e.length;r<o;++r){var u=e[r];if(u)return u}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,i=0,e=n.length;i<e;++i)for(var r,o=n[i],u=0,a=o.length;u<a;++u)(r=o[u])&&t.call(r,r.__data__,u,o);return this},attr:function(t,n){var i=zu(t);if(arguments.length<2){var e=this.node();return i.local?e.getAttributeNS(i.space,i.local):e.getAttribute(i)}return this.each((null==n?i.local?Xu:ju:"function"==typeof n?i.local?Uu:$u:i.local?qu:Yu)(i,n))},style:function(t,n,i){return arguments.length>1?this.each((null==n?Zu:"function"==typeof n?Ju:Ku)(t,n,null==i?"":i)):function(t,n){return t.style.getPropertyValue(n)||Gu(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Qu:"function"==typeof n?na:ta)(t,n)):this.node()[t]},classed:function(t,n){var i=ia(t+"");if(arguments.length<2){for(var e=ea(this.node()),r=-1,o=i.length;++r<o;)if(!e.contains(i[r]))return!1;return!0}return this.each(("function"==typeof n?la:n?aa:sa)(i,n))},text:function(t){return arguments.length?this.each(null==t?ca:("function"==typeof t?ha:fa)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?da:("function"==typeof t?pa:va)(t)):this.node().innerHTML},raise:function(){return this.each(ga)},lower:function(){return this.each(ma)},append:function(t){var n="function"==typeof t?t:xa(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var i="function"==typeof t?t:xa(t),e=null==n?wa:"function"==typeof n?n:Su(n);return this.select((function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)}))},remove:function(){return this.each(Ca)},clone:function(t){return this.select(t?ka:Ma)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,i){var e,r,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?Sa:La,e=0;e<u;++e)this.each(a(o[e],n,i));return this}var a=this.node().__on;if(a)for(var s,l=0,c=a.length;l<c;++l)for(e=0,s=a[l];e<u;++e)if((r=o[e]).type===s.type&&r.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?Na:Aa)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e,r=t[n],o=0,u=r.length;o<u;++o)(e=r[o])&&(yield e)}};var Fa,Ba=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ha(t){if(!(n=Ba.exec(t)))throw new Error("invalid format: "+t);var n;return new _a({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function _a(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ia(t,n){var i=Ea(t,n);if(!i)return t+"";var e=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+e:e.length>r+1?e.slice(0,r+1)+"."+e.slice(r+1):e+new Array(r-e.length+2).join("0")}Ha.prototype=_a.prototype,_a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Wa={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ia(100*t,n),r:Ia,s:function(t,n){var i=Ea(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(Fa=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,u=e.length;return o===u?e:o>u?e+new Array(o-u+1).join("0"):o>0?e.slice(0,o)+"."+e.slice(o):"0."+new Array(1-o).join("0")+Ea(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ra(t){return t}var za,ja,Xa,Ya,qa,$a,Ua,Ga=Array.prototype.map,Za=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ka(t,n,i){var e=t.domainNRangeValues,r=t.showRoundOffXTickValues,o=void 0!==r&&r,u=t.xAxistickSize,a=void 0===u?6:u,s=t.tickPadding,l=void 0===s?10:s,c=t.xAxisCount,f=void 0===c?6:c,h=t.xAxisElement,d=Ie().domain([e.dStartValue,e.dEndValue]).range([e.rStartValue,e.rEndValue]);o&&d.nice();var v=fi(d).tickSize(a).tickPadding(l).ticks(f).tickFormat((function(t,n){var e="number"==typeof t?t:t.valueOf();return hs(e,i)}));n===qa.HorizontalBarChartWithAxis&&v.tickSizeInner(-(t.containerHeight-t.margins.top)),h&&Oa(h).call(v).selectAll("text").attr("aria-hidden","true");var p=d.ticks(f).map(v.tickFormat());return{xScale:d,tickValues:p}}function Ja(t,n){var i=n?n.format:Gr,e=i(".%L"),r=i(":%S"),o=i("%I:%M"),u=i("%I %p"),a=i("%a %d"),s=i("%b %d"),l=i("%B"),c=i("%Y");return(ir(t)<t?e:rr(t)<t?r:ur(t)<t?o:sr(t)<t?u:yr(t)<t?cr(t)<t?a:s:xr(t)<t?l:c)(t)}function Qa(t,n,i,e,r,o,u){return void 0===u&&(u=!1),e===qa.HorizontalBarChartWithAxis?function(t,n,i,e){var r=t.yMinMaxValues,o=void 0===r?{startValue:0,endValue:0}:r,u=t.yAxisElement,a=void 0===u?null:u,s=t.yMaxValue,l=void 0===s?0:s,c=t.yMinValue,f=void 0===c?0:c,h=t.containerHeight,d=t.margins,v=t.tickPadding,p=void 0===v?12:v,g=t.maxOfYVal,m=void 0===g?0:g,y=t.yAxisTickFormat,b=t.yAxisTickCount,x=void 0===b?4:b,w=m||o.endValue,C=w>l?w:l,M=o.startValue<f?0:f,k=Ie().domain([M,C]).range([h-d.bottom,d.top]),L=(n?ci(k):hi(k)).tickPadding(p).ticks(x);return y?L.tickFormat(y):L.tickFormat(ja(".2~s")),a&&Oa(a).call(L).selectAll("text").attr("aria-hidden","true"),k}(t,n):function(t,n,i,e,r){void 0===r&&(r=!1);var o=t.yMinMaxValues,u=void 0===o?{startValue:0,endValue:0}:o,a=t.yAxisElement,s=void 0===a?null:a,l=t.yMaxValue,c=void 0===l?0:l,f=t.yMinValue,h=void 0===f?0:f,d=t.containerHeight,v=t.containerWidth,p=t.margins,g=t.tickPadding,m=void 0===g?12:g,y=t.maxOfYVal,b=void 0===y?0:y,x=t.yAxisTickFormat,w=t.yAxisTickCount,C=void 0===w?4:w,M=t.eventAnnotationProps,k=t.eventLabelHeight,L=b||u.endValue,S=L>c?L:c,V=u.startValue<h?0:h,A=function(t,n,i,e){for(var r=e||(t-n)/i>=1?Math.ceil((t-n)/i):(t-n)/i,o=[n,n+r];o[o.length-1]<t;)o.push(o[o.length-1]+r);return o}(S,V,C,e),N=Ie().domain([V,A[A.length-1]]).range([d-p.bottom,p.top+(M?k:0)]),D=(!n&&r||n&&!r?ci(N):hi(N)).tickPadding(m).tickValues(A).tickSizeInner(-(v-p.left-p.right));return x?D.tickFormat(x):D.tickFormat(ja(".2~s")),s&&Oa(s).call(D).selectAll("text").attr("aria-hidden","true"),i.yAxisDomainValues=A,N}(t,n,i,o,u)}za=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?Ra:(n=Ga.call(t.grouping,Number),i=t.thousands+"",function(t,e){for(var r=t.length,o=[],u=0,a=n[0],s=0;r>0&&a>0&&(s+a+1>e&&(a=Math.max(1,e-s)),o.push(t.substring(r-=a,r+a)),!((s+=a+1)>e));)a=n[u=(u+1)%n.length];return o.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Ra:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Ga.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=Ha(t)).fill,i=t.align,f=t.sign,h=t.symbol,d=t.zero,v=t.width,p=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):Wa[y]||(void 0===g&&(g=12),m=!0,y="g"),(d||"0"===n&&"="===i)&&(d=!0,n="0",i="=");var b="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?s:"",w=Wa[y],C=/[defgprs%]/.test(y);function M(t){var r,o,s,h=b,M=x;if("c"===y)M=w(t)+M,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(Math.abs(t),g),m&&(t=function(t){t:for(var n,i=t.length,e=1,r=-1;e<i;++e)switch(t[e]){case".":r=n=e;break;case"0":0===r&&(r=e),n=e;break;default:if(!+t[e])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(n+1):t}(t)),k&&0==+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:l:"-"===f||"("===f?"":f)+h,M=("s"===y?Za[8+Fa/3]:"")+M+(k&&"("===f?")":""),C)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){M=(46===s?u+t.slice(r+1):t.slice(r))+M,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var L=h.length+t.length+M.length,S=L<v?new Array(v-L+1).join(n):"";switch(p&&d&&(t=e(S+t,S.length?v-M.length:1/0),S=""),i){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,L=S.length>>1)+h+t+M+S.slice(L);break;default:t=S+h+t+M}return a(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,n){var i,e=f(((t=Ha(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((i=n,((i=Ea(Math.abs(i)))?i[1]:NaN)/3)))),o=Math.pow(10,-r),u=Za[8+r/3];return function(t){return e(o*t)+u}}}}({thousands:",",grouping:[3],currency:["$",""]}),ja=za.format,Xa=za.formatPrefix,function(t){t[t.AreaChart=0]="AreaChart",t[t.LineChart=1]="LineChart",t[t.VerticalBarChart=2]="VerticalBarChart",t[t.VerticalStackedBarChart=3]="VerticalStackedBarChart",t[t.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",t[t.HeatMapChart=5]="HeatMapChart",t[t.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(qa||(qa={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}($a||($a={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Ua||(Ua={}));function ts(t){var i=[];t.forEach((function(t){var e=t.data.filter((function(t){return!t.hideCallout})).map((function(i){return(0,n.Cl)((0,n.Cl)({},i),{legend:t.legend,color:t.color,index:t.index})}));i=i.concat(e)}));var e={};return i.forEach((function(t){var n=t.x instanceof Date?t.x.getTime():t.x;n in e?e[n].push({legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}):e[n]=[{legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}]})),Object.keys(e).map((function(t){return{x:Number(t),values:e[t]}}))}var ns=function(t,n,i){var e=Oa("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},is=function(t,n){void 0===n&&(n="none");var i=0,e=document.createElement("canvas").getContext("2d");if(e){var r=document.querySelector(n);if(r){var o=window.getComputedStyle(r,null),u=o.getPropertyValue("font-weight"),a=o.getPropertyValue("font-size"),s=o.getPropertyValue("font-family");e.font="".concat(u," ").concat(a," ").concat(s)}else e.font='600 10px "Segoe UI"';t.forEach((function(t){i=Math.max(e.measureText(t.toString()).width,i)}))}return i};function es(t){var n=t.tooltipCls,i=t.xAxis,e=t.id;if(null===i)return null;for(var r=Oa("body").append("div").attr("id",e).attr("class",n).style("opacity",0),o=i.selectAll("#BaseSpan")._groups[0],u=o&&Object.keys(o).length,a=[],s=0;s<u;s++){var l=o[s].dataset&&Object.values(o[s].dataset)[0];a.push(l)}var c=i.selectAll(".tick")._groups[0],f=c&&Object.keys(c).length,h=function(t){Oa(c[t]).on("mouseover",(function(n,i){r.style("opacity",.9),r.html(a[t]).style("left",n.pageX+"px").style("top",n.pageY-28+"px")})).on("mouseout",(function(t){r.style("opacity",0)}))};for(s=0;s<f;s++)h(s)}function rs(t){var n=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(n=t.data[0].x instanceof Date)})),n}function os(t,i,e,r,o,u,a,s,l){var c;if(u===$a.NumericAxis)switch(r){case qa.AreaChart:case qa.LineChart:c=function(t,n,i,e){var r=di(t,(function(t){return di(t.data,(function(t){return t.x}))})),o=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),u=n.left,a=i-n.right;return e?{dStartValue:o,dEndValue:r,rStartValue:u,rEndValue:a}:{dStartValue:r,dEndValue:o,rStartValue:u,rEndValue:a}}(t,i,e,o);break;case qa.VerticalStackedBarChart:c=function(t,n,i,e,r){var o=di(t,(function(t){return t.x})),u=vi(t,(function(t){return t.x})),a=n.left,s=i-n.right;return e?{dStartValue:u,dEndValue:o,rStartValue:a,rEndValue:s}:{dStartValue:o,dEndValue:u,rStartValue:a,rEndValue:s}}(t,i,e,o);break;case qa.VerticalBarChart:c=function(t,n,i,e,r){var o=vi(t,(function(t){return t.x})),u=di(t,(function(t){return t.x})),a=n.left,s=i-n.right;return e?{dStartValue:o,dEndValue:u,rStartValue:a,rEndValue:s}:{dStartValue:u,dEndValue:o,rStartValue:a,rEndValue:s}}(t,i,e,o);break;case qa.HorizontalBarChartWithAxis:c=function(t,n,i,e,r){var o=vi(t,(function(t){return t.x})),u=e?n.left:n.left+r,a=e?i-n.right-r:i-n.right;return e?{dStartValue:o,dEndValue:0,rStartValue:u,rEndValue:a}:{dStartValue:0,dEndValue:o,rStartValue:u,rEndValue:a}}(t,i,e,o,l);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(u===$a.DateAxis)switch(r){case qa.AreaChart:case qa.LineChart:case qa.VerticalBarChart:case qa.VerticalStackedBarChart:c=function(t,i,e,r,o,u,a){var s,l;void 0===o&&(o=[]),u===qa.AreaChart||u===qa.LineChart?(s=di(t,(function(t){return di(t.data,(function(t){return t.x}))})),l=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),s=di((0,n.fX)((0,n.fX)([],o,!0),[s],!1)),l=vi((0,n.fX)((0,n.fX)([],o,!0),[l],!1))):(s=di(t,(function(t){return t.x})),l=vi(t,(function(t){return t.x})));var c=i.left,f=e-i.right;return r?{dStartValue:l,dEndValue:s,rStartValue:c,rEndValue:f}:{dStartValue:s,dEndValue:l,rStartValue:c,rEndValue:f}}(t,i,e,o,s,r);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case qa.VerticalStackedBarChart:case qa.GroupedVerticalBarChart:case qa.VerticalBarChart:case qa.HeatMapChart:c=function(t,n,i){var e=t.left,r=n-t.right;return i?{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:e}:{dStartValue:0,dEndValue:0,rStartValue:e,rEndValue:r}}(i,e,o);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return c}function us(t,n,i){var e,r,o;switch(void 0===i&&(i=Ua.NumericAxis),n){case qa.AreaChart:case qa.LineChart:e=function(t){var n=vi(t,(function(t){return vi(t.data,(function(t){return t.y}))}));return{startValue:di(t,(function(t){return di(t.data,(function(t){return t.y}))})),endValue:n}}(t);break;case qa.VerticalStackedBarChart:o=vi(r=t,(function(t){return t.y})),e={startValue:di(r,(function(t){return t.y})),endValue:o};break;case qa.VerticalBarChart:e=function(t){var n=vi(t,(function(t){return void 0!==t.lineData?t.y>t.lineData.y?t.y:t.lineData.y:t.y}));return{startValue:di(t,(function(t){return void 0!==t.lineData?t.y<t.lineData.y?t.y:t.lineData.y:t.y})),endValue:n}}(t);break;case qa.HorizontalBarChartWithAxis:e=function(t,n){if(void 0!==n&&n===Ua.NumericAxis){var i=vi(t,(function(t){return t.y}));return{startValue:di(t,(function(t){return t.y})),endValue:i}}return{startValue:0,endValue:0}}(t,i);break;default:e={startValue:0,endValue:0}}return e}var as,ss,ls=function(t,n){if(n)switch(typeof t){case"string":return $a.StringAxis;case"number":return $a.NumericAxis;default:return $a.DateAxis}else switch(typeof t){case"string":return Ua.StringAxis;case"number":return Ua.NumericAxis;default:return Ua.DateAxis}};!function(t){t[t.circle=0]="circle",t[t.square=1]="square",t[t.triangle=2]="triangle",t[t.diamond=3]="diamond",t[t.pyramid=4]="pyramid",t[t.hexagon=5]="hexagon",t[t.pentagon=6]="pentagon",t[t.octagon=7]="octagon"}(as||(as={})),function(t){t[t.dottedLine=0]="dottedLine"}(ss||(ss={}));var cs=((Ya={})[as.circle]={widthRatio:1},Ya[as.square]={widthRatio:1},Ya[as.triangle]={widthRatio:1},Ya[as.diamond]={widthRatio:1},Ya[as.pyramid]={widthRatio:1},Ya[as.hexagon]={widthRatio:2},Ya[as.pentagon]={widthRatio:1.168},Ya[as.octagon]={widthRatio:2.414},Ya),fs=function(t,n,i){return void 0===n&&(n="text"),void 0===i&&(i=!0),{role:n,"data-is-focusable":i,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},hs=function(t,n){return null==t||Number.isNaN(t)?t:(n=n||void 0,"number"==typeof t?t.toLocaleString(n):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(n):t:Number(t).toLocaleString(n))};function ds(t){return Xa(t<1e3?".2~":".1",t)(t)}var vs,ps=function(t,n,i){var e;return void 0===i&&(i=16),e="number"==typeof t?t:"default"===t||void 0===t?Math.min(i,16):i,"number"==typeof n&&(e=Math.min(e,n)),Math.max(e,1)},gs=function(t,n,i){void 0===i&&(i=0);var e="number"==typeof t?t:"number"==typeof n?n:i;return Math.max(0,Math.min(e,1))},ms=function(t,n){return"number"==typeof t||"number"==typeof n},ys=i(395);function bs(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length<2?n[0]:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];n.forEach((function(n){return n&&n.apply(t,i)}))}}function xs(t){!function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=bs(t,t[i],n[i]))}(t,{componentDidMount:ws,componentDidUpdate:Cs,componentWillUnmount:Ms})}function ws(){ks(this.props.componentRef,this)}function Cs(t){t.componentRef!==this.props.componentRef&&(ks(t.componentRef,null),ks(this.props.componentRef,this))}function Ms(){ks(this.props.componentRef,null)}function ks(t,n){t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))}function Ls(t,n,i){var e=x(t,(function(t){return n===t||t.hasAttribute(An)}),i);return null!==e&&e.hasAttribute(An)}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(vs||(vs={}));var Ss,Vs=r.createContext(void 0),As="data-is-focusable",Ns="data-focuszone-id",Ds="tabindex",Ts="data-no-vertical-wrap",Os="data-no-horizontal-wrap",Ps=999999999,Es=-999999999;function Fs(t,n){var i;"function"==typeof MouseEvent?i=new MouseEvent("click",{ctrlKey:null==n?void 0:n.ctrlKey,metaKey:null==n?void 0:n.metaKey,shiftKey:null==n?void 0:n.shiftKey,altKey:null==n?void 0:n.altKey,bubbles:null==n?void 0:n.bubbles,cancelable:null==n?void 0:n.cancelable}):(i=document.createEvent("MouseEvents")).initMouseEvent("click",!!n&&n.bubbles,!!n&&n.cancelable,window,0,0,0,0,0,!!n&&n.ctrlKey,!!n&&n.altKey,!!n&&n.shiftKey,!!n&&n.metaKey,0,null),t.dispatchEvent(i)}var Bs,Hs={},_s=new Set,Is=["text","number","password","email","tel","url","search","textarea"],Ws=!1,Rs=function(t){function i(n){var e,o,a,s,l,c=this;(c=t.call(this,n)||this)._root=r.createRef(),c._mergedRef=(l={refs:[]},function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l.resolver&&function(t,n){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}(l.refs,t)||(l.resolver=function(t){return function(n){for(var i=0,e=t.refs;i<e.length;i++){var r=e[i];"function"==typeof r?r(n):r&&(r.current=n)}}}(l)),l.refs=t,l.resolver}),c._onFocus=function(t){if(!c._portalContainsElement(t.target)){var n,i=c.props,e=i.onActiveElementChanged,r=i.doNotAllowFocusEventToPropagate,o=i.stopFocusPropagation,u=i.onFocusNotification,a=i.onFocus,s=i.shouldFocusInnerElementWhenReceivedFocus,l=i.defaultTabbableElement,f=c._isImmediateDescendantOfZone(t.target);if(f)n=t.target;else for(var h=t.target;h&&h!==c._root.current;){if(O(h,void 0,c._inShadowRoot)&&c._isImmediateDescendantOfZone(h)){n=h;break}h=b(h,Ws)}if(s&&t.target===c._root.current){var d=l&&"function"==typeof l&&c._root.current&&l(c._root.current);d&&O(d,void 0,c._inShadowRoot)?(n=d,d.focus()):(c.focus(!0),c._activeElement&&(n=null))}var v=!c._activeElement;n&&n!==c._activeElement&&((f||v)&&c._setFocusAlignment(n,!0,!0),c._activeElement=n,v&&c._updateTabIndexes()),e&&e(c._activeElement,t),(o||r)&&t.stopPropagation(),a?a(t):u&&u()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(t){if(!c._portalContainsElement(t.target)&&!c.props.disabled){for(var n=t.target,i=[];n&&n!==c._root.current;)i.push(n),n=b(n,Ws);for(;i.length&&((n=i.pop())&&O(n,void 0,c._inShadowRoot)&&c._setActiveElement(n,!0),!P(n)););}},c._onKeyDown=function(t,n){if(!c._portalContainsElement(t.target)){var i=c.props,e=i.direction,r=i.disabled,o=i.isInnerZoneKeystroke,a=i.pagingSupportDisabled,s=i.shouldEnterInnerZone;if(!(r||(c.props.onKeyDown&&c.props.onKeyDown(t),t.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((s&&s(t)||o&&o(t))&&c._isImmediateDescendantOfZone(t.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!E(t.target))return;if(!c.focusElement(N(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case 32:if(c._shouldRaiseClicksOnSpace&&c._tryInvokeClickForFocusable(t.target,t))break;return;case 37:if(e!==vs.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusLeft(n)))break;return;case 39:if(e!==vs.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusRight(n)))break;return;case 38:if(e!==vs.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusUp()))break;return;case 40:if(e!==vs.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusDown()))break;return;case 34:if(!a&&c._moveFocusPaging(!0))break;return;case 33:if(!a&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(t.target)){var f=!1;if(c._processingTabKey=!0,f=e!==vs.vertical&&c._shouldWrapFocus(c._activeElement,Os)?((0,u.jI)(n)?!t.shiftKey:t.shiftKey)?c._moveFocusLeft(n):c._moveFocusRight(n):t.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,f)break;c.props.shouldResetActiveElementWhenTabFromZone&&(c._activeElement=null)}return;case 36:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!1))return!1;var h=c._root.current&&c._root.current.firstChild;if(c._root.current&&h&&c.focusElement(N(c._root.current,h,!0)))break;return;case 35:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!0))return!1;var d=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(A(c._root.current,d,!0,!0,!0)))break;return;case 13:if(c._shouldRaiseClicksOnEnter&&c._tryInvokeClickForFocusable(t.target,t))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},c._getHorizontalDistanceFromCenter=function(t,n,i){var e=c._focusAlignment.left||c._focusAlignment.x||0,r=Math.floor(i.top),o=Math.floor(n.bottom),u=Math.floor(i.bottom),a=Math.floor(n.top);return t&&r>o||!t&&u<a?e>=i.left&&e<=i.left+i.width?0:Math.abs(i.left+i.width/2-e):c._shouldWrapFocus(c._activeElement,Ts)?Ps:Es},xs(c),_n("FocusZone",n,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),c._id=v("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var f=null===(o=null!==(e=n.shouldRaiseClicks)&&void 0!==e?e:i.defaultProps.shouldRaiseClicks)||void 0===o||o;return c._shouldRaiseClicksOnEnter=null!==(a=n.shouldRaiseClicksOnEnter)&&void 0!==a?a:f,c._shouldRaiseClicksOnSpace=null!==(s=n.shouldRaiseClicksOnSpace)&&void 0!==s?s:f,c}return(0,n.C6)(i,t),i.getOuterZones=function(){return _s.size},i._onKeyDownCapture=function(t){9===t.which&&_s.forEach((function(t){return t._updateTabIndexes()}))},i.prototype.componentDidMount=function(){var t,n=this._root.current;if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),Hs[this._id]=this,n){for(var e=b(n,Ws);e&&e!==this._getDocument().body&&1===e.nodeType;){if(P(e)){this._isInnerZone=!0;break}e=b(e,Ws)}this._isInnerZone||(_s.add(this),this._root.current&&this._root.current.addEventListener("keydown",i._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},i.prototype.componentDidUpdate=function(){var t,n=this._root.current,i=this._getDocument();if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),(this._activeElement&&!w(this._root.current,this._activeElement,Ws)||this._defaultFocusElement&&!w(this._root.current,this._defaultFocusElement,Ws))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&i&&this._lastIndexPath&&(i.activeElement===i.body||null===i.activeElement||i.activeElement===n)){var e=function(t,n){for(var i=t,e=0,r=n;e<r.length;e++){var o=r[e],u=i.children[Math.min(o,i.children.length-1)];if(!u)break;i=u}return O(i)&&D(i)?i:N(t,i,!0)||A(t,i)}(n,this._lastIndexPath);e?(this._setActiveElement(e,!0),e.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},i.prototype.componentWillUnmount=function(){delete Hs[this._id],this._isInnerZone||(_s.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",i._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},i.prototype.render=function(){var t=this,i=this.props,e=i.as,o=i.elementType,u=i.rootProps,a=i.ariaDescribedBy,s=i.ariaLabelledBy,l=i.className,c=q(this.props,z),f=e||o||"div";this._evaluateFocusBeforeRender();var h=(0,jt.O4)();return r.createElement(f,(0,n.Cl)({"aria-labelledby":s,"aria-describedby":a},c,u,{className:$((Ss||(Ss=(0,Q.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Ss),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(n){return t._onKeyDown(n,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},i.prototype.focus=function(t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute(As)&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var e=Hs[i.getAttribute(Ns)];return!!e&&e.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&w(this._root.current,this._activeElement)&&O(this._activeElement,void 0,this._inShadowRoot)&&(!n||T(this._activeElement)))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(N(this._root.current,r,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},i.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(A(this._root.current,t,!0,!0,!0))}return!1},i.prototype.focusElement=function(t,n){var i=this.props,e=i.onBeforeFocus,r=i.shouldReceiveFocus;return!(r&&!r(t)||e&&!e(t)||!t||(this._setActiveElement(t,n),this._activeElement&&this._activeElement.focus(),0))},i.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(i.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),i.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,n=this._getDocument();if(n){var i=n.activeElement;if(i!==t){var e=w(t,i,!1);this._lastIndexPath=e?function(t,n){for(var i=[];n&&t&&n!==t;){var e=b(n,!0);if(null===e)return[];i.unshift(Array.prototype.indexOf.call(e.children,n)),n=e}return i}(t,i):void 0}}},i.prototype._setParkedFocus=function(t){var n=this._root.current;n&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},i.prototype._setActiveElement=function(t,n){var i=this._activeElement;this._activeElement=t,i&&(P(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!n||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},i.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},i.prototype._tryInvokeClickForFocusable=function(t,n){var i=t;if(i===this._root.current)return!1;do{if("BUTTON"===i.tagName||"A"===i.tagName||"INPUT"===i.tagName||"TEXTAREA"===i.tagName||"SUMMARY"===i.tagName)return!1;if(this._isImmediateDescendantOfZone(i)&&"true"===i.getAttribute(As)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return Fs(i,n),!0;i=b(i,Ws)}while(i!==this._root.current);return!1},i.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(P(t))return Hs[t.getAttribute(Ns)];for(var n=t.firstElementChild;n;){if(P(n))return Hs[n.getAttribute(Ns)];var i=this._getFirstInnerZone(n);if(i)return i;n=n.nextElementSibling}return null},i.prototype._moveFocus=function(t,n,i,e){void 0===e&&(e=!0);var r=this._activeElement,o=-1,u=void 0,a=!1,s=this.props.direction===vs.bidirectional;if(!r||!this._root.current)return!1;if(this._isElementInput(r)&&!this._shouldInputLoseFocus(r,t))return!1;var l=s?r.getBoundingClientRect():null;do{if(r=t?N(this._root.current,r):A(this._root.current,r),!s){u=r;break}if(r){var c=n(l,r.getBoundingClientRect());if(-1===c&&-1===o){u=r;break}if(c>-1&&(-1===o||c<o)&&(o=c,u=r),o>=0&&c<0)break}}while(r);if(u&&u!==this._activeElement)a=!0,this.focusElement(u);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(N(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(A(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return a},i.prototype._moveFocusDown=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(e,r){var o=-1,u=Math.floor(r.top),a=Math.floor(e.bottom);return u<a?t._shouldWrapFocus(t._activeElement,Ts)?Ps:Es:((-1===n&&u>=a||u===n)&&(n=u,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},i.prototype._moveFocusUp=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(e,r){var o=-1,u=Math.floor(r.bottom),a=Math.floor(r.top),s=Math.floor(e.top);return u>s?t._shouldWrapFocus(t._activeElement,Ts)?Ps:Es:((-1===n&&u<=s||a===n)&&(n=a,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},i.prototype._moveFocusLeft=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,Os);return!!this._moveFocus((0,u.jI)(t),(function(e,r){var o=-1;return((0,u.jI)(t)?parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)))&&r.right<=e.right&&n.props.direction!==vs.vertical?o=e.right-r.right:i||(o=Es),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},i.prototype._moveFocusRight=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,Os);return!!this._moveFocus(!(0,u.jI)(t),(function(e,r){var o=-1;return((0,u.jI)(t)?parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)))&&r.left>=e.left&&n.props.direction!==vs.vertical?o=r.left-e.left:i||(o=Es),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},i.prototype._moveFocusPaging=function(t,n){void 0===n&&(n=!0);var i=this._activeElement;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,t))return!1;var e=nt(i);if(!e)return!1;var r=-1,o=void 0,u=-1,a=-1,s=e.clientHeight,l=i.getBoundingClientRect();do{if(i=t?N(this._root.current,i):A(this._root.current,i)){var c=i.getBoundingClientRect(),f=Math.floor(c.top),h=Math.floor(l.bottom),d=Math.floor(c.bottom),v=Math.floor(l.top),p=this._getHorizontalDistanceFromCenter(t,l,c);if(t&&f>h+s||!t&&d<v-s)break;p>-1&&(t&&f>u?(u=f,r=p,o=i):!t&&d<a?(a=d,r=p,o=i):(-1===r||p<=r)&&(r=p,o=i))}}while(i);var g=!1;if(o&&o!==this._activeElement)g=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&n)return t?this.focusElement(N(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(A(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},i.prototype._setFocusAlignment=function(t,n,i){if(this.props.direction===vs.bidirectional&&(!this._focusAlignment||n||i)){var e=t.getBoundingClientRect(),r=e.left+e.width/2,o=e.top+e.height/2;this._focusAlignment||(this._focusAlignment={left:r,top:o}),n&&(this._focusAlignment.left=r),i&&(this._focusAlignment.top=o)}},i.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},i.prototype._getOwnerZone=function(t){for(var n=b(t,Ws);n&&n!==this._root.current&&n!==this._getDocument().body;){if(P(n))return n;n=b(n,Ws)}return n},i.prototype._updateTabIndexes=function(t){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!w(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!O(this._activeElement,void 0,this._inShadowRoot)&&(this._activeElement=null);for(var n=t&&t.children,i=0;n&&i<n.length;i++){var e=n[i];P(e)?"true"===e.getAttribute(As)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(Ds)&&e.setAttribute(Ds,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(Ds)&&e.setAttribute(Ds,"0"))):(e.getAttribute&&"false"===e.getAttribute(As)&&e.setAttribute(Ds,"-1"),O(e,void 0,this._inShadowRoot)?this.props.disabled?e.setAttribute(Ds,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(Ds)&&e.setAttribute(Ds,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(Ds)&&e.setAttribute(Ds,"0")):"svg"===e.tagName&&"false"!==e.getAttribute("focusable")&&e.setAttribute("focusable","false")),this._updateTabIndexes(e)}},i.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},i.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},i.prototype._shouldInputLoseFocus=function(t,n){if(!this._processingTabKey&&t&&t.type&&Is.indexOf(t.type.toLowerCase())>-1){var i=t.selectionStart,e=i!==t.selectionEnd,r=t.value,o=t.readOnly;if(e||i>0&&!n&&!o||i!==r.length&&n&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},i.prototype._shouldWrapFocus=function(t,n){return!this.props.checkForNoWrap||function(t,n,i){return"true"!==function(t,n,i){var e=x(t,(function(t){return t.hasAttribute(n)}),i);return e&&e.getAttribute(n)}(t,n,null!=i?i:(0,C.Y)())}(t,n)},i.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&Ls(t,this._root.current)},i.prototype._getDocument=function(){return(0,C.Y)(this._root.current)},i.contextType=Vs,i.defaultProps={isCircularNavigation:!1,direction:vs.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},i}(r.Component);function zs(t){return function(t){return t.clientWidth<t.scrollWidth}(t)||function(t){return t.clientHeight<t.scrollHeight}(t)}!function(t){t[t.Parent=0]="Parent",t[t.Self=1]="Self"}(Bs||(Bs={}));var js,Xs=(0,o.Z)(),Ys=function(t){function i(){var n=null!==t&&t.apply(this,arguments)||this;return n._onRenderContent=function(t){return"string"==typeof t.content?r.createElement("p",{className:n._classNames.subText},t.content):r.createElement("div",{className:n._classNames.subText},t.content)},n}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,i=t.className,e=t.calloutProps,o=t.directionalHint,u=t.directionalHintForRTL,a=t.styles,s=t.id,l=t.maxWidth,c=t.onRenderContent,f=void 0===c?this._onRenderContent:c,h=t.targetElement,d=t.theme;return this._classNames=Xs(a,{theme:d,className:i||e&&e.className,beakWidth:e&&e.isBeakVisible?e.beakWidth:0,gapSpace:e&&e.gapSpace,maxWidth:l}),r.createElement(Gn,(0,n.Cl)({target:h,directionalHint:o,directionalHintForRTL:u},e,q(this.props,Y,["id"]),{className:this._classNames.root}),r.createElement("div",{className:this._classNames.content,id:s,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},f(this.props,this._onRenderContent)))},i.defaultProps={directionalHint:y.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},i}(r.Component),qs=(0,t.I)(Ys,(function(t){var n=t.className,i=t.beakWidth,e=void 0===i?16:i,r=t.gapSpace,o=void 0===r?0:r,u=t.maxWidth,a=t.theme,s=a.semanticColors,l=a.fonts,c=a.effects,f=-(Math.sqrt(e*e/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",a.fonts.medium,jt.lw.fadeIn200,{background:s.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:u,selectors:{":after":{content:"''",position:"absolute",bottom:f,left:f,right:f,top:f,zIndex:0}}},n],content:["ms-Tooltip-content",l.small,{position:"relative",zIndex:1,color:s.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(js||(js={}));var $s,Us,Gs=(0,o.Z)(),Zs=function(t){function i(n){var e=t.call(this,n)||this;return e._tooltipHost=r.createRef(),e._defaultTooltipId=v("tooltip"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._getTargetElement=function(){if(e._tooltipHost.current){var t=e.props.overflowMode;if(void 0!==t)switch(t){case Bs.Parent:return e._tooltipHost.current.parentElement;case Bs.Self:return e._tooltipHost.current}return e._tooltipHost.current}},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipContentFocus=function(t){i._currentVisibleTooltip&&i._currentVisibleTooltip!==e&&i._currentVisibleTooltip.dismiss(),i._currentVisibleTooltip=e,e._clearDismissTimer(),e._clearOpenTimer()},e._onTooltipBlur=function(t){var n;e._ignoreNextFocusEvent=(null===(n=$t(e.context))||void 0===n?void 0:n.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var n=e.props,r=n.overflowMode,o=n.delay,u=$t(e.context);if(i._currentVisibleTooltip&&i._currentVisibleTooltip!==e&&i._currentVisibleTooltip.dismiss(),i._currentVisibleTooltip=e,void 0!==r){var a=e._getTargetElement();if(a&&!zs(a))return}if(!t.target||!Ls(t.target,e._getTargetElement(),u))if(e._clearDismissTimer(),e._clearOpenTimer(),o!==js.zero){var s=e._getDelayTime(o);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),s)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var n=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),n?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),n):e._toggleTooltip(!1),i._currentVisibleTooltip===e&&(i._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Pt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t},(function(){return e.props.onTooltipToggle&&e.props.onTooltipToggle(t)}))},e._getDelayTime=function(t){switch(t){case js.medium:return 300;case js.long:return 500;default:return 0}},xs(e),e.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,i=t.calloutProps,e=t.children,o=t.content,u=t.directionalHint,a=t.directionalHintForRTL,s=t.hostClassName,l=t.id,c=t.setAriaDescribedBy,f=void 0===c||c,h=t.tooltipProps,d=t.styles,v=t.theme;this._classNames=Gs(d,{theme:v,className:s});var p=this.state.isTooltipVisible,g=l||this._defaultTooltipId,m=(0,n.Cl)((0,n.Cl)({id:"".concat(g,"--tooltip"),content:o,targetElement:this._getTargetElement(),directionalHint:u,directionalHintForRTL:a,calloutProps:U({},i,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},q(this.props,Y,["id"])),h),y=(null==h?void 0:h.onRenderContent)?h.onRenderContent(m,(function(t){return(null==t?void 0:t.content)?r.createElement(r.Fragment,null,t.content):null})):o,b=p&&!!y,x=f&&p&&y?g:void 0;return r.createElement("div",(0,n.Cl)({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x}),e,b&&r.createElement(qs,(0,n.Cl)({},m)),r.createElement("div",{hidden:!0,id:g,style:jt.dX},y))},i.prototype.componentDidMount=function(){this._async=new Et(this)},i.prototype.componentWillUnmount=function(){i._currentVisibleTooltip&&i._currentVisibleTooltip===this&&(i._currentVisibleTooltip=void 0),this._async.dispose()},i.defaultProps={delay:js.medium},i.contextType=_t,i}(r.Component),Ks={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Js=(0,t.I)(Zs,(function(t){var n=t.className,i=t.theme;return{root:[(0,jt.Km)(Ks,i).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"}),Qs=function(t){function i(n){var i=t.call(this,n)||this;return i._tooltipChild=r.createRef(),i._checkTextOverflow=function(){var t=i._getTargetElement(),n=!!t&&zs(t);n!==i.state.textOverflow&&i.setState({textOverflow:n})},i._getTargetElement=function(){if(i._tooltipChild.current&&i._tooltipChild.current.parentElement)return i._tooltipChild.current.parentElement},i.state={textOverflow:!1},i._async=new Et(i),i}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,i=t.className,e=t.content,o=t.accessibilityData;return r.createElement(Js,{overflowMode:Bs.Self,hostClassName:i,content:e},r.createElement("span",(0,n.Cl)({},fs(o),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),e))},i.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},i.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},i}(r.Component),tl=(0,o.Z)(),nl=function(t){function i(n){var i=t.call(this,n)||this;return i._isRTL=(0,u.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.state.isCalloutVisible&&i.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},i._adjustProps=function(){i._barHeight=i.props.barHeight||12,i._classNames=tl(i.props.styles,{theme:i.props.theme,width:i.props.width,className:i.props.className,barHeight:i._barHeight,color:i.state.lineColor,variant:i.props.variant,hideLabels:i.props.hideLabels})},i._getChartDataText=function(t){return i.props.barChartCustomData?r.createElement("div",{role:"text"},i.props.barChartCustomData(t)):i._getDefaultTextData(t)},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.data,r=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(r,".")+(e?"with benchmark at "+"".concat(e,", "):"")},i.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",barSpacingInPercent:0},i._refArray=[],i._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),i._hoverOff=i._hoverOff.bind(i),i._calloutId=v("callout"),i._emptyChartId=v("_HBC_empty"),i.barChartSvgRef=r.createRef(),i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},i.prototype.render=function(){var t=this,i=this.props,e=i.data,o=i.theme;this._adjustProps();var u=o.palette,a=0;return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},e.map((function(n,i){a=n.chartData&&n.chartData[0]&&n.chartData[0].horizontalBarChartdata.x?n.chartData[0].horizontalBarChartdata.x:0,n.chartData[1]={legend:"",horizontalBarChartdata:{x:n.chartData[0].horizontalBarChartdata.y-a,y:n.chartData[0].horizontalBarChartdata.y},color:u.neutralLight};var e=t.props.variant===h.AbsoluteScale?null:t._getChartDataText(n),o=t._createBars(n,u),s=t._uniqLineText+"_"+i,l=tl(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!n.chartData[0].data,variant:t.props.variant});return r.createElement("div",{key:i},r.createElement("div",{className:l.items},r.createElement(Rs,{direction:vs.horizontal},r.createElement("div",{className:t._classNames.chartTitle},n.chartTitle&&r.createElement(Qs,{className:t._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),e)),n.chartData[0].data&&t._createBenchmark(n),r.createElement(Rs,{direction:vs.horizontal,className:t._classNames.chartWrapper},r.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":n.chartTitle},r.createElement("g",{id:s,key:s,ref:function(i){t._refCallback(i,n.chartData[0].legend)},onClick:function(){var t=n.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),r.createElement(Gn,(0,n.Cl)({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:y.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,fs(this.state.callOutAccessibilityData)),r.createElement(r.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):r.createElement(ys.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},i.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},i.prototype._hoverOn=function(t,n){if((!this.state.isCalloutVisible||this.state.legend!==n.legend)&&this._calloutAnchorPoint!==n){var i=m(this._refArray,(function(t){return t.index===n.legend}));this._calloutAnchorPoint=n,this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:n.color,legend:n.legend,refSelected:i.refElement,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,barCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}},i.prototype._hoverOff=function(){},i.prototype._getDefaultTextData=function(t){var i=this.props.culture,e=this.props.chartDataMode||"default",o=t.chartData[0],u=o.horizontalBarChartdata.x,a=o.horizontalBarChartdata.y,s=fs(t.chartDataAccessibilityData,"text",!1);switch(e){case"default":return r.createElement("div",(0,n.Cl)({className:this._classNames.chartTitleRight},s),(0,Zn.U)(u,i));case"fraction":return r.createElement("div",(0,n.Cl)({},s),r.createElement("span",{className:this._classNames.chartTitleRight},(0,Zn.U)(u,i)),r.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,Zn.U)(a,i)));case"percentage":var l="".concat((0,Zn.U)(Math.round(u/a*100),i),"%");return r.createElement("div",(0,n.Cl)({className:this._classNames.chartTitleRight},s),l)}},i.prototype._createBenchmark=function(t){var n=t.chartData[0].horizontalBarChartdata.y,i=t.chartData[0].data,e={left:"calc("+Math.round((i||0)/n*100)+"% - 4px)"};return r.createElement("div",{className:this._classNames.benchmarkContainer},r.createElement("div",{className:this._classNames.triangle,style:e}))},i.prototype._createBars=function(t,n){var i,e=this,o=(null===(i=t.chartData)||void 0===i?void 0:i.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,u=this.state.barSpacingInPercent*(o-1),a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[],l=t.chartData.reduce((function(t,n){return t+(n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0)}),0),c=0,f=0,d=0;t.chartData.map((function(t,n){var i=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;return(f=i/l*100)<0?f=0:f<1&&0!==f&&(f=1),d+=f}));var v=0!==d?(d-u)/100:1,p=t.chartData.map((function(n,i){var o=n.color?n.color:a[Math.floor(4*Math.random()+1)],u=n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0;i>0&&(c+=f),(f=u/l*100)<0?f=0:f<1&&0!==f?f=1/v:f/=v,s.push(c);var d=n.horizontalBarChartdata.x;if(1===i&&e.props.variant===h.AbsoluteScale){if(e.props.hideLabels)return r.createElement("text",{key:i});var p=t.chartData[0].horizontalBarChartdata.x;return r.createElement("text",{key:i,x:"".concat(e._isRTL?100-s[i]:s[i],"%"),y:e._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(e._isRTL?-4:4,")"),className:e._classNames.barLabel,"aria-hidden":!0},ds(p))}return r.createElement("rect",{key:i,x:"".concat(e._isRTL?100-s[i]-f-i*e.state.barSpacingInPercent:s[i]+i*e.state.barSpacingInPercent,"%"),y:0,"data-is-focusable":""!==n.legend,width:f+"%",height:e._barHeight,fill:o,onMouseOver:""!==n.legend?e._hoverOn.bind(e,d,n):void 0,onFocus:""!==n.legend?e._hoverOn.bind(e,d,n):void 0,role:"img","aria-label":e._getAriaLabel(n),onBlur:e._hoverOff,onMouseLeave:e._hoverOff,className:e._classNames.barWrapper})}));return p},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},i}(r.Component),il=(0,t.I)(nl,(function(t){var i=t.className,e=t.theme,r=t.width,o=t.barHeight,u=t.showTriangle,a=t.variant,s=t.hideLabels,l=e.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},i],items:{marginBottom:u||a===h.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,n.Cl)((0,n.Cl)({},e.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:e.palette.neutralPrimary,marginBottom:a===h.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:jt.s.medium,fontWeight:jt.BO.semibold,color:e.palette.neutralPrimary},chartDataTextDenominator:{fontSize:jt.s.medium,color:e.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:l.blue,marginBottom:"4px",position:"absolute"},barLabel:(0,n.Cl)((0,n.Cl)({},e.fonts.small),{fontWeight:jt.BO.semibold,fill:e.palette.neutralPrimary}),chartWrapper:{paddingRight:a!==h.AbsoluteScale||s?0:40}}})),el={host:"ms-HoverCard-host"},rl=function(){function t(n){this._id=t._uniqueId++,this._parent=n,this._eventRecords=[]}return t.raise=function(n,i,e,r,o){var u,a=null!=o?o:(0,C.Y)();if(t._isElement(n)){if(void 0!==a&&a.createEvent){var s=a.createEvent("HTMLEvents");s.initEvent(i,r||!1,!0),U(s,e),u=n.dispatchEvent(s)}else if(void 0!==a&&a.createEventObject){var l=a.createEventObject(e);n.fireEvent("on"+i,l)}}else for(;n&&!1!==u;){var c=n.__events__,f=c?c[i]:null;if(f)for(var h in f)if(f.hasOwnProperty(h))for(var d=f[h],v=0;!1!==u&&v<d.length;v++){var p=d[v];p.objectCallback&&(u=p.objectCallback.call(p.parent,e))}n=r?n.parent:null}return u},t.isObserved=function(t,n){var i=t&&t.__events__;return!!i&&!!i[n]},t.isDeclared=function(t,n){var i=t&&t.__declaredEvents;return!!i&&!!i[n]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,n,i){for(var e in n)n.hasOwnProperty(e)&&this.on(t,e,n[e],i)},t.prototype.on=function(n,i,e,r){var o=this;if(i.indexOf(",")>-1)for(var u=i.split(/[ ,]+/),a=0;a<u.length;a++)this.on(n,u[a],e,r);else{var s=this._parent,l={target:n,eventName:i,parent:s,callback:e,options:r};if((u=n.__events__=n.__events__||{})[i]=u[i]||{count:0},u[i][this._id]=u[i][this._id]||[],u[i][this._id].push(l),u[i].count++,t._isElement(n)){var c=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed){var i;try{if(!1===(i=e.apply(s,t))&&t[0]){var r=t[0];r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.cancelBubble=!0}}catch(r){}return i}};l.elementCallback=c,n.addEventListener?n.addEventListener(i,c,r):n.attachEvent&&n.attachEvent("on"+i,c)}else l.objectCallback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed)return e.apply(s,t)};this._eventRecords.push(l)}},t.prototype.off=function(t,n,i,e){for(var r=0;r<this._eventRecords.length;r++){var o=this._eventRecords[r];if(!(t&&t!==o.target||n&&n!==o.eventName||i&&i!==o.callback||"boolean"==typeof e&&e!==o.options)){var u=o.target.__events__,a=u[o.eventName],s=a?a[this._id]:null;s&&(1!==s.length&&i?(a.count--,s.splice(s.indexOf(o),1)):(a.count-=s.length,delete u[o.eventName][this._id]),a.count||delete u[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(r--,1)}}},t.prototype.raise=function(n,i,e){return t.raise(this._parent,n,i,e)},t.prototype.declare=function(t){var n=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)n[t]=!0;else for(var i=0;i<t.length;i++)n[t[i]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}($s||($s={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Us||(Us={}));var ol,ul={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(ol||(ol={}));var al=function(t){for(var n=t.activeElement;null==n?void 0:n.shadowRoot;)n=n.shadowRoot.activeElement;return n},sl=function(t){var n=t.target;return n&&n.shadowRoot&&(n=t.composedPath()[0]),n};function ll(t,n){var i=r.useRef(n);return i.current||(i.current=v(t)),i.current}function cl(t){var n=r.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return En((function(){n.current=t}),[t]),Xt((function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.current.apply(void 0,t)}}))}var fl={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},hl=r.forwardRef((function(t,i){var e,o,u,a=r.useRef(null),s=r.useRef(null),l=r.useRef(null),c=Ht(a,i),f=Wt(),h=qt(),d=!!r.useContext(Vs),v=null===(e=Wn(!1))||void 0===e||e,p=_(fl,t),g=Xt({hasFocus:!1,focusStackId:ll("ftz-",p.id)}),m=p.children,y=p.componentRef,b=p.disabled,x=p.disableFirstFocus,C=p.forceFocusInsideTrap,M=p.focusPreviouslyFocusedInnerElement,k=p.firstFocusableSelector,L=p.firstFocusableTarget,S=p.disableRestoreFocus,V=void 0===S?p.ignoreExternalFocusing:S,D=p.isClickableOutsideFocusTrap,T=p.enableAriaHiddenSiblings,O={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:b?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},P=r.useCallback((function(t){t!==s.current&&t!==l.current&&B(t)}),[]),E=cl((function(){if(a.current){var t=g.previouslyFocusedElementInTrapZone;if(M&&t&&w(a.current,t))P(t);else{var n=null;if("string"==typeof L)n=a.current.querySelector(L);else if(L)n=L(a.current);else if(k){var i="string"==typeof k?k:k();n=a.current.querySelector("."+i)}n||(n=N(a.current,a.current.firstChild,!1,!1,!1,!0,void 0,void 0,void 0,d)),n&&P(n)}}})),F=function(t){if(!b&&a.current){var n,i=t===g.hasFocus?(void 0===(n=!1)&&(n=!0),A(a.current,l.current,n,!1,!0,!0,!1,!0,d)):function(t,n,i,e,r){return void 0===e&&(e=!0),N(t,n,e,!1,!1,!0,!1,!0,void 0,r)}(a.current,s.current,0,!1,d);i&&(i===s.current||i===l.current?E():i.focus())}},I=cl((function(t){if(hl.focusStack=hl.focusStack.filter((function(t){return g.focusStackId!==t})),f){var n=f.activeElement;V||"function"!=typeof(null==t?void 0:t.focus)||!w(a.current,n)&&n!==f.body&&!n.shadowRoot||P(t)}})),W=cl((function(t){if(!b&&g.focusStackId===hl.focusStack.slice(-1)[0]){var n=sl(t);n&&!w(a.current,n)&&(f&&al(f)===f.body?setTimeout((function(){f&&al(f)===f.body&&(E(),g.hasFocus=!0)}),0):(E(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return r.useEffect((function(){var t=[];return C&&t.push(H(h,"focus",W,!0)),D||t.push(H(h,"click",W,!0)),function(){t.forEach((function(t){return t()}))}}),[C,D,h]),r.useEffect((function(){if(!b&&(v||C)&&a.current){hl.focusStack.push(g.focusStackId);var t=p.elementToFocusOnDismiss||al(f);return x||w(a.current,t)||E(),function(){return I(t)}}}),[C,b]),r.useEffect((function(){if(!b&&T)return Ot(a.current)}),[b,T,a]),o=function(){delete g.previouslyFocusedElementInTrapZone},(u=r.useRef(o)).current=o,r.useEffect((function(){return function(){var t;null===(t=u.current)||void 0===t||t.call(u)}}),[]),function(t,n,i){r.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return n},focus:i}}),[i,n])}(y,g.previouslyFocusedElementInTrapZone,E),r.createElement("div",(0,n.Cl)({"aria-labelledby":p.ariaLabelledBy},q(p,Y),{ref:c,onFocusCapture:function(t){var n;null===(n=p.onFocusCapture)||void 0===n||n.call(p,t),t.target===s.current?F(!0):t.target===l.current&&F(!1),g.hasFocus=!0,t.target!==t.currentTarget&&t.target!==s.current&&t.target!==l.current&&(g.previouslyFocusedElementInTrapZone=sl(t.nativeEvent))},onBlurCapture:function(t){var n;null===(n=p.onBlurCapture)||void 0===n||n.call(p,t);var i=t.relatedTarget;null===t.relatedTarget&&(i=al(f)),w(a.current,i)||(g.hasFocus=!1)}}),r.createElement("div",(0,n.Cl)({},O,{ref:s})),m,r.createElement("div",(0,n.Cl)({},O,{ref:l})))}));hl.displayName="FocusTrapZone",hl.focusStack=[];var dl,vl=function(t){return r.createElement(Gn,(0,n.Cl)({},t),r.createElement(hl,(0,n.Cl)({disabled:t.hidden},t.focusTrapProps),t.children))},pl=function(t){var i=t.gapSpace,e=void 0===i?0:i,o=t.directionalHint,u=void 0===o?y.bottomLeftEdge:o,a=t.directionalHintFixed,s=t.targetElement,l=t.firstFocus,c=t.trapFocus,f=t.onLeave,h=t.className,d=t.finalHeight,v=t.content,p=t.calloutProps,g=(0,n.Cl)((0,n.Cl)((0,n.Cl)({},q(t,Y)),{className:h,target:s,isBeakVisible:!1,directionalHint:u,directionalHintFixed:a,finalHeight:d,minPagePadding:24,onDismiss:f,gapSpace:e}),p);return r.createElement(r.Fragment,null,c?r.createElement(vl,(0,n.Cl)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),v):r.createElement(Gn,(0,n.Cl)({},g),v))},gl=(0,o.Z)(),ml=function(t){function i(n){var i=t.call(this,n)||this;return i._expandedElem=r.createRef(),i._onKeyDown=function(t){t.which===Pt&&i.props.onLeave&&i.props.onLeave(t)},i._onRenderCompactCard=function(){return r.createElement("div",{className:i._classNames.compactCard},i.props.onRenderCompactCard(i.props.renderData))},i._onRenderExpandedCard=function(){return!i.state.firstFrameRendered&&i._async.requestAnimationFrame((function(){i.setState({firstFrameRendered:!0})})),r.createElement("div",{className:i._classNames.expandedCard,ref:i._expandedElem},r.createElement("div",{className:i._classNames.expandedCardScroll},i.props.onRenderExpandedCard&&i.props.onRenderExpandedCard(i.props.renderData)))},i._checkNeedsScroll=function(){var t=i.props.expandedCardHeight;i._async.requestAnimationFrame((function(){i._expandedElem.current&&i._expandedElem.current.scrollHeight>=t&&i.setState({needsScroll:!0})}))},i._async=new Et(i),xs(i),i.state={firstFrameRendered:!1,needsScroll:!1},i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){this._checkNeedsScroll()},i.prototype.componentWillUnmount=function(){this._async.dispose()},i.prototype.render=function(){var t=this.props,i=t.styles,e=t.compactCardHeight,o=t.expandedCardHeight,u=t.theme,a=t.mode,s=t.className,l=this.state,c=l.needsScroll,f=l.firstFrameRendered,h=e+o;this._classNames=gl(i,{theme:u,compactCardHeight:e,className:s,expandedCardHeight:o,needsScroll:c,expandedCardFirstFrameRendered:a===ol.expanded&&f});var d=r.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return r.createElement(pl,(0,n.Cl)({},this.props,{content:d,finalHeight:h,className:this._classNames.root}))},i.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},i}(r.Component),yl=(0,t.I)(ml,(function(t){var n,i=t.theme,e=t.needsScroll,r=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,u=t.expandedCardHeight,a=t.className,s=i.palette,l=(0,jt.Km)(ul,i);return{root:[l.root,{width:320,pointerEvents:"none",selectors:(n={},n[jt.up]={border:"1px solid WindowText"},n)},a],compactCard:[l.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[l.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:s.neutralLighter}}},r&&{height:u}],expandedCardScroll:[l.expandedCardScroll,e&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),bl={root:"ms-PlainCard-root"},xl=(0,o.Z)(),wl=function(t){function i(n){var i=t.call(this,n)||this;return i._onKeyDown=function(t){t.which===Pt&&i.props.onLeave&&i.props.onLeave(t)},xs(i),i}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,i=t.styles,e=t.theme,o=t.className;this._classNames=xl(i,{theme:e,className:o});var u=r.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return r.createElement(pl,(0,n.Cl)({},this.props,{content:u,className:this._classNames.root}))},i}(r.Component),Cl=(0,t.I)(wl,(function(t){var n,i=t.theme,e=t.className;return{root:[(0,jt.Km)(bl,i).root,{pointerEvents:"auto",selectors:(n={},n[jt.up]={border:"1px solid WindowText"},n)},e]}}),void 0,{scope:"PlainCard"}),Ml=(0,o.Z)(),kl=function(t){function i(n){var i=t.call(this,n)||this;return i._hoverCard=r.createRef(),i.dismiss=function(t){i._async.clearTimeout(i._openTimerId),i._async.clearTimeout(i._dismissTimerId),t?i._dismissTimerId=i._async.setTimeout((function(){i._setDismissedState()}),i.props.cardDismissDelay):i._setDismissedState()},i._cardOpen=function(t){i._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==i.props.openHotKey||(i._async.clearTimeout(i._dismissTimerId),"mouseenter"===t.type&&(i._currentMouseTarget=t.currentTarget),i._executeCardOpen(t))},i._executeCardOpen=function(t){i._async.clearTimeout(i._openTimerId),i._openTimerId=i._async.setTimeout((function(){i.setState((function(n){return n.isHoverCardVisible?n:{isHoverCardVisible:!0,mode:ol.compact,openMode:"keydown"===t.type?$s.hotKey:$s.hover}}))}),i.props.cardOpenDelay)},i._cardDismiss=function(t,n){if(t){if(!(n instanceof MouseEvent))return;if("keydown"===n.type&&n.which!==Pt)return;i.props.sticky||i._currentMouseTarget!==n.currentTarget&&n.which!==Pt||i.dismiss(!0)}else{if(i.props.sticky&&!(n instanceof MouseEvent)&&n.nativeEvent instanceof MouseEvent&&"mouseleave"===n.type)return;i.dismiss(!0)}},i._setDismissedState=function(){i.setState({isHoverCardVisible:!1,mode:ol.compact,openMode:$s.hover})},i._instantOpenAsExpanded=function(t){i._async.clearTimeout(i._dismissTimerId),i.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:ol.expanded}}))},i._setEventListeners=function(){var t=i.props,n=t.trapFocus,e=t.instantOpenOnClick,r=t.eventListenerTarget,o=r?i._getTargetElement(r):i._getTargetElement(i.props.target),u=i._nativeDismissEvent;o&&(i._events.on(o,"mouseenter",i._cardOpen),i._events.on(o,"mouseleave",u),n?i._events.on(o,"keydown",i._cardOpen):(i._events.on(o,"focus",i._cardOpen),i._events.on(o,"blur",u)),e?i._events.on(o,"click",i._instantOpenAsExpanded):(i._events.on(o,"mousedown",u),i._events.on(o,"keydown",u)))},xs(i),i._async=new Et(i),i._events=new rl(i),i._nativeDismissEvent=i._cardDismiss.bind(i,!0),i._childDismissEvent=i._cardDismiss.bind(i,!1),i.state={isHoverCardVisible:!1,mode:ol.compact,openMode:$s.hover},i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){this._setEventListeners()},i.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},i.prototype.componentDidUpdate=function(t,n){var i=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),n.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){i.setState({mode:ol.expanded},(function(){i.props.onCardExpand&&i.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:ol.compact}),this.props.onCardHide&&this.props.onCardHide()))},i.prototype.render=function(){var t=this.props,i=t.expandingCardProps,e=t.children,o=t.id,u=t.setAriaDescribedBy,a=void 0===u||u,s=t.styles,l=t.theme,c=t.className,f=t.type,h=t.plainCardProps,d=t.trapFocus,p=t.setInitialFocus,g=this.state,m=g.isHoverCardVisible,y=g.mode,b=g.openMode,x=o||v("hoverCard");this._classNames=Ml(s,{theme:l,className:c});var w=(0,n.Cl)((0,n.Cl)({},q(this.props,Y)),{id:x,trapFocus:!!d,firstFocus:p||b===$s.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,n.Cl)((0,n.Cl)((0,n.Cl)({},i),w),{mode:y}),M=(0,n.Cl)((0,n.Cl)({},h),w);return r.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&m?x:void 0,"data-is-focusable":!this.props.target},e,m&&(f===Us.expanding?r.createElement(yl,(0,n.Cl)({},C)):r.createElement(Cl,(0,n.Cl)({},M))))},i.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,C.Y)().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},i.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},i.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:Us.expanding},i}(r.Component),Ll=(0,t.I)(kl,(function(t){var n=t.className,i=t.theme;return{host:[(0,jt.Km)(el,i).host,n]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(dl||(dl={}));var Sl=function(t){var i;void 0===t&&(i={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&i.hasOwnProperty(t.cacheKey))return i[t.cacheKey]},addMeasurementToCache:function(t,n){t.cacheKey&&(i[t.cacheKey]=n)}});var e,r=t;function o(t,n){var i=r.getCachedMeasurement(t);if(void 0!==i)return i;var e=n();return r.addMeasurementToCache(t,e),e}function u(t,n,i){for(var u=t,a=o(t,i);a>e;){var s=n(u);if(void 0===s)return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(a=r.getCachedMeasurement(s)))return{dataToMeasure:s,resizeDirection:"shrink"};u=s}return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,i,a,s){if(void 0!==s||void 0!==i.dataToMeasure){if(s){if(e&&i.renderedData&&!i.dataToMeasure)return(0,n.Cl)((0,n.Cl)({},i),function(t,i,r,o){var u;return u=t>e?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:i}:{resizeDirection:"shrink",dataToMeasure:r},e=t,(0,n.Cl)((0,n.Cl)({},u),{measureContainer:!1})}(s,t.data,i.renderedData,t.onGrowData));e=s}var l=(0,n.Cl)((0,n.Cl)({},i),{measureContainer:!1});return i.dataToMeasure&&(l="grow"===i.resizeDirection&&t.onGrowData?(0,n.Cl)((0,n.Cl)({},l),function(t,i,a,s){for(var l=t,c=o(t,a);c<e;){var f=i(l);if(void 0===f)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=r.getCachedMeasurement(f)))return{dataToMeasure:f};l=f}return(0,n.Cl)({resizeDirection:"shrink"},u(l,s,a))}(i.dataToMeasure,t.onGrowData,a,t.onReduceData)):(0,n.Cl)((0,n.Cl)({},l),u(i.dataToMeasure,t.onReduceData,a))),l}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==r.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,n.Cl)({},t),resizeDirection:"grow",measureContainer:!0}}}},Vl=r.createContext({isMeasured:!1}),Al={position:"fixed",visibility:"hidden"},Nl={position:"relative"};function Dl(t,i){var e;switch(i.type){case"resizeData":return(0,n.Cl)({},i.value);case"dataToMeasure":return(0,n.Cl)((0,n.Cl)({},t),{dataToMeasure:i.value,resizeDirection:"grow",measureContainer:!0});default:return(0,n.Cl)((0,n.Cl)({},t),((e={})[i.type]=i.value,e))}}var Tl={isMeasured:!0},Ol=r.forwardRef((function(t,i){var e=r.useRef(null),o=Ht(e,i),u=function(t,i){var e=Xt(Sl),o=r.useRef(null),u=r.useRef(null),a=r.useRef(!1),s=Ft(),l=function(t,i,e){var o=Xt((function(){return i.getInitialResizeGroupState(t.data)})),u=r.useReducer(Dl,o),a=u[0],s=u[1];r.useEffect((function(){s({type:"dataToMeasure",value:t.data})}),[t.data]);var l=r.useRef(o);return l.current=(0,n.Cl)({},a),[l,r.useCallback((function(t){t&&s({type:"resizeData",value:t})}),[]),r.useCallback((function(){e.current&&s({type:"measureContainer",value:!0})}),[e])]}(t,e,i),c=l[0],f=l[1],h=l[2];r.useEffect((function(){var n;c.current.renderedData&&(a.current=!0,null===(n=t.dataDidRender)||void 0===n||n.call(t,c.current.renderedData))})),r.useEffect((function(){s.requestAnimationFrame((function(){var n=void 0;if(c.current.measureContainer&&i.current){var r=i.current.getBoundingClientRect();n=t.direction===dl.vertical?r.height:r.width}var s=e.getNextState(t,c.current,(function(){var n=a.current?u:o;if(!n.current)return 0;var i=n.current.getBoundingClientRect();return t.direction===dl.vertical?i.height:i.width}),n);f(s)}),i.current)})),Bt(It(),"resize",s.debounce(h,16,{leading:!0}));var d=e.shouldRenderDataForMeasurement(c.current.dataToMeasure),v=!a.current&&d;return[c.current.dataToMeasure,c.current.renderedData,h,o,u,d,v]}(t,e),a=u[0],s=u[1],l=u[2],c=u[3],f=u[4],h=u[5],d=u[6];r.useImperativeHandle(t.componentRef,(function(){return{remeasure:l}}),[l]),function(t){zn({name:"ResizeGroup",props:t,deprecations:{styles:"className"}})}(t);var v=t.className,p=t.onRenderData,g=q(t,Y,["data"]);return r.createElement("div",(0,n.Cl)({},g,{className:v,ref:o}),r.createElement("div",{style:Nl},h&&!d&&r.createElement("div",{style:Al,ref:f},r.createElement(Vl.Provider,{value:Tl},p(a))),r.createElement("div",{ref:c,style:d?Al:void 0,"data-automation-id":"visibleContent"},d?p(a):s&&p(s))))}));Ol.displayName="ResizeGroupBase";var Pl,El=Ol;!function(t){t.KEYTIP_ADDED="keytipAdded",t.KEYTIP_REMOVED="keytipRemoved",t.KEYTIP_UPDATED="keytipUpdated",t.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",t.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",t.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",t.ENTER_KEYTIP_MODE="enterKeytipMode",t.EXIT_KEYTIP_MODE="exitKeytipMode"}(Pl||(Pl={}));var Fl=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,n){void 0===n&&(n=!1);var i=t;n||(i=this.addParentOverflow(t),this.sequenceMapping[i.keySequences.toString()]=i);var e=this._getUniqueKtp(i);if(n?this.persistedKeytips[e.uniqueID]=e:this.keytips[e.uniqueID]=e,this.inKeytipMode||!this.delayUpdatingKeytipChange){var r=n?Pl.PERSISTED_KEYTIP_ADDED:Pl.KEYTIP_ADDED;rl.raise(this,r,{keytip:i,uniqueID:e.uniqueID})}return e.uniqueID},t.prototype.update=function(t,n){var i=this.addParentOverflow(t),e=this._getUniqueKtp(i,n),r=this.keytips[n];r&&(e.keytip.visible=r.keytip.visible,this.keytips[n]=e,delete this.sequenceMapping[r.keytip.keySequences.toString()],this.sequenceMapping[e.keytip.keySequences.toString()]=e.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||rl.raise(this,Pl.KEYTIP_UPDATED,{keytip:e.keytip,uniqueID:e.uniqueID}))},t.prototype.unregister=function(t,n,i){void 0===i&&(i=!1),i?delete this.persistedKeytips[n]:delete this.keytips[n],!i&&delete this.sequenceMapping[t.keySequences.toString()];var e=i?Pl.PERSISTED_KEYTIP_REMOVED:Pl.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||rl.raise(this,e,{keytip:t,uniqueID:n})},t.prototype.enterKeytipMode=function(){rl.raise(this,Pl.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){rl.raise(this,Pl.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(n){return t.keytips[n].keytip}))},t.prototype.addParentOverflow=function(t){var i=(0,n.fX)([],t.keySequences,!0);if(i.pop(),0!==i.length){var e=this.sequenceMapping[i.toString()];if(e&&e.overflowSetSequence)return(0,n.Cl)((0,n.Cl)({},t),{overflowSetSequence:e.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,n){rl.raise(this,Pl.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},t.prototype._getUniqueKtp=function(t,i){return void 0===i&&(i=v()),{keytip:(0,n.Cl)({},t),uniqueID:i}},t._instance=new t,t}(),Bl=function(t,n,i){for(var e=0,r=t;e<r.length;e++){var o=r[e];i[n.register(o,!0)]=o}},Hl=function(t,n){for(var i=0,e=Object.keys(n);i<e.length;i++){var r=e[i];t.unregister(n[r],r,!0),delete n[r]}},_l=function(t){var i=Fl.getInstance(),e=t.className,o=t.overflowItems,u=t.keytipSequences,a=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=Xt({}),c=r.useCallback((function(t){return a?a(t):t.subMenuProps?t.subMenuProps.items:void 0}),[a]),f=r.useMemo((function(){var t=[],e=[];return u?null==o||o.forEach((function(r){var o,a=r.keytipProps;if(a){var s={content:a.content,keySequences:a.keySequences,disabled:a.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:a.hasDynamicChildren,hasMenu:a.hasMenu};a.hasDynamicChildren||c(r)?(s.onExecute=i.menuExecute.bind(i,u,null===(o=null==r?void 0:r.keytipProps)||void 0===o?void 0:o.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=a.onExecute,t.push(s);var l=(0,n.Cl)((0,n.Cl)({},r),{keytipProps:(0,n.Cl)((0,n.Cl)({},a),{overflowSetSequence:u})});null==e||e.push(l)}else null==e||e.push(r)})):e=o,{modifiedOverflowItems:e,keytipsToRegister:t}}),[o,c,i,u]),h=f.modifiedOverflowItems;return function(t,n,i){var e=Wn(t);r.useEffect((function(){e&&(Hl(i,e),Bl(n,i,t))})),r.useEffect((function(){return Bl(n,i,t),function(){Hl(i,t)}}),[])}(l,f.keytipsToRegister,i),r.createElement("div",{className:e},s(h))},Il=(0,o.Z)(),Wl=r.forwardRef((function(t,i){var e=r.useRef(null),o=Ht(e,i);!function(t,n){var i=function(){var t;return(null!==(t=Wt())&&void 0!==t?t:"undefined"!=typeof document)?document:void 0}();r.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,i){var e=!1;return n.current&&(e=V(n.current,i)),e},focusElement:function(t){var e=!1;return!!t&&(n.current&&w(n.current,t)&&(t.focus(),e=(null==i?void 0:i.activeElement)===t),e)}}}),[n,i])}(t,e);var u=t.items,a=t.overflowItems,s=t.className,l=t.styles,c=t.vertical,f=t.role,h=t.overflowSide,d=void 0===h?"end":h,v=t.onRenderItem,p=Il(l,{className:s,vertical:c}),g=!!a&&a.length>0;return r.createElement("div",(0,n.Cl)({},q(t,Y),{role:f||"group","aria-orientation":"menubar"===f?!0===c?"vertical":"horizontal":void 0,className:p.root,ref:o}),"start"===d&&g&&r.createElement(_l,(0,n.Cl)({},t,{className:p.overflowButton})),u&&u.map((function(t,n){return r.createElement("div",{className:p.item,key:t.key,role:"none"},v(t))})),"end"===d&&g&&r.createElement(_l,(0,n.Cl)({},t,{className:p.overflowButton})))}));Wl.displayName="OverflowSet";var Rl,zl={flexShrink:0,display:"inherit"},jl=(0,t.I)(Wl,(function(t){var n=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},n],item:["ms-OverflowSet-item",zl],overflowButton:["ms-OverflowSet-overflowButton",zl]}}),void 0,{scope:"OverflowSet"}),Xl=((Rl={})["".concat(as[as.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Rl["".concat(as[as.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Rl["".concat(as[as.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Rl["".concat(as[as.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Rl["".concat(as[as.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Rl["".concat(as[as.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Rl["".concat(as[as.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Rl["".concat(as[as.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Rl["".concat(ss[ss.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",Rl),Yl=function(t){var i=t.svgProps,e=t.pathProps,o=t.shape,u=t.classNameForNonSvg;return-1===Object.keys(Xl).indexOf(o)?r.createElement("div",{className:u}):r.createElement("svg",(0,n.Cl)({width:14,height:14,viewBox:"-1 -1 14 14"},i,{transform:"rotate(".concat(o===as[as.diamond]?45:o===as[as.pyramid]?180:0,", 0, 0)")}),r.createElement("path",(0,n.Cl)({d:Xl[o]},e)))},ql=(0,o.Z)(),$l=function(t){function i(i){var e,o,u=this;(u=t.call(this,i)||this)._isLegendSelected=!1,u._onRenderData=function(t){var i=u.props,e=i.overflowProps,o=i.allowFocusOnLegends,a=void 0===o||o,s=i.canSelectMultipleLegends,l=void 0!==s&&s,c={root:{justifyContent:u.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return r.createElement(Rs,(0,n.Cl)({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":l}),r.createElement(jl,(0,n.Cl)({items:t.primary,overflowItems:t.overflow,onRenderItem:u._renderButton,onRenderOverflowButton:u._renderOverflowItems},e,{styles:(0,n.Cl)((0,n.Cl)({},c),null==e?void 0:e.styles)})))},u._onReduceData=function(t){if(0!==t.primary.length){var i=(0,n.fX)((0,n.fX)([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:i}}},u._onGrowData=function(t){if(0!==t.overflow.length){var i=t.overflow.slice(1);return{primary:(0,n.fX)((0,n.fX)([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:i}}},u._canSelectMultipleLegends=function(t){var i=(0,n.Cl)({},u.state.selectedLegends);return i[t.title]?delete i[t.title]:(i[t.title]=!0,Object.keys(i).length===u.props.legends.length&&(i={})),u.setState({selectedLegends:i}),i},u._canSelectOnlySingleLegend=function(t){var n;return u.state.selectedLegends[t.title]?(u.setState({selectedLegends:{}}),!1):(u.setState({selectedLegends:(n={},n[t.title]=!0,n)}),!0)},u._onClick=function(t,n){var i,e,r,o=u.props.canSelectMultipleLegends,a=[];if(void 0!==o&&o){var s=u._canSelectMultipleLegends(t);a=Object.keys(s)}else a=u._canSelectOnlySingleLegend(t)?[t.title]:[];null===(e=(i=u.props).onChange)||void 0===e||e.call(i,a,n,t),null===(r=t.action)||void 0===r||r.call(t)},u._onRenderCompactCard=function(t){var i=u.props,e=i.allowFocusOnLegends,o=void 0===e||e,a=i.className,s=i.styles,l=i.theme,c=i.canSelectMultipleLegends,f=void 0!==c&&c,h=[],d=ql(s,{theme:l,className:a});return t.renderData.forEach((function(t,n){var i=u._renderButton(t,n,!0);h.push(i)})),r.createElement(Rs,(0,n.Cl)({},o&&{role:"listbox","aria-label":"Legends","aria-multiselectable":f},{direction:vs.vertical,handleTabKey:1,isCircularNavigation:!0},u.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),h)},u._renderOverflowItems=function(t){var i=u.props.allowFocusOnLegends,e=void 0===i||i,o=[];t.forEach((function(t,n){o.push({key:n.toString(),name:t.title,onClick:t.action})}));var a={renderData:t},s=u.props,l=s.theme,c=s.className,f=s.styles,h=s.overflowText,d=ql(f,{theme:l,className:c}),v={onRenderPlainCard:u._onRenderCompactCard,renderData:a},p=h||"more";return r.createElement(Ll,{type:Us.plain,plainCardProps:v,instantOpenOnClick:!0,onCardHide:function(){u.setState({isHoverCardVisible:!1});var n=m(t,(function(t){return t.title===u.state.activeLegend}));n&&(u.setState({activeLegend:""}),n.onMouseOutAction&&n.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:u._hoverCardVisible,styles:d.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:u._hoverCardRef},r.createElement("div",(0,n.Cl)({className:d.overflowIndicationTextStyle,ref:function(t){return u._hoverCardRef=t}},e&&{role:"button","aria-expanded":u.state.isHoverCardVisible,"aria-label":"".concat(o.length," ").concat(p)},{"data-is-focusable":e}),o.length," ",p))},u._hoverCardVisible=function(){u.setState({isHoverCardVisible:!0})},u._onHoverOverLegend=function(t){t.hoverAction&&(u.setState({activeLegend:t.title}),t.hoverAction())},u._onLeave=function(t){t.onMouseOutAction&&(u.setState({activeLegend:""}),t.onMouseOutAction())},u._renderButton=function(t,i,e){var o=u.props.allowFocusOnLegends,a=void 0===o||o,s={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},l=u._getColor(s.title,s.color),c=u.props,f=c.theme,h=c.className,d=c.styles,v=ql(d,{theme:f,className:h,colorOnSelectedState:l,borderColor:s.color,overflow:e,stripePattern:s.stripePattern,isLineLegendInBarChart:s.isLineLegendInBarChart,opacity:s.opacity}),p=function(){u._onHoverOverLegend(s)},g=function(){u._onLeave(s)},m=u._getShape(v,s,l);return r.createElement("button",(0,n.Cl)({},a&&{"aria-selected":!!u.state.selectedLegends[s.title],role:"option","aria-label":"".concat(s.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&(0,n.Cl)({},t.nativeButtonProps),{key:i,className:v.legend,onClick:function(t){u._onClick(s,t)},onMouseOver:p,onMouseOut:g,onFocus:p,onBlur:g,"data-is-focusable":a}),m,r.createElement("div",{className:v.text},s.title))};var a={};return i.canSelectMultipleLegends?a=(null===(o=i.defaultSelectedLegends)||void 0===o?void 0:o.reduce((function(t,i){var e;return(0,n.Cl)(((e={})[i]=!0,e),t)}),{}))||{}:i.defaultSelectedLegend&&((e={})[i.defaultSelectedLegend]=!0,a=e),u.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:a},u}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,n=t.theme,i=t.className,e=t.styles;this._classNames=ql(e,{theme:n,className:i}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return r.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(o):r.createElement(El,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},i.prototype._generateData=function(){var t=this,i=this.props,e=i.allowFocusOnLegends,r=void 0===e||e,o=i.shape;return{primary:this.props.legends.map((function(i,e){return(0,n.Cl)((0,n.Cl)({},r&&{nativeButtonProps:q(i,X,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":e+1}),{title:i.title,action:i.action,hoverAction:i.hoverAction,onMouseOutAction:i.onMouseOutAction,color:i.color,shape:o||i.shape,stripePattern:i.stripePattern,isLineLegendInBarChart:i.isLineLegendInBarChart,opacity:i.opacity,key:e})})),overflow:[]}},i.prototype._getShape=function(t,n,i){var e={className:t.shape},o={fill:i,strokeWidth:2,stroke:n.color};return r.createElement(Yl,{svgProps:e,pathProps:o,shape:n.shape,classNameForNonSvg:t.rect})},i.prototype._getColor=function(t,n){var i=this.props.theme;return this._isLegendSelected?this.state.selectedLegends[t]?n:i.semanticColors.buttonBackground:this.state.activeLegend===t||""===this.state.activeLegend?n:i.semanticColors.buttonBackground},i}(r.Component),Ul=(0,t.I)($l,(function(t){var i,e,r=t.className,o=t.theme,u=t.isLineLegendInBarChart,a=void 0!==u&&u,s=o,l=s.palette,c=s.fonts,f={inset:void 0,position:void 0,highContrastStyle:{outlineColor:o.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[(0,jt.gm)(o,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(i={},i[jt.up]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.6":""},i),width:"12px",height:a?"4px":"12px",backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:null==o?void 0:o.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.6":t.opacity?t.opacity:"",selectors:(e={},e[jt.up]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},e)},text:(0,n.Cl)((0,n.Cl)({},c.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:o.semanticColors.buttonBackground,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:l.black},overflowIndicationTextStyle:[(0,jt.gm)(o,f),(0,n.Cl)((0,n.Cl)({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[(0,jt.gm)(o,f)]}}}}));function Gl(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Zl(t){return function(){return t}}function Kl(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Jl(t){return t}Array.prototype.slice;const Ql=Math.abs,tc=Math.atan2,nc=Math.cos,ic=Math.max,ec=Math.min,rc=Math.sin,oc=Math.sqrt,uc=1e-12,ac=Math.PI,sc=ac/2,lc=2*ac;function cc(t){return t>=1?sc:t<=-1?-sc:Math.asin(t)}function fc(){var t=Jl,n=Kl,i=null,e=Zl(0),r=Zl(lc),o=Zl(0);function u(u){var a,s,l,c,f,h=(u=Gl(u)).length,d=0,v=new Array(h),p=new Array(h),g=+e.apply(this,arguments),m=Math.min(lc,Math.max(-lc,r.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,o.apply(this,arguments)),b=y*(m<0?-1:1);for(a=0;a<h;++a)(f=p[v[a]=a]=+t(u[a],a,u))>0&&(d+=f);for(null!=n?v.sort((function(t,i){return n(p[t],p[i])})):null!=i&&v.sort((function(t,n){return i(u[t],u[n])})),a=0,l=d?(m-h*b)/d:0;a<h;++a,g=c)s=v[a],c=g+((f=p[s])>0?f*l:0)+b,p[s]={data:u[s],index:a,value:f,startAngle:g,endAngle:c,padAngle:y};return p}return u.value=function(n){return arguments.length?(t="function"==typeof n?n:Zl(+n),u):t},u.sortValues=function(t){return arguments.length?(n=t,i=null,u):n},u.sort=function(t){return arguments.length?(i=t,n=null,u):i},u.startAngle=function(t){return arguments.length?(e="function"==typeof t?t:Zl(+t),u):e},u.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Zl(+t),u):r},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Zl(+t),u):o},u}const hc=Math.PI,dc=2*hc,vc=1e-6,pc=dc-vc;function gc(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class mc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?gc:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return gc;const i=10**n;return function(t){this._+=t[0];for(let n=1,e=t.length;n<e;++n)this._+=Math.round(arguments[n]*i)/i+t[n]}}(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,e){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+e}`}bezierCurveTo(t,n,i,e,r,o){this._append`C${+t},${+n},${+i},${+e},${this._x1=+r},${this._y1=+o}`}arcTo(t,n,i,e,r){if(t=+t,n=+n,i=+i,e=+e,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=this._x1,u=this._y1,a=i-t,s=e-n,l=o-t,c=u-n,f=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=n}`;else if(f>vc)if(Math.abs(c*a-s*l)>vc&&r){let h=i-o,d=e-u,v=a*a+s*s,p=h*h+d*d,g=Math.sqrt(v),m=Math.sqrt(f),y=r*Math.tan((hc-Math.acos((v+f-p)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>vc&&this._append`L${t+b*l},${n+b*c}`,this._append`A${r},${r},0,0,${+(c*h>l*d)},${this._x1=t+x*a},${this._y1=n+x*s}`}else this._append`L${this._x1=t},${this._y1=n}`}arc(t,n,i,e,r,o){if(t=+t,n=+n,o=!!o,(i=+i)<0)throw new Error(`negative radius: ${i}`);let u=i*Math.cos(e),a=i*Math.sin(e),s=t+u,l=n+a,c=1^o,f=o?e-r:r-e;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>vc||Math.abs(this._y1-l)>vc)&&this._append`L${s},${l}`,i&&(f<0&&(f=f%dc+dc),f>pc?this._append`A${i},${i},0,1,${c},${t-u},${n-a}A${i},${i},0,1,${c},${this._x1=s},${this._y1=l}`:f>vc&&this._append`A${i},${i},0,${+(f>=hc)},${c},${this._x1=t+i*Math.cos(r)},${this._y1=n+i*Math.sin(r)}`)}rect(t,n,i,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+e}h${-i}Z`}toString(){return this._}}function yc(t){let n=3;return t.digits=function(i){if(!arguments.length)return n;if(null==i)n=null;else{const t=Math.floor(i);if(!(t>=0))throw new RangeError(`invalid digits: ${i}`);n=t}return t},()=>new mc(n)}function bc(t){return t.innerRadius}function xc(t){return t.outerRadius}function wc(t){return t.startAngle}function Cc(t){return t.endAngle}function Mc(t){return t&&t.padAngle}function kc(t,n,i,e,r,o,u){var a=t-i,s=n-e,l=(u?o:-o)/oc(a*a+s*s),c=l*s,f=-l*a,h=t+c,d=n+f,v=i+c,p=e+f,g=(h+v)/2,m=(d+p)/2,y=v-h,b=p-d,x=y*y+b*b,w=r-o,C=h*p-v*d,M=(b<0?-1:1)*oc(ic(0,w*w*x-C*C)),k=(C*b-y*M)/x,L=(-C*y-b*M)/x,S=(C*b+y*M)/x,V=(-C*y+b*M)/x,A=k-g,N=L-m,D=S-g,T=V-m;return A*A+N*N>D*D+T*T&&(k=S,L=V),{cx:k,cy:L,x01:-c,y01:-f,x11:k*(r/w-1),y11:L*(r/w-1)}}function Lc(){var t=bc,n=xc,i=Zl(0),e=null,r=wc,o=Cc,u=Mc,a=null,s=yc(l);function l(){var l,c,f,h=+t.apply(this,arguments),d=+n.apply(this,arguments),v=r.apply(this,arguments)-sc,p=o.apply(this,arguments)-sc,g=Ql(p-v),m=p>v;if(a||(a=l=s()),d<h&&(c=d,d=h,h=c),d>uc)if(g>lc-uc)a.moveTo(d*nc(v),d*rc(v)),a.arc(0,0,d,v,p,!m),h>uc&&(a.moveTo(h*nc(p),h*rc(p)),a.arc(0,0,h,p,v,m));else{var y,b,x=v,w=p,C=v,M=p,k=g,L=g,S=u.apply(this,arguments)/2,V=S>uc&&(e?+e.apply(this,arguments):oc(h*h+d*d)),A=ec(Ql(d-h)/2,+i.apply(this,arguments)),N=A,D=A;if(V>uc){var T=cc(V/h*rc(S)),O=cc(V/d*rc(S));(k-=2*T)>uc?(C+=T*=m?1:-1,M-=T):(k=0,C=M=(v+p)/2),(L-=2*O)>uc?(x+=O*=m?1:-1,w-=O):(L=0,x=w=(v+p)/2)}var P=d*nc(x),E=d*rc(x),F=h*nc(M),B=h*rc(M);if(A>uc){var H,_=d*nc(w),I=d*rc(w),W=h*nc(C),R=h*rc(C);if(g<ac)if(H=function(t,n,i,e,r,o,u,a){var s=i-t,l=e-n,c=u-r,f=a-o,h=f*s-c*l;if(!(h*h<uc))return[t+(h=(c*(n-o)-f*(t-r))/h)*s,n+h*l]}(P,E,W,R,_,I,F,B)){var z=P-H[0],j=E-H[1],X=_-H[0],Y=I-H[1],q=1/rc(((f=(z*X+j*Y)/(oc(z*z+j*j)*oc(X*X+Y*Y)))>1?0:f<-1?ac:Math.acos(f))/2),$=oc(H[0]*H[0]+H[1]*H[1]);N=ec(A,(h-$)/(q-1)),D=ec(A,(d-$)/(q+1))}else N=D=0}L>uc?D>uc?(y=kc(W,R,P,E,d,D,m),b=kc(_,I,F,B,d,D,m),a.moveTo(y.cx+y.x01,y.cy+y.y01),D<A?a.arc(y.cx,y.cy,D,tc(y.y01,y.x01),tc(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,D,tc(y.y01,y.x01),tc(y.y11,y.x11),!m),a.arc(0,0,d,tc(y.cy+y.y11,y.cx+y.x11),tc(b.cy+b.y11,b.cx+b.x11),!m),a.arc(b.cx,b.cy,D,tc(b.y11,b.x11),tc(b.y01,b.x01),!m))):(a.moveTo(P,E),a.arc(0,0,d,x,w,!m)):a.moveTo(P,E),h>uc&&k>uc?N>uc?(y=kc(F,B,_,I,h,-N,m),b=kc(P,E,W,R,h,-N,m),a.lineTo(y.cx+y.x01,y.cy+y.y01),N<A?a.arc(y.cx,y.cy,N,tc(y.y01,y.x01),tc(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,N,tc(y.y01,y.x01),tc(y.y11,y.x11),!m),a.arc(0,0,h,tc(y.cy+y.y11,y.cx+y.x11),tc(b.cy+b.y11,b.cx+b.x11),m),a.arc(b.cx,b.cy,N,tc(b.y11,b.x11),tc(b.y01,b.x01),!m))):a.arc(0,0,h,M,C,m):a.lineTo(F,B)}else a.moveTo(0,0);if(a.closePath(),l)return a=null,l+""||null}return l.centroid=function(){var i=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-ac/2;return[nc(e)*i,rc(e)*i]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Zl(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Zl(+t),l):n},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Zl(+t),l):i},l.padRadius=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Zl(+t),l):e},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Zl(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Zl(+t),l):o},l.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:Zl(+t),l):u},l.context=function(t){return arguments.length?(a=null==t?null:t,l):a},l}mc.prototype;var Sc=function(t){var n=t.color,i=t.href,e=t.theme;return{root:{fill:n,cursor:i?"pointer":"default",stroke:e.semanticColors.bodyBackground,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:e.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:e.palette.neutralPrimary}}},Vc=function(t){function i(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={},n.currentRef=r.createRef(),n._isRTL=(0,u.jI)(),n._hoverOff=function(){n.props.hoverLeaveCallback()},n._onBlur=function(){n.props.onBlurCallback()},n._getAriaLabel=function(){var t,i=n.props.data.data,e=i.xAxisCalloutData||i.legend,r=i.yAxisCalloutData||i.data||0;return(null===(t=i.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(e?"".concat(e,", "):"")+"".concat(r,".")},n._renderArcLabel=function(t){var i=n.props,e=i.arc,o=i.data,u=i.innerRadius,a=i.outerRadius,s=i.showLabelsInPercent,l=i.totalValue,c=i.hideLabels,f=i.activeArc;if(c||Math.abs(o.endAngle-o.startAngle)<Math.PI/12||f!==o.data.legend&&""!==f)return null;var h=e.centroid(o),d=h[0],v=h[1],p=Math.sqrt(d*d+v*v),g=Math.max(u,a)+2,m=(o.startAngle+o.endAngle)/2,y=o.value;return r.createElement("text",{x:(0===p?0:d/p)*g,y:(0===p?0:v/p)*g,textAnchor:m>Math.PI!==n._isRTL?"end":"start",dominantBaseline:m>Math.PI/2&&m<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},s?ja(".0%")(0===l?0:y/l):ds(y))},n}return(0,n.C6)(i,t),i.getDerivedStateFromProps=function(t){return Ac(t),null},i.prototype.updateChart=function(t){Ac(t)},i.prototype.render=function(){var t,n=this.props,i=n.arc,e=n.href,u=n.focusedArcId,a=(0,o.Z)()(Sc,{color:this.props.color,href:e,theme:this.props.theme}),s=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,l=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return r.createElement("g",{ref:this.currentRef},!!u&&u===s&&r.createElement("path",{id:s+"focusRing",d:i(this.props.focusData),className:a.focusRing}),r.createElement("path",{id:s,d:i(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,s),className:a.root,"data-is-focusable":this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc,onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,opacity:l,onClick:e?this._redirectToUrl.bind(this,e):null===(t=this.props.data)||void 0===t?void 0:t.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(a.arcLabel))},i.prototype._onFocus=function(t,n){this.props.onFocusCallback(t,n,this.currentRef.current)},i.prototype._hoverOn=function(t,n){n.persist(),this.props.hoverOnCallback(t,n)},i.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},i.defaultProps={arc:Lc()},i}(r.Component);function Ac(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Nc=function(t){var n,i=t.theme;return{root:{},insideDonutString:{fontSize:jt.s.xLargePlus,fontWeight:jt.BO.semibold,fill:i.semanticColors.bodyText,selectors:(n={},n[jt.NK]={fill:"rgb(179, 179, 179)"},n)}}},Dc=(0,o.Z)(),Tc=function(t){function i(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n,e,o){var u=t&&t.data&&t.data.color;return r.createElement(Vc,{key:n,data:t,focusData:e,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:u,onFocusCallback:i._focusCallback,hoverOnCallback:i._hoverCallback,onBlurCallback:i.props.onBlurCallback,hoverLeaveCallback:i.props.hoverLeaveCallback,uniqText:i.props.uniqText,activeArc:i.props.activeArc,href:o,calloutId:i.props.calloutId,valueInsideDonut:i.props.valueInsideDonut,theme:i.props.theme,focusedArcId:i.props.focusedArcId,showLabelsInPercent:i.props.showLabelsInPercent,totalValue:i._totalValue,hideLabels:i.props.hideLabels})},i._focusCallback=function(t,n,e){i.props.onFocusCallback(t,n,e)},i._computeTotalValue=function(){var t=0;return i.props.data.forEach((function(n){t+=n.data})),t},i._hoverCallback=i._hoverCallback.bind(i),i._pieForFocusRing=fc().sort(null).value((function(t){return t.data})).padAngle(0),i}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,o=this._pieForFocusRing(e),u=i(e),a="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),s=Dc(Nc,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),r.createElement("g",{transform:a},u.map((function(n,i){return t.arcGenerator(n,i,o[i],t.props.href)})),this.props.valueInsideDonut&&r.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:s.insideDonutString},this.props.valueInsideDonut))},i.prototype.componentDidUpdate=function(){var t,n,i;t=Dc(Nc,{theme:this.props.theme}).insideDonutString,n=2*this.props.innerRadius-5,i=0,Pa(".".concat(t)).each((function(){for(var t=Oa(this),e=t.text().split(/\s+/).reverse(),r="",o=[],u=0,a=t.attr("y"),s=t.text(null).append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(u)).attr("x",0).attr("y",a).attr("dy",1.1*u+++"em");r=e.pop();)o.push(r),s.text(o.join(" ")+" "),s.node().getComputedTextLength()>n&&o.length>1&&(o.pop(),s.text(o.join(" ")+" "),o=[r],s=t.append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(u)).attr("x",0).attr("y",a).attr("dy",1.1*u+++"em").text(r));i+=1}))},i.prototype._hoverCallback=function(t,n){this.props.hoverOnCallback(t,n)},i.defaultProps={pie:fc().sort(null).value((function(t){return t.data})).padAngle(.02)},i}(r.Component),Oc={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},Pc={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},Ec={qualitative:Pc,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},Fc=Object.values(Pc),Bc=Object.values(Oc),Hc=function(t,n){if(0===t.length)return"";var i=Number(n);return i<t.length?t[i]:t[0]},_c=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Fc[(t+n)%Fc.length];return Hc(e,i)},Ic=function(t,n){if(void 0===n&&(n=!1),Bc.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=Ec[e][r];return Hc(o,n)}return t},Wc=(0,o.Z)(),Rc=function(t){function i(i){var e=t.call(this,i)||this;return e._closeCallout=function(){e.setState({showHover:!1})},e._focusCallback=function(t,n,i){e._currentHoverElement=i,e.setState({showHover:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:n,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},e._hoverCallback=function(t,n){e._calloutAnchorPoint!==t&&(e._calloutAnchorPoint=t,e._currentHoverElement=n,e.setState({showHover:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},e._onBlur=function(){e.setState({focusedArcId:""})},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({showHover:!1})},e._addDefaultColors=function(t){return t?t.map((function(t,i){var r,o,u;return u=void 0===t.color?_c(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted):Ic(t.color,null===(o=e.props.theme)||void 0===o?void 0:o.isInverted),(0,n.Cl)((0,n.Cl)({},t),{color:u})})):[]},e.state={showHover:!1,value:"",legend:"",_width:e.props.width||200,_height:e.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},e._hoverCallback=e._hoverCallback.bind(e),e._focusCallback=e._focusCallback.bind(e),e._hoverLeave=e._hoverLeave.bind(e),e._calloutId=v("callout"),e._uniqText=v("_Pie_"),e._emptyChartId=v("_DonutChart_empty"),e}return(0,n.C6)(i,t),i.getDerivedStateFromProps=function(t,i){var e,r;return t.width&&t.width!==i._width&&(e={_width:t.width}),t.height&&t.height!==i._height&&(r={_height:t.height-40}),(0,n.Cl)((0,n.Cl)({},e),r)},i.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},i.prototype.render=function(){var t=this,i=this.props,e=i.data,o=i.hideLegend,u=void 0!==o&&o,a=this._addDefaultColors(null==e?void 0:e.chartData);this._classNames=Wc(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var s=this._createLegends(a),l=this.props.hideLabels?0:80,c=this.props.hideLabels?0:40,f=Math.min(this.state._width-l,this.state._height-c)/2,h=this._elevateToMinimums(a.filter((function(t){return t.data>=0}))),d=this._valueInsideDonut(this.props.valueInsideDonut,h);return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n},onMouseLeave:this._handleChartMouseLeave},r.createElement(Rs,{direction:vs.horizontal,handleTabKey:1},r.createElement("div",null,r.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle,ref:function(n){return t._setViewBox(n)}},r.createElement(Tc,{width:this.state._width,height:this.state._height,outerRadius:f,innerRadius:this.props.innerRadius,data:h,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(d),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),r.createElement(Gn,(0,n.Cl)({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:y.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,fs(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):r.createElement(ys.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!u&&r.createElement("div",{className:this._classNames.legendContainer},s))},i.prototype._elevateToMinimums=function(t){var i=0,e=[];return t.forEach((function(t){i+=t.data})),t.forEach((function(t){e.push(.01*i>t.data&&t.data>0?(0,n.Cl)((0,n.Cl)({},t),{data:.01*i,yAxisCalloutData:void 0===t.yAxisCalloutData?t.data.toLocaleString():t.yAxisCalloutData}):t)})),e},i.prototype._setViewBox=function(t){var n,i;if(null!==t){var e=t.parentElement?t.parentElement.clientWidth:this.state._width,r=t.parentElement&&(null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight)>this.state._height?null===(i=t.parentElement)||void 0===i?void 0:i.offsetHeight:this.state._height,o="0 0 ".concat(e," ").concat(r);t.setAttribute("viewBox",o)}},i.prototype._createLegends=function(t){var i=this,e=t.map((function(t,n){var e=t.color;return{title:t.legend,color:e,action:function(){i.state.selectedLegend===t.legend?i.setState({selectedLegend:""}):i.setState({selectedLegend:t.legend})},hoverAction:function(){i._handleChartMouseLeave(),i.setState({activeLegend:t.legend})},onMouseOutAction:function(){i.setState({activeLegend:""})}}}));return r.createElement(Ul,(0,n.Cl)({legends:e,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},i.prototype._hoverLeave=function(){},i.prototype._valueInsideDonut=function(t,n){var i=this,e=this._getHighlightedLegend();if(void 0===t||""===e&&!this.state.showHover)return t;var r=t;return n.map((function(t,n){(t.legend===e||i.state.showHover&&t.legend===i.state.legend)&&(r=t.yAxisCalloutData?t.yAxisCalloutData:t.data)})),r},i.prototype._toLocaleString=function(t){var n=(0,Zn.U)(t,this.props.culture);return n?null==n?void 0:n.toString():t},i.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(t){return t.data>0})).length>0)},i.defaultProps={innerRadius:0,hideLabels:!0},i}(r.Component),zc=(0,t.I)(Rc,(function(t){var n=t.className,i=t.width,e=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},n],chart:{width:i,height:e,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(i,"px")}}}));function jc(t,n){if(t=function(t){let n;for(;n=t.sourceEvent;)t=n;return t}(t),void 0===n&&(n=t.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var e=i.createSVGPoint();return e.x=t.clientX,e.y=t.clientY,[(e=e.matrixTransform(n.getScreenCTM().inverse())).x,e.y]}if(n.getBoundingClientRect){var r=n.getBoundingClientRect();return[t.clientX-r.left-n.clientLeft,t.clientY-r.top-n.clientTop]}}return[t.pageX,t.pageY]}function Xc(t){this._context=t}function Yc(t){return new Xc(t)}function qc(t){return t[0]}function $c(t){return t[1]}function Uc(t,n){var i=Zl(!0),e=null,r=Yc,o=null,u=yc(a);function a(a){var s,l,c,f=(a=Gl(a)).length,h=!1;for(null==e&&(o=r(c=u())),s=0;s<=f;++s)!(s<f&&i(l=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,a),+n(l,s,a));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?qc:Zl(t),n="function"==typeof n?n:void 0===n?$c:Zl(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:Zl(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:Zl(+t),a):n},a.defined=function(t){return arguments.length?(i="function"==typeof t?t:Zl(!!t),a):i},a.curve=function(t){return arguments.length?(r=t,null!=e&&(o=r(e)),a):r},a.context=function(t){return arguments.length?(null==t?e=o=null:o=r(e=t),a):e},a}Xc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Gc,Zc,Kc,Jc=function(t){function i(n){var e=t.call(this,n)||this;return e._tooltipHost=r.createRef(),e._tooltipHostId=v("tooltip-host"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._getTargetElement=function(){if(e._tooltipHost.current)return e._tooltipHost.current},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipBlur=function(t){e._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var n=e.props.delay;if(i._currentVisibleTooltip&&i._currentVisibleTooltip!==e&&i._currentVisibleTooltip.dismiss(),i._currentVisibleTooltip=e,e.state.isOverflowing&&(!t.target||!Ls(t.target,e._getTargetElement())))if(e._clearDismissTimer(),e._clearOpenTimer(),n!==js.zero){var r=e._getDelayTime(n);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),r)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var n=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),n?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),n):e._toggleTooltip(!1),i._currentVisibleTooltip===e&&(i._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Pt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t})},e._getDelayTime=function(t){switch(t){case js.medium:return 300;case js.long:return 500;default:return 0}},e._wrapContent=function(){var t=e.props,n=t.content,i=t.wrapContent,r=t.maxWidth,o=void 0===r?Number.POSITIVE_INFINITY:r,u=t.maxHeight,a=!1;n&&i&&i(n,e._tooltipHostId,o,u)&&(a=!0),e.state.isOverflowing!==a&&e.setState({isOverflowing:a})},e.state={isTooltipVisible:!1,isOverflowing:!1},e._async=new Et(e),e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,i=t.content,e=t.tooltipProps,o=t.textProps,u=t.shouldReceiveFocus,a=void 0===u||u,s=this.state.isTooltipVisible,l=(0,n.Cl)({content:i,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},e),c=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!i||s&&!!i;return r.createElement(r.Fragment,null,r.createElement("text",(0,n.Cl)({},o,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":a&&this.state.isOverflowing}),i),c&&r.createElement(qs,(0,n.Cl)({},l)))},i.prototype.componentDidMount=function(){this._wrapContent()},i.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||this._wrapContent()},i.prototype.componentWillUnmount=function(){i._currentVisibleTooltip&&i._currentVisibleTooltip===this&&(i._currentVisibleTooltip=void 0),this._async.dispose()},i.defaultProps={delay:js.medium},i}(r.Component),Qc=(0,o.Z)(),tf=(0,r.lazy)((function(){return Promise.resolve().then(i.bind(i,395)).then((function(t){return{default:t.ChartHoverCard}}))})),nf=function(t){function i(i){var e,o,a,s,l,c,f,h,d,p,g,m,y,b,x,w,C,M,k,L,S,V,A,N,D,T,O=this;return(O=t.call(this,i)||this).minLegendContainerHeight=32,O._isRtl=(0,u.jI)(),O._isFirstRender=!0,O.isIntegralDataset=!0,O._multiValueCallout=function(t){var i=O._yValueHoverSubCountsExists(t.YValueHover);return r.createElement("div",{className:O._classNames.calloutContentRoot},r.createElement("div",{className:O._classNames.calloutDateTimeContainer,style:i?{marginBottom:"11px"}:{}},r.createElement("div",(0,n.Cl)({className:O._classNames.calloutContentX},fs(t.xAxisCalloutAccessibilityData,"text",!1)),(0,Zn.U)(t.hoverXValue,O.props.culture))),r.createElement("div",{className:O._classNames.calloutInfoContainer,style:i?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,e,o){var u=e+1===o.length,a=t.shouldDrawBorderBottom,s=void 0!==a&&a;return r.createElement("div",(0,n.Cl)({},fs(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(e),style:i?(0,n.Cl)({display:"inline-block"},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,n.Cl)({},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),O._getCalloutContent(t,e,i,u))})),!!t.descriptionMessage&&r.createElement("div",{className:O._classNames.descriptionMessage},t.descriptionMessage)))},O._getData=function(t,n){O.props.getGraphData&&O.props.getGraphData(t,n,O.state.containerHeight-O.state._removalValueForTextTuncate,O.state.containerWidth,O.xAxisElement,O.yAxisElement)},O._onChartLeave=function(){O.props.onChartMouseLeave&&O.props.onChartMouseLeave()},O._calculateChartMinWidth=function(){var t=10;if(!O.props.wrapXAxisLables&&O.props.rotateXAxisLables&&O.props.xAxisType===$a.StringAxis){var n=is(O._tickValues,".".concat(O._classNames.xAxis," text"));t+=Math.ceil(n*Math.cos(Math.PI/4))}else if(O.props.showXAxisLablesTooltip){var i=O._tickValues.map((function(t){var n=O.props.noOfCharsToTruncate||4;return t.toString().length>n?"".concat(t.toString().slice(0,n),"..."):t}));n=is(i,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n)}else if(O.props.wrapXAxisLables){var e=[];O._tickValues.forEach((function(t){e.push.apply(e,t.toString().split(/\s+/))})),n=is(e,".".concat(O._classNames.xAxis," text")),t+=Math.max(Math.ceil(n),10)}else n=is(O._tickValues,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n);var r=O.margins.left+O.margins.right+t*(O._tickValues.length-1);return[qa.GroupedVerticalBarChart,qa.VerticalBarChart,qa.VerticalStackedBarChart].includes(O.props.chartType)&&(r+=16),r},O.state={containerHeight:0,containerWidth:0,_width:O.props.width||600,_height:O.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},O.idForGraph=v("chart_"),O.titleMargin=8,O.idForDefaultTabbableElement=v("defaultTabbableElement_"),O.margins={top:null!==(o=null===(e=O.props.margins)||void 0===e?void 0:e.top)&&void 0!==o?o:20,bottom:null!==(s=null===(a=O.props.margins)||void 0===a?void 0:a.bottom)&&void 0!==s?s:35,right:O._isRtl?null!==(c=null===(l=O.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(h=null===(f=O.props.margins)||void 0===f?void 0:f.right)&&void 0!==h?h:null===(d=O.props)||void 0===d?void 0:d.secondaryYScaleOptions)?40:20,left:O._isRtl?(null!==(g=null===(p=O.props.margins)||void 0===p?void 0:p.right)&&void 0!==g?g:null===(m=O.props)||void 0===m?void 0:m.secondaryYScaleOptions)?40:20:null!==(b=null===(y=O.props.margins)||void 0===y?void 0:y.left)&&void 0!==b?b:40},void 0!==O.props.xAxisTitle&&""!==O.props.xAxisTitle&&(O.margins.bottom=null!==(w=null===(x=O.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==w?w:55),void 0!==O.props.yAxisTitle&&""!==O.props.yAxisTitle&&(O.margins.left=O._isRtl?(null!==(M=null===(C=O.props.margins)||void 0===C?void 0:C.right)&&void 0!==M?M:null===(k=O.props)||void 0===k?void 0:k.secondaryYAxistitle)?60:40:null!==(S=null===(L=O.props.margins)||void 0===L?void 0:L.left)&&void 0!==S?S:60,O.margins.right=O._isRtl?null!==(A=null===(V=O.props.margins)||void 0===V?void 0:V.left)&&void 0!==A?A:60:(null!==(D=null===(N=O.props.margins)||void 0===N?void 0:N.right)&&void 0!==D?D:null===(T=O.props)||void 0===T?void 0:T.secondaryYAxistitle)?60:40),O}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===qa.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var t=is(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0}))},i.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},i.prototype.componentDidUpdate=function(t){if(t.height===this.props.height&&t.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===$a.StringAxis){var n=function(t){var n=t.node,i=t.xAxis;if(null!==n&&null!==i){var e=0,r=[];Oa(n).call(i).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var n=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===n.length&&(r.push(n[0]),this.setAttribute("transform","translate(".concat(n[0],",0)rotate(-45)")))}var i=this.getBoundingClientRect(),o=i&&i.height;o>e&&(e=o)}));var o=0;return Oa(n).call(i).selectAll(".tick").each((function(){r.length>o&&(this.setAttribute("transform","translate(".concat(r[o],",").concat(e/2,")rotate(-45)")),o+=1)})),Math.floor(e/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==n+this.margins.bottom&&n>0&&this.setState({_removalValueForTextTuncate:n+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===qa.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var i=is(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==i&&this.setState({startFromX:i})}else 0!==this.state.startFromX&&this.setState({startFromX:0});t.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0})))},i.prototype.render=function(){var t,i,e,o,u,a,s,l,c,f,h=this,d=this.props,v=d.calloutProps,p=d.points,g=d.chartType,m=d.chartHoverProps,y=d.svgFocusZoneProps,b=d.svgProps,x=d.culture,w=d.dateLocalizeOptions,C=d.timeFormatLocale,M=d.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var k=(0,n.Cl)({},this.margins);this.props.chartType===qa.HorizontalBarChartWithAxis&&(this._isRtl?k.right+=this.state.startFromX:k.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(k);var L,S,V,A,N,D=null,T=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var O={domainNRangeValues:os(p,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,g,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},P={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElement,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:this.props.yMinValue||0,yMaxValue:this.props.yMaxValue||0,tickPadding:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:us(p,g,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},E=void 0,F=void 0;switch(this.props.xAxisType){case $a.NumericAxis:E=(t=Ka(O,this.props.chartType,x)).xScale,F=t.tickValues;break;case $a.DateAxis:i=function(t,n,i,e,r,o){var u,a=t.domainNRangeValues,s=t.xAxisElement,l=t.tickPadding,c=void 0===l?6:l,f=t.xAxistickSize,h=void 0===f?6:f,d=t.xAxisCount,v=void 0===d?6:d,p=yu().domain([a.dStartValue,a.dEndValue]).range([a.rStartValue,a.rEndValue]),g=fi(p).tickSize(h).tickPadding(c).ticks(v);if(o)g.tickFormat((function(t,n){return o(t)}));else if(i&&e)g.tickFormat((function(t,n){return t.toLocaleString(i,e)}));else if(r){var m=$r(r);g.tickFormat((function(t,n){return Ja(t,m)}))}n.tickValues&&g.tickValues(n.tickValues),void 0===i&&n.tickFormat&&g.tickFormat(Gr(n.tickFormat)),s&&Oa(s).call(g).selectAll("text").attr("aria-hidden","true");var y=(null!==(u=n.tickValues)&&void 0!==u?u:p.ticks(v)).map((function(t,n){var i=g.tickFormat();return i?i(t,n):Ja(t)}));return{xScale:p,tickValues:y}}(O,this.props.tickParams,x,w,C,M),E=i.xScale,F=i.tickValues;break;case $a.StringAxis:e=function(t,n,i,e){var r=t.domainNRangeValues,o=t.xAxisCount,u=void 0===o?6:o,a=t.xAxistickSize,s=void 0===a?6:a,l=t.tickPadding,c=void 0===l?10:l,f=t.xAxisPadding,h=void 0===f?.1:f,d=t.xAxisInnerPadding,v=t.xAxisOuterPadding,p=ku().domain(i).range([r.rStartValue,r.rEndValue]).paddingInner(void 0!==d?d:h).paddingOuter(void 0!==v?v:h),g=fi(p).tickSize(s).tickPadding(c).ticks(u).tickFormat((function(t,n){return hs(i[n],e)}));return t.xAxisElement&&Oa(t.xAxisElement).call(g).selectAll("text").attr("aria-hidden","true"),{xScale:p,tickValues:i.map(g.tickFormat())}}(O,this.props.tickParams,this.props.datasetForXAxisDomain,x),E=e.xScale,F=e.tickValues;break;default:E=(o=Ka(O,this.props.chartType,x)).xScale,F=o.tickValues}if(this._xScale=E,this._tickValues=F,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var B={node:this.xAxisElement,xAxis:E,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},H=E&&function(t){var n=t.node,i=t.xAxis,e=t.noOfCharsToTruncate,r=t.showXAxisLablesTooltip;if(null!==n){var o=Oa(n).call(i),u=0,a=[];return o.selectAll(".tick text").each((function(){var t=Oa(this),n=t.text(),i="".concat(t.text().slice(0,e),"..."),s=t.text().length,l=t.text().split(/\s+/).reverse();a.push(l.length);var c="",f=[],h=0,d=t.attr("y"),v=parseFloat(t.attr("dy")),p=t.text(null).append("tspan").attr("x",0).attr("y",d).attr("id","BaseSpan").attr("dy",v+"em").attr("data-",n);if(r&&s>e)p=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(i);else if(r&&s<=e)p=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(n);else{for(;c=l.pop();)f.push(c),p.text(f.join(" ")),p.node().getComputedTextLength()>10&&f.length>1&&(f.pop(),p.text(f.join(" ")),f=[c],p=t.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(c));var g=Math.max.apply(Math,a),m=12;o.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),n=t&&t.getBoundingClientRect(),i=n&&n.height;i>m&&(m=i)}));var y=4;g<=2?y=1:g>2&&g<=6?y=2:g>6&&g<=9&&(y=3),u=(g-y)*m}})),u>0?u:0}}(B);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==H&&this.setState({_removalValueForTextTuncate:H,isRemoveValCalculated:!1})}var _=void 0,I=void 0,W={yAxisDomainValues:[]};this.props.yAxisType&&this.props.yAxisType===Ua.StringAxis?_=function(t,n,i,e,r,o){return e===qa.HorizontalBarChartWithAxis?function(t,n,i,e,r){var o=t.containerHeight,u=t.tickPadding,a=void 0===u?12:u,s=t.margins,l=t.yAxisTickFormat,c=t.yAxisElement,f=ku().domain(n).range([o-s.bottom-e/2,s.top+e/2]),h=(i?ci(f):hi(f)).tickPadding(a).ticks(n);return l&&h.tickFormat(l),c&&Oa(c).call(h).selectAll("text"),f}(t,n,i,r):function(t,n,i){var e=t.containerHeight,r=t.tickPadding,o=void 0===r?12:r,u=t.margins,a=t.yAxisTickFormat,s=t.yAxisElement,l=t.yAxisPadding,c=void 0===l?0:l,f=ku().domain(n).range([e-u.bottom,u.top]).padding(c),h=(i?ci(f):hi(f)).tickPadding(o).tickValues(n).tickSize(0);return a&&h.tickFormat(a),s&&Oa(s).call(h).selectAll("text"),f}(t,n,i)}(P,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth):((null===(u=this.props)||void 0===u?void 0:u.secondaryYScaleOptions)&&(I=Qa({margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(a=this.props.secondaryYScaleOptions)||void 0===a?void 0:a.yMinValue)||0,yMaxValue:null!==(l=null===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMaxValue)&&void 0!==l?l:100,tickPadding:10,maxOfYVal:null!==(f=null===(c=this.props.secondaryYScaleOptions)||void 0===c?void 0:c.yMaxValue)&&void 0!==f?f:100,yMinMaxValues:us(p,g),yAxisPadding:this.props.yAxisPadding},this._isRtl,W,g,this.props.barwidth,this.isIntegralDataset,!0)),_=Qa(P,this._isRtl,W,g,this.props.barwidth,this.isIntegralDataset)),this.props.chartType===qa.HorizontalBarChartWithAxis&&_&&(L=this.yAxisElement,S=_,V=this.props.noOfCharsToTruncate||4,A=this.props.showYAxisLablesTooltip||!1,this.state.startFromX,N=this._isRtl,null!==L&&Oa(L).call(S).selectAll(".tick text").each((function(){var t=Oa(this),n=t.text(),i=N?"...".concat(t.text().slice(0,V)):"".concat(t.text().slice(0,V),"..."),e=t.text().length,r=A?1.5:1,o=t.attr("y"),u=t.attr("x"),a=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",u).attr("y",o).attr("id","BaseSpan").attr("dy",a+"em").attr("data-",n),A&&e>V?t.append("tspan").attr("id","showDots").attr("x",N?0:u).attr("y",o).attr("dy",a).attr("dx",r+0+"em").text(i):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",N?0:u).attr("y",o).attr("dx",r+0+"em").text(n)}))),this.props.getAxisData&&this.props.getAxisData(W),this._getData(E,_),T=this.props.children((0,n.Cl)((0,n.Cl)({},this.state),{xScale:E,yScale:_,yScaleSecondary:I})),!this.props.hideTooltip&&v.isCalloutVisible&&(D=this._generateCallout(v,m))}this._classNames=Qc(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var R,z={width:this.state.containerWidth,height:this.state.containerHeight};R=this.props.focusZoneDirection===vs.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:vs.horizontal;var j=z.width-this.margins.left-this.margins.right-this.state.startFromX,X=z.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return r.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return h.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&r.createElement("div",{id:this.idForDefaultTabbableElement}),r.createElement(Rs,(0,n.Cl)({direction:R,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},y),this._isFirstRender&&r.createElement("div",{id:this.idForDefaultTabbableElement}),r.createElement("svg",(0,n.Cl)({width:z.width,height:z.height,"aria-label":this.props.chartTitle,style:{display:"block"}},b),r.createElement("g",{ref:function(t){h.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(z.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&r.createElement(Jc,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+j/2,y:z.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle"},maxWidth:j,wrapContent:ns}),r.createElement("g",{ref:function(t){h.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?z.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&r.createElement("g",null,r.createElement("g",{ref:function(t){h.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:z.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&r.createElement(Jc,{content:this.props.secondaryYAxistitle,textProps:{x:(X-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:z.width-this.margins.right,textAnchor:"middle",transform:"translate(".concat(this._isRtl?this.margins.right/2-this.titleMargin:this.margins.right/2+this.titleMargin,",\n ").concat(z.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:X,wrapContent:ns})),T,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&r.createElement(Jc,{content:this.props.yAxisTitle,textProps:{x:(X-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?z.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(z.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:X,wrapContent:ns}))),!this.props.hideLegend&&r.createElement("div",{ref:function(t){return h.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),D&&r.createElement(r.Suspense,{fallback:r.createElement("div",null,"Loading...")},D))},i.prototype._generateCallout=function(t,i){return r.createElement(Gn,(0,n.Cl)({hidden:!(!this.props.hideTooltip&&t.isCalloutVisible),shouldUpdateWhenHidden:!0},t),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(t),!this.props.customizedCallout&&!this.props.isCalloutForStack&&r.createElement(tf,(0,n.Cl)({XValue:t.XValue,Legend:t.legend,YValue:t.YValue,color:t.color,culture:this.props.culture},i)))},i.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},i.prototype._getCalloutContent=function(t,n,i,e){var o,u=e?{}:{marginRight:"16px"},a=void 0!==t.index&&-1!==t.index,s=Qc(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:t.color,toDrawShape:a}),l=this.props.culture,c=(0,Zn.U)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var f=t.yAxisCalloutData;return r.createElement("div",{style:u},r.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(f).map((function(t){return r.createElement("div",{key:t,className:s.calloutBlockContainer},r.createElement("div",{className:s.calloutlegendText}," ",(0,Zn.U)(t,l)),r.createElement("div",{className:s.calloutContentY},(0,Zn.U)(f[t],l)))})))}return r.createElement("div",{style:i?u:{}},i&&r.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),r.createElement("div",{id:"".concat(n,"_").concat(t.y),className:s.calloutBlockContainer},a&&r.createElement(Yl,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:as[t.index%Object.keys(cs).length]}),r.createElement("div",null,r.createElement("div",{className:s.calloutlegendText}," ",t.legend),r.createElement("div",{className:s.calloutContentY},(0,Zn.U)(t.yAxisCalloutData?t.yAxisCalloutData:null!==(o=t.y)&&void 0!==o?o:t.data,l)))))},i.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n;if(t.props.hideLegend)n=0;else{var r=t.legendContainer&&getComputedStyle(t.legendContainer);n=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(r&&r.marginTop||"0")+parseFloat(r&&r.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var o=t.props.parentRef?t.props.parentRef:t.chartContainer,u=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,a=o.getBoundingClientRect().height>n?o.getBoundingClientRect().height:350;(i!==u||e!==a-n)&&t.setState({containerWidth:u,containerHeight:a-n})}}))},i}(r.Component);!function(t){t.shade30="#004578",t.shade20="#005a9e",t.shade10="#106ebe",t.primary="#0078d4",t.tint10="#2b88d8",t.tint20="#c7e0f4",t.tint30="#deecf9",t.tint40="#eff6fc"}(Gc||(Gc={})),function(t){t.black="#000000",t.gray220="#11100f",t.gray210="#161514",t.gray200="#1b1a19",t.gray190="#201f1e",t.gray180="#252423",t.gray170="#292827",t.gray160="#323130",t.gray150="#3b3a39",t.gray140="#484644",t.gray130="#605e5c",t.gray120="#797775",t.gray110="#8a8886",t.gray100="#979593",t.gray90="#a19f9d",t.gray80="#b3b0ad",t.gray70="#bebbb8",t.gray60="#c8c6c4",t.gray50="#d2d0ce",t.gray40="#e1dfdd",t.gray30="#edebe9",t.gray20="#f3f2f1",t.gray10="#faf9f8",t.white="#ffffff"}(Zc||(Zc={})),function(t){t.pinkRed10="#750b1c",t.red20="#a4262c",t.red10="#d13438",t.redOrange20="#603d30",t.redOrange10="#da3b01",t.orange30="#8e562e",t.orange20="#ca5010",t.orange10="#ffaa44",t.yellow10="#fce100",t.orangeYellow20="#986f0b",t.orangeYellow10="#c19c00",t.yellowGreen10="#8cbd18",t.green20="#0b6a0b",t.green10="#498205",t.greenCyan10="#00ad56",t.cyan40="#005e50",t.cyan30="#005b70",t.cyan20="#038387",t.cyan10="#00b7c3",t.cyanBlue20="#004e8c",t.cyanBlue10="#0078d4",t.blue10="#4f6bed",t.blueMagenta40="#373277",t.blueMagenta30="#5c2e91",t.blueMagenta20="#8764b8",t.blueMagenta10="#8378de",t.magenta20="#881798",t.magenta10="#c239b3",t.magentaPink20="#9b0062",t.magentaPink10="#e3008c",t.gray40="#393939",t.gray30="#7a7574",t.gray20="#69797e",t.gray10="#a0aeb2"}(Kc||(Kc={}));var ef=function(){var t,n=(0,a.z)();return!!(null===(t=null==n?void 0:n.navigator)||void 0===t?void 0:t.userAgent)&&n.navigator.userAgent.indexOf("rv:11.0")>-1}(),rf=(0,t.I)(nf,(function(t){var i,e,r,o,u,a,s,l,c=t.className,f=t.theme,h=t.isRtl,d=t.shouldHighlight,v=t.href,p=t.lineColor,g=void 0===p?"transparent":p,m=t.toDrawShape,y=f.fonts;return{root:[f.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],chartWrapper:{overflow:"auto"},axisTitle:[f.fonts.xSmall,{textAlign:"center",fontWeight:jt.BO.semibold,fontStyle:"normal",lineHeight:jt.s.medium,color:Zc.gray160,fill:f.semanticColors.bodyText}],xAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(i={},i[jt.NK]={fill:"rgb(179, 179, 179)"},i)}],line:{opacity:.2,stroke:f.semanticColors.bodyText,width:"1px",selectors:(e={},e[jt.NK]={opacity:.1,stroke:"rgb(179, 179, 179)"},e)},path:{display:"none"}}},yAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[jt.NK]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:f.semanticColors.bodyText,selectors:(o={},o[jt.NK]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!ef&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:d?"":"0.1",cursor:v?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:f.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,n.Cl)((0,n.Cl)({},y.small),{lineHeight:"16px",opacity:"0.85",color:f.semanticColors.bodySubtext})],calloutBlockContainer:[f.fonts.mediumPlus,{marginTop:"13px",color:f.semanticColors.bodyText},!m&&{selectors:(u={},u[jt.up]={forcedColorAdjust:"none"},u),borderLeft:"4px solid ".concat(g),paddingLeft:"8px"},m&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,n.Cl)((0,n.Cl)({},y.small),{lineHeight:"16px",selectors:(a={},a[jt.NK]={color:"rgb(255, 255, 255)"},a),color:f.semanticColors.bodySubtext}),calloutContentY:[(0,n.Cl)((0,n.Cl)({},y.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(s={},s[jt.NK]={color:"rgb(255, 255, 255)"},s)})],descriptionMessage:[f.fonts.small,{selectors:(l={},l[jt.NK]={color:"rgb(255, 255, 255)"},l),color:f.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(f.semanticColors.menuDivider)}]}})),of=(0,fn.J5)((function(t){return(0,fn.J5)((function(n){var i=(0,fn.J5)((function(t){return function(i){return n(i,t)}}));return function(e,r){return t(e,r?i(r):n)}}))}));function uf(t,n){return of(t)(n)}var af=function(t){if(void 0===t)return 0;var n=0;return"scrollTop"in t?n=t.scrollTop:"scrollY"in t&&(n=t.scrollY),Math.ceil(n)},sf=function(t,n){"scrollTop"in t?t.scrollTop=n:"scrollY"in t&&t.scrollTo(t.scrollX,n)},lf="spacer-",cf={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},ff=function(t){return t.getBoundingClientRect()},hf=ff,df=ff,vf=function(t){function i(i){var e=t.call(this,i)||this;return e._root=r.createRef(),e._surface=r.createRef(),e._pageRefs={},e._getDerivedStateFromProps=function(t,n){return t.items!==e.props.items||t.renderCount!==e.props.renderCount||t.startIndex!==e.props.startIndex||t.version!==e.props.version||!n.hasMounted&&e.props.renderEarly&&(0,Pn.S)()?(e._resetRequiredWindows(),e._requiredRect=null,e._measureVersion++,e._invalidatePageCache(),e._updatePages(t,n)):n},e._onRenderRoot=function(t){var i=t.rootRef,e=t.surfaceElement,o=t.divProps;return r.createElement("div",(0,n.Cl)({ref:i},o),e)},e._onRenderSurface=function(t){var i=t.surfaceRef,e=t.pageElements,o=t.divProps;return r.createElement("div",(0,n.Cl)({ref:i},o),e)},e._onRenderPage=function(t,i){for(var o,u=e.props,a=u.onRenderCell,s=u.onRenderCellConditional,l=u.role,c=t.page,f=c.items,h=void 0===f?[]:f,d=c.startIndex,v=(0,n.Tt)(t,["page"]),p=void 0===l?"listitem":"presentation",g=[],m=0;m<h.length;m++){var y=d+m,b=h[m],x=e.props.getKey?e.props.getKey(b,y):b&&b.key;null==x&&(x=y);var w=null!=s?s:a,C=null!==(o=null==w?void 0:w(b,y,e.props.ignoreScrollingState?void 0:e.state.isScrolling))&&void 0!==o?o:null;s&&!C||g.push(r.createElement("div",{role:p,className:"ms-List-cell",key:x,"data-list-index":y,"data-automationid":"ListCell"},C))}return r.createElement("div",(0,n.Cl)({},v),g)},xs(e),e.state={pages:[],isScrolling:!1,getDerivedStateFromProps:e._getDerivedStateFromProps,hasMounted:!1},e._estimatedPageHeight=0,e._totalEstimates=0,e._requiredWindowsAhead=0,e._requiredWindowsBehind=0,e._measureVersion=0,e._cachedPageHeights={},e._estimatedPageHeight=0,e._focusedIndex=-1,e._pageCache={},e}return(0,n.C6)(i,t),i.getDerivedStateFromProps=function(t,n){return n.getDerivedStateFromProps(t,n)},Object.defineProperty(i.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),i.prototype.scrollToIndex=function(t,n,i){void 0===i&&(i=0);for(var e=this.props.startIndex,r=e+this._getRenderCount(),o=this._allowedRect,u=0,a=1,s=e;s<r;s+=a){var l=this._getPageSpecification(this.props,s,o),c=l.height;if(a=l.itemCount,s<=t&&s+a>t){if(n&&this._scrollElement){for(var f=df(this._scrollElement),h=af(this._scrollElement),d={top:h,bottom:h+f.height},v=t-s,p=0;p<v;++p)u+=n(s+p);var g=u+n(t);switch(i){case 1:return void sf(this._scrollElement,u);case 2:return void sf(this._scrollElement,g-f.height);case 3:return void sf(this._scrollElement,(u+g-f.height)/2)}if(u>=d.top&&g<=d.bottom)return;u<d.top||g>d.bottom&&(u=g-f.height)}return void(this._scrollElement&&sf(this._scrollElement,u))}u+=c}},i.prototype.getStartItemIndexInView=function(t){for(var n=0,i=this.state.pages||[];n<i.length;n++){var e=i[n];if(!e.isSpacer&&(this._scrollTop||0)>=e.top&&(this._scrollTop||0)<=e.top+e.height){if(!t){var r=Math.floor(e.height/e.itemCount);return e.startIndex+Math.floor((this._scrollTop-e.top)/r)}for(var o=0,u=e.startIndex;u<e.startIndex+e.itemCount;u++){if(r=t(u),e.top+o<=this._scrollTop&&this._scrollTop<e.top+o+r)return u;o+=r}}}return 0},i.prototype.componentDidMount=function(){this._async=new Et(this),this._events=new rl(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=nt(this._root.current),this._scrollTop=0,this.setState((0,n.Cl)((0,n.Cl)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var t=function(t){var n;return(null!==(n=null==t?void 0:t.window)&&void 0!==n?n:"undefined"!=typeof window)?window:void 0}(this.context);this._events.on(t,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},i.prototype.componentDidUpdate=function(t,n){var i=this.props,e=this.state;this.state.pagesVersion!==n.pagesVersion&&(i.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(e.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(i,e)))):this._onAsyncIdleDebounced(),i.onPagesUpdated&&i.onPagesUpdated(e.pages))},i.prototype.componentWillUnmount=function(){var t,n;null===(t=this._async)||void 0===t||t.dispose(),null===(n=this._events)||void 0===n||n.dispose(),delete this._scrollElement},i.prototype.shouldComponentUpdate=function(t,n){var i=this.state.pages,e=n.pages,r=!1;if(!n.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&i.length===e.length)for(var o=0;o<i.length;o++){var u=i[o],a=e[o];if(u.key!==a.key||u.itemCount!==a.itemCount){r=!0;break}}else r=!0;return r},i.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,t.prototype.forceUpdate.call(this)},i.prototype.getTotalListHeight=function(){return this._surfaceRect.height},i.prototype.render=function(){for(var t=this.props,i=t.className,e=t.role,r=void 0===e?"list":e,o=t.onRenderSurface,u=t.onRenderRoot,a=this.state.pages,s=void 0===a?[]:a,l=[],c=q(this.props,Y),f=0,h=s;f<h.length;f++){var d=h[f];l.push(this._renderPage(d))}var v=o?uf(o,this._onRenderSurface):this._onRenderSurface;return(u?uf(u,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:v({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,n.Cl)((0,n.Cl)({},c),{className:$("ms-List",i),role:l.length>0?r:void 0,"aria-label":l.length>0?c["aria-label"]:void 0})})},i.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var n=t.onShouldVirtualize;return!n||n(t)},i.prototype._invalidatePageCache=function(){this._pageCache={}},i.prototype._renderPage=function(t){var n,i=this,e=this.props.usePageCache;if(e&&(n=this._pageCache[t.key])&&n.pageElement)return n.pageElement;var r=this._getPageStyle(t),o=this.props.onRenderPage,u=(void 0===o?this._onRenderPage:o)({page:t,className:"ms-List-page",key:t.key,ref:function(n){i._pageRefs[t.key]=n},style:r,role:"presentation"},this._onRenderPage);return e&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:u}),u},i.prototype._getPageStyle=function(t){var i=this.props.getPageStyle;return(0,n.Cl)((0,n.Cl)({},i?i(t):{}),t.items?{}:{height:t.height})},i.prototype._onFocus=function(t){for(var n=t.target;n!==this._surface.current;){var i=n.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}n=b(n)}},i.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},i.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},i.prototype._onAsyncScroll=function(){var t,n;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,n=this._materializedRect,t.top>=n.top&&t.left>=n.left&&t.bottom<=n.bottom&&t.right<=n.right)||this.setState(this._updatePages(this.props,this.state))},i.prototype._onAsyncIdle=function(){var t=this.props,n=t.renderedWindowsAhead,i=t.renderedWindowsBehind,e=this._requiredWindowsAhead,r=this._requiredWindowsBehind,o=Math.min(n,e+1),u=Math.min(i,r+1);o===e&&u===r||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=u,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(n>o||i>u)&&this._onAsyncIdleDebounced()},i.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||(this.setState({isScrolling:!1}),this._onAsyncIdle())},i.prototype._onAsyncResize=function(){this.forceUpdate()},i.prototype._updatePages=function(t,i){this._requiredRect||this._updateRenderRects(t,i);var e=this._buildPages(t,i),r=i.pages;return this._notifyPageChanges(r,e.pages,this.props),(0,n.Cl)((0,n.Cl)((0,n.Cl)({},i),e),{pagesVersion:{}})},i.prototype._notifyPageChanges=function(t,n,i){var e=i.onPageAdded,r=i.onPageRemoved;if(e||r){for(var o={},u=0,a=t;u<a.length;u++)(c=a[u]).items&&(o[c.startIndex]=c);for(var s=0,l=n;s<l.length;s++){var c;(c=l[s]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var f in o)o.hasOwnProperty(f)&&this._onPageRemoved(o[f])}},i.prototype._updatePageMeasurements=function(t){var n=!1;if(!this._shouldVirtualize())return n;for(var i=0;i<t.length;i++){var e=t[i];e.items&&(n=this._measurePage(e)||n)}return n},i.prototype._measurePage=function(t){var n=!1,i=this._pageRefs[t.key],e=this._cachedPageHeights[t.startIndex];if(i&&this._shouldVirtualize()&&(!e||e.measureVersion!==this._measureVersion)){var r={width:i.clientWidth,height:i.clientHeight};(r.height||r.width)&&(n=t.height!==r.height,t.height=r.height,this._cachedPageHeights[t.startIndex]={height:r.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+r.height)/(this._totalEstimates+1)),this._totalEstimates++)}return n},i.prototype._onPageAdded=function(t){var n=this.props.onPageAdded;n&&n(t)},i.prototype._onPageRemoved=function(t){var n=this.props.onPageRemoved;n&&n(t)},i.prototype._buildPages=function(t,i){var e=t.renderCount,r=t.items,o=t.startIndex,u=t.getPageHeight;e=this._getRenderCount(t);for(var a=(0,n.Cl)({},cf),s=[],l=1,c=0,f=null,h=this._focusedIndex,d=o+e,v=this._shouldVirtualize(t),p=0===this._estimatedPageHeight&&!u,m=this._allowedRect,y=function(n){var e=b._getPageSpecification(t,n,m),u=e.height,y=e.data,x=e.key;l=e.itemCount;var w,C,M=c+u-1,k=g(i.pages,(function(t){return!!t.items&&t.startIndex===n}))>-1,L=!m||M>=m.top&&c<=m.bottom,S=!b._requiredRect||M>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!p&&(S||L&&k)||!v||h>=n&&h<n+l||n===o){f&&(s.push(f),f=null);var V=Math.min(l,d-n),A=b._createPage(x,r.slice(n,n+V),n,void 0,void 0,y);A.top=c,A.height=u,b._visibleRect&&b._visibleRect.bottom&&(A.isVisible=M>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(A),S&&b._allowedRect&&(w=a,C={top:c,bottom:M,height:u,left:m.left,right:m.right,width:m.width},w.top=C.top<w.top||-1===w.top?C.top:w.top,w.left=C.left<w.left||-1===w.left?C.left:w.left,w.bottom=C.bottom>w.bottom||-1===w.bottom?C.bottom:w.bottom,w.right=C.right>w.right||-1===w.right?C.right:w.right,w.width=w.right-w.left+1,w.height=w.bottom-w.top+1)}else f||(f=b._createPage(lf+n,void 0,n,0,void 0,y,!0)),f.height=(f.height||0)+(M-c)+1,f.itemCount+=l;if(c+=M-c+1,p&&v)return"break"},b=this,x=o;x<d&&"break"!==y(x);x+=l);return f&&(f.key=lf+"end",s.push(f)),this._materializedRect=a,(0,n.Cl)((0,n.Cl)({},i),{pages:s,measureVersion:this._measureVersion})},i.prototype._getPageSpecification=function(t,n,i){var e=t.getPageSpecification;if(e){var r=e(n,i,t.items),o=r.itemCount,u=void 0===o?this._getItemCountForPage(n,i):o,a=r.height;return{itemCount:u,height:void 0===a?this._getPageHeight(n,i,u):a,data:r.data,key:r.key}}return{itemCount:u=this._getItemCountForPage(n,i),height:this._getPageHeight(n,i,u)}},i.prototype._getPageHeight=function(t,n,i){if(this.props.getPageHeight)return this.props.getPageHeight(t,n,i,this.props.items);var e=this._cachedPageHeights[t];return e?e.height:this._estimatedPageHeight||30},i.prototype._getItemCountForPage=function(t,n){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,n):10)||10},i.prototype._createPage=function(t,n,i,e,r,o,u){void 0===i&&(i=-1),void 0===e&&(e=n?n.length:0),void 0===r&&(r={}),t=t||"page-"+i;var a=this._pageCache[t];return a&&a.page?a.page:{key:t,startIndex:i,itemCount:e,items:n,style:r,top:0,height:0,data:o,isSpacer:u||!1}},i.prototype._getRenderCount=function(t){var n=t||this.props,i=n.items,e=n.startIndex,r=n.renderCount;return void 0===r?i?i.length-e:0:r},i.prototype._updateRenderRects=function(t,i,e){var r=t.renderedWindowsAhead,o=t.renderedWindowsBehind,u=i.pages;if(this._shouldVirtualize(t)){var s=this._surfaceRect||(0,n.Cl)({},cf),l=function(t){if(void 0===t)return 0;var n=0;return"scrollHeight"in t?n=t.scrollHeight:"document"in t&&(n=t.document.documentElement.scrollHeight),n}(this._scrollElement),c=af(this._scrollElement);this._surface.current&&(e||!u||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>.3333333333333333*this._estimatedPageHeight)&&(s=this._surfaceRect=hf(this._surface.current),this._scrollTop=c),!e&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var f=Math.max(0,-s.top),h=(0,a.z)(this._root.current),d={top:f,left:s.left,bottom:f+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=pf(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=pf(d,o,r),this._visibleRect=d}},i.defaultProps={startIndex:0,onRenderCell:function(t,n,i){return r.createElement(r.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},i.contextType=_t,i}(r.Component);function pf(t,n,i){var e=t.top-n*t.height,r=t.height+(n+i)*t.height;return{top:e,bottom:e+r,height:r,left:t.left,right:t.right,width:t.width}}var gf,mf=function(t){var i=r.useRef(null);r.useEffect((function(){if(i.current){var n=Oa(i.current),e=t.text.split(/\s+/),r=[],o=n.append("tspan"),u=0;return e.forEach((function(i){r.push(i),o.text(r.join(" "));var e=o.node();e&&e.getComputedTextLength()>t.width&&r.length>1&&(u++,r.pop(),o.text(r.join(" ")),r=[i],o=n.append("tspan").text(i).attr("dy",t.lineHeight).attr("x",t.x))})),n.attr("dy",-u*t.lineHeight),function(){n.selectAll("tspan").remove()}}})),t.lineHeight;var e=(0,n.Tt)(t,["lineHeight"]);return r.createElement("text",(0,n.Cl)({ref:i},e))},yf=function(t){var n,i,e,o=r.useRef(null),u=r.useState(!1),a=u[0],s=u[1],l=null;if(a){var c=t.labelDef.aggregatedIdx.map((function(n){return t.lineDefs[n].onRenderCard})).filter((function(t){return!!t}));c.length>0&&(l=r.createElement(Gn,{target:o.current,onDismiss:function(){return s(!1)},setInitialFocus:!0,role:"dialog"},r.createElement(Rs,{isCircularNavigation:!0,direction:vs.vertical},r.createElement(vf,{items:c,role:"alert","aria-roledescription":" ",onRenderCell:function(t){return r.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var f=t.textColor?Ic(t.textColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(i=t.theme)||void 0===i?void 0:i.semanticColors.messageText;return e=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),r.createElement(r.Fragment,null,r.createElement("g",{ref:o,onClick:function(){return s(!0)},"data-is-focusable":!0,style:{cursor:"pointer"}},r.createElement(mf,{text:e,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:f})),l)},bf=function(t){var i,e,o=t.labelWidth?t.labelWidth:105,u=t.chartYTop-20,a=u+7,s=t.scale.range(),l=t.events.map((function(i){return(0,n.Cl)((0,n.Cl)({},i),{x:t.scale(i.date)})}));l.sort((function(t,n){return+t.date-+n.date}));var c=t.strokeColor?Ic(t.strokeColor,null===(i=t.theme)||void 0===i?void 0:i.isInverted):null===(e=t.theme)||void 0===e?void 0:e.palette.black,f=function(t,n){for(var i=[],e=[],r=0,o=t;r<o.length;r++){var u=o[r],a=n(u);-1===i.indexOf(a)&&(e.push(u),i.push(a))}return e}(l,(function(t){return t.date.toString()})).map((function(n,i){return r.createElement("line",{key:i,x1:n.x,x2:n.x,y1:a,y2:t.chartYBottom,stroke:c,strokeDasharray:"8"})})),h=function(t,n,i,e){var r=function(e,r){if(r===t.length)return[];var u=t[r].x,a=u-n;return u<e?[]:r===t.length-1?e<a?[{x:u,anchor:"end",aggregatedIdx:[r]}]:u+n<i?[{x:u,anchor:"start",aggregatedIdx:[r]}]:[]:o(r,e<a?"end":"start")},o=function(e,o){var u="end"===o?t[e].x:t[e].x+n,a=g(t,(function(t){return t.x>u&&(t.x-n>=u||t.x+n<i)}),e+1);-1===a&&(a=t.length);for(var s=[],l=e;l<a;l++)s.push(l);var c=r(u,a);return c.unshift({x:t[e].x,anchor:o,aggregatedIdx:s}),c};return r(e,0)}(l,o+5,s[1],s[0]).map((function(i,e){return r.createElement(yf,(0,n.Cl)({key:e,theme:t.theme},{lineDefs:l,labelDef:i,textY:u,textWidth:o,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel}))}));return r.createElement(r.Fragment,null,f,h)},xf=(0,o.Z)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(gf||(gf={}));var wf=xi((function(t){return t.x})).left,Cf=function(t){function i(i){var e=t.call(this,i)||this;return e._xAxisScale="",e._yAxisScale="",e.eventLabelHeight=36,e._isRTL=(0,u.jI)(),e._injectIndexPropertyInLineChartData=function(t){var i=e.props.allowMultipleShapesForPoints,r=void 0!==i&&i;return t?t.map((function(t,i){var o,u,a;return a=void 0===t.color?_c(i,0,null===(o=e.props.theme)||void 0===o?void 0:o.isInverted):Ic(t.color,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted),(0,n.Cl)((0,n.Cl)({},t),{index:r?i:-1,color:a})})):[]},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getMargins=function(t){e.margins=t},e._initializeLineChartData=function(t,n,i,r,o){e._xAxisScale=t,e._yAxisScale=n,e._renderedColorFillBars=e.props.colorFillBars?e._createColorFillBars(i):[],e.lines=e._createLines(o,i)},e._handleSingleLegendSelectionAction=function(t){e.state.selectedLegend===t.legend?(e.setState({selectedLegend:""}),e._handleLegendClick(t,null)):(e.setState({selectedLegend:t.legend}),e._handleLegendClick(t,t.legend))},e._onHoverCardHide=function(){e.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getBoxWidthOfShape=function(t,n,i){var r=e.props,o=r.allowMultipleShapesForPoints,u=void 0!==o&&o,a=r.strokeWidth,s=void 0===a?4:a,l=e.state.activePoint;return u?l===t?gf.hoverSize:1===n||i?2.5*s:gf.invisibleSize:l===t?gf.hoverSize:gf.invisibleSize},e._getPath=function(t,n,i,r,o,u){var a=e.props.allowMultipleShapesForPoints,s=void 0!==a&&a,l=e._getBoxWidthOfShape(i,r,o),c=s?u%Object.keys(cs).length:0,f=cs[c].widthRatio;return function(t,n,i,e){return["M".concat(t-i/2," ").concat(n,"\n A").concat(i/2," ").concat(i/2," 0 1 0 ").concat(t+i/2," ").concat(n,"\n M").concat(t-i/2," ").concat(n,"\n A ").concat(i/2," ").concat(i/2," 0 1 1 ").concat(t+i/2," ").concat(n,"\n "),"M".concat(t-i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n+i/2,"\n Z"),"M".concat(t-i/2," ").concat(n-.2886*i,"\n H ").concat(t+i/2,"\n L").concat(t," ").concat(n+.5774*i," Z"),"M".concat(t," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n,"\n L").concat(t," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.5774*i,"\n L").concat(t+i/2," ").concat(n+.2886*i,"\n L").concat(t-i/2," ").concat(n+.2886*i," Z"),"M".concat(t-.5*i," ").concat(n-.866*i,"\n L").concat(t+.5*i," ").concat(n-.866*i,"\n L").concat(t+i," ").concat(n,"\n L").concat(t+.5*i," ").concat(n+.866*i,"\n L").concat(t-.5*i," ").concat(n+.866*i,"\n L").concat(t-i," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.851*i,"\n L").concat(t+.6884*i," ").concat(n-.2633*i,"\n L").concat(t+.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.6884*i," ").concat(n-.2633*i,"\n Z"),"M".concat(t-.5001*i," ").concat(n-1.207*i,"\n L").concat(t+.5001*i," ").concat(n-1.207*i,"\n L").concat(t+1.207*i," ").concat(n-.5001*i,"\n L").concat(t+1.207*i," ").concat(n+.5001*i,"\n L").concat(t+.5001*i," ").concat(n+1.207*i,"\n L").concat(t-.5001*i," ").concat(n+1.207*i,"\n L").concat(t-1.207*i," ").concat(n+.5001*i,"\n L").concat(t-1.207*i," ").concat(n-.5001*i,"\n Z")][e]}(t,n,l=f>1?l/f:l,c)},e._getPointFill=function(t,n,i,r){var o=e.state.activePoint,u=e.props,a=u.theme;return u.allowMultipleShapesForPoints,o===n?a.semanticColors.bodyBackground:t},e._createColorFillBars=function(t){var n,i=[];e.state.isSelectedLegend?e._colorFillBars=e.state.selectedColorBarLegend:e._colorFillBars=e.props.colorFillBars;for(var o=us(e._points,qa.LineChart),u=0;u<e._colorFillBars.length;u++){var a=e._colorFillBars[u],s=v(a.legend.replace(/\W/g,"")),l=Ic(a.color,null===(n=e.props.theme)||void 0===n?void 0:n.isInverted);a.applyPattern&&i.push(e._getStripePattern(l,u));for(var c=0;c<a.data.length;c++){var f=a.data[c].startX,h=a.data[c].endX,d=e._legendHighlighted(a.legend)||e._noLegendHighlighted()||e.state.isSelectedLegend?e._getColorFillBarOpacity(a):.1;i.push(r.createElement("rect",{fill:a.applyPattern?"url(#".concat(e._colorFillBarPatternId,"_").concat(u,")"):l,fillOpacity:d,x:e._isRTL?e._xAxisScale(h):e._xAxisScale(f),y:e._yAxisScale(o.endValue)-3,width:Math.abs(e._xAxisScale(h)-e._xAxisScale(f)),height:e._yAxisScale(e.props.yMinValue||0)-e._yAxisScale(o.endValue)+3,key:"".concat(s).concat(c)}))}}return i},e._getStripePattern=function(t,n){return r.createElement("pattern",{id:"".concat(e._colorFillBarPatternId,"_").concat(n),width:16,height:16,key:"".concat(e._colorFillBarPatternId,"_").concat(n),patternUnits:"userSpaceOnUse"},r.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},e._checkInGap=function(t,n,i){for(var e=i,r=!1;e<n.length&&t>n[e].endIndex;)e++;return e<n.length&&t>n[e].startIndex&&t<=n[e].endIndex&&(r=!0),{isInGap:r,gapIndex:e}},e._onMouseOverLargeDataset=function(t,n,i){i.persist();var r=e.props.data.lineChartData,o=e._xAxisScale.invert(jc(i)[0],document.getElementById(e._rectId)),u=wf(r[t].data,o),a=r[t].data[u-1],s=r[t].data[u],l=null,c=null;if(void 0===a&&void 0!==s)l=s.x,c=u;else if(void 0!==a&&void 0===s)l=a.x,c=u-1;else{var f=void 0,h=void 0,d=void 0;switch(ls(r[t].data[0].x,!0)){case $a.DateAxis:f=new Date(o).getTime(),h=a.x.getTime(),d=s.x.getTime(),l=Math.abs(f-h)>Math.abs(f-d)?s.x:a.x,c=Math.abs(f-h)>Math.abs(f-d)?u:u-1;break;case $a.NumericAxis:f=o,h=a.x,d=s.x,l=Math.abs(f-h)>Math.abs(f-d)?s.x:a.x,c=Math.abs(f-h)>Math.abs(f-d)?u:u-1}}var v=r[t].data[c],p=v.xAxisCalloutData,g=v.xAxisCalloutAccessibilityData,y=l instanceof Date?l.toLocaleString():l,b=l instanceof Date?l.getTime():l,x=m(e._calloutPoints,(function(t){return t.x===b})),w=r[t].data[c],C=null===e.state.nearestCircleToHighlight||null!==e.state.nearestCircleToHighlight&&null!==w&&(e.state.nearestCircleToHighlight.x!==w.x||e.state.nearestCircleToHighlight.y!==w.y);x&&C&&(e._uniqueCallOutID="#".concat(e._staticHighlightCircle,"_").concat(t),Oa("#".concat(e._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(e._xAxisScale(w.x))).attr("cy","".concat(e._yAxisScale(w.y))).attr("visibility","visibility"),Oa("#".concat(e._verticalLine)).attr("transform",(function(){return"translate(".concat(e._xAxisScale(w.x),", ").concat(e._yAxisScale(w.y),")")})).attr("visibility","visibility").attr("y2","".concat(n-e._yAxisScale(w.y))),e.setState({nearestCircleToHighlight:w,isCalloutVisible:!0,refSelected:"#".concat(e._staticHighlightCircle,"_").concat(t),stackCalloutProps:x,YValueHover:x.values,dataPointCalloutProps:x,hoverXValue:p||y,xAxisCalloutAccessibilityData:g,activePoint:"",activeLine:t})),x||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:w,activePoint:"",activeLine:t})},e._handleFocus=function(t,n,i,r,o){e._uniqueCallOutID=r;var u=n instanceof Date?n.toLocaleDateString():n,a=n instanceof Date?n.getTime():n,s=m(e._calloutPoints,(function(t){return t.x===a}));if(s){var l=e;Oa("#".concat(e._verticalLine)).attr("transform",(function(){return"translate(".concat(l._xAxisScale(n),", 0)")})).attr("visibility","visibility"),e._refArray.forEach((function(n){n.index===t&&e.setState({isCalloutVisible:!0,refSelected:n.refElement,hoverXValue:i||""+u,YValueHover:s.values,stackCalloutProps:s,dataPointCalloutProps:s,activePoint:r,xAxisCalloutAccessibilityData:o})}))}else e.setState({activePoint:r})},e._handleHover=function(t,n,i,r,o,u,a){a.persist();var s=t instanceof Date?t.toLocaleDateString():t,l=t instanceof Date?t.getTime():t,c=e,f=m(e._calloutPoints,(function(t){return t.x===l}));f?(Oa("#".concat(e._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(t),", ").concat(c._yAxisScale(n),")")})).attr("visibility","visibility").attr("y2","".concat(i-c._yAxisScale(n))),e._uniqueCallOutID!==o&&(e._uniqueCallOutID=o,e.setState({isCalloutVisible:!0,refSelected:"#".concat(o),hoverXValue:r||""+s,YValueHover:f.values,stackCalloutProps:f,dataPointCalloutProps:f,activePoint:o,xAxisCalloutAccessibilityData:u,nearestCircleToHighlight:null,activeLine:null}))):e.setState({activePoint:o,nearestCircleToHighlight:null,activeLine:null})},e._getClickHandler=function(t){return t?{onClick:t}:{}},e._handleMouseOut=function(){Oa("#".concat(e._verticalLine)).attr("visibility","hidden")},e._handleChartMouseLeave=function(){e._uniqueCallOutID=null,e.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},e._handleLegendClick=function(t,n){t.onLegendClick&&t.onLegendClick(n)},e._handleMultipleLineLegendSelectionAction=function(t){var i,r=e.state.selectedLegendPoints.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);i=-1===r?(0,n.fX)((0,n.fX)([],e.state.selectedLegendPoints,!0),[t],!1):e.state.selectedLegendPoints.slice(0,r).concat(e.state.selectedLegendPoints.slice(r+1)),e.props.data&&i.length===e.props.data.lineChartData.length&&(e.props.colorFillBars&&e.props.colorFillBars.length===e.state.selectedColorBarLegend.length||!e.props.colorFillBars)?e._clearMultipleLegendSelections():i.length||e.state.selectedColorBarLegend.length?e.setState({selectedLegendPoints:i,isSelectedLegend:!0}):e._clearMultipleLegendSelections();var o=i.map((function(t){return t.legend}));e._handleLegendClick(t,o)},e._handleMultipleColorFillBarLegendSelectionAction=function(t){var i,r=e.state.selectedColorBarLegend.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);(i=-1===r?(0,n.fX)((0,n.fX)([],e.state.selectedColorBarLegend,!0),[t],!1):e.state.selectedColorBarLegend.slice(0,r).concat(e.state.selectedColorBarLegend.slice(r+1))).length===(e.props.colorFillBars&&e.props.colorFillBars.length)&&(e.props.data&&e.props.data.lineChartData.length===e.state.selectedLegendPoints.length||!e.props.data)?e._clearMultipleLegendSelections():i.length||e.state.selectedLegendPoints.length?e.setState({selectedColorBarLegend:i,isSelectedLegend:!0}):e._clearMultipleLegendSelections();var o=i.map((function(t){return t.legend}));e._handleLegendClick(t,o)},e._clearMultipleLegendSelections=function(){e.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},e._getAriaLabel=function(t,n){var i,r=e._points[t],o=r.data[n],u=o.x instanceof Date?o.x.toLocaleString():o.x,a=o.xAxisCalloutData||u,s=r.legend,l=o.yAxisCalloutData||o.y;return(null===(i=o.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(a,". ").concat(s,", ").concat(l,".")},e.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null},e._refArray=[],e._points=e._injectIndexPropertyInLineChartData(e.props.data.lineChartData),e._colorFillBars=[],e._calloutPoints=ts(e._points)||[],e._circleId=v("circle"),e._lineId=v("lineID"),e._borderId=v("borderID"),e._verticalLine=v("verticalLine"),e._colorFillBarPatternId=v("colorFillBarPattern"),e._tooltipId=v("LineChartTooltipId_"),e._rectId=v("containerRectLD"),e._staticHighlightCircle=v("staticHighlightCircle"),e._createLegendsMemoized=(0,fn.J9)((function(t){return e._createLegends(t)})),e._firstRenderOptimization=!0,e._emptyChartId=v("_LineChart_empty"),i.eventAnnotationProps&&i.eventAnnotationProps.labelHeight&&(e.eventLabelHeight=i.eventAnnotationProps.labelHeight),e}return(0,n.C6)(i,t),i.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=ts(this._points)||[])},i.prototype.render=function(){var t=this,i=this.props,e=i.tickValues,o=i.tickFormat,u=i.eventAnnotationProps,a=i.legendProps,s=i.data;this._points=this._injectIndexPropertyInLineChartData(s.lineChartData);var l=rs(this._points),c=this._points;a&&a.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=ts(c));var f=null;this.props.hideLegend||(f=this._createLegendsMemoized(this._points));var h=(0,n.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),d={tickValues:e,tickFormat:o};return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement(rf,(0,n.Cl)({},this.props,{chartTitle:s.chartTitle,points:c,chartType:qa.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:d,legendBars:f,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:l?$a.DateAxis:$a.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(i){return t._xAxisScale=i.xScale,t._yAxisScale=i.yScale,r.createElement(r.Fragment,null,r.createElement("g",null,r.createElement("line",{x1:0,y1:0,x2:0,y2:i.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?r.createElement("rect",{id:t._rectId,width:i.containerWidth,height:i.containerHeight,fill:"transparent"}):r.createElement(r.Fragment,null),r.createElement("g",null,t._renderedColorFillBars,t.lines),u&&r.createElement(bf,(0,n.Cl)({theme:t.props.theme},u,{scale:i.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:i.containerHeight-35}))))}}))},i.prototype._createLegends=function(t){var i=this,e=this.props,o=e.legendProps,u=e.allowMultipleShapesForPoints,a=void 0!==u&&u,s=!(!o||!o.canSelectMultipleLegends),l=t.map((function(t){var e=t.color;return(0,n.Cl)((0,n.Cl)({title:t.legend,color:e,action:function(){s?i._handleMultipleLineLegendSelectionAction(t):i._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){i.setState({activeLegend:""})},hoverAction:function(){i._handleChartMouseLeave(),i.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),a&&{shape:as[t.index%Object.keys(cs).length]})})),c=this.props.colorFillBars?this.props.colorFillBars.map((function(t,n){var e,r=t.legend,o=Ic(t.color,null===(e=i.props.theme)||void 0===e?void 0:e.isInverted);return{title:r,color:o,action:function(){s?i._handleMultipleColorFillBarLegendSelectionAction(t):i._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){i.setState({activeLegend:""})},hoverAction:function(){i._handleChartMouseLeave(),i.setState({activeLegend:r})},opacity:i._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return r.createElement(Ul,(0,n.Cl)({legends:(0,n.fX)((0,n.fX)([],l,!0),c,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},s&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},i.prototype._createLines=function(t,i){var e,o,u,a,s,l,c,f,h,d,v,p,g,m,y,b,x,w,C,M,k,L,S,V,A=this,N=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var D=function(t){var D=[],O=[],P=[],E=T._points[t].legend,F=T._points[t].color,B=T.state.activePoint,H=T.props.theme,_=i-T.margins.bottom+6;if(1===T._points[t].data.length){var I=T._points[t].data[0],W=I.x,R=I.y,z=I.xAxisCalloutData,j=I.xAxisCalloutAccessibilityData,X="".concat(T._circleId,"_").concat(t),Y=T._legendHighlighted(E)||T._noLegendHighlighted()||T.state.isSelectedLegend;P.push(r.createElement("circle",(0,n.Cl)({id:X,key:X,r:B===X?5.5:3.5,cx:T._xAxisScale(W),cy:T._yAxisScale(R),fill:B===X?H.semanticColors.bodyBackground:F,opacity:Y?1:.1,onMouseOver:T._handleHover.bind(T,W,R,_,z,X,j),onMouseMove:T._handleHover.bind(T,W,R,_,z,X,j),onMouseOut:T._handleMouseOut,strokeWidth:B===X?4:0,stroke:B===X?F:"",role:"img","aria-label":T._getAriaLabel(t,0),"data-is-focusable":Y,ref:function(t){A._refCallback(t,X)},onFocus:function(){return A._handleFocus(X,W,z,X,j)},onBlur:T._handleMouseOut},T._getClickHandler(T._points[t].data[0].onDataPointClick))))}var q=0,$=null!==(o=null===(e=T._points[t].gaps)||void 0===e?void 0:e.sort((function(t,n){return t.startIndex-n.startIndex})))&&void 0!==o?o:[];if(T.props.optimizeLargeData&&T._points[t].data.length>1){for(var U=Uc().x((function(t){return A._xAxisScale(t[0])})).y((function(t){return A._yAxisScale(t[1])})).curve(Yc),G="".concat(T._lineId,"_").concat(t),Z="".concat(T._borderId,"_").concat(t),K=(null===(u=T._points[t].lineOptions)||void 0===u?void 0:u.strokeWidth)||T.props.strokeWidth||4,J=(Y=T._legendHighlighted(E)||T._noLegendHighlighted()||T.state.isSelectedLegend,[]),Q=0;Q<T._points[t].data.length;Q++)J.push([T._points[t].data[Q].x instanceof Date?T._points[t].data[Q].x.getTime():T._points[t].data[Q].x,T._points[t].data[Q].y]);if(Y){var tt=(null===(a=T._points[t].lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(T._points[t].lineOptions.lineBorderWidth.toString()):0;tt>0&&O.push(r.createElement("path",{id:Z,key:Z,d:U(J),fill:"transparent",strokeLinecap:null!==(l=null===(s=T._points[t].lineOptions)||void 0===s?void 0:s.strokeLinecap)&&void 0!==l?l:"round",strokeWidth:Number.parseFloat(K.toString())+tt,stroke:(null===(c=T._points[t].lineOptions)||void 0===c?void 0:c.lineBorderColor)||H.semanticColors.bodyBackground,opacity:1})),D.push(r.createElement("path",(0,n.Cl)({id:G,key:G,d:U(J),fill:"transparent","data-is-focusable":!0,stroke:F,strokeWidth:K,strokeLinecap:null!==(h=null===(f=T._points[t].lineOptions)||void 0===f?void 0:f.strokeLinecap)&&void 0!==h?h:"round",onMouseMove:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOver:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOut:T._handleMouseOut},T._getClickHandler(T._points[t].onLineClick),{opacity:1,role:"img","aria-label":"".concat(E,", series ").concat(t+1," of ").concat(T._points.length," with ").concat(T._points[t].data.length," data points.")})))}else D.push(r.createElement("path",{id:G,key:G,d:U(J),fill:"transparent","data-is-focusable":!1,stroke:F,strokeWidth:K,strokeLinecap:null!==(v=null===(d=T._points[t].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==v?v:"round",opacity:.1,role:"img","aria-label":"".concat(E,", series ").concat(t+1," of ").concat(T._points.length," with ").concat(T._points[t].data.length," data points.")}));var nt=null!==T.state.activeLine&&T.state.activeLine===t;P.push(r.createElement("circle",{id:"".concat(T._staticHighlightCircle,"_").concat(t),key:"".concat(T._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:H.semanticColors.bodyBackground,strokeWidth:4,stroke:F,visibility:nt?"visibility":"hidden",onMouseMove:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOver:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOut:T._handleMouseOut}))}else if(!T.props.optimizeLargeData)for(var it=function(i){var e=T._checkInGap(i,$,q),o=e.isInGap;q=e.gapIndex;var u="".concat(T._lineId,"_").concat(t,"_").concat(i),a="".concat(T._borderId,"_").concat(t,"_").concat(i),s="".concat(T._circleId,"_").concat(t,"_").concat(i),l=T._points[t].data[i-1],c=l.x,f=l.y,h=l.xAxisCalloutData,d=l.xAxisCalloutAccessibilityData,v=T._points[t].data[i],N=v.x,I=v.y,W=T._getPath(T._xAxisScale(c),T._yAxisScale(f),s,i,!1,T._points[t].index),R=(null===(p=T._points[t].lineOptions)||void 0===p?void 0:p.strokeWidth)||T.props.strokeWidth||4,z=T._legendHighlighted(E)||T._noLegendHighlighted()||T.state.isSelectedLegend,j=T._points[t].hideNonActiveDots&&B!==s;if(P.push(r.createElement("path",(0,n.Cl)({id:s,key:s,d:W,"data-is-focusable":z,onMouseOver:T._handleHover.bind(T,c,f,_,h,s,d),onMouseMove:T._handleHover.bind(T,c,f,_,h,s,d),onMouseOut:T._handleMouseOut,onFocus:function(){return A._handleFocus(u,c,h,s,d)},onBlur:T._handleMouseOut},T._getClickHandler(T._points[t].data[i-1].onDataPointClick),{opacity:z&&!j?1:.01,fill:T._getPointFill(F,s,i,!1),stroke:F,strokeWidth:R,role:"img","aria-label":T._getAriaLabel(t,i-1)}))),i+1===T._points[t].data.length){var X="".concat(s).concat(i,"L"),Y="".concat(s).concat(i,"D"),U=T._points[t].hideNonActiveDots&&B!==X;W=T._getPath(T._xAxisScale(N),T._yAxisScale(I),X,i,!0,T._points[t].index);var G=T._points[t].data[i],Z=G.xAxisCalloutData,K=G.xAxisCalloutAccessibilityData;P.push(r.createElement(r.Fragment,{key:"".concat(X,"_container")},r.createElement("path",(0,n.Cl)({id:X,key:X,d:W,"data-is-focusable":z,onMouseOver:T._handleHover.bind(T,N,I,_,Z,X,K),onMouseMove:T._handleHover.bind(T,N,I,_,Z,X,K),onMouseOut:T._handleMouseOut,onFocus:function(){return A._handleFocus(u,N,Z,X,K)},onBlur:T._handleMouseOut},T._getClickHandler(T._points[t].data[i].onDataPointClick),{opacity:z&&!U?1:.01,fill:T._getPointFill(F,X,i,!0),stroke:F,strokeWidth:R,role:"img","aria-label":T._getAriaLabel(t,i)})),r.createElement("circle",{id:Y,key:Y,r:8,cx:T._xAxisScale(N),cy:T._yAxisScale(I),opacity:0,width:0,onMouseOver:T._handleHover.bind(T,N,I,_,Z,X,K),onMouseMove:T._handleHover.bind(T,N,I,_,Z,X,K),onMouseOut:T._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:T._handleMouseOut})))}if(z){if(!o){var J=(null===(g=T._points[t].lineOptions)||void 0===g?void 0:g.lineBorderWidth)?Number.parseFloat(T._points[t].lineOptions.lineBorderWidth.toString()):0;J>0&&O.push(r.createElement("line",{id:a,key:a,x1:T._xAxisScale(c),y1:T._yAxisScale(f),x2:T._xAxisScale(N),y2:T._yAxisScale(I),strokeLinecap:null!==(y=null===(m=T._points[t].lineOptions)||void 0===m?void 0:m.strokeLinecap)&&void 0!==y?y:"round",strokeWidth:Number.parseFloat(R.toString())+J,stroke:(null===(b=T._points[t].lineOptions)||void 0===b?void 0:b.lineBorderColor)||H.semanticColors.bodyBackground,opacity:1})),D.push(r.createElement("line",(0,n.Cl)({id:u,key:u,x1:T._xAxisScale(c),y1:T._yAxisScale(f),x2:T._xAxisScale(N),y2:T._yAxisScale(I),strokeWidth:R,ref:function(t){A._refCallback(t,u)},onMouseOver:T._handleHover.bind(T,c,f,_,h,s,d),onMouseMove:T._handleHover.bind(T,c,f,_,h,s,d),onMouseOut:T._handleMouseOut,stroke:F,strokeLinecap:null!==(w=null===(x=T._points[t].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==w?w:"round",strokeDasharray:null===(C=T._points[t].lineOptions)||void 0===C?void 0:C.strokeDasharray,strokeDashoffset:null===(M=T._points[t].lineOptions)||void 0===M?void 0:M.strokeDashoffset,opacity:1},T._getClickHandler(T._points[t].onLineClick))))}}else o||D.push(r.createElement("line",{id:u,key:u,x1:T._xAxisScale(c),y1:T._yAxisScale(f),x2:T._xAxisScale(N),y2:T._yAxisScale(I),strokeWidth:R,stroke:F,strokeLinecap:null!==(L=null===(k=T._points[t].lineOptions)||void 0===k?void 0:k.strokeLinecap)&&void 0!==L?L:"round",strokeDasharray:null===(S=T._points[t].lineOptions)||void 0===S?void 0:S.strokeDasharray,strokeDashoffset:null===(V=T._points[t].lineOptions)||void 0===V?void 0:V.strokeDashoffset,opacity:.1}))},et=1;et<T._points[t].data.length;et++)it(et);N.push.apply(N,(0,n.fX)((0,n.fX)((0,n.fX)([],O,!1),D,!1),P,!1))},T=this,O=this._points.length-1;O>=0;O--)D(O);var P=xf(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var E=Oa(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var F={tooltipCls:P.tooltip,id:this._tooltipId,xAxis:E};E&&es(F)}return N},i.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(t){return t.data.length})).length>0)},i.defaultProps={enableReflow:!0},i}(r.Component),Mf=(0,t.I)(Cf,(function(t){return{tooltip:(0,n.Cl)((0,n.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));function kf(t,n){if((r=t.length)>1)for(var i,e,r,o=1,u=t[n[0]],a=u.length;o<r;++o)for(e=u,u=t[n[o]],i=0;i<a;++i)u[i][1]+=u[i][0]=isNaN(e[i][1])?e[i][0]:e[i][1]}function Lf(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function Sf(t,n){return t[n]}function Vf(t){const n=[];return n.key=t,n}function Af(t,n,i){var e=null,r=Zl(!0),o=null,u=Yc,a=null,s=yc(l);function l(l){var c,f,h,d,v,p=(l=Gl(l)).length,g=!1,m=new Array(p),y=new Array(p);for(null==o&&(a=u(v=s())),c=0;c<=p;++c){if(!(c<p&&r(d=l[c],c,l))===g)if(g=!g)f=c,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),h=c-1;h>=f;--h)a.point(m[h],y[h]);a.lineEnd(),a.areaEnd()}g&&(m[c]=+t(d,c,l),y[c]=+n(d,c,l),a.point(e?+e(d,c,l):m[c],i?+i(d,c,l):y[c]))}if(v)return a=null,v+""||null}function c(){return Uc().defined(r).curve(u).context(o)}return t="function"==typeof t?t:void 0===t?qc:Zl(+t),n="function"==typeof n?n:Zl(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?$c:Zl(+i),l.x=function(n){return arguments.length?(t="function"==typeof n?n:Zl(+n),e=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:Zl(+n),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Zl(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Zl(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Zl(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Zl(+t),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(e).y(n)},l.defined=function(t){return arguments.length?(r="function"==typeof t?t:Zl(!!t),l):r},l.curve=function(t){return arguments.length?(u=t,null!=o&&(a=u(o)),l):u},l.context=function(t){return arguments.length?(null==t?o=a=null:a=u(o=t),l):o},l}function Nf(t){return t<0?-1:1}function Df(t,n,i){var e=t._x1-t._x0,r=n-t._x1,o=(t._y1-t._y0)/(e||r<0&&-0),u=(i-t._y1)/(r||e<0&&-0),a=(o*r+u*e)/(e+r);return(Nf(o)+Nf(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function Tf(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function Of(t,n,i){var e=t._x0,r=t._y0,o=t._x1,u=t._y1,a=(o-e)/3;t._context.bezierCurveTo(e+a,r+a*n,o-a,u-a*i,o,u)}function Pf(t){this._context=t}function Ef(t){this._context=t}function Ff(t){return new Pf(t)}Pf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Of(this,this._t0,Tf(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var i=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,Of(this,Tf(this,i=Df(this,t,n)),i);break;default:Of(this,this._t0,i=Df(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=i}}},(function(t){this._context=new Ef(t)}.prototype=Object.create(Pf.prototype)).point=function(t,n){Pf.prototype.point.call(this,n,t)},Ef.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,i,e,r,o){this._context.bezierCurveTo(n,t,e,i,o,r)}};var Bf,Hf=(0,o.Z)(),_f=xi((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(Bf||(Bf={}));var If=function(t){function i(i){var e=t.call(this,i)||this;return e._getMargins=function(t){e.margins=t},e._onRectMouseMove=function(t){t.persist();var n=e.props.data.lineChartData,i=e._xAxisRectScale.invert(jc(t)[0],document.getElementById(e._rectId)),r=_f(n[0].data,i),o=n[0].data[r-1],u=n[0].data[r],a=null,s=null,l=n[0].data.length>0?ls(n[0].data[0].x,!0):null;if(void 0===o&&void 0!==u)a=u.x,s=r;else if(void 0!==o&&void 0===u)a=o.x,s=r-1;else{var c=void 0,f=void 0,h=void 0;switch(l){case $a.DateAxis:c=new Date(i).getTime(),f=o.x.getTime(),h=u.x.getTime(),a=Math.abs(c-f)>Math.abs(c-h)?u.x:o.x,s=Math.abs(c-f)>Math.abs(c-h)?r:r-1;break;case $a.NumericAxis:c=i,f=o.x,h=u.x,a=Math.abs(c-f)>Math.abs(c-h)?u.x:o.x,s=Math.abs(c-f)>Math.abs(c-h)?r:r-1}}var d=n[0].data[s],v=d.xAxisCalloutData,p=d.xAxisCalloutAccessibilityData,g=a instanceof Date?a.toLocaleString():a,y=a instanceof Date?a.getTime():a,b=m(e._calloutPoints,(function(t){return t.x===y})),x=l===$a.DateAxis?a.getTime():a,w=e.state.nearestCircleToHighlight!==x;b&&w&&!e.state.isShowCalloutPending&&e.setState({nearestCircleToHighlight:x,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:e._xAxisRectScale(a),displayOfLine:Bf.show,isCircleClicked:!1,stackCalloutProps:b,YValueHover:b.values,dataPointCalloutProps:b,hoverXValue:v||g,xAxisCalloutAccessibilityData:p,activePoint:""}),b||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,displayOfLine:Bf.hide,isCircleClicked:!1})},e._onRectMouseOut=function(){},e._handleChartMouseLeave=function(){e.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Bf.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},e._getStackedData=function(t,n){var i=function(){var t=Zl([]),n=Lf,i=kf,e=Sf;function r(r){var o,u,a=Array.from(t.apply(this,arguments),Vf),s=a.length,l=-1;for(const t of r)for(o=0,++l;o<s;++o)(a[o][l]=[0,+e(t,a[o].key,l,r)]).data=t;for(o=0,u=Gl(n(a));o<s;++o)a[u[o]].index=o;return i(a,u),a}return r.keys=function(n){return arguments.length?(t="function"==typeof n?n:Zl(Array.from(n)),r):t},r.value=function(t){return arguments.length?(e="function"==typeof t?t:Zl(+t),r):e},r.order=function(t){return arguments.length?(n=null==t?Lf:"function"==typeof t?t:Zl(Array.from(t)),r):n},r.offset=function(t){return arguments.length?(i=null==t?kf:t,r):i},r}().keys(t)(n),r=vi(i[i.length-1],(function(t){return t[1]})),o=[];return i.forEach((function(t){var n=[];t.forEach((function(t){n.push({values:t,xVal:t.data.xVal})})),o.push(n)})),e._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:r}},e._createDataSet=function(t){if(e.props.enablePerfOptimization&&e._enableComputationOptimization){var n=[],i=[],r=[],o=[],u=ts(t);t&&t.length&&t.forEach((function(t){r.push(t.color),o.push(t.opacity||1),n.push.apply(n,t.data)}));var a={};n.forEach((function(t){var n=t.x instanceof Date?t.x.toLocaleString():t.x;a[n]?a[n].push(t):a[n]=[t]})),Object.keys(a).forEach((function(t){var n=a[t],e={};n.forEach((function(t,n){e.xVal=t.x,e["chart".concat(n)]=t.y})),i.push(e)}));for(var s=i&&Object.keys(i[0]).length,l=[],c=0;c<s-1;c++){var f="chart".concat(c);l.push(f)}var h=e._getStackedData(l,i);return{colors:r,opacity:o,keys:l,stackedInfo:h,calloutPoints:u}}var d=[],v=[],p=[],g=[];u=ts(t),t&&t.length&&t.forEach((function(t){p.push(t.color),g.push(t.opacity||1),d.push.apply(d,t.data)}));for(var m=d,y=function(){var t=m[0].x instanceof Date?m[0].x.toLocaleString():m[0].x,n=m.filter((function(n){return(n.x instanceof Date?n.x.toLocaleString():n.x)===t})),i={};n.forEach((function(t,n){i.xVal=t.x,i["chart".concat(n)]=t.y})),v.push(i);var e=m[0].x instanceof Date?m[0].x.toLocaleString():m[0].x;m=m.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)!==e}))};m.length;)y();for(s=v&&Object.keys(v[0]).length,l=[],c=0;c<s-1;c++)f="chart".concat(c),l.push(f);return h=e._getStackedData(l,v),{colors:p,opacity:g,keys:l,stackedInfo:h,calloutPoints:u}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getGraphData=function(t,n,i,r,o){e._chart=e._drawGraph(i,t,n,o)},e._getLegendData=function(t){var i=[];return t.forEach((function(t){var n=t.color;if(!(i.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var r={title:t.legend,color:n,action:function(){e._onLegendClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};i.push(r)}})),r.createElement(Ul,(0,n.Cl)({legends:i,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps))},e._onDataPointClick=function(t){t&&t(),e.setState({isCircleClicked:!0})},e._getOpacity=function(t){return e._isMultiStackChart?e._legendHighlighted(t)||e._noLegendHighlighted()?.7:.1:.7},e._getLineOpacity=function(t){if(e._isMultiStackChart){var n=.3;return e.state.isCalloutVisible&&(n=1),e._noLegendHighlighted()||(n=e._legendHighlighted(t)?0:.1),n}return 1},e._updateCircleFillColor=function(t,n,i){var r=n;return e.state.nearestCircleToHighlight!==t&&e.state.activePoint!==i||(e._highlightedCircleId=i,e.state.isCircleClicked||(r=e.props.theme.semanticColors.bodyBackground)),r},e._drawGraph=function(t,i,o,u){var a,s=e._addDefaultColors(e.props.data.lineChartData),l=e.props.data,c=l.pointOptions,f=l.pointLineOptions,h=Af().x((function(t){return i(t.xVal)})).y0((function(t){return o(t.values[0])})).y1((function(t){return o(t.values[1])})).curve(Ff),d=Uc().x((function(t){return i(t.xVal)})).y((function(t){return o(t.values[1])})).curve(Ff),v=[];e._stackedData.forEach((function(t,u){v.push(r.createElement(r.Fragment,{key:"".concat(u,"-graph-").concat(e._uniqueIdForGraph)},e.props.enableGradient&&r.createElement("defs",null,r.createElement("linearGradient",{id:"gradient_".concat(u),x1:"0%",x2:"0%",y1:"0%",y2:"100%"},r.createElement("stop",{offset:"0",stopColor:e._colors[u]}),r.createElement("stop",{offset:"100%",stopColor:"transparent"}))),r.createElement("path",(0,n.Cl)({id:"".concat(u,"-line-").concat(e._uniqueIdForGraph),d:d(t),fill:"transparent",strokeWidth:3,stroke:e._colors[u],opacity:e._getLineOpacity(s[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},s[u].lineOptions)),1===t.length?r.createElement("circle",{id:"".concat(u,"-graph-").concat(e._uniqueIdForGraph),cx:i(t[0].xVal),cy:o(t[0].values[1]),r:6,stroke:e._colors[u],strokeWidth:3,fill:e._colors[u],opacity:e._opacity[u],fillOpacity:e._getOpacity(s[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove}):r.createElement("path",(0,n.Cl)({id:"".concat(u,"-graph-").concat(e._uniqueIdForGraph),d:h(t),fill:e.props.enableGradient?"url(#gradient_".concat(u,")"):e._colors[u],opacity:e._opacity[u],fillOpacity:e._getOpacity(s[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e.props.optimizeLargeData&&{"data-is-focusable":e._legendHighlighted(s[u].legend)||e._noLegendHighlighted(),role:"img","aria-label":"".concat(s[u].legend,", series ").concat(u+1," of ").concat(s.length," with ").concat(s[u].data.length," data points.")}))))}));var p=c&&c.r?Number(c.r):8;e._stackedData.forEach((function(t,u){s.length!==u&&(e.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,l){var f=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(e.state.nearestCircleToHighlight===f){var h="".concat(e._circleId,"_").concat(u*e._stackedData[0].length+l);a=s[u].color,v.push(r.createElement("circle",(0,n.Cl)({key:h,id:h,cx:i(t.xVal),cy:o(t.values[1]),stroke:a,strokeWidth:3,fill:e._updateCircleFillColor(f,a,h),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,s[u].data[l].onDataPointClick)},c,{r:e._getCircleRadius(f,p,h)})))}})):v.push(r.createElement("g",{key:"".concat(u,"-dots-").concat(e._uniqueIdForGraph),d:h(t),clipPath:"url(#clip)"},t.map((function(t,l){var f="".concat(e._circleId,"_").concat(u*e._stackedData[0].length+l),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;return a=s[u].color,r.createElement("circle",(0,n.Cl)({key:f,id:f,"data-is-focusable":e._legendHighlighted(s[u].legend)||e._noLegendHighlighted(),cx:i(t.xVal),cy:o(t.values[1]),stroke:a,strokeWidth:3,fill:e._updateCircleFillColor(h,a,f),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,s[u].data[l].onDataPointClick),onFocus:function(){return e._handleFocus(u,l,f)},onBlur:e._handleBlur},c,{r:e._getCircleRadius(h,p,f),role:"img","aria-label":e._getAriaLabel(u,l)}))})))))})),v.push(r.createElement("line",(0,n.Cl)({id:e._verticalLineId,key:e._verticalLineId,x1:e.state.lineXValue,y1:0,x2:e.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:a,opacity:.5,visibility:e.state.displayOfLine},f)));var g=Hf(e.props.styles,{theme:e.props.theme});if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var m=Oa(u).call(i);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var y={tooltipCls:g.tooltip,id:e._tooltipId,xAxis:m};m&&es(y)}return v},e._getCircleRadius=function(t,n,i){var r=e.state,o=r.isCircleClicked,u=r.nearestCircleToHighlight,a=r.activePoint;return o&&u===t?1:u===t||a===i?n:0},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._addDefaultColors=function(t){return t?t.map((function(t,i){var r,o,u;return u=void 0===t.color?_c(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted):Ic(t.color,null===(o=e.props.theme)||void 0===o?void 0:o.isInverted),(0,n.Cl)((0,n.Cl)({},t),{color:u})})):[]},e._handleFocus=function(t,n,i){var r=e.props.data.lineChartData[t].data[n],o=r.x,u=r.y,a=r.xAxisCalloutData,s=o instanceof Date?o.toLocaleString():o,l=o instanceof Date?o.getTime():o,c=e._calloutPoints.find((function(t){return t.x===l}));c.values=c.values.filter((function(t){return t.y===u})),e.setState({refSelected:"#".concat(i),isCalloutVisible:!0,hoverXValue:a||s,YValueHover:c.values,stackCalloutProps:c,dataPointCalloutProps:c,activePoint:i})},e._handleBlur=function(){e.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},e._createSet=(0,fn.J9)(e._createDataSet),e.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Bf.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},_n("AREA CHART",i,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),e._uniqueIdForGraph=v("areaChart_"),e._verticalLineId=v("verticalLine_"),e._circleId=v("circle"),e._rectId=v("rectangle"),e._tooltipId=v("AreaChartTooltipID"),e._enableComputationOptimization=!0,e._firstRenderOptimization=!0,e._emptyChartId=v("_AreaChart_empty"),e}return(0,n.C6)(i,t),i.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},i.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var i=this.props.data,e=i.lineChartData,o=i.chartTitle,u=this._addDefaultColors(e),a=this._createSet(u),s=a.colors,l=a.opacity,c=a.stackedInfo,f=a.calloutPoints;this._calloutPoints=f;var h=rs(u);this._colors=s,this._opacity=l,this._stackedData=c.stackedData;var d=this._getLegendData(u),v={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},p=(0,n.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return r.createElement(rf,(0,n.Cl)({},this.props,{chartTitle:o,points:u,chartType:qa.AreaChart,calloutProps:p,legendBars:d,isCalloutForStack:!0,xAxisType:h?$a.DateAxis:$a.NumericAxis,tickParams:v,maxOfYVal:c.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(n){t._xAxisRectScale=n.xScale;var i=t._xAxisRectScale.ticks(),e=t._xAxisRectScale(i[i.length-1]),o=n.containerHeight-t.margins.top;return r.createElement(r.Fragment,null,r.createElement("g",null,r.createElement("rect",{id:t._rectId,width:e,height:o,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),r.createElement("g",null,t._chart))}}))}return r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},i.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},i.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},i.prototype._getAriaLabel=function(t,n){var i,e=this.props.data.lineChartData[t],r=e.data[n],o=r.x instanceof Date?r.x.toLocaleString():r.x,u=r.xAxisCalloutData||o,a=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(u,". ").concat(a,", ").concat(s,".")},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},i}(r.Component),Wf=(0,t.I)(If,(function(t){return{tooltip:(0,n.Cl)((0,n.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Rf=function(t,n){var i=t.color;return{arcRoot:{fill:i},arcRootFocussed:{fill:i,stroke:(null==n?void 0:n.palette.black)||jt.bp.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==n?void 0:n.palette.black)||jt.bp.black,outline:"none"}}},zf=function(t){function i(n){var i=t.call(this,n)||this;return i.updateChart=function(t){Xf(t)},i._onFocus=function(){i.setState({isArcFocused:!0})},i._onBlur=function(){i.setState({isArcFocused:!1})},i.state={isArcFocused:!1},i._arcId=v("piechart_arc"),i}return(0,n.C6)(i,t),i.getDerivedStateFromProps=function(t){return Xf(t),null},i.prototype.render=function(){var t,i=this,e=this.props.arc,u=(0,o.Z)()((function(t){return Rf(t,i.props.theme)}),(0,n.Cl)({},this.props));return r.createElement("path",{d:e(this.props.data),className:"".concat(this.state.isArcFocused?u.arcRootFocussed:u.arcRoot),onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},i.defaultProps={arc:Lc()},i}(r.Component),jf=function(t){function i(n){var i=t.call(this,n)||this;return i._isRTL=(0,u.jI)(),i._arcId=v("piechart_arc"),i}return(0,n.C6)(i,t),i.prototype.render=function(){var n,i,e=this,u=this.props,a=u.data,s=u.culture,l=Lc().centroid({endAngle:(null==a?void 0:a.endAngle)||0,startAngle:(null==a?void 0:a.startAngle)||0,padAngle:null==a?void 0:a.padAngle,innerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||0,outerRadius:(null===(i=this.props)||void 0===i?void 0:i.outerRadius)||4}),c=l[0],f=l[1],h=(0,o.Z)()((function(t){return Rf(t,e.props.theme)})),d=(((null==a?void 0:a.startAngle)||0)+((null==a?void 0:a.endAngle)||0))/2,v="".concat(null==a?void 0:a.data.x,"-").concat((0,Zn.U)(null==a?void 0:a.data.y,s));return r.createElement("g",{className:"".concat(h.arc," arc"),"data-is-focusable":!0,id:this._arcId,onFocus:this._onFocus,onBlur:this._onBlur,"aria-label":v,role:"img"},t.prototype.render.call(this),r.createElement(Jc,{content:v,textProps:{x:c,y:f,dominantBaseline:d>Math.PI/2&&d<3*Math.PI/2?"hanging":"auto",textAnchor:!this._isRTL&&d>Math.PI||this._isRTL&&d<Math.PI?"end":"start","aria-label":"".concat(null==a?void 0:a.data.x,"-").concat((0,Zn.U)(null==a?void 0:a.data.y,s)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:ns}))},i}(zf);function Xf(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Yf,qf=function(t){function i(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n){return r.createElement(jf,{culture:i.props.culture,key:n,data:t,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:"".concat(i.colors(n)),theme:i.props.theme})},i}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,o=n.width,u=n.height,a=n.chartTitle,s=n.theme,l=[];if(e&&!this.props.colors)for(var c=0;c<e.length;c++)l.push(_c(c,0,null==s?void 0:s.isInverted));var f=this.props.colors,h=void 0===f?l:f;this.colors=Mu().range(h.map((function(t){return Ic(t)})));var d=i(e),v="translate(".concat(o/2,", ").concat(u/2,")");return r.createElement(Rs,{direction:vs.domOrder},r.createElement("svg",{width:o,height:u,"aria-label":a},r.createElement("g",{className:"pie",transform:v},d.map((function(n,i){return t.arcGenerator(n,i)})))))},i.defaultProps={pie:fc().padAngle(.01).sort(null).value((function(t){return t.y}))},i}(r.Component),$f=(0,o.Z)(),Uf=function(t){function i(n){var i=t.call(this,n)||this;return i._emptyChartId=v("_PieChart_empty"),i}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,n=t.data,i=t.width,e=t.height,o=t.colors,u=t.chartTitle,a=this.props,s=a.theme,l=a.className,c=a.styles,f=a.culture;this._classNames=$f(c,{theme:s,width:i,height:e,className:l});var h=Math.min(i-80,e-32)/2;return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement("div",{className:this._classNames.root},this.props.chartTitle&&r.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),r.createElement(qf,{culture:f,width:i,height:e,outerRadius:h,innerRadius:1,data:n,colors:o,chartTitle:u,theme:s}))},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0)},i.defaultProps={data:[],width:600,height:350},i}(r.Component),Gf=(0,t.I)(Uf,(function(t){var i=t.className,e=t.theme,r=t.width+30,o=t.height+10;return{root:[e.fonts.medium,"ms-PieChart",i,{width:r+40}],chart:[{padding:20,width:r,height:o,boxSizing:"content-box"}],chartTitle:[(0,n.Cl)({textAlign:"center"},e.fonts.mediumPlus)]}})),Zf=(0,o.Z)(),Kf=function(t){function i(n){var i=t.call(this,n)||this;return i._isRTL=(0,u.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.setState({isCalloutVisible:!1})},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._legendHighlighted=function(t){return i.state.selectedLegend===t||""===i.state.selectedLegend&&i.state.activeLegend===t},i._noLegendHighlighted=function(){return""===i.state.selectedLegend&&""===i.state.activeLegend},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(e,".")},i.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},i._refArray=[],i._onLeave=i._onLeave.bind(i),i._refCallback=i._refCallback.bind(i),i._onBarLeave=i._onBarLeave.bind(i),i._calloutId=v("callout"),i._emptyChartId=v("_SBC_empty"),i.barChartSvgRef=r.createRef(),i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},i.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var t=this.props,i=t.data,e=t.benchmarkData,o=t.targetData,u=t.hideNumberDisplay,a=t.ignoreFixStyle,s=t.culture,l=this.props.theme.palette,c=a||i.chartData.length>2?this.props.barHeight:12;e&&(e.color=e.color||l.neutralTertiary),o&&(o.color=o.color||l.neutralSecondary);var f=this._createBarsAndLegends(i,c,l,e,o),h=!1===u&&!a&&2===i.chartData.length,d=!1===u&&!a&&1===i.chartData.length,v=i.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),p=0;e&&v&&(p=e.data/v*100);var g=0;o&&v&&(g=o.data/v*100);var m=!1===this.props.hideLegend&&(a||i.chartData.length>2);this._classNames=Zf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:e?e.color:"",benchmarkRatio:p,targetColor:o?o.color:"",targetRatio:g,showTriangle:!(!e&&!o)});var b=function(){return(0,Zn.U)(i.chartData[0].data?i.chartData[0].data:0,s)};return r.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},r.createElement(Rs,{direction:vs.horizontal},r.createElement("div",{className:this._classNames.chartTitle},i.chartTitle&&r.createElement(Qs,{className:this._classNames.chartTitleLeft,content:i.chartTitle,accessibilityData:i.chartTitleAccessibilityData}),h&&r.createElement("div",(0,n.Cl)({},fs(i.chartDataAccessibilityData,"text",!1)),r.createElement("span",{className:this._classNames.ratioNumerator},b()),!this.props.hideDenominator&&r.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Zn.U)(v,s))),d&&r.createElement("div",(0,n.Cl)({className:this._classNames.ratioNumerator},fs(i.chartDataAccessibilityData,"text",!1)),b())),(e||o)&&r.createElement("div",{className:this._classNames.benchmarkContainer},e&&r.createElement("div",{className:this._classNames.benchmark,role:"text"}),o&&r.createElement("div",{className:this._classNames.target,role:"text"}))),r.createElement(Rs,{direction:vs.horizontal},r.createElement("div",null,r.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==i?void 0:i.chartTitle},r.createElement("g",null,f[0]),r.createElement(Gn,(0,n.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:y.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,fs(this.state.callOutAccessibilityData,"text",!1)),r.createElement(r.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):r.createElement(ys.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:s})))))),m&&r.createElement("div",{className:this._classNames.legendContainer},f[1]))}return r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},i.prototype._adjustProps=function(){this._classNames=Zf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},i.prototype._createBarsAndLegends=function(t,i,e,o,u){var a,s=this,l=(null===(a=t.chartData)||void 0===a?void 0:a.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,c=this.state.barSpacingInPercent*(l-1),f=[e.blueLight,e.blue,e.blueMid,e.red,e.black],h=[],d=[],p=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),g=0,m=0,y=0;t.chartData.map((function(t,n){var i=t.data?t.data:0;return(m=i/p*100)<1&&0!==m?m=1:m>99&&100!==m&&(m=99),y+=m}));var b=0!==y?y/(100-c):1,x=t.chartData.map((function(t,n){var e=t.color?t.color:f[Math.floor(4*Math.random()+1)],o=t.data?t.data:0,u={title:t.legend,color:e,action:p>0?function(){s._onClick(t.legend)}:void 0,hoverAction:p>0?function(){s._handleChartMouseLeave(),s._onHover(t.legend)}:void 0,onMouseOutAction:p>0?function(){s._onLeave()}:void 0};t.placeHolder||h.push(u),n>0&&(g+=m),(m=o/p*100)<1&&0!==m?m=1/b:m>99&&100!==m?m=99/b:m/=b,d.push(g);var a=s.props.styles,l=!(!s._legendHighlighted(t.legend)&&!s._noLegendHighlighted());return s._classNames=Zf(a,{theme:s.props.theme,shouldHighlight:l,href:s.props.href}),r.createElement("g",{key:n,className:s._classNames.opacityChangeOnHover,ref:function(t){s._refCallback(t,u.title)},"data-is-focusable":!s.props.hideTooltip&&l,onFocus:s._onBarFocus.bind(s,o,e,t),onBlur:s._onBarLeave,"aria-label":s._getAriaLabel(t),role:"img",onMouseOver:s._onBarHover.bind(s,o,e,t),onMouseMove:s._onBarHover.bind(s,o,e,t),onMouseLeave:s._onBarLeave,pointerEvents:"all",onClick:s.props.href?s._redirectToUrl.bind(s,s.props.href):t.onClick},r.createElement("rect",{key:n,id:v("_SBC_bar"),x:"".concat(s._isRTL?100-d[n]-m-s.state.barSpacingInPercent*n:d[n]+s.state.barSpacingInPercent*n,"%"),y:0,width:m+"%",height:i,fill:e}))}));this._addLegend(h,o),this._addLegend(h,u);var w=r.createElement(Ul,(0,n.Cl)({legends:h,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===p?[this._generateEmptyBar(i,this.props.barBackgroundColor?this.props.barBackgroundColor:e.neutralLight)]:x,w]},i.prototype._onBarFocus=function(t,n,i){var e=this;this._refArray.forEach((function(r){r.index===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData})}))},i.prototype._addLegend=function(t,n){if(n){var i={title:n.legend,color:n.color,shape:"triangle"};t.push(i)}},i.prototype._generateEmptyBar=function(t,n){return r.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},r.createElement("rect",{key:0,id:v("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:t,fill:n}))},i.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},i.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onHover=function(t){this.setState({activeLegend:t})},i.prototype._onLeave=function(){this.setState({activeLegend:""})},i.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData}))},i.prototype._onBarLeave=function(){},i.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},i.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},i}(r.Component),Jf=(0,t.I)(Kf,(function(t){var i,e,r=t.className,o=t.width,u=t.barHeight,a=t.shouldHighlight,s=t.theme,l=t.href,c=t.benchmarkColor,f=t.benchmarkRatio,h=t.targetColor,d=t.targetRatio,v=t.showTriangle;return{root:[s.fonts.medium,"ms-StackedBarChart",{width:o||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:u||12,display:"block",marginBottom:v?"16px":"10px",overflow:"visible"},chartTitle:(0,n.Cl)((0,n.Cl)({},s.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:s.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:a?"":"0.1",cursor:l?"pointer":"default",selectors:{"&:focus":{stroke:s.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:jt.s.medium,fontWeight:jt.BO.semibold,color:s.palette.neutralPrimary},ratioDenominator:{fontSize:jt.s.medium,color:s.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+f+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c,marginBottom:"4px",selectors:(i={},i[jt.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(c,", ").concat(c,")")},i)},target:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(e={},e[jt.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},e)}}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(Yf||(Yf={}));var Qf,th=(0,o.Z)(),nh=function(t){function i(i){var e=t.call(this,i)||this;return e._isRTL=(0,u.jI)(),e._adjustProps=function(){var t=e.props,n=t.theme,i=t.className,r=t.styles,o=t.width,u=t.barHeight;e._classNames=th(r,{legendColor:e.state.color,theme:n,width:o,className:i,barHeight:u})},e._getLegendData=function(t,i,o){var u=[o.blueLight,o.blue,o.blueMid,o.red,o.black],a=[];return t.forEach((function(t,n){var r=t.chartData.filter((function(t){return!t.placeHolder}));r.length<3?void 0!==i[n]&&i[n]&&r.forEach((function(t){var n=t.color?t.color:u[Math.floor(4*Math.random()+1)];if(!(a.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){e._onClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onHover(t.legend)},onMouseOutAction:function(){e._onLeave()}};a.push(i)}})):r.forEach((function(t){var n=t.color?t.color:u[Math.floor(4*Math.random()+1)];if(!(a.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){e._onClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onHover(t.legend)},onMouseOutAction:function(){e._onLeave()}};a.push(i)}}))})),r.createElement(Ul,(0,n.Cl)({legends:a,overflowProps:e.props.legendsOverflowProps,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard,overflowText:e.props.legendsOverflowText},e.props.legendProps))},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1})},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(e,".")},e._computeLongestBarTotalValue=function(){var t=0;return e.props.data.forEach((function(n){var i=n.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0);t=Math.max(t,i)})),t},e.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},e._onLeave=e._onLeave.bind(e),e._onBarLeave=e._onBarLeave.bind(e),e._calloutId=v("callout"),e.barChartSvgRef=r.createRef(),e._emptyChartId=v("_MSBC_empty"),e._barId=v("_MSBC_rect_"),e._barIdPlaceholderPartToWhole=v("_MSBC_rect_partToWhole_"),e._barIdEmpty=v("_MSBC_rect_empty"),e}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},i.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var i=this.props,e=i.data,o=i.theme,u=i.culture;this._adjustProps();var a=o.palette,s=this._getLegendData(e,this.props.hideRatio,a),l=this.state.isCalloutVisible;this._classNames=th(this.props.styles,{legendColor:this.state.color,theme:o,variant:this.props.variant,hideLabels:this.props.hideLabels});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,f=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=e.map((function(n,i){var e=t._createBarsAndLegends(n,t.props.barHeight,a,t.props.hideRatio[i],t.props.hideDenominator[i],t.props.href,i);return r.createElement("div",{key:i,id:"_MSBC_bar-".concat(i)},e)}));return r.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&r.createElement("div",{className:this._classNames.legendContainer},s),r.createElement(Gn,(0,n.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&l),directionalHint:y.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,fs(this.state.callOutAccessibilityData,"text",!1)),r.createElement(r.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):r.createElement(ys.ChartHoverCard,{Legend:c,YValue:f,color:this.state.color,culture:u}))))}return r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},i.prototype._createBarsAndLegends=function(t,i,e,o,u,a,s){var l,c,f=this,h=(null===(l=t.chartData)||void 0===l?void 0:l.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,d=this.state.barSpacingInPercent*(h-1),v=this.props.culture,p=[e.blueLight,e.blue,e.blueMid,e.red,e.black],g=[],m=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),y=this.props.variant===Yf.AbsoluteScale?this._longestBarTotalValue:m,b=0;if(t.chartData.map((function(t,n){var i=(t.data?t.data:0)/y*100||0;return i<1&&0!==i?i=1:i>99&&100!==i&&(i=99),b+=i})),this.props.variant===Yf.AbsoluteScale){var x=0===y?0:(y-m)/y*100;x<1&&0!==x?x=1:x>99&&100!==x&&(x=99),b+=x}var w=0!==b?b/(100-d):1,C=0,M=0,k=t.chartData.map((function(t,n){var o=t.color?t.color:t.placeHolder?e.neutralLight:p[Math.floor(4*Math.random()+1)],u=t.data?t.data:0;n>0&&(C+=M),(M=u/y*100?u/y*100:0)<1&&0!==M?M=1/w:M>99&&100!==M?M=99/w:M/=w,g.push(C);var l=f.props.styles,c=!(!f._legendHighlighted(t.legend)&&!f._noLegendHighlighted());return f._classNames=th(l,{theme:f.props.theme,shouldHighlight:c,href:a,variant:f.props.variant,hideLabels:f.props.hideLabels}),r.createElement("g",{key:n,className:t.placeHolder?f._classNames.placeHolderOnHover:f._classNames.opacityChangeOnHover,ref:function(n){f._refCallback(n,t.legend)},"data-is-focusable":!f.props.hideTooltip&&c,onFocus:f._onBarFocus.bind(f,u,o,t),onBlur:f._onBarLeave,role:"img","aria-label":f._getAriaLabel(t),onMouseOver:t.placeHolder?void 0:f._onBarHover.bind(f,u,o,t),onMouseMove:t.placeHolder?void 0:f._onBarHover.bind(f,u,o,t),onMouseLeave:t.placeHolder?void 0:f._onBarLeave,onClick:a?t.placeHolder?void 0:f._redirectToUrl.bind(f,a):t.onClick},r.createElement("rect",{key:n,id:"".concat(f._barId,"-").concat(s,"-").concat(n),x:"".concat(f._isRTL?100-g[n]-M-f.state.barSpacingInPercent*n:g[n]+f.state.barSpacingInPercent*n,"%"),y:0,width:M+"%",height:i,fill:o}))}));if(this.props.variant!==Yf.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&k.push(r.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},r.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:i,fill:e.neutralLight}))),0===m&&k.push(r.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},r.createElement("rect",{key:0,id:this._barIdEmpty,x:"0%",y:0,width:"100%",height:i,fill:e.neutralLight})));else{var L=!1,S=0;this._noLegendHighlighted()?(L=!0,S=m):null===(c=t.chartData)||void 0===c||c.forEach((function(t){f._legendHighlighted(t.legend)&&(L=!0,S+=t.data?t.data:0)})),L&&k.push(r.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(g[g.length-1]||0)-M-d:(g[g.length-1]||0)+M+d,"%"),textAnchor:"start",y:i/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(S),role:"img"},ds(S)))}var V=void 0!==o&&o,A=this.props.variant!==Yf.AbsoluteScale&&!V&&2===t.chartData.length,N=this.props.variant!==Yf.AbsoluteScale&&!V&&1===t.chartData.length,D=function(){return(0,Zn.U)(t.chartData[0].data?t.chartData[0].data:0,v)};return r.createElement("div",{className:this._classNames.singleChartRoot},r.createElement(Rs,{direction:vs.horizontal},r.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&r.createElement(Qs,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),A&&r.createElement("div",(0,n.Cl)({},fs(t.chartDataAccessibilityData,"text",!1)),r.createElement("span",{className:this._classNames.ratioNumerator},D()),!u&&r.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Zn.U)(m,v))),N&&r.createElement("div",(0,n.Cl)({className:this._classNames.ratioNumerator},fs(t.chartDataAccessibilityData,"text",!1)),D()))),r.createElement(Rs,{direction:vs.horizontal},r.createElement("div",{className:this._classNames.chartWrapper},r.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},k))))},i.prototype._onBarFocus=function(t,n,i){var e=this;this.state.refArray.forEach((function(r){r.legendText===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData})}))},i.prototype._refCallback=function(t,n){this.state.refArray.push({legendText:n,refElement:t})},i.prototype._onHover=function(t){this.setState({activeLegend:t})},i.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onLeave=function(){this.setState({activeLegend:""})},i.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData}))},i.prototype._onBarLeave=function(){},i.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length&&(!t.chartTitle||""===t.chartTitle)})).length)},i.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},i}(r.Component),ih=(0,t.I)(nh,(function(t){var i=t.className,e=t.width,r=t.barHeight,o=t.shouldHighlight,u=t.theme,a=t.href,s=t.variant,l=t.hideLabels;return{root:[u.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:e||"100%"},i],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:(0,n.Cl)((0,n.Cl)({},u.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:u.palette.neutralPrimary,marginBottom:s===Yf.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:e||"100%",display:"flex",flexDirection:"column",marginBottom:s===Yf.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:a?"pointer":"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:jt.s.medium,fontWeight:jt.BO.semibold,color:u.palette.neutralPrimary},ratioDenominator:{fontSize:jt.s.medium,color:u.palette.neutralPrimary},placeHolderOnHover:{opacity:o?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:a?"pointer":"default"},barLabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:u.palette.neutralPrimary},chartWrapper:{paddingRight:s!==Yf.AbsoluteScale||l?0:40}}})),eh=function(t,n){var i=function(t){if(!(t.length<2)){t=t.sort((function(t,n){return t instanceof Date?t.getTime()-n.getTime():t-n}));for(var n=Number.MAX_VALUE,i=1;i<t.length;i++){var e=t[i]instanceof Date?t[i].getTime()-t[i-1].getTime():t[i]-t[i-1];n=Math.min(n,e)}return[n,t[0]instanceof Date?t[t.length-1].getTime()-t[0].getTime():t[t.length-1]-t[0]]}}(t);if(!i||0===i[1])return 16;var e=i[0],r=i[1];return Math.round(n*e/(2*r+e))};!function(t){t.show="visibility",t.hide="hidden"}(Qf||(Qf={}));var rh,oh=(0,o.Z)(),uh=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,u.jI)(),e._createLine=function(t,n,i,o,u){var a;void 0===i&&(i=0),void 0===o&&(o=0);var s=e._xAxisType===$a.StringAxis,l=e._getScales(i,o).xBarScale,c=e._createColors(),f=e.props.theme,h=e.props,d=h.data,p=h.lineLegendColor,g=void 0===p?f.palette.yellow:p,m=h.lineLegendText,y=[],b=[];d&&d.forEach((function(t,n){var i;t.lineData&&t.lineData.y&&y.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(i=t.lineData.useSecondaryYScale)&&void 0!==i&&i,point:t,index:n})}));var x=Uc().x((function(n){return s?l(n.x)+.5*l.bandwidth():t(n.x)})).y((function(t){return t.useSecondaryYScale&&u?u(t.y):n(t.y)})),w=!(!e._legendHighlighted(m)&&!e._noLegendHighlighted()),C=(null===(a=e.props.lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0;C>0&&b.push(r.createElement("path",{key:v("_VBC_line_"),id:v("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*C,stroke:f.semanticColors.bodyBackground})),b.push(r.createElement("path",{key:v("_VBC_line_"),id:v("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:g}));var M=y.map((function(i,o){var a,f={refElement:null};return r.createElement("circle",{key:o,id:v("_VBC_point_"),cx:s?l(i.x)+.5*l.bandwidth():t(i.x),cy:i.useSecondaryYScale&&u?u(i.y):n(i.y),onMouseOver:e._legendHighlighted(m)?e._lineHover.bind(e,i.point):e._onBarHover.bind(e,i.point,c(i.y)),onMouseOut:e._onBarLeave,r:e._getCircleVisibilityAndRadius(i.x,m).radius,stroke:g,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:e._getCircleVisibilityAndRadius(i.x,m).visibility,onClick:null===(a=i.point.lineData)||void 0===a?void 0:a.onClick,"data-is-focusable":e._legendHighlighted(m),ref:function(t){return f.refElement=t},onFocus:e._lineFocus.bind(e,i.point,f),onBlur:e._handleChartMouseLeave})}));return r.createElement(r.Fragment,null,b,M)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state,r=i.selectedLegend,o=i.activeXdataPoint;return""!==r?t===o&&r===n?{visibility:Qf.show,radius:8}:r===n?{visibility:Qf.show,radius:.3}:{visibility:Qf.hide,radius:0}:{visibility:o===t?Qf.show:Qf.hide,radius:8}},e._checkForLine=function(){return e.props.data.some((function(t){var n;return void 0!==(null===(n=null==t?void 0:t.lineData)||void 0===n?void 0:n.y)}))},e._getMargins=function(t){e.margins=t},e._renderContentForBothLineAndBars=function(t){var i=e._getCalloutContentForLineAndBar(t),o=i.YValueHover,u=i.hoverXValue,a=o.map((function(t,i){return r.createElement(ys.ChartHoverCard,(0,n.Cl)({key:i,Legend:t.legend},0===i&&{XValue:"".concat(u||t.data)},{color:t.color,YValue:t.data||t.y,culture:e.props.culture}))}));return r.createElement(r.Fragment,null,a)},e._renderContentForOnlyBars=function(t){var n=e.props.useSingleColor,i=void 0!==n&&n;return r.createElement(r.Fragment,null,r.createElement(ys.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!i&&t.color?t.color:e._createColors()(t.y),culture:e.props.culture}))},e._renderCallout=function(t){return t?e._isHavingLine?e._renderContentForBothLineAndBars(t):e._renderContentForOnlyBars(t):null},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._getGraphData=function(t,n,i,r,o){return e._bars=e._xAxisType===$a.NumericAxis?e._createNumericBars(i,r,o):e._xAxisType===$a.DateAxis?e._createDateBars(i,r,o):e._createStringBars(i,r,o)},e._refCallback=function(t,n){e._refArray.push({index:n,refElement:t})},e._getCalloutContentForLineAndBar=function(t){var n,i,r,o,u=[],a=e.props,s=a.theme,l=a.useSingleColor,c=void 0!==l&&l,f=e.props,h=f.data,d=f.lineLegendText,v=f.lineLegendColor,p=void 0===v?s.palette.yellow:v,g=h.filter((function(n){return n.x===t.x}));e._isHavingLine&&void 0!==(null===(n=g[0].lineData)||void 0===n?void 0:n.y)&&u.push({legend:d,color:p,y:null===(i=g[0].lineData)||void 0===i?void 0:i.y,data:null===(r=g[0].lineData)||void 0===r?void 0:r.yAxisCalloutData,yAxisCalloutData:null===(o=g[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),u.push({legend:g[0].legend,y:g[0].y,color:c?e._createColors()(1):g[0].color?g[0].color:e._createColors()(g[0].y),data:g[0].yAxisCalloutData,yAxisCalloutData:g[0].yAxisCalloutData});var m=t.x instanceof Date?t.x.toLocaleString():t.x.toString();return{YValueHover:u,hoverXValue:t.xAxisCalloutData||m}},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},e._onBarFocus=function(t,n,i){var r=e._getCalloutContentForLineAndBar(t),o=r.YValueHover,u=r.hoverXValue;e._refArray.forEach((function(r,a){r.index===t.legend&&n===a&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||i,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:u,callOutAccessibilityData:t.callOutAccessibilityData})}))},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){var i=e.props.theme,r=e.props,o=r.lineLegendText,u=void 0===o?"":o,a=r.lineLegendColor,s=void 0===a?i.palette.yellow:a;e.setState({refSelected:n,isCalloutVisible:!0,calloutLegend:u,dataForHoverCard:t.lineData.y,color:s,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.lineData.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x})},e._getScales=function(t,n){var i,r=Ie().domain([0,e._yMax]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===$a.NumericAxis){var o=vi(e._points,(function(t){return t.x})),u=di(e._points,(function(t){return t.x}));i=Ie().domain(e._isRtl?[o,u]:[u,o]).nice().range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else if(e._xAxisType===$a.DateAxis){var a=di(e._points,(function(t){return t.x})),s=vi(e._points,(function(t){return t.x}));i=yu().domain([a,s]).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else i=ku().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding);return{xBarScale:i,yBarScale:r}},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,i){var o=e.props,u=o.theme,a=o.useSingleColor,s=e.props,l=s.lineLegendText,c=s.lineLegendColor,f=void 0===c?u.palette.yellow:c,h=[];if(t.forEach((function(t,n){var i=a?e._createColors()(1):t.color,r={title:t.legend,color:i,action:function(){e._onLegendClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};h.push(r)})),e._isHavingLine&&l&&f){var d={title:l,color:f,action:function(){e._onLegendClick(l)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(l)},onMouseOutAction:function(){e._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(d)}return r.createElement(Ul,(0,n.Cl)({legends:h,enabledWrapLines:e.props.enabledLegendsWrapLines,overflowProps:e.props.legendsOverflowProps,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard,overflowText:e.props.legendsOverflowText},e.props.legendProps))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getAriaLabel=function(t){var n,i,r,o=t.xAxisCalloutData?t.xAxisCalloutData:t.x instanceof Date?t.x.toLocaleString():t.x,u=t.legend,a=t.yAxisCalloutData||t.y,s=e.props.lineLegendText||"Line",l=(null===(n=t.lineData)||void 0===n?void 0:n.yAxisCalloutData)||(null===(i=t.lineData)||void 0===i?void 0:i.y);return(null===(r=t.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(o,". ")+(u?"".concat(u,", "):"")+"".concat(a,".")+(void 0!==l?" ".concat(s,", ").concat(l,"."):"")},e._getDomainMargins=function(t){var i;e._domainMargin=8;var r=t-(e.margins.left+8)-(e.margins.right+8);if(e._xAxisType===$a.StringAxis){if(ms(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth){var o=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth);var u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*o)*e._barWidth;r>=u&&(e._domainMargin=8+(r-u)/2)}}else{var a=(null===(i=e.props.data)||void 0===i?void 0:i.map((function(t){return t.x})))||[];e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth,eh(a,r)),e._domainMargin=8+e._barWidth/2}return(0,n.Cl)((0,n.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:""},e._isHavingLine=e._checkForLine(),e._calloutId=v("callout"),e._tooltipId=v("VCTooltipID_"),e._refArray=[],e._xAxisType=e.props.data&&e.props.data.length>0?ls(e.props.data[0].x,!0):$a.StringAxis,e._emptyChartId=v("_VBC_empty"),e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max(vi(this._points,(function(t){return t.y})),this.props.yMaxValue||0);var i=this._getLegendData(this._points,this.props.theme.palette);this._classNames=oh(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var e=(0,n.Cl)((0,n.Cl)((0,n.Cl)((0,n.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),fs(this.state.callOutAccessibilityData)),o={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement(rf,(0,n.Cl)({},this.props,{points:this._points,chartType:qa.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:e,tickParams:o},this._isHavingLine&&this._noLegendHighlighted()&&{isCalloutForStack:!0},{legendBars:i,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:vs.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===$a.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{children:function(n){return r.createElement(r.Fragment,null,r.createElement("g",null,t._bars),t._isHavingLine&&r.createElement("g",null,t._createLine(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))},i.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=ps(this.props.barWidth,this.props.maxBarWidth);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine(),this._xAxisInnerPadding=gs(this.props.xAxisInnerPadding,this.props.xAxisPadding,2/3),this._xAxisOuterPadding=gs(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},i.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._yMax);return Ie().domain(e).range(this._colors)},i.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForLineAndBar(t),r=e.YValueHover,o=e.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||n,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:this._noLegendHighlighted()?t.x:null,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},i.prototype._createNumericBars=function(t,n,i){var e=this,o=this.props.useSingleColor,u=void 0!==o&&o,a=this._getScales(t,n),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),f=this._points.map((function(n,i){var o=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=oh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:o});var a,f=Math.max(l(n.y),0);if(f<=0)return r.createElement(r.Fragment,{key:n.x}," ");a=f<=Math.ceil(l(e._yMax)/100)?Math.ceil(l(e._yMax)/100):f;var h=s(n.x)-e._barWidth/2,d=t-e.margins.bottom-a;return r.createElement("g",{key:n.x},r.createElement("rect",{id:v("_VBC_bar_"),x:h,className:e._classNames.opacityChangeOnHover,y:d,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&o,height:a,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,c(n.y)),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,c(n.y)),onBlur:e._onBarLeave,fill:n.color&&!u?n.color:c(n.y)}),e._renderBarLabel(h,d,n.y,n.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=Oa(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&es(d)}return f},i.prototype._createStringBars=function(t,n,i){var e=this,o=this._getScales(t,n),u=o.xBarScale,a=o.yBarScale,s=this._createColors(),l=this._points.map((function(n,i){var o,l=Math.max(a(n.y),0);if(l<=0)return r.createElement(r.Fragment,{key:n.x instanceof Date?n.x.getTime():n.x}," ");o=l<=Math.ceil(a(e._yMax)/100)?Math.ceil(a(e._yMax)/100):l;var c=u(n.x),f=t-e.margins.bottom-o;return e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth,u.bandwidth()),r.createElement("g",{key:n.x instanceof Date?n.x.getTime():n.x,transform:"translate(".concat(.5*(u.bandwidth()-e._barWidth),", 0)")},r.createElement("rect",{id:v("_VBC_bar_"),x:c,y:f,width:e._barWidth,height:o,"aria-label":e._getAriaLabel(n),role:"img",ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,s(n.y)),onMouseLeave:e._onBarLeave,onBlur:e._onBarLeave,"data-is-focusable":!e.props.hideTooltip,onFocus:e._onBarFocus.bind(e,n,i,s(n.y)),fill:n.color?n.color:s(n.y)}),e._renderBarLabel(c,f,n.y,n.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var c=Oa(i).call(u);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var f={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:c,showTooltip:this.props.showXAxisLablesTooltip};c&&es(f)}return l},i.prototype._createDateBars=function(t,n,i){var e=this,o=this.props.useSingleColor,u=void 0!==o&&o,a=this._getScales(t,n),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),f=this._points.map((function(n,i){var o=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=oh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:o});var a,f=Math.max(l(n.y),0);if(f<=0)return r.createElement(r.Fragment,{key:n.x instanceof Date?n.x.getTime():n.x}," ");a=f<=Math.ceil(l(e._yMax)/100)?Math.ceil(l(e._yMax)/100):f;var h=s(n.x)-e._barWidth/2,d=t-e.margins.bottom-a;return r.createElement("g",{key:n.x instanceof Date?n.x.getTime():n.x},r.createElement("rect",{id:v("_VBC_bar_"),x:h,className:e._classNames.opacityChangeOnHover,y:d,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&o,height:a,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,c(n.y)),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,c(n.y)),onBlur:e._onBarLeave,fill:n.color&&!u?n.color:c(n.y)}),e._renderBarLabel(h,d,n.y,n.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=Oa(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&es(d)}return f},i.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},i.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},i.prototype._renderBarLabel=function(t,n,i,e){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(e)&&!this._noLegendHighlighted()?null:r.createElement("text",{x:t+this._barWidth/2,y:n-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},ds(i))},i.prototype._isChartEmpty=function(){return 0===this._points.length||vi(this._points,(function(t){return t.y}))<=0&&!this._isHavingLine},i.defaultProps={maxBarWidth:24},i}(r.Component),ah=(0,t.I)(uh,(function(t){var i=t.shouldHighlight,e=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,n.Cl)((0,n.Cl)({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:e.palette.neutralPrimary}}})),sh=(0,o.Z)();!function(t){t.show="visibility",t.hide="hidden"}(rh||(rh={}));var lh=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,u.jI)(),e._toFocusWholeStack=function(t){var n=e.props.isCalloutForStack,i=void 0!==n&&n;return t?""===e.state.selectedLegend:i},e._getFormattedLineData=function(t){var i=[],e={};return t.forEach((function(t,e){t.lineData&&t.lineData.forEach((function(r){i.push((0,n.Cl)((0,n.Cl)({},r),{index:e,xItem:t}))}))})),i.forEach((function(t){e[t.legend]?e[t.legend].push(t):e[t.legend]=[t]})),e},e._getLineLegends=function(t){var n=e._lineObject,i=[];return Object.keys(n).forEach((function(t){i.push({title:t,color:n[t][0].color})})),i},e._createLines=function(t,i,o,u,a){var s,l=e._getFormattedLineData(e.props.data),c=[],f=[],h=[],d=e.props.theme,v=(null===(s=e.props.lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0,p=e._xAxisType!==$a.StringAxis?0:t.bandwidth()/2;return Object.keys(l).forEach((function(o,u){for(var s=e._legendHighlighted(o)||e._noLegendHighlighted(),h=1;h<l[o].length;h++){var g=t(l[o][h-1].xItem.xAxisPoint),m=l[o][h-1].useSecondaryYScale&&l[o][h].useSecondaryYScale&&a,y=m?a(l[o][h-1].y):i(l[o][h-1].y),b=t(l[o][h].xItem.xAxisPoint),x=m?a(l[o][h].y):i(l[o][h].y);v>0&&f.push(r.createElement("line",{key:"".concat(u,"-").concat(h,"-BorderLine"),x1:g,y1:y,x2:b,y2:x,opacity:s?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:d.semanticColors.bodyBackground,transform:"translate(".concat(p,", 0)")})),c.push(r.createElement("line",(0,n.Cl)({key:"".concat(u,"-").concat(h,"-line"),x1:g,y1:y,x2:b,y2:x,opacity:s?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:l[o][h].color,transform:"translate(".concat(p,", 0)")},e.state.selectedLegend===o&&{onMouseOver:e._lineHover.bind(e,l[o][h-1]),onMouseLeave:e._lineHoverOut})))}})),Object.keys(l).forEach((function(o,u){l[o].forEach((function(s,l){var c={refElement:null};h.push(r.createElement("circle",(0,n.Cl)({key:"".concat(u,"-").concat(l,"-dot"),cx:t(s.xItem.xAxisPoint),cy:s.useSecondaryYScale&&a?a(s.y):i(s.y),onMouseOver:e.state.selectedLegend===o?e._lineHover.bind(e,s):e._onStackHover.bind(e,s.xItem)},e.state.selectedLegend===o&&{onMouseLeave:e._lineHoverOut},{r:e._getCircleVisibilityAndRadius(s.xItem.xAxisPoint,s.legend).radius,stroke:s.color,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:e._getCircleVisibilityAndRadius(s.xItem.xAxisPoint,s.legend).visibility,transform:"translate(".concat(p,", 0)"),"data-is-focusable":e._legendHighlighted(o),ref:function(t){return c.refElement=t},onFocus:e._lineFocus.bind(e,s,c),onBlur:e._lineHoverOut})))}))})),r.createElement(r.Fragment,null,f,c,h)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state,r=i.selectedLegend,o=i.activeXAxisDataPoint;return""!==r?t===o&&r===n?{visibility:rh.show,radius:8}:r===n?{visibility:rh.show,radius:.3}:{visibility:rh.hide,radius:0}:{visibility:o===t?rh.show:rh.hide,radius:8}},e._getMargins=function(t){e.margins=t},e._getCustomizedCallout=function(){var t=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint&&!t?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineHoverOut=function(){e.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){e.setState({refSelected:n,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.color})},e._handleMouseOut=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},e._createBar=function(t,i,o,u){var a=e.props,s=a.barCornerRadius,l=void 0===s?0:s,c=a.barMinimumHeight,f=void 0===c?0:c,h=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),d=e._toFocusWholeStack(h);e._xAxisType===$a.StringAxis&&(e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth,t.bandwidth()));var v=e._points.map((function(u,a){var s=o-e.margins.bottom,c=t((e._xAxisType===$a.NumericAxis||(e._xAxisType,$a.DateAxis),u.xAxisPoint)),h=e._xAxisType!==$a.StringAxis?-e._barWidth/2:(t.bandwidth()-e._barWidth)/2,v=0,p=u.chartData.filter((function(t){return t.data>0}));if(p.length){var g=e._getBarGapAndScale(p,i),m=g.gapHeight,y=g.heightValueScale;if(!(y<0)){var b=p.map((function(t,i){var o=t.color?t.color:e._colors[i],g={},b=!(!e._legendHighlighted(t.legend)&&!e._noLegendHighlighted());e._classNames=sh(e.props.styles,{theme:e.props.theme,shouldHighlight:b,href:e.props.href});var x=!d&&{"data-is-focusable":!e.props.hideTooltip&&b,"aria-label":e._getAriaLabel(u,t),onMouseOver:e._onRectHover.bind(e,u.xAxisPoint,t,o),onMouseMove:e._onRectHover.bind(e,u.xAxisPoint,t,o),onMouseLeave:e._handleMouseOut,onFocus:e._onRectFocus.bind(e,t,u.xAxisPoint,o,g),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,t),role:"img"},w=y*t.data;return w<Math.max(Math.ceil(y*e._yMax/100),f)&&(w=Math.max(Math.ceil(y*e._yMax/100),f)),s=s-w-(i?m:0),v+=t.data,l&&w>l&&i===p.length-1?r.createElement("path",(0,n.Cl)({key:i+a+"".concat(d),className:e._classNames.opacityChangeOnHover,d:"\n M ".concat(c," ").concat(s+l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(-l,"\n h ").concat(e._barWidth-2*l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(l,"\n v ").concat(w-l,"\n h ").concat(-e._barWidth,"\n z\n "),fill:o,ref:function(t){return g.refElement=t},transform:"translate(".concat(h,", 0)")},x)):w<0?r.createElement(r.Fragment,{key:i+a}," "):r.createElement("rect",(0,n.Cl)({key:i+a,className:e._classNames.opacityChangeOnHover,x:c,y:s,width:e._barWidth,height:w,fill:o,ref:function(t){return g.refElement=t}},x,{transform:"translate(".concat(h,", 0)")}))})),x={},w=d&&{"data-is-focusable":!e.props.hideTooltip,"aria-label":e._getAriaLabel(u),onMouseOver:e._onStackHover.bind(e,u),onMouseMove:e._onStackHover.bind(e,u),onMouseLeave:e._handleMouseOut,onFocus:e._onStackFocus.bind(e,u,x),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,u),role:"img"},C=!1,M=0;return e.props.hideLabels||(e._noLegendHighlighted()?(C=!0,M=v):p.forEach((function(t){e._legendHighlighted(t.legend)&&(C=!0,M+=t.data)}))),r.createElement("g",{key:a+"".concat(d)},r.createElement("g",(0,n.Cl)({id:"".concat(a,"-singleBar"),ref:function(t){return x.refElement=t}},w),b),!e.props.hideLabels&&e._barWidth>=16&&C&&r.createElement("text",{x:c+e._barWidth/2,y:s-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-label":"Total: ".concat(M),role:"img",transform:"translate(".concat(h,", 0)")},ds(M)))}}}));if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var p=Oa(u).call(t);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var g={tooltipCls:e._classNames.tooltip,id:e._tooltipId,xAxis:p};p&&es(g)}return v.filter((function(t){return!!t}))},e._getScales=function(t,n){var i=e._yMax,r=Ie().domain([0,i]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===$a.NumericAxis){var o=vi(e._dataset,(function(t){return t.x})),u=di(e._dataset,(function(t){return t.x}));return{xBarScale:Ie().domain(e._isRtl?[o,u]:[u,o]).nice().range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),yBarScale:r}}if(e._xAxisType===$a.DateAxis){var a=di(e._dataset,(function(t){return t.x})),s=vi(e._dataset,(function(t){return t.x}));return{xBarScale:yu().domain(e._isRtl?[s,a]:[a,s]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),yBarScale:r}}return{xBarScale:ku().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding),yBarScale:r}},e._getGraphData=function(t,n,i,r,o){var u=e._getScales(i,r),a=u.xBarScale,s=u.yBarScale;return e._bars=e._createBar(a,s,i,o)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getAriaLabel=function(t,n){var i,e,r;if(!n){var o=t.xAxisCalloutData||t.xAxisPoint,u=t.chartData.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data;return"".concat(n,", ").concat(i,".")})).join(" "),a=null===(i=t.lineData)||void 0===i?void 0:i.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data||t.y;return"".concat(n,", ").concat(i,".")})).join(" ");return(null===(e=t.stackCallOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(o,". ").concat(u)+(a?" ".concat(a):"")}var s=t.xAxisCalloutData||n.xAxisCalloutData||t.xAxisPoint,l=n.legend,c=n.yAxisCalloutData||n.data;return(null===(r=n.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},e._getDomainMargins=function(t){var i;e._domainMargin=8;var r=t-(e.margins.left+8)-(e.margins.right+8);if(e._xAxisType===$a.StringAxis){if(ms(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth){var o=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth);var u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*o)*e._barWidth;r>=u&&(e._domainMargin=8+(r-u)/2)}}else{var a=(null===(i=e.props.data)||void 0===i?void 0:i.map((function(t){return t.xAxisPoint})))||[];e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth,eh(a,r)),e._domainMargin=8+e._barWidth/2}return(0,n.Cl)((0,n.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},_n("VERTICAL STACKED BAR CHART",i,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),e._handleMouseOut=e._handleMouseOut.bind(e),e._calloutId=v("callout"),e._tooltipId=v("VSBCTooltipId_"),e._isChartEmpty()||(e._adjustProps(),e._dataset=e._createDataSetLayer()),e._createLegendsForLine=(0,fn.J9)((function(t){return e._getLineLegends(t)})),e._emptyChartId=v("_VSBC_empty"),e}return(0,n.C6)(i,t),i.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},i.prototype.render=function(){var t=this;if(!this._isChartEmpty()){this._adjustProps();var i=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),e=this._toFocusWholeStack(i),o=this.props.isCalloutForStack,u=void 0!==o&&o;this._dataset=this._createDataSetLayer();var a=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=sh(this.props.styles,{theme:this.props.theme,href:this.props.href});var s=(0,n.Cl)((0,n.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),fs(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return r.createElement(rf,(0,n.Cl)({},this.props,{points:this._dataset,chartType:qa.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,tickParams:l,legendBars:a,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:e,barwidth:this._barWidth,focusZoneDirection:u||i?vs.horizontal:vs.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===$a.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{children:function(n){return r.createElement(r.Fragment,null,r.createElement("g",null,t._bars),r.createElement("g",null,i&&t._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))}return r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},i.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=ps(this.props.barWidth,this.props.maxBarWidth);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=ls(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data),this._xAxisInnerPadding=gs(this.props.xAxisInnerPadding,this.props.xAxisPadding,2/3),this._xAxisOuterPadding=gs(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},i.prototype._createDataSetLayer=function(){var t=[],n=this._points.map((function(n){var i=0;return n.chartData.forEach((function(t){i+=t.data})),t.push(n.xAxisPoint),{x:n.xAxisPoint,y:i}}));return this._xAxisLabels=t,n},i.prototype._renderCallout=function(t){return t?r.createElement(ys.ChartHoverCard,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},i.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},i.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},i.prototype._getLegendData=function(t,i,e){var o=this;if(this.props.hideLegend)return r.createElement(r.Fragment,null);var u=[i.blueLight,i.blue,i.blueMid,i.red,i.black],a=[],s=this.props.allowHoverOnLegend,l=void 0===s||s;t.forEach((function(t){t.chartData.forEach((function(t){var n=t.color?t.color:u[Math.floor(4*Math.random()+1)];if(!(a.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){o._onLegendClick(t.legend)},hoverAction:l?function(){o._handleChartMouseLeave(),o._onLegendHover(t.legend)}:void 0,onMouseOutAction:l?function(){return o._onLegendLeave()}:void 0};a.push(i)}}))}));var c=[];e&&e.length>0&&e.forEach((function(t){var n={title:t.title,color:t.color,isLineLegendInBarChart:!0,action:function(){o._onLegendClick(t.title)},hoverAction:l?function(){o._handleChartMouseLeave(),o._onLegendHover(t.title)}:void 0,onMouseOutAction:l?function(){return o._onLegendLeave()}:void 0};c.push(n)}));var f=c.concat(a);return r.createElement(Ul,(0,n.Cl)({legends:f,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},i.prototype._onRectHover=function(t,n,i,e){e.persist(),this._onRectFocusHover(t,n,i,e)},i.prototype._onRectFocusHover=function(t,n,i,e){var r,o;(null===(r=this._calloutAnchorPoint)||void 0===r?void 0:r.chartDataPoint)===n&&(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.xAxisDataPoint)===t||(this._calloutAnchorPoint={chartDataPoint:n,xAxisDataPoint:t},this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:n.data,color:i,xCalloutValue:n.xAxisCalloutData?n.xAxisCalloutData:t,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},i.prototype._onStackHover=function(t,n){n.persist(),this._onStackHoverFocus(t,n)},i.prototype._onStackHoverFocus=function(t,i){var e=t.lineData,r=void 0!==e&&e.length>0;r&&e.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:i,isCalloutVisible:!0,YValueHover:r?(0,n.fX)((0,n.fX)([],e.sort((function(t,n){return t.data<n.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint instanceof Date?t.xAxisPoint.toLocaleDateString():t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},i.prototype._onRectFocus=function(t,n,i,e){e.refElement&&this._onRectFocusHover(n,t,i,e.refElement)},i.prototype._onStackFocus=function(t,n){n.refElement&&this._onStackHoverFocus(t,n.refElement)},i.prototype._onClick=function(t,n){var i,e;null===(e=(i=this.props).onBarClick)||void 0===e||e.call(i,n,t),this.props.href&&(window.location.href=this.props.href)},i.prototype._getBarGapAndScale=function(t,n,i){var e=this.props.barGapMax,r=void 0===e?0:e,o=t.reduce((function(t,n){return t+n.data}),0),u=null!=i?i:n(o),a=r&&t.length-1,s=a&&Math.max(1,Math.min(r,.2*u/a));return{gapHeight:s,heightValueScale:(u-s*a)/o}},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return 0===t.chartData.length})).length)},i.defaultProps={maxBarWidth:24},i}(r.Component),ch=(0,t.I)(lh,(function(t){var i=t.shouldHighlight,e=t.href,r=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1",cursor:e?"pointer":"default"},tooltip:(0,n.Cl)((0,n.Cl)({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:r.palette.neutralPrimary}}})),fh=(0,o.Z)(),hh=.1/.9,dh=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,u.jI)(),e._getGraphData=function(t,n,i,r,o){var u=e._createX0Scale(r);e._barWidth=ps(e.props.barwidth,e.props.maxBarWidth,u.bandwidth()/(e._keys.length+(e._keys.length-1)*hh)),e._groupWidth=(e._keys.length+(e._keys.length-1)*hh)*e._barWidth;var a=e._createX1Scale(),s=[];e._datasetForBars.forEach((function(t){s.push(e._buildGraph(t,u,a,i,o))})),e._groupedVerticalBarGraph=s},e._getMargins=function(t){return e.margins=t},e._createDataSetOfGVBC=function(t){var n=[],i=t.map((function(t){return t.name}));t[0].series.forEach((function(t){n.push(t.key)}));var r=e._createDataset(t);return{keys:n,xAxisLabels:i,datasetForBars:r}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getOpacity=function(t){return e._legendHighlighted(t)||e._noLegendHighlighted()?"":"0.1"},e._onBarHover=function(t,n,i){i.persist(),e._calloutAnchorPoint!==t&&(e._calloutAnchorPoint=t,e.setState({refSelected:i,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData}))},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1})},e._onBarFocus=function(t,n,i){e._refArray.forEach((function(r,o){r.index===t.legend&&i===o&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData})}))},e._redirectToUrl=function(t){t&&(window.location.href=t)},e._buildGraph=function(t,n,i,o,u){var a=[],s=[],l=Ie().domain([0,e._yMax]).range([0,o-e.margins.bottom-e.margins.top]),c=Object.keys(e._datasetForBars[0]).splice(0,e._keys.length);if(c.forEach((function(n,u){var f=t.indexNum*c.length+u,h=t[n],d=i(n)+(i.bandwidth()-e._barWidth)/2,v=Math.max(o-e.margins.bottom-l(h.data),0);h.data&&a.push(r.createElement("rect",{className:e._classNames.opacityChangeOnHover,key:"".concat(t.indexNum,"-").concat(u),height:Math.max(l(h.data),0),width:e._barWidth,x:d,y:v,"data-is-focusable":!e.props.hideTooltip&&(e._legendHighlighted(h.legend)||e._noLegendHighlighted()),opacity:e._getOpacity(h.legend),ref:function(t){e._refCallback(t,h.legend,f)},fill:h.color,onMouseOver:e._onBarHover.bind(e,h,t),onMouseMove:e._onBarHover.bind(e,h,t),onMouseOut:e._onBarLeave,onFocus:e._onBarFocus.bind(e,h,t,f),onBlur:e._onBarLeave,onClick:e.props.href?e._redirectToUrl.bind(e,e.props.href):h.onClick,"aria-label":e._getAriaLabel(h,t.xAxisPoint),role:"img"})),h.data&&!e.props.hideLabels&&e._barWidth>=16&&(e._legendHighlighted(h.legend)||e._noLegendHighlighted())&&s.push(r.createElement("text",{key:"".concat(t.indexNum,"-").concat(u),x:d+e._barWidth/2,y:v-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-hidden":!0},ds(h.data)))})),!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var f=Oa(u).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var h={tooltipCls:e._classNames.tooltip,id:e._tooltipId,xAxis:f};f&&es(h)}return r.createElement("g",{key:t.indexNum,transform:"translate(".concat(n(t.xAxisPoint)+(n.bandwidth()-e._groupWidth)/2,", 0)")},a,s)},e._createDataset=function(t){var i=[],r=[];return t.forEach((function(t,e){var o={},u={},a=[];t.series.forEach((function(t){o[t.key]=t.data,u[t.key]=(0,n.Cl)({},t),a.push(t)})),u.xAxisPoint=t.name,u.indexNum=e,u.groupSeries=a,u.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,i.push(u),r.push(o)})),e._dataset=r,i},e._createX0Scale=function(t){return ku().domain(e._xAxisLabels).range(e._isRtl?[t-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,t-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding)},e._createX1Scale=function(){return ku().domain(e._keys).range(e._isRtl?[e._groupWidth,0]:[0,e._groupWidth]).paddingInner(.1)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,i){var o=t,u=[i.blueLight,i.blue,i.blueMid,i.red,i.black],a=[];return o.forEach((function(t){t.series.forEach((function(t){var n=t.color?t.color:u[Math.floor(4*Math.random()+1)];if(!(a.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){e._onLegendClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};a.push(i)}}))})),r.createElement(Ul,(0,n.Cl)({legends:a,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getAriaLabel=function(t,n){var i,e=t.xAxisCalloutData||n,r=t.legend,o=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(e,". ").concat(r,", ").concat(o,".")},e._getDomainMargins=function(t){if(e._domainMargin=8,e._xAxisType===$a.StringAxis)if(ms(e.props.xAxisOuterPadding))e._domainMargin=0;else if("auto"!==e.props.barwidth){var i=t-(e.margins.left+8)-(e.margins.right+8);e._barWidth=ps(e.props.barwidth,e.props.maxBarWidth);var r=(e._keys.length+(e._keys.length-1)*hh)*e._barWidth,o=e._xAxisInnerPadding/(1-e._xAxisInnerPadding),u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*o)*r;i>=u&&(e._domainMargin=8+(i-u)/2)}return(0,n.Cl)((0,n.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._createSet=(0,fn.J9)((function(t){return e._createDataSetOfGVBC(t)})),e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},_n("GROUPED VERTICAL BAR CHART",i,{showYAxisGridLines:"Dont use this property. Lines are drawn by default",showXAxisPath:"Dont use this property. Axis line removed default.",showYAxisPath:"Dont use this property. No need to display Y axis path. Handling default",showXAxisGridLines:"Dont use this property. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),e._refArray=[],e._calloutId=v("callout"),e._tooltipId=v("GVBCTooltipId_"),e._emptyChartId=v("_GVBC_empty"),e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this,i=this.props.data,e=this._createSet(i),o=e.keys,u=e.xAxisLabels,a=e.datasetForBars;this._keys=o,this._xAxisLabels=u,this._datasetForBars=a,this._xAxisType=ls(i[0].name,!0);var s=this._getLegendData(i,this.props.theme.palette);this._adjustProps();var l=vi(this._dataset,(function(n){return vi(t._keys,(function(t){return n[t]}))}));this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=fh(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=(0,n.Cl)((0,n.Cl)((0,n.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,id:"toolTip".concat(this._calloutId),gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),fs(this.state.callOutAccessibilityData,"text",!1)),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement(rf,(0,n.Cl)({},this.props,{points:this._datasetForBars,chartType:qa.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:f,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:vs.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===$a.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{barwidth:this._barWidth,children:function(){return r.createElement("g",null,t._groupedVerticalBarGraph)}}))},i.prototype._refCallback=function(t,n,i){this._refArray[i]={index:n,refElement:t}},i.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},i.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.series.length})).length>0)},i.prototype._adjustProps=function(){this._barWidth=ps(this.props.barwidth,this.props.maxBarWidth),this._xAxisInnerPadding=gs(this.props.xAxisInnerPadding,void 0,2/(2+this._keys.length+(this._keys.length-1)*hh)),this._xAxisOuterPadding=gs(this.props.xAxisOuterPadding)},i.defaultProps={maxBarWidth:24},i}(r.Component),vh=(0,t.I)(dh,(function(t){var i=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:(0,n.Cl)((0,n.Cl)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:i.palette.neutralPrimary}}})),ph=i(714),gh=(0,o.Z)(),mh=function(t){function i(i){var e=t.call(this,i)||this;return e._rectRefArray={},e._getXandY=function(){var t="",n="";return e.props.data.forEach((function(i){if(i.data&&i.data.length>0)return t=i.data[0].x,n=i.data[0].y,{x:t,y:n}})),{x:t,y:n}},e._getOpacity=function(t){return e._legendHighlighted(t)||e._noLegendHighlighted()?"1":"0.1"},e._rectRefCallback=function(t,n,i){e._rectRefArray[n]={data:i,refElement:t}},e._onRectFocus=function(t,n){e.setState({target:e._rectRefArray[t].refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?e.props.theme.semanticColors.bodyText:e._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData})},e._onRectMouseOver=function(t,n,i){i.persist(),e._calloutAnchorPoint!==n&&(e._calloutAnchorPoint=n,e.setState({target:e._rectRefArray[t].refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?e.props.theme.semanticColors.bodyText:e._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData}))},e._onRectBlurOrMouseOut=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1})},e._createRectangles=function(){var t=[];return e._stringYAxisDataPoints.slice().reverse().forEach((function(n){var i=0;e._stringXAxisDataPoints.forEach((function(o){var u,a,s="x".concat(o,"y").concat(n);if((null===(u=e._dataSet[n][i])||void 0===u?void 0:u.x)===o){var l=e._dataSet[n][i];a=r.createElement("g",{key:s,role:"img","aria-label":e._getAriaLabel(l),"data-is-focusable":e._legendHighlighted(l.legend)||e._noLegendHighlighted(),fillOpacity:e._getOpacity(l.legend),transform:"translate(".concat(e._xAxisScale(l.x),", ").concat(e._yAxisScale(l.y),")"),ref:function(t){e._rectRefCallback(t,s,l)},onFocus:e._onRectFocus.bind(e,s,l),onBlur:e._onRectBlurOrMouseOut,onMouseOver:e._onRectMouseOver.bind(e,s,l),onMouseOut:e._onRectBlurOrMouseOut},r.createElement("rect",{fill:e._colorScale(l.value),width:e._xAxisScale.bandwidth(),height:e._yAxisScale.bandwidth(),onClick:l.onClick}),r.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:e._classNames.text,transform:"translate(".concat(e._xAxisScale.bandwidth()/2,", ").concat(e._yAxisScale.bandwidth()/2,")")},(0,Zn.U)(l.rectText,e.props.culture))),i++}else{var c={x:o,y:n,value:NaN,rectText:"No data available",legend:""};a=r.createElement("g",{key:s,role:"img","aria-label":e._getAriaLabel(c),"data-is-focusable":e._noLegendHighlighted(),transform:"translate(".concat(e._xAxisScale(c.x),", ").concat(e._yAxisScale(c.y),")"),ref:function(t){e._rectRefCallback(t,s,c)},onFocus:e._onRectFocus.bind(e,s,c),onBlur:e._onRectBlurOrMouseOut,onMouseOver:e._onRectMouseOver.bind(e,s,c),onMouseOut:e._onRectBlurOrMouseOut},r.createElement("rect",{fill:e.props.theme.semanticColors.bodyBackground,width:e._xAxisScale.bandwidth(),height:e._yAxisScale.bandwidth()}))}t.push(a)}))})),t},e._createLegendBars=function(){var t=e.props,i=t.data,o=t.legendProps,u=[];return i.forEach((function(t){var n={title:t.legend,color:e._colorScale(t.value),action:function(){e._onLegendClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};u.push(n)})),r.createElement(Ul,(0,n.Cl)({},o,{legends:u}))},e._getColorScale=function(){var t=e.props,n=t.domainValuesForColorScale,i=t.rangeValuesForColorScale;return Ie().domain(n).range(i)},e._getXIndex=function(t){return e._xAxisType===$a.DateAxis?"".concat(t.getTime()):e._xAxisType===$a.StringAxis?t:e._xAxisType===$a.NumericAxis?"".concat(t):""},e._getYIndex=function(t){return e._yAxisType===Ua.DateAxis?"".concat(t.getTime()):e._yAxisType===Ua.StringAxis?t:e._yAxisType===Ua.NumericAxis?"".concat(t):""},e._createNewDataSet=function(t,i,r,o,u){var a=[];t.forEach((function(t){t.data.forEach((function(i){a.push((0,n.Cl)((0,n.Cl)({},i),{legend:t.legend}))}))}));var s={},l={},c={};return a.forEach((function(t){var i=e._getXIndex(t.x),r=e._getYIndex(t.y);c[i]="1",l[r]="1",s[r]?s[r]=(0,n.fX)((0,n.fX)([],s[r],!0),[t],!1):s[r]=[t]})),Object.keys(s).forEach((function(t){s[t].sort((function(t,n){return e._xAxisType===$a.StringAxis?t.x.toLowerCase()>n.x.toLowerCase()?1:-1:e._xAxisType===$a.DateAxis?t.x.getTime()-n.x.getTime():e._xAxisType===$a.NumericAxis?+t.x>+n.x?1:-1:t.x>n.x?1:-1})).forEach((function(t){e._xAxisType===$a.DateAxis&&(t.x=e._getStringFormattedDate(t.x,i)),e._xAxisType===$a.NumericAxis&&(t.x=e._getStringFormattedNumber(t.x,r)),e._xAxisType===$a.StringAxis&&(t.x=e._getFormattedLabelForXAxisDataPoint(t.x)),e._yAxisType===Ua.DateAxis&&(t.y=e._getStringFormattedDate(t.y,o)),e._yAxisType===Ua.NumericAxis&&(t.y=e._getStringFormattedNumber(t.y,u)),e._yAxisType===Ua.StringAxis&&(t.y=e._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(s).forEach((function(t){e._yAxisType===Ua.DateAxis?s[e._getStringFormattedDate(t,o)]=s[t]:e._yAxisType===Ua.NumericAxis?s["".concat(e._getStringFormattedNumber(t,u))]=s[t]:s[e._getFormattedLabelForYAxisDataPoint(t)]=s[t]})),{dataSet:s,yAxisPoints:e._getYAxisDataPoints(l),xAxisPoints:e._getXAxisDataPoints(c)}},e._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return e._xAxisType===$a.DateAxis||e._xAxisType===$a.NumericAxis?+t-+n:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return e._xAxisType===$a.DateAxis?e._getStringFormattedDate(t,e.props.xAxisDateFormatString):e._xAxisType===$a.NumericAxis?e._getStringFormattedNumber(t,e.props.xAxisNumberFormatString):e._getFormattedLabelForXAxisDataPoint(t)}))},e._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return e._yAxisType===Ua.DateAxis||e._yAxisType===Ua.NumericAxis?+t-+n:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return e._yAxisType===Ua.DateAxis?e._getStringFormattedDate(t,e.props.yAxisDateFormatString):e._yAxisType===Ua.NumericAxis?e._getStringFormattedNumber(t,e.props.yAxisNumberFormatString):e._getFormattedLabelForYAxisDataPoint(t)}))},e._getStringFormattedDate=function(t,n){var i=new Date;return i.setTime(+t),Gr(n||"%b/%d")(i)},e._getStringFormattedNumber=function(t,n){return ja(n||".2~s")(+t)},e._getFormattedLabelForXAxisDataPoint=function(t){var n=e.props.xAxisStringFormatter;return n?n(t):t},e._getFormattedLabelForYAxisDataPoint=function(t){var n=e.props.yAxisStringFormatter;return n?n(t):t},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getAriaLabel=function(t){var n,i=t.x,e=t.y,r=t.legend,o=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,u=t.descriptionMessage;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,", ").concat(e,". ").concat(r,", ").concat(o,".")+(u?" ".concat(u,"."):"")},e._createSet=(0,fn.J9)((function(t,n,i,r,o){return e._createNewDataSet(t,n,i,r,o)})),e.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},e._emptyChartId=v("_HeatMap_empty"),e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this,i=this._getXandY(),e=i.x,o=i.y;this._xAxisType=ls(e,!0),this._yAxisType=ls(o,!1);var u=this.props,a=u.data,s=u.xAxisDateFormatString,l=u.xAxisNumberFormatString,c=u.yAxisDateFormatString,f=u.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(a,s,l,c,f),d=h.dataSet,v=h.xAxisPoints,p=h.yAxisPoints;this._dataSet=d,this._stringYAxisDataPoints=p,this._stringXAxisDataPoints=v,this._classNames=gh(this.props.styles,{theme:this.props.theme});var g=(0,n.Cl)((0,n.Cl)((0,n.Cl)((0,n.Cl)({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:y.topAutoEdge,onDismiss:this._closeCallout}),fs(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),m=(0,n.Cl)((0,n.Cl)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement(rf,(0,n.Cl)({},this.props,{points:a,chartType:qa.HeatMapChart,xAxisType:$a.StringAxis,yAxisType:Ua.StringAxis,calloutProps:g,chartHoverProps:m,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:vs.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScale,t._createRectangles()}}))},i.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},i.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},i.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},i}(r.Component),yh=(0,t.I)(mh,(function(t){var n=t.theme;return{root:{},text:[n.fonts.medium,{pointerEvents:"none",fill:n.palette.white,fontWeight:jt.BO.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}})),bh=/[\{\}]/g,xh=/\{\d+\}/g;function wh(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=n;return t.replace(xh,(function(t){var n=e[t.replace(bh,"")];return null==n&&(n=""),n}))}function Ch(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function Mh(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function kh(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}function Lh(t,n){return n-1-t.height}function Sh(t,n){return t.sourceLinks.length?t.depth:n-1}function Vh(t){return function(){return t}}function Ah(t,n){return Dh(t.source,n.source)||t.index-n.index}function Nh(t,n){return Dh(t.target,n.target)||t.index-n.index}function Dh(t,n){return t.y0-n.y0}function Th(t){return t.value}function Oh(t){return t.index}function Ph(t){return t.nodes}function Eh(t){return t.links}function Fh(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function Bh({nodes:t}){for(const n of t){let t=n.y0,i=t;for(const i of n.sourceLinks)i.y0=t+i.width/2,t+=i.width;for(const t of n.targetLinks)t.y1=i+t.width/2,i+=t.width}}function Hh(){let t,n,i,e=0,r=0,o=1,u=1,a=24,s=8,l=Oh,c=Sh,f=Ph,h=Eh,d=6;function v(){const v={nodes:f.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:n}){for(const[n,i]of t.entries())i.index=n,i.sourceLinks=[],i.targetLinks=[];const e=new Map(t.map(((n,i)=>[l(n,i,t),n])));for(const[t,i]of n.entries()){i.index=t;let{source:n,target:r}=i;"object"!=typeof n&&(n=i.source=Fh(e,n)),"object"!=typeof r&&(r=i.target=Fh(e,r)),n.sourceLinks.push(i),r.targetLinks.push(i)}if(null!=i)for(const{sourceLinks:n,targetLinks:e}of t)n.sort(i),e.sort(i)}(v),function({nodes:t}){for(const n of t)n.value=void 0===n.fixedValue?Math.max(Mh(n.sourceLinks,Th),Mh(n.targetLinks,Th)):n.fixedValue}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.depth=r;for(const{target:n}of t.sourceLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.height=r;for(const{source:n}of t.targetLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function(i){const l=function({nodes:t}){const i=kh(t,(t=>t.depth))+1,r=(o-e-a)/(i-1),u=new Array(i);for(const n of t){const t=Math.max(0,Math.min(i-1,Math.floor(c.call(null,n,i))));n.layer=t,n.x0=e+t*r,n.x1=n.x0+a,u[t]?u[t].push(n):u[t]=[n]}if(n)for(const t of u)t.sort(n);return u}(i);t=Math.min(s,(u-r)/(kh(l,(t=>t.length))-1)),function(n){const i=function(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}(n,(n=>(u-r-(n.length-1)*t)/Mh(n,Th)));for(const e of n){let n=r;for(const r of e){r.y0=n,r.y1=n+r.value*i,n=r.y1+t;for(const t of r.sourceLinks)t.width=t.value*i}n=(u-n+t)/(e.length+1);for(let t=0;t<e.length;++t){const i=e[t];i.y0+=n*(t+1),i.y1+=n*(t+1)}w(e)}}(l);for(let t=0;t<d;++t){const n=Math.pow(.99,t),i=Math.max(1-n,(t+1)/d);g(l,n,i),p(l,n,i)}}(v),Bh(v),v}function p(t,i,e){for(let r=1,o=t.length;r<o;++r){const o=t[r];for(const t of o){let n=0,e=0;for(const{source:i,value:r}of t.targetLinks){let o=r*(t.layer-i.layer);n+=C(i,t)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(Dh),m(o,e)}}function g(t,i,e){for(let r=t.length-2;r>=0;--r){const o=t[r];for(const t of o){let n=0,e=0;for(const{target:i,value:r}of t.sourceLinks){let o=r*(i.layer-t.layer);n+=M(t,i)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(Dh),m(o,e)}}function m(n,i){const e=n.length>>1,o=n[e];b(n,o.y0-t,e-1,i),y(n,o.y1+t,e+1,i),b(n,u,n.length-1,i),y(n,r,0,i)}function y(n,i,e,r){for(;e<n.length;++e){const o=n[e],u=(i-o.y0)*r;u>1e-6&&(o.y0+=u,o.y1+=u),i=o.y1+t}}function b(n,i,e,r){for(;e>=0;--e){const o=n[e],u=(o.y1-i)*r;u>1e-6&&(o.y0-=u,o.y1-=u),i=o.y0-t}}function x({sourceLinks:t,targetLinks:n}){if(void 0===i){for(const{source:{sourceLinks:t}}of n)t.sort(Nh);for(const{target:{targetLinks:n}}of t)n.sort(Ah)}}function w(t){if(void 0===i)for(const{sourceLinks:n,targetLinks:i}of t)n.sort(Nh),i.sort(Ah)}function C(n,i){let e=n.y0-(n.sourceLinks.length-1)*t/2;for(const{target:r,width:o}of n.sourceLinks){if(r===i)break;e+=o+t}for(const{source:t,width:r}of i.targetLinks){if(t===n)break;e-=r}return e}function M(n,i){let e=i.y0-(i.targetLinks.length-1)*t/2;for(const{source:r,width:o}of i.targetLinks){if(r===n)break;e+=o+t}for(const{target:t,width:r}of n.sourceLinks){if(t===i)break;e-=r}return e}return v.update=function(t){return Bh(t),t},v.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:Vh(t),v):l},v.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:Vh(t),v):c},v.nodeSort=function(t){return arguments.length?(n=t,v):n},v.nodeWidth=function(t){return arguments.length?(a=+t,v):a},v.nodePadding=function(n){return arguments.length?(s=t=+n,v):s},v.nodes=function(t){return arguments.length?(f="function"==typeof t?t:Vh(t),v):f},v.links=function(t){return arguments.length?(h="function"==typeof t?t:Vh(t),v):h},v.linkSort=function(t){return arguments.length?(i=t,v):i},v.size=function(t){return arguments.length?(e=r=0,o=+t[0],u=+t[1],v):[o-e,u-r]},v.extent=function(t){return arguments.length?(e=+t[0][0],o=+t[1][0],r=+t[0][1],u=+t[1][1],v):[[e,r],[o,u]]},v.iterations=function(t){return arguments.length?(d=+t,v):d},v}class _h{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}var Ih=(0,o.Z)(),Wh="#757575",Rh=[{fillColor:"#00758F",borderColor:"#002E39"},{fillColor:"#77004D",borderColor:"#43002C"},{fillColor:"#4F6BED",borderColor:"#3B52B4"},{fillColor:"#937600",borderColor:"#6D5700"},{fillColor:"#286EA8",borderColor:"#00457E"},{fillColor:"#A43FB1",borderColor:"#7C158A"},{fillColor:"#CC3595",borderColor:"#7F215D"},{fillColor:"#0E7878",borderColor:"#004E4E"},{fillColor:"#8764B8",borderColor:"#4B3867"},{fillColor:"#9C663F",borderColor:"#6D4123"}];function zh(t){return"number"==typeof t?t:t.nodeId}function jh(t,n){return t[zh(n.source)][zh(n.target)]}var Xh="...";function Yh(t,n){var i;try{return t.text(n),null===(i=t.node())||void 0===i?void 0:i.getComputedTextLength()}finally{t.text(null)}}var qh=Af().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve((function(t){return new _h(t,!0)})),$h=function(t){function i(n){var i=t.call(this,n)||this;return i._isRtl=(0,u.jI)(),i._onCloseCallout=function(){i.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},i._onBlur=function(){},i._fillNodeColors=function(t){var n=i.state;if(!n.selectedState)return t.color;var e=n.selectedNode;return e&&n.selectedNodes.has(t.index)?e.color:e?void 0:t.color},i._fillNodeBorder=function(t){var n=i.state;if(n.selectedState){if(n.selectedNodes.has(t.index)){var e=n.selectedNode;return e?e.borderColor:t.borderColor}return t.borderColor}return t.borderColor},i.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},i._calloutId=v("callout"),i._linkId=v("link"),i._chartId=v("sankeyChart"),i._emptyChartId=v("_SankeyChart_empty"),i._labelTooltipId=v("tooltip"),i._margins={top:36,right:48,bottom:32,left:48},i._computeClassNamesProps=(0,fn.J9)((function(t,n,i,e,r){return{theme:t,width:e,height:r,pathColor:n,className:i}})),i._computeClassNames=(0,fn.J9)((function(t,n){return Ih(t,n)})),i._normalizeData=(0,fn.J9)((function(t,n,e,r,o){return i._normalizeSankeyData(t,n,e,r,o)})),i._fetchTooltip=(0,fn.J9)((function(t){return i._labelTooltipDiv(t)})),i._strings=(0,fn.J9)((function(t){var n=(null==t?void 0:t.linkFrom)||"From {0}";return{linkFrom:function(t){return wh(n,t.name)}}}))(n.strings),i._accessibility=(0,fn.J9)((function(t){var n=(null==t?void 0:t.linkAriaLabel)||"link from {0} to {1} with weight {2}",e=(null==t?void 0:t.nodeAriaLabel)||"node {0} with weight {1}";return{emptyAriaLabel:(null==t?void 0:t.emptyAriaLabel)||"Graph has no data to display",linkAriaLabel:function(t){return wh(n,t.source.name,t.target.name,t.unnormalizedValue?i._formatNumber(t.unnormalizedValue):t.unnormalizedValue)},nodeAriaLabel:function(t,n){return wh(e,t.name,i._formatNumber(n))}}}))(n.accessibility),i._nodeAttributes=(0,fn.J9)((function(t,n){return i._computeNodeAttributes(t,n)})),i._fetchNodes=function(t,n,e,r){return i._createNodes(t,n,e,r)},i._linkAttributes=(0,fn.J9)((function(t,n,i){return function(t,n,i){var e={};return t.forEach((function(t){var r=zh(t.source),o=e[r];o||(o={},e[r]=o),o[zh(t.target)]={reactId:v("link"),from:n(t.source),aria:i(t)}})),e}(t,n,i)})),i._fetchLinks=function(t,n){return i._createLinks(t,n)},i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){this._fitParentContainer()},i.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},i.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},i.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var i=this.props,e=i.theme,o=i.className,u=i.styles,a=i.pathColor,s=i.colorsForNodes,l=i.borderColorsForNodes,c=this.state,f=this._computeClassNamesProps(e,a,o,c.containerWidth,c.containerHeight),h=this._computeClassNames(u,f),d=this._normalizeData(this.props.data.SankeyChartData,c.containerWidth,c.containerHeight,s,l),v=d.nodes,p=d.links,g=d.width,m=d.height,b=this._fetchTooltip(h),x=this._nodeAttributes(v,this._accessibility.nodeAriaLabel),w=this._fetchNodes(h,v,x,b),C=this._linkAttributes(p,this._strings.linkFrom,this._accessibility.linkAriaLabel),M=this._fetchLinks(p,C),k={isCalloutVisible:c.isCalloutVisible,directionalHint:y.topAutoEdge,id:"toolTip".concat(this._calloutId),target:c.refSelected,color:c.color,XValue:c.xCalloutValue,YValue:c.yCalloutValue?c.yCalloutValue:c.dataForHoverCard,descriptionMessage:c.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:h.calloutContentRoot,preventDismissOnLostFocus:!0};return r.createElement("div",{className:h.root,role:"presentation",ref:function(n){return t.chartContainer=n},onMouseLeave:this._onCloseCallout},r.createElement(Rs,{direction:vs.bidirectional},r.createElement("svg",{width:g,height:m,id:this._chartId},r.createElement("g",{className:h.links,strokeOpacity:1},M),r.createElement("g",{className:h.nodes},w),k.isCalloutVisible&&r.createElement(Gn,(0,n.Cl)({},k),r.createElement(ys.ChartHoverCard,{XValue:k.XValue,YValue:k.YValue,color:k.color,descriptionMessage:k.descriptionMessage?k.descriptionMessage:""})))))}return r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":this._accessibility.emptyAriaLabel})},i.prototype._computeNodeAttributes=function(t,n){var i=this,e={},r=Oa(".nodeName").append("text").attr("class","tempText").append("tspan").text(null),o=Oa(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);return t.forEach((function(t){var u=Math.max(t.y1-t.y0,0),a=8,s=0,l=t.actualValue;if(u<36){a+=6;var c=Yh(r,i._formatNumber(l));void 0!==c&&(a+=s=c)}var f=function(t,n,i,e){var r=i-e;if(function(t,n,i){var e=Yh(t,n);return void 0!==e&&e<=i}(t,n,r))return n;for(var o=function(t){var n=Yh(t,Xh);return void 0===n?0:n}(t),u="",a=0;a<n.length;a++){u+=n[a],t.text(u);var s=t.node();if(null!==s&&s.getComputedTextLength()>=r-o){u=u.slice(0,-1),u+=Xh;break}}return t.text(null),u}(o,t.name,116,a),h=f.slice(-3)===Xh;e[t.nodeId]={reactId:v("nodeBar"),gElementId:v("nodeGElement"),name:f,aria:n(t,l),trimmed:h,height:u,weightOffset:s}})),Pa(".tempText").remove(),e},i.prototype._linkCalloutAttributes=function(t,n){return{selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:this._formatNumber(t.unnormalizedValue),descriptionMessage:n}},i.prototype._normalizeSankeyData=function(t,i,e,r,o){var u=function(t,n,i,e){var r=t.left,o=t.right,u=t.top,a=t.bottom,s=n-o,l=i-a>0?i-a:0;return{sankey:Hh().nodeWidth(124).extent([[r,u],[s-1,l-6]]).nodeAlign(e?Lh:Sh),height:l,width:s}}(this._margins,i,e,this._isRtl),a=u.sankey,s=u.height,l=u.width,c=function(t){return{nodes:t.nodes.map((function(t){return(0,n.Cl)({},t)})),links:t.links.map((function(t){return(0,n.Cl)({},t)}))}}(t);a(c);var f,h,d=function(t){var n={};return t.nodes.forEach((function(t){var i=t.layer;n[i]?n[i].push(t):n[i]=[t]})),n}(c),v=(f=c.nodes,h={},f.forEach((function(t){h[t.nodeId]=t.value})),h),p=function(t){var n={};return t.forEach((function(t){var i=zh(t.source),e=n[i];e||(e={},n[i]=e),e[zh(t.target)]=t.value})),n}(c.links);return function(t,n,i){Object.values(t).map((function(t){return Ch(t,(function(t){return t.value}))})).forEach((function(e,r){var o=0,u=.01*e,a=t[r];a.forEach((function(t){var i=n[t.nodeId],r=i/e*100;t.actualValue=i,r<1?(t.value=u,o+=1):o+=r}));var s=0!==o?o/100:1;s>1&&a.forEach((function(t){var e=t.value=t.value/s;!function(t,n,i,e){var r=function(t){var r=jh(e,t);t.unnormalizedValue=r;var o=r/n;t.value=Math.max(i*o,t.value)};t.sourceLinks.forEach(r),t.targetLinks.forEach(r)}(t,n[t.nodeId],e,i)}))}))}(d,v,p),function(t,n,i){var e=t.nodePadding(),r=.3*n;Object.values(i).forEach((function(t){var i=n-Ch(t,(function(t){return t.y1-t.y0}));r<i&&(e=Math.min(e,r/(t.length-1)))})),t.nodePadding(e)}(a,s-6,d),a(c),function(t,n,i){t.links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=jh(i,t))})),t.nodes.forEach((function(t){t.actualValue=n[t.nodeId]}))}(c,v,p),function(t,n,i){var e,r;n&&i?(e=n,r=i):(e=Rh.map((function(t){return t.fillColor})),r=Rh.map((function(t){return t.borderColor})));var o=0;t.forEach((function(t){t.color||t.borderColor?t.color&&!t.borderColor?t.borderColor="#757575":t.borderColor&&!t.color&&(t.color="#F5F5F5"):(t.color=e[o],t.borderColor=r[o]),o=(o+1)%e.length}))}(c.nodes,r,o),{width:l,height:s,nodes:c.nodes,links:c.links}},i.prototype._labelTooltipDiv=function(t){var n=Oa("#".concat(this._labelTooltipId));return n.empty()&&(n=Oa("body").append("div").attr("id",this._labelTooltipId).attr("class",t.toolTip).style("opacity",0)),n.attr("class",t.toolTip),n},i.prototype._createLinks=function(t,n){var i=this;if(t){var e=this._linkId;return t.map((function(t,o){var u,a,s,l,c=jh(n,t),f=c.reactId,h=c.from,d=c.aria,v=(a=.5*(u=t).width,s=u.y0,l=u.y1,[{x:u.source.x1,y0:s+a,y1:s-a},{x:u.target.x0,y0:l+a,y1:l-a}]),p="".concat(e,"-").concat(o),g="gradient-".concat(p),m="url(#".concat(g,")"),y=t.source,b=t.target;return r.createElement("g",{key:p},r.createElement("defs",null,r.createElement("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},r.createElement("stop",{offset:"0",stopColor:y.color}),r.createElement("stop",{offset:"100%",stopColor:b.color}))),r.createElement("path",{d:qh(v),id:f,fill:i._fillStreamColors(t,m),stroke:i._fillStreamBorder(t,m),strokeWidth:"2",strokeOpacity:i._getOpacityStreamBorder(t),onMouseOver:function(n){return i._onStreamHover(n,t,h)},onMouseOut:function(){i._onStreamLeave(t)},onFocus:function(n){return i._onFocusLink(n,t,h)},onBlur:i._onBlur,fillOpacity:i._getOpacityStream(t),"data-is-focusable":!0,"aria-label":d,role:"img"}))}))}return[]},i.prototype._createNodes=function(t,n,i,e){var o=this;if(n){var u=this.state,a=this._isRtl?"end":"start";return n.map((function(n,s){var l=i[n.nodeId],c=l.reactId,f=l.gElementId,h=l.height,d=l.trimmed,v=l.name,p=l.weightOffset,g=l.aria,m=h>36,y=n.name,b=n.actualValue,x=n.x0,w=n.x1,C=n.y0,M=function(t,n){return!t.selectedState||t.selectedNodes.has(n.index)&&t.selectedNode||!t.selectedNode?"#FFFFFF":"#323130"}(u,n);return r.createElement("g",{key:s,id:f},r.createElement("rect",{x:x,y:C,height:h,width:w-x,fill:o._fillNodeColors(n),id:c,onMouseOver:o._onHover.bind(o,n),onMouseOut:function(){o._onLeave(n)},onFocus:o._onCloseCallout.bind(o),stroke:o._fillNodeBorder(n),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":g,role:"img"}),h>24&&r.createElement("g",{className:t.nodeTextContainer},r.createElement("g",{className:"nodeName"},r.createElement("text",{id:"".concat(c,"-name"),x:x,y:C,dy:"1.2em",dx:"0.4em",textAnchor:a,fontWeight:"regular","aria-hidden":"true",fill:M,fontSize:10,onMouseOver:o._showTooltip.bind(o,y,d,e),onMouseOut:o._hideTooltip.bind(o,e)},v)),r.createElement("text",{x:m?x:w-p-8,y:C,dy:m?"2em":"1em",dx:m?"0.4em":"0em",textAnchor:a,fontWeight:"bold","aria-hidden":"true",fill:M,fontSize:14},b?o._formatNumber(b):b)))}))}},i.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},i.prototype._onHover=function(t,n){if(n.persist(),this._onCloseCallout(),!this.state.selectedState){var i=function(t){var n=new Array,i=new Set;for(t.sourceLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;)(e=n.shift().target)&&e.sourceLinks&&e.sourceLinks.forEach((function(t){i.add(t),n.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;){var e;(e=n.shift().source)&&e.targetLinks&&e.targetLinks.forEach((function(t){i.add(t),n.push(t)}))}return i}(t),e=function(t){var n=[];return t.forEach((function(t){n.push(t.target),-1===n.indexOf(t.source)&&n.push(t.source)})),n}(i);e.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(e).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(i).map((function(t){return t.index}))),selectedNode:t,refSelected:n,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:this._formatNumber(t.actualValue)})}},i.prototype._formatNumber=function(t){return this.props.formatNumberOptions?t.toLocaleString(void 0,this.props.formatNumberOptions):t.toString()},i.prototype._onStreamHover=function(t,i,e){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var r=function(t){var n=new Array,i=new Set,e=new Set;for(n.push(t.source),i.add(t);n.length>0;){var r=n.shift();e.add(r),r.targetLinks&&r.targetLinks.length>0&&r.targetLinks.forEach((function(t){n.push(t.source),i.add(t)}))}for(n.push(t.target);n.length>0;)r=n.shift(),e.add(r),r.sourceLinks&&r.sourceLinks.length>0&&r.sourceLinks.forEach((function(t){n.push(t.target),i.add(t)}));return{selectedLinks:i,selectedNodes:e}}(i),o=r.selectedLinks,u=r.selectedNodes;this.setState((0,n.Cl)({selectedState:!0,selectedNodes:new Set(Array.from(u).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(o).map((function(t){return t.index}))),refSelected:t},this._linkCalloutAttributes(i,e)))}},i.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},i.prototype._onFocusLink=function(t,i,e){t.persist(),this._onCloseCallout(),this.setState((0,n.Cl)({refSelected:t.currentTarget},this._linkCalloutAttributes(i,e)))},i.prototype._fillStreamColors=function(t,n){var i=this.state;if(i.selectedState&&i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.color:n}},i.prototype._fillStreamBorder=function(t,n){var i=this.state;if(i.selectedState){if(i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.borderColor:n}return Wh}return Wh},i.prototype._getOpacityStream=function(t){var n=this.state;if(n.selectedState){if(!n.selectedLinks.has(t.index))return 1;if(!n.selectedNode)return.3}return 1},i.prototype._getOpacityStreamBorder=function(t){var n=this.state;return!n.selectedState||n.selectedLinks.has(t.index)||n.selectedNode?1:.5},i.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n=t.props.parentRef?t.props.parentRef:t.chartContainer,r=n&&n.getBoundingClientRect().width,o=n&&n.getBoundingClientRect().height;(i!==r||e!==o)&&t.setState({containerWidth:r,containerHeight:o})}))},i.prototype._showTooltip=function(t,n,i,e){n&&(i.style("opacity",.9),i.html(t).style("left",e.pageX+"px").style("top",e.pageY-28+"px"))},i.prototype._hideTooltip=function(t){t.style("opacity",0)},i.prototype._isChartEmpty=function(){var t,n=null===(t=this.props.data)||void 0===t?void 0:t.SankeyChartData;return!(n&&n.nodes.length>0&&n.links.length>0)},i}(r.Component),Uh=(0,t.I)($h,(function(t){var i,e,r,o=t.className,u=t.theme,a=t.pathColor,s=u.effects;return{root:[u.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},o],links:{stroke:a||u.palette.black,fill:u?u.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(i={},i[jt.NK]={fill:"#000000"},i)},nodes:{fill:"#F5F5F5",selectors:(e={},e[jt.NK]={fill:"#000000"},e)},toolTip:(0,n.Cl)((0,n.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(r={},r[jt.NK]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:s.elevation4}}}));function Gh(t){var n=0,i=t.children,e=i&&i.length;if(e)for(;--e>=0;)n+=i[e].value;else n=1;t.value=n}function Zh(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Jh)):void 0===n&&(n=Kh);for(var i,e,r,o,u,a=new nd(t),s=[a];i=s.pop();)if((r=n(i.data))&&(u=(r=Array.from(r)).length))for(i.children=r,o=u-1;o>=0;--o)s.push(e=r[o]=new nd(r[o])),e.parent=i,e.depth=i.depth+1;return a.eachBefore(td)}function Kh(t){return t.children}function Jh(t){return Array.isArray(t)?t[1]:null}function Qh(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function td(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function nd(t){this.data=t,this.depth=this.height=0,this.parent=null}function id(t,n){return t.parent===n.parent?1:2}function ed(t){var n=t.children;return n?n[0]:t.t}function rd(t){var n=t.children;return n?n[n.length-1]:t.t}function od(t,n,i){var e=i/(n.i-t.i);n.c-=e,n.s+=i,t.c+=e,n.z+=i,n.m+=i}function ud(t,n,i){return t.a.parent===n.parent?t.a:i}function ad(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}nd.prototype=Zh.prototype={constructor:nd,count:function(){return this.eachAfter(Gh)},each:function(t,n){let i=-1;for(const e of this)t.call(n,e,++i,this);return this},eachAfter:function(t,n){for(var i,e,r,o=this,u=[o],a=[],s=-1;o=u.pop();)if(a.push(o),i=o.children)for(e=0,r=i.length;e<r;++e)u.push(i[e]);for(;o=a.pop();)t.call(n,o,++s,this);return this},eachBefore:function(t,n){for(var i,e,r=this,o=[r],u=-1;r=o.pop();)if(t.call(n,r,++u,this),i=r.children)for(e=i.length-1;e>=0;--e)o.push(i[e]);return this},find:function(t,n){let i=-1;for(const e of this)if(t.call(n,e,++i,this))return e},sum:function(t){return this.eachAfter((function(n){for(var i=+t(n.data)||0,e=n.children,r=e&&e.length;--r>=0;)i+=e[r].value;n.value=i}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,i=function(t,n){if(t===n)return t;var i=t.ancestors(),e=n.ancestors(),r=null;for(t=i.pop(),n=e.pop();t===n;)r=t,t=i.pop(),n=e.pop();return r}(n,t),e=[n];n!==i;)n=n.parent,e.push(n);for(var r=e.length;t!==i;)e.splice(r,0,t),t=t.parent;return e},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(i){i!==t&&n.push({source:i.parent,target:i})})),n},copy:function(){return Zh(this).eachBefore(Qh)},[Symbol.iterator]:function*(){var t,n,i,e,r=this,o=[r];do{for(t=o.reverse(),o=[];r=t.pop();)if(yield r,n=r.children)for(i=0,e=n.length;i<e;++i)o.push(n[i])}while(o.length)}},ad.prototype=Object.create(nd.prototype);var sd,ld,cd=(0,o.Z)(),fd=function(t){function i(n,i,e,r,o,u){void 0===r&&(r=[]),void 0===o&&(o=[]);var a=t.call(this,n,e,r,o)||this;return a.composition=i,a._treeTraversal=u,a}return(0,n.C6)(i,t),i.prototype.C=function(t,n){var i,e,r,o,u,a,s=(t=t<65?65:t>90?90:t)||75,l=Zh(this.treeData,(function(t){return t.children})),c=(null==l?void 0:l.height)+1;(function(){var t=id,n=1,i=1,e=null;function r(r){var s=function(t){for(var n,i,e,r,o,u=new ad(t,0),a=[u];n=a.pop();)if(e=n._.children)for(n.children=new Array(o=e.length),r=o-1;r>=0;--r)a.push(i=n.children[r]=new ad(e[r],r)),i.parent=n;return(u.parent=new ad(null,0)).children=[u],u}(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(u),e)r.eachBefore(a);else{var l=r,c=r,f=r;r.eachBefore((function(t){t.x<l.x&&(l=t),t.x>c.x&&(c=t),t.depth>f.depth&&(f=t)}));var h=l===c?1:t(l,c)/2,d=h-l.x,v=n/(c.x+h+d),p=i/(f.depth||1);r.eachBefore((function(t){t.x=(t.x+d)*v,t.y=t.depth*p}))}return r}function o(n){var i=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(i){!function(t){for(var n,i=0,e=0,r=t.children,o=r.length;--o>=0;)(n=r[o]).z+=i,n.m+=i,i+=n.s+(e+=n.c)}(n);var o=(i[0].z+i[i.length-1].z)/2;r?(n.z=r.z+t(n._,r._),n.m=n.z-o):n.z=o}else r&&(n.z=r.z+t(n._,r._));n.parent.A=function(n,i,e){if(i){for(var r,o=n,u=n,a=i,s=o.parent.children[0],l=o.m,c=u.m,f=a.m,h=s.m;a=rd(a),o=ed(o),a&&o;)s=ed(s),(u=rd(u)).a=n,(r=a.z+f-o.z-l+t(a._,o._))>0&&(od(ud(a,n,e),n,r),l+=r,c+=r),f+=a.m,l+=o.m,h+=s.m,c+=u.m;a&&!rd(u)&&(u.t=a,u.m+=f-c),o&&!ed(s)&&(s.t=o,s.m+=l-h,e=n)}return e}(n,r,n.parent.A||e[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*i}return r.separation=function(n){return arguments.length?(t=n,r):t},r.size=function(t){return arguments.length?(e=!1,n=+t[0],i=+t[1],r):e?null:[n,i]},r.nodeSize=function(t){return arguments.length?(e=!0,n=+t[0],i=+t[1],r):e?[n,i]:null},r})().nodeSize([s,s/1.5]).separation((function(t,n){return t.parent===l&&n.parent===l?3.5:1}))(l).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=n/2}));var f=[],h=0,d=function(t){var n,i;t.id=h,f.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(n=t.data)||void 0===n?void 0:n.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(i=t.parent)||void 0===i?void 0:i.id}),h++};0===this._treeTraversal?l.each((function(t){d(t)})):l.eachBefore((function(t){d(t)}));for(var v=3*s,p=v/3.45,g=20,m=new Set,y=0,b=f;y<b.length;y++){var x=b[y],w=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(f[x.parentID].dataName,"\n ").concat(f[x.parentID].subName);if(!x.children&&!m.has(x.parentID)&&3===c){var C=(v-g)/2,M=p;m.add(x.parentID),this.k(x.id,f[x.parentID].x,f[x.parentID].y,f[x.id].x,f[x.id].y,!0,v,p,g);for(var k=null===(i=f[x.parentID])||void 0===i?void 0:i.children,L=(null===(e=f[x.parentID])||void 0===e?void 0:e.x)-C/2-10,S=(null===(r=f[x.parentID])||void 0===r?void 0:r.x)+C/2+10,V=null===(o=f[x.parentID])||void 0===o?void 0:o.x,A=null===(u=k[0])||void 0===u?void 0:u.y,N=0;N<k.length;++N){var D=k[N];void 0!==this.composition?0===this.composition?(this.N(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,N%2==0?1===k.length?V:L:S,A,D.data.fill,1===k.length?v:C,p,D.id,w),N%2==1&&(A+=M+g)):(this.N(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,V,A,D.data.fill,v,p,D.id,w),A+=M+g):k.length>2?(this.N(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,N%2==0?L:S,A,D.data.fill,1===k.length?v:C,p,D.id,w),N%2==1&&(A+=M+g)):(this.N(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,V,A,D.data.fill,v,p,D.id,w),A+=M+g)}}if((x.children||c<=2)&&(this.N(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,v,p,x.id,w),0===x.id&&x.children)){var T=di(k=null===(a=f[x.id])||void 0===a?void 0:a.children,(function(t){return t.x})),O=vi(k,(function(t){return t.x}));this.k(x.id,x.x,x.y,T,x.children[0].y,!1,v,p,g,O)}}},i}(function(){function t(t,n,i,e){void 0===i&&(i=[]),void 0===e&&(e=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=n,this._nodeElements=i,this._linkElements=e}return t.prototype.D=function(t,n,i,e){var r,o=t.split(/\s+/).reverse(),u="",a=Oa(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);e&&a.attr("class",e);for(var s=[];u=o.pop();)if(s.push(u),a.text(s.join(" ")+" "),null!==a.node()&&a.node().getComputedTextLength()>n-i){s.pop(),s.push("...");break}return r=s.join(" ")+" ",a.text(null),Pa(".tempText").remove(),r},t.prototype.N=function(t,n,i,e,o,u,a,s,l,c,f){var h="nodeId: ".concat(c," \nnodeMainText: ").concat(t,"\nsubText ").concat(n," ").concat(f),d=o-s/2;!e&&0===c&&i||this._nodeElements.push(r.createElement("rect",{width:s,height:l,x:d,y:u,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:a,key:"".concat(c).concat(this.styleClassNames.rectNode)})),n&&(n=this.D(n,s,s/4,this.styleClassNames.rectSubText)),i&&(i=this.D(i,s,s/4,this.styleClassNames.rectBodyText)),e&&(e=this.D(e,s,s/4,this.styleClassNames.rectMetricText)),t=this.D(t,s,s/4,this.styleClassNames.rectText);var v=e?r.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:d+s/2},e):i?r.createElement(r.Fragment,null,r.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n),r.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:d+s/2},i)):r.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n);n||e||i?this._nodeElements.push(r.createElement("text",{textAnchor:"middle",className:e?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:e?u+l/2.5:u+l/2,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t,v)):this._nodeElements.push(r.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:u+l/1.6,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t))},t.prototype.O=function(t,n,i,e,r,o,u,a,s){var l="M".concat(i-o/2,",").concat(e-a," H").concat(s+o/2," M").concat(t,",").concat(e-a,"\n V").concat(n+u+a/2),c="M".concat(t,",").concat(n+u+a/2," V").concat(n+5*a,"\n H").concat(t-o/2," H").concat(t+o/2);return r?c:l},t.prototype.k=function(t,n,i,e,o,u,a,s,l,c){void 0===c&&(c=0),this._linkElements.push(r.createElement("path",{className:this.styleClassNames.link,d:this.O(n,i,e,o,u,a,s,l,c),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),hd=function(t){function i(n){var i,e,r,o,u,a=this;return(a=t.call(this,n)||this)._nodeElements=[],a._linkElements=[],a._margin={top:(null===(i=a.props.margins)||void 0===i?void 0:i.top)||30,bottom:(null===(e=a.props.margins)||void 0===e?void 0:e.bottom)||30,left:(null===(r=a.props.margins)||void 0===r?void 0:r.left)||50,right:(null===(o=a.props.margins)||void 0===o?void 0:o.right)||20},a._width=a.props.width||1500,a._height=a.props.height||700,a._treeData=a.props.treeData,a._composition=null===(u=a.props)||void 0===u?void 0:u.composition,a._treeTraversal=a.props.treeTraversal,a.state={_width:a._width,_height:a._height},a}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){var t=this.props,n=t.theme,i=t.className,e=t.styles;this._classNames=cd(e,{theme:n,className:i}),this.P(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},i.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var n=Pa("text"),i=Pa("rect"),e=Pa("path");0===this._nodeElements.length&&0===this._linkElements.length&&(n.remove(),i.remove(),e.remove()),this.P()}},i.prototype.P=function(){var t=[],n=[],i=new fd(this._treeData,this._composition,this._classNames,t,n,this._treeTraversal),e=this.state._width-this._margin.left-this._margin.right;i.C(this.props.layoutWidth,e),this._nodeElements=t,this._linkElements=n},i.prototype.render=function(){var t;return r.createElement(Rs,null,r.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},r.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},r.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),r.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},i}(r.Component),dd=(0,t.I)(hd,(function(t){return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:t.theme.palette.neutralSecondary,strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:t.theme.semanticColors.bodyBackground,padding:"10px",rx:"2px"},rectText:(0,n.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.large),rectSubText:(0,n.Cl)({fill:t.theme.palette.neutralPrimary},t.theme.fonts.medium),rectBodyText:(0,n.Cl)({fill:t.theme.palette.neutralPrimaryAlt},t.theme.fonts.xSmall),rectMetricText:(0,n.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.xLarge)}}));!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(sd||(sd={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(ld||(ld={}));var vd,pd,gd=(0,o.Z)(),md=function(t){function i(n){var i=t.call(this,n)||this;return i.margin={top:2,right:0,bottom:0,left:0},i._isRTL=(0,u.jI)(),i.state={_points:null,_width:i.props.width||80,_height:i.props.height||20,_valueTextWidth:i.props.valueTextWidth||80},i._emptyChartId=v("_SparklineChart_empty"),i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){var t=this;if(!this._isChartEmpty()){var n=Af().x((function(n){return t.x(n.x)})).y0(this.state._height).y1((function(n){return t.y(n.y)})).curve(Yc);this.area=n;var i=Uc().x((function(n){return t.x(n.x)})).y((function(n){return t.y(n.y)})).curve(Yc);this.line=i;var e=this.props.data.lineChartData[0].data,r=function(t,n){let i,e;if(void 0===n)for(const n of t)null!=n&&(void 0===i?n>=n&&(i=e=n):(i>n&&(i=n),e<n&&(e=n)));else{let r=-1;for(let o of t)null!=(o=n(o,++r))&&(void 0===i?o>=o&&(i=e=o):(i>o&&(i=o),e<o&&(e=o)))}return[i,e]}(e,(function(t){return t.x})),o=r[0],u=r[1];this.x=Ie().domain([o,u]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Ie().domain([0,vi(e,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:e})}},i.prototype.drawSparkline=function(){return r.createElement(r.Fragment,null,r.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),r.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,role:"img","aria-hidden":!0}))},i.prototype.render=function(){var t=gd(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement(Rs,{direction:vs.horizontal,isCircularNavigation:!0,className:t.inlineBlock},r.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?r.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0,"aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)},this.state._points?this.drawSparkline():null):r.createElement(r.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?r.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},r.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):r.createElement(r.Fragment,null)))},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},i}(r.Component),yd=(0,t.I)(md,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,n.Cl)((0,n.Cl)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText})}})),bd=(0,o.Z)(),xd=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,u.jI)(),e._getMargins=function(t){e.margins=t},e._renderContentForOnlyBars=function(t){var n,i,o,u=e.props.useSingleColor,a=void 0!==u&&u,s=0;return e.props.data.forEach((function(n,i){n.y===t.y&&(s=i)})),o=a?e.props.colors?e._createColors()(1):_c(1,0,null===(n=e.props.theme)||void 0===n?void 0:n.isInverted):t.color?t.color:e.props.colors?e._createColors()(t.x):_c(s,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted),r.createElement(r.Fragment,null,r.createElement(ys.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:o,culture:e.props.culture}))},e._renderCallout=function(t){return t?e._renderContentForOnlyBars(t):null},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._getGraphData=function(t,n,i,r,o,u){return e._bars=e._yAxisType===Ua.NumericAxis?e._createNumericBars(i,r,o,u):e._createStringBars(i,r,o,u)},e._refCallback=function(t,n){e._refArray.push({index:n,refElement:t})},e._getCalloutContentForBar=function(t){var n,i,r,o=[],u=e.props.useSingleColor,a=void 0!==u&&u,s=e.props.data,l=s.filter((function(n){return n.y===t.y})),c=0;return s.forEach((function(n,i){n.y===t.y&&(c=i)})),r=a?e.props.colors?e._createColors()(1):_c(1,0,null===(n=e.props.theme)||void 0===n?void 0:n.isInverted):l[0].color?l[0].color:e.props.colors?e._createColors()(l[0].x):_c(c,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted),o.push({legend:l[0].legend,y:l[0].x,color:r,data:l[0].yAxisCalloutData,yAxisCalloutData:l[0].yAxisCalloutData}),{YValueHover:o,hoverXValue:t.yAxisCalloutData||t.y.toString()}},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},e._onBarFocus=function(t,n,i){if(!1===e.state.isLegendSelected||e.state.isLegendSelected&&e.state.selectedLegendTitle===t.legend){var r=e._getCalloutContentForBar(t),o=r.YValueHover,u=r.hoverXValue;e._refArray.forEach((function(r,a){n===a&&e.setState({refSelected:r.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:e.props.useSingleColor?i:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:u,callOutAccessibilityData:t.callOutAccessibilityData})}))}},e._getScales=function(t,n,i){if(i){var r=vi(e._points,(function(t){return t.x})),o=vi(e._points,(function(t){return t.y}));return{xBarScale:Ie().domain(e._isRtl?[r,0]:[0,r]).nice().range([e.margins.left,n-e.margins.right]),yBarScale:u=Ie().domain([0,o]).range([t-e.margins.bottom,e.margins.top])}}r=vi(e._points,(function(t){return t.x}));var u=ku().domain(e._yAxisLabels).range([t-e.margins.bottom-e._barHeight/2,e.margins.top+e._barHeight/2]).padding(e.props.yAxisPadding||0);return{xBarScale:Ie().domain(e._isRtl?[r,0]:[0,r]).nice().range([e.margins.left,n-e.margins.right]),yBarScale:u}},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,i){var o=e.props.useSingleColor,u=[];return t.forEach((function(t,n){var i,r=o?e.props.colors?e._createColors()(1):_c(1,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):t.color,a={title:t.legend,color:r,action:function(){e._onLegendClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(t){e._onLegendLeave(t)}};u.push(a)})),r.createElement(Ul,(0,n.Cl)({legends:u,enabledWrapLines:e.props.enabledLegendsWrapLines,overflowProps:e.props.legendsOverflowProps,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard,overflowText:e.props.legendsOverflowText},e.props.legendProps))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._xMax=Math.max(n[n.length-1],e.props.xMaxValue||0)}},e._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.x,e=t.yAxisCalloutData||t.y;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,". ")+"".concat(e,".")},e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},e._calloutId=v("callout"),e._tooltipId=v("HBCWATooltipID_"),e._refArray=[],e._xAxisType=e.props.data&&e.props.data.length>0?ls(e.props.data[0].x,!0):$a.NumericAxis,e._yAxisType=e.props.data&&e.props.data.length>0?ls(e.props.data[0].y,!1):Ua.StringAxis,e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this;this._adjustProps();var i=(0,n.fX)([],this._points,!0).reverse();this._yAxisLabels=i.map((function(t){return t.y})),this._xMax=Math.max(vi(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var e=this._getLegendData(this._points,this.props.theme.palette);this._classNames=bd(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var o=(0,n.Cl)((0,n.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),fs(this.state.callOutAccessibilityData)),u={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return r.createElement(rf,(0,n.Cl)({},this.props,{points:this._points,chartType:qa.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:o,tickParams:u,legendBars:e,barwidth:this._barHeight,focusZoneDirection:vs.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return r.createElement(r.Fragment,null,r.createElement("g",null,t._bars))}}))},i.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark]},i.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._xMax);return Ie().domain(e).range(this._colors)},i.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor?n:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},i.prototype._createNumericBars=function(t,i,e,o){var u=this,a=this.props.useSingleColor,s=void 0!==a&&a,l=this._getScales(t,i,!0),c=l.xBarScale,f=l.yBarScale,h=(0,n.fX)([],this._points,!0);h.sort((function(t,n){var i="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof n.y?n.y:parseFloat(n.y))-i}));var d=h.map((function(t,n){var e,o,a,l=!0;return(u.state.isLegendHovered||u.state.isLegendSelected)&&(l=u.state.selectedLegendTitle===t.legend),u._classNames=bd(u.props.styles,{theme:u.props.theme,legendColor:u.state.color,shouldHighlight:l}),Math.max(f(t.y),0)<1?r.createElement(r.Fragment,{key:t.x}," "):(a=s?u.props.colors?u._createColors()(1):_c(1,0,null===(e=u.props.theme)||void 0===e?void 0:e.isInverted):u.props.colors?u._createColors()(t.x):_c(n,0,null===(o=u.props.theme)||void 0===o?void 0:o.isInverted),r.createElement("rect",{key:t.y,x:u._isRtl?c(t.x):u.margins.left,className:u._classNames.opacityChangeOnHover,y:f(t.y)-u._barHeight/2,"data-is-focusable":l,width:u._isRtl?i-u.margins.right-Math.max(c(t.x),0):Math.max(c(t.x),0)-u.margins.left,height:u._barHeight,ref:function(n){u._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:u._onBarHover.bind(u,t,a),"aria-label":u._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(u._calloutId),onMouseLeave:u._onBarLeave,onFocus:u._onBarFocus.bind(u,t,n,a),onBlur:u._onBarLeave,fill:t.color&&!s?t.color:a}))}));return d},i.prototype._tooltipOfYAxislabels=function(t){var n=this,i=t.tooltipCls,e=t.yAxis,r=t.id;if(null===e)return null;for(var o=Oa("body").append("div").attr("id",r).attr("class",i).style("opacity",0),u=e.selectAll("#BaseSpan")._groups[0],a=u&&Object.keys(u).length,s=[],l=0;l<a;l++){var c=u[l].dataset&&Object.values(u[l].dataset)[0];s.push(c)}var f=e.selectAll(".tick")._groups[0],h=f&&Object.keys(f).length,d=function(t){Oa(f[t]).on("mouseover",(function(i,e){n.state.tooltipElement||(o.style("opacity",.9),o.html(s[t]).style("left",i.pageX+"px").style("top",i.pageY-28+"px"))})).on("mouseout",(function(t){o.style("opacity",0)}))};for(l=0;l<h;l++)d(l)},i.prototype._createStringBars=function(t,n,i,e){var o=this,u=this._getScales(t,n,!1),a=u.xBarScale,s=u.yBarScale,l=this.props.useSingleColor,c=void 0!==l&&l,f=this._points.map((function(t,i){var e,u,l;return Math.max(s(t.y),0)<1?r.createElement(r.Fragment,{key:t.x}," "):(l=c?o.props.colors?o._createColors()(1):_c(1,0,null===(e=o.props.theme)||void 0===e?void 0:e.isInverted):o.props.colors?o._createColors()(t.x):_c(i,0,null===(u=o.props.theme)||void 0===u?void 0:u.isInverted),r.createElement("rect",{transform:"translate(0,".concat(.5*(s.bandwidth()-o._barHeight),")"),key:t.x,x:o._isRtl?a(t.x):o.margins.left,y:s(t.y),width:o._isRtl?n-o.margins.right-Math.max(a(t.x),0):Math.max(a(t.x),0)-o.margins.left,height:o._barHeight,"aria-labelledby":"toolTip".concat(o._calloutId),"aria-label":o._getAriaLabel(t),role:"img",ref:function(n){o._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:o._onBarHover.bind(o,t,l),onMouseLeave:o._onBarLeave,onBlur:o._onBarLeave,"data-is-focusable":!0,onFocus:o._onBarFocus.bind(o,t,i,l),fill:t.color&&!c?t.color:l}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var h=Oa(e).call(s);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(d)}return f},i.prototype._onLegendClick=function(t){this.state.isLegendSelected?this.state.selectedLegendTitle===t?this.setState({isLegendSelected:!1,selectedLegendTitle:t}):this.setState({selectedLegendTitle:t}):this.setState({isLegendSelected:!0,selectedLegendTitle:t})},i.prototype._onLegendHover=function(t){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:t})},i.prototype._onLegendLeave=function(t){(t||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this.state.isLegendSelected})},i}(r.Component),wd=(0,t.I)(xd,(function(t){var i=t.shouldHighlight,e=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1"},xAxisTicks:[],tooltip:(0,n.Cl)((0,n.Cl)({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));!function(t){t.Percentage="percentage",t.Fraction="fraction"}(vd||(vd={})),function(t){t.SingleSegment="single-segment",t.MultipleSegments="multiple-segments"}(pd||(pd={}));var Cd=[{minRadius:52,arcWidth:12,fontSize:20},{minRadius:70,arcWidth:16,fontSize:24},{minRadius:88,arcWidth:20,fontSize:32},{minRadius:106,arcWidth:24,fontSize:32},{minRadius:124,arcWidth:28,fontSize:40},{minRadius:142,arcWidth:32,fontSize:40}],Md=(0,o.Z)(),kd=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0===n&&e===pd.SingleSegment?"".concat(t.legend,", ").concat(t.size," out of ").concat(i," or ").concat((t.size/i*100).toFixed(),"%"):"".concat(t.legend,", ").concat(t.start," to ").concat(t.end):0===n&&e===pd.SingleSegment?"".concat(t.size," (").concat((t.size/i*100).toFixed(),"%)"):"".concat(t.start," - ").concat(t.end)},Ld=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0!==n?t.toString():e===vd.Fraction?"".concat((t/i*100).toFixed(),"%"):"".concat(t,"/").concat(i):"function"==typeof e?e([t-n,i-n]):0!==n?t.toString():e===vd.Fraction?"".concat(t,"/").concat(i):"".concat((t/i*100).toFixed(),"%")},Sd=function(t){function i(i){var e=t.call(this,i)||this;return e._getMargins=function(){var t=e.props,n=t.hideMinMax;return{left:16+(n?0:40),right:16+(n?0:40),top:16+(t.chartTitle?27:2),bottom:16+(t.sublabel?20:0)}},e._getStylesBasedOnBreakpoint=function(){for(var t=Cd.length-1;t>=0;t-=1)if(e._outerRadius>=Cd[t].minRadius)return{arcWidth:Cd[t].arcWidth,chartValueSize:Cd[t].fontSize};return{arcWidth:Cd[0].arcWidth,chartValueSize:Cd[0].fontSize}},e._processProps=function(){var t=e.props,n=t.minValue,i=void 0===n?0:n,r=t.maxValue,o=t.theme,u=i,a=e.props.segments.map((function(t,n){var i=Math.max(t.size,0);return u+=i,{legend:t.legend,size:i,color:void 0!==t.color?Ic(t.color,o.isInverted):_c(n,0,o.isInverted),accessibilityData:t.accessibilityData,start:u-i,end:u}}));void 0!==r&&u<r&&(a.push({legend:"Unknown",size:r-u,color:o.palette.neutralLight,start:u,end:r}),u=r);var s=Lc().padAngle(2/e._outerRadius).padRadius(e._outerRadius),l=e._isRTL?Array.from(a).reverse():a,c=-Math.PI/2,f=l.map((function(t,n){var r=c+t.size/(u-i)*Math.PI,o=s({innerRadius:e._innerRadius,outerRadius:e._outerRadius,startAngle:c,endAngle:r});return c=r,{d:o,segmentIndex:e._isRTL?a.length-1-n:n}}));return e._minValue=i,e._maxValue=u,e._segments=a,{arcs:f}},e._renderNeedle=function(){var t=function(t,n,i){var e=(t-n)/(i-n)*180;return e<0?e=0:e>180&&(e=180),e}(e.props.chartValue,e._minValue,e._maxValue),n=e._isRTL?180-t:t,i=e._outerRadius-e._innerRadius+4;return r.createElement("g",{transform:"rotate(".concat(n,", 0, 0)")},r.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-i,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-i,",").concat(2,"\n L 0,").concat(4,"\n A ").concat(4,",").concat(4,",0,0,0,0,").concat(-4,"\n "),strokeWidth:2,className:e._classNames.needle,transform:"translate(".concat(2-e._innerRadius,")"),"data-is-focusable":!0,onFocus:function(t){return e._handleFocus(t,"Needle")},onBlur:e._handleBlur,onMouseEnter:function(t){return e._handleMouseOver(t,"Needle")},onMouseMove:function(t){return e._handleMouseOver(t,"Needle")},role:"img","aria-label":"Current value: "+Ld(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat)}))},e._renderLegends=function(){if(e.props.hideLegend)return null;var t=e._segments.map((function(t){return{title:t.legend,color:t.color,action:function(){e.state.selectedLegend===t.legend?e.setState({selectedLegend:""}):e.setState({selectedLegend:t.legend})},hoverAction:function(){e.setState({hoveredLegend:t.legend})},onMouseOutAction:function(){e.setState({hoveredLegend:""})}}}));return r.createElement("div",{className:e._classNames.legendsContainer},r.createElement(Ul,(0,n.Cl)({legends:t,centerLegends:!0},e.props.legendProps)))},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.hoveredLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.hoveredLegend},e._handleFocus=function(t,n){e._showCallout(t.target,n,!0)},e._handleBlur=function(){e._hideCallout(!0)},e._handleMouseOver=function(t,n){e._showCallout(t.target,n,!1)},e._handleMouseOut=function(){e._hideCallout(!1)},e._handleCalloutDismiss=function(){e._hideCallout(!1)},e._showCallout=function(t,i,r){if(e._calloutAnchor!==i){e._calloutAnchor=i;var o="Current value is "+Ld(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat,!0),u=e._segments.map((function(t){return{legend:t.legend,y:kd(t,e._minValue,e._maxValue,e.props.variant),color:t.color}}));e.setState((0,n.Cl)({calloutTarget:t,isCalloutVisible:["Needle","Chart value"].includes(i)||""===e.state.selectedLegend||e.state.selectedLegend===i,hoverXValue:o,hoverYValues:u},r?{focusedElement:i}:{}))}},e._hideCallout=function(t){e._calloutAnchor="",e.setState((0,n.Cl)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},t?{focusedElement:""}:{}))},e._wrapContent=function(t,n,i){var e=Oa("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},e._multiValueCallout=function(t){var i=e._yValueHoverSubCountsExists(t.YValueHover);return r.createElement("div",{className:e._classNames.calloutContentRoot},r.createElement("div",{className:e._classNames.calloutDateTimeContainer,style:i?{marginBottom:"11px"}:{}},r.createElement("div",(0,n.Cl)({className:e._classNames.calloutContentX},fs(t.xAxisCalloutAccessibilityData,"text",!1)),(0,Zn.U)(t.hoverXValue,e.props.culture))),r.createElement("div",{className:e._classNames.calloutInfoContainer,style:i?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,o,u){var a=o+1===u.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return r.createElement("div",(0,n.Cl)({},fs(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(o),style:i?(0,n.Cl)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,n.Cl)({},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),e._getCalloutContent(t,o,i,a))})),!!t.descriptionMessage&&r.createElement("div",{className:e._classNames.descriptionMessage},t.descriptionMessage)))},e._getChartTitle=function(){var t=e.props.chartTitle;return(t?"".concat(t,". "):"")+"Gauge chart with ".concat(e._segments.length," segments. ")},e._margins=e._getMargins(),e._legendsHeight=i.hideLegend?0:24,e.state={hoveredLegend:"",selectedLegend:"",focusedElement:"",calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[],width:140+e._margins.left+e._margins.right,height:70+e._margins.top+e._margins.bottom+e._legendsHeight},e._isRTL=(0,u.jI)(i.theme),e._calloutAnchor="",e}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},i.prototype.render=function(){var t=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var i=this.props.width||this.state.width,e=this.props.height||this.state.height;this._outerRadius=Math.min((i-(this._margins.left+this._margins.right))/2,e-(this._margins.top+this._margins.bottom+this._legendsHeight));var o=this._getStylesBasedOnBreakpoint(),u=o.arcWidth,a=o.chartValueSize;this._innerRadius=this._outerRadius-u;var s=this._processProps().arcs;return this._classNames=Md(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:i,chartHeight:e-this._legendsHeight,chartValueSize:a}),r.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},r.createElement(Rs,{direction:vs.horizontal},r.createElement("svg",{className:this._classNames.chart,role:"region","aria-label":this._getChartTitle(),onMouseLeave:this._handleMouseOut},r.createElement("g",{transform:"translate(".concat(i/2,", ").concat(e-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&r.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle,"aria-hidden":!0},this.props.chartTitle),!this.props.hideMinMax&&r.createElement(r.Fragment,null,r.createElement("text",{x:(this._isRTL?1:-1)*(this._outerRadius+4),y:0,textAnchor:"end",className:this._classNames.limits,role:"img","aria-label":"Min value: ".concat(this._minValue)},ds(this._minValue)),r.createElement("text",{x:(this._isRTL?-1:1)*(this._outerRadius+4),y:0,textAnchor:"start",className:this._classNames.limits,role:"img","aria-label":"Max value: ".concat(this._maxValue)},ds(this._maxValue))),s.map((function(i,e){var o=t._segments[i.segmentIndex];return r.createElement("path",(0,n.Cl)({key:e,d:i.d,fill:o.color,fillOpacity:t._legendHighlighted(o.legend)||t._noLegendHighlighted()?1:.1,strokeWidth:t.state.focusedElement===o.legend?2:0,className:t._classNames.segment},fs((0,n.Cl)({ariaLabel:kd(o,t._minValue,t._maxValue,t.props.variant,!0)},o.accessibilityData),"img",!0),{onFocus:function(n){return t._handleFocus(n,o.legend)},onBlur:t._handleBlur,onMouseEnter:function(n){return t._handleMouseOver(n,o.legend)},onMouseMove:function(n){return t._handleMouseOver(n,o.legend)},"data-is-focusable":t._legendHighlighted(o.legend)||t._noLegendHighlighted()}))})),this._renderNeedle(),r.createElement("g",{onMouseEnter:function(n){return t._handleMouseOver(n,"Chart value")},onMouseMove:function(n){return t._handleMouseOver(n,"Chart value")}},r.createElement(Jc,{content:Ld(this.props.chartValue,this._minValue,this._maxValue,this.props.chartValueFormat),textProps:{x:0,y:0,textAnchor:"middle",className:this._classNames.chartValue,"aria-hidden":"true"},maxWidth:2*this._innerRadius-24,wrapContent:this._wrapContent})),this.props.sublabel&&r.createElement(Jc,{content:this.props.sublabel,textProps:{x:0,y:4,textAnchor:"middle",dominantBaseline:"hanging",className:this._classNames.sublabel},maxWidth:2*this._innerRadius,wrapContent:this._wrapContent})))),this._renderLegends(),!this.props.hideTooltip&&this.state.isCalloutVisible&&r.createElement(Gn,(0,n.Cl)({target:this.state.calloutTarget,directionalHint:y.topAutoEdge,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},i.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},i.prototype._getCalloutContent=function(t,n,i,e){var o=e?{}:{marginRight:"16px"},u=void 0!==t.index&&-1!==t.index,a=Md(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:u}),s=this.props.culture,l=(0,Zn.U)(t.y,s);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var c=t.yAxisCalloutData;return r.createElement("div",{style:o},r.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),Object.keys(c).map((function(t){return r.createElement("div",{key:t,className:a.calloutBlockContainer},r.createElement("div",{className:a.calloutlegendText}," ",(0,Zn.U)(t,s)),r.createElement("div",{className:a.calloutContentY},(0,Zn.U)(c[t],s)))})))}return r.createElement("div",{style:i?o:{}},i&&r.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),r.createElement("div",{id:"".concat(n,"_").concat(t.y),className:a.calloutBlockContainer},u&&r.createElement(Yl,{svgProps:{className:a.shapeStyles},pathProps:{fill:t.color},shape:as[t.index%Object.keys(cs).length]}),r.createElement("div",null,r.createElement("div",{className:a.calloutlegendText}," ",t.legend),r.createElement("div",{className:a.calloutContentY},(0,Zn.U)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,s)))))},i}(r.Component),Vd=(0,t.I)(Sd,(function(t){var i,e,r,o,u=t.theme,a=t.chartValueSize,s=t.chartWidth,l=t.chartHeight,c=t.className,f=t.lineColor,h=t.toDrawShape;return{root:[u.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},c],chart:{display:"block",width:s,height:l},limits:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:u.palette.neutralPrimary},chartValue:{fontSize:a,fontWeight:jt.BO.semibold,fill:u.palette.neutralPrimary},sublabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:u.palette.neutralPrimary},needle:{fill:u.palette.black,stroke:u.semanticColors.bodyBackground},chartTitle:{fontSize:jt.s.small,fill:u.palette.neutralPrimary},segment:{outline:"none",stroke:u.semanticColors.focusBorder},legendsContainer:{width:s},calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:u.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,n.Cl)((0,n.Cl)({},u.fonts.small),{lineHeight:"16px",opacity:"0.85",color:u.semanticColors.bodySubtext})],calloutBlockContainer:[u.fonts.mediumPlus,{marginTop:"13px",color:u.semanticColors.bodyText},!h&&{selectors:(i={},i[jt.up]={forcedColorAdjust:"none"},i),borderLeft:"4px solid ".concat(f),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,n.Cl)((0,n.Cl)({},u.fonts.small),{lineHeight:"16px",selectors:(e={},e[jt.NK]={color:"rgb(255, 255, 255)"},e),color:u.semanticColors.bodySubtext}),calloutContentY:[(0,n.Cl)((0,n.Cl)({},u.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(r={},r[jt.NK]={color:"rgb(255, 255, 255)"},r)})],descriptionMessage:[u.fonts.small,{selectors:(o={},o[jt.NK]={color:"rgb(255, 255, 255)"},o),color:u.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(u.semanticColors.menuDivider)}]}}));(0,i(409).v)("@fluentui/react-charting","5.21.10")}(),FluentUIReactCharting=e}();
|
|
1
|
+
var FluentUIReactCharting;!function(){"use strict";var t={179:function(t,n,i){i.d(n,{C6:function(){return r},Cl:function(){return o},Tt:function(){return a},fX:function(){return u}});var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},e(t,n)};function r(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var o=function(){return o=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o.apply(this,arguments)};function a(t,n){var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(i[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(e=Object.getOwnPropertySymbols(t);r<e.length;r++)n.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(t,e[r])&&(i[e[r]]=t[e[r]])}return i}function u(t,n,i){if(i||2===arguments.length)for(var e,r=0,o=n.length;r<o;r++)!e&&r in n||(e||(e=Array.prototype.slice.call(n,0,r)),e[r]=n[r]);return t.concat(e||Array.prototype.slice.call(n))}Object.create,Object.create},934:function(t,n,i){i.d(n,{DU:function(){return o},Iy:function(){return u}});var e,r=i(192);function o(t){e!==t&&(e=t)}function a(){return void 0===e&&(e="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),e}function u(){return{rtl:a(),shadowConfig:r.ou}}e=a()},290:function(t,n,i){i.d(n,{nr:function(){return l}});var e,r=i(179),o=i(192),a="__stylesheet__",u="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(t){}var l=function(){function t(t,n){var i,e,o,a,u,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,r.Cl)({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(i=null==n?void 0:n.classNameToArgs)&&void 0!==i?i:this._classNameToArgs,this._counter=null!==(e=null==n?void 0:n.counter)&&void 0!==e?e:this._counter,this._keyToClassName=null!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==n?void 0:n.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(u=null==n?void 0:n.preservedRules)&&void 0!==u?u:this._preservedRules,this._rules=null!==(s=null==n?void 0:n.rules)&&void 0!==s?s:this._rules}return t.getInstance=function(n){if(e=s[a],s[o.Se])return s[o.Se].getInstance(n);if(!e||e._lastStyleElement&&e._lastStyleElement.ownerDocument!==document){var i=(null==s?void 0:s.FabricConfig)||{},r=new t(i.mergeStyles,i.serializedStylesheet);e=r,s[a]=r}return e},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,r.Cl)((0,r.Cl)({},this._config),t)},t.prototype.onReset=function(t){var n=this;return this._onResetCallbacks.push(t),function(){n._onResetCallbacks=n._onResetCallbacks.filter((function(n){return n!==t}))}},t.prototype.onInsertRule=function(t){var n=this;return this._onInsertRuleCallbacks.push(t),function(){n._onInsertRuleCallbacks=n._onInsertRuleCallbacks.filter((function(n){return n!==t}))}},t.prototype.getClassName=function(t){var n=this._config.namespace,i=t||this._config.defaultPrefix;return"".concat(n?n+"-":"").concat(i,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,n,i,e){this._keyToClassName[this._getCacheKey(n)]=t,this._classNameToArgs[t]={args:i,rules:e}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[this._getCacheKey(t)]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.args},t.prototype.insertedRulesFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.rules},t.prototype.insertRule=function(t,n,i){void 0===i&&(i=o.P6);var e=this._config.injectionMode,r=0!==e?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),r)switch(e){case 1:this._insertRuleIntoSheet(r.sheet,t);break;case 2:r.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(n){return n({key:i,sheet:r?r.sheet:void 0,rule:t})}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._createStyleElement=function(){var t,n=(null===(t=this._config.window)||void 0===t?void 0:t.document)||document,i=n.head,e=n.createElement("style"),r=null;e.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&e.setAttribute("nonce",o.nonce),this._lastStyleElement)r=this._lastStyleElement.nextElementSibling;else{var a=this._findPlaceholderStyleTag();r=a?a.nextElementSibling:i.childNodes[0]}return i.insertBefore(e,i.contains(r)?r:null),this._lastStyleElement=e,e},t.prototype._insertRuleIntoSheet=function(t,n){if(!t)return!1;try{return t.insertRule(n,t.cssRules.length),!0}catch(t){}return!1},t.prototype._getCacheKey=function(t){return t},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||(this._styleElement=this._createStyleElement(),u||(this._config.window||window).requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}()},572:function(t,n,i){i.d(n,{T:function(){return o}});var e=i(179),r=i(192);function o(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles&&!(0,r.db)(t[0]))return t[0];for(var i={},a={},u=0,s=t;u<s.length;u++){var l=s[u];if(l&&!(0,r.db)(l))for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var f=l.subComponentStyles;for(var h in f)f.hasOwnProperty(h)&&(a.hasOwnProperty(h)?a[h].push(f[h]):a[h]=[f[h]]);continue}var d=i[c],v=l[c];i[c]=void 0===d?v:(0,e.fX)((0,e.fX)([],Array.isArray(d)?d:[d],!0),Array.isArray(v)?v:[v],!0)}}if(Object.keys(a).length>0){i.subComponentStyles={};var p=i.subComponentStyles,g=function(t){if(a.hasOwnProperty(t)){var n=a[t];p[t]=function(t){return o.apply(void 0,n.map((function(n){return"function"==typeof n?n(t):n})))}}};for(var h in a)g(h)}return i}},316:function(t,n,i){i.d(n,{h:function(){return r}});var e=i(192);function r(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=[],o=[],a=t;return function t(n){for(var i=0,u=n;i<u.length;i++){var s=u[i];if(s&&!(0,e.db)(s))if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=a.argsFromClassName(s);l?t(l):-1===r.indexOf(s)&&r.push(s)}else Array.isArray(s)?t(s):"object"==typeof s&&o.push(s)}}(n),{classes:r,objects:o}}},106:function(t,n,i){i.d(n,{Z:function(){return s}});var e=i(316),r=i(192),o=i(934),a=i(290),u=i(359);function s(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(t,n){var i=t instanceof Array?t:[t],o=n||{};(0,r.db)(i[0])&&(o.shadowConfig=i[0]),o.stylesheet=a.nr.getInstance(o.shadowConfig);var s=(0,e.h)(o.stylesheet,i),l=s.classes,c=s.objects;return c.length&&l.push((0,u.kG)(o,c)),l.join(" ")}(t,(0,o.Iy)())}},192:function(t,n,i){i.d(n,{P6:function(){return e},Se:function(){return r},db:function(){return a},ou:function(){return o}});var e="__global__",r="__shadow_dom_stylesheet__",o={stylesheetKey:e,inShadow:!1,window:void 0,__isShadowConfig__:!0},a=function(t){return!!t&&!0===t.__isShadowConfig__}},359:function(t,n,i){i.d(n,{Ae:function(){return V},bz:function(){return L},kG:function(){return A},GJ:function(){return S}});var e,r=i(179),o=i(290),a={},u={"user-select":1};function s(t,n){var i=function(){var t;if(!e){var n="undefined"!=typeof document?document:void 0,i="undefined"!=typeof navigator?navigator:void 0,r=null===(t=null==i?void 0:i.userAgent)||void 0===t?void 0:t.toLowerCase();e=n?{isWebkit:!(!n||!("WebkitAppearance"in n.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!i||!/rv:11.0/i.test(i.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return e}(),r=t[n];if(u[r]){var o=t[n+1];u[r]&&(i.isWebkit&&t.push("-webkit-"+r,o),i.isMoz&&t.push("-moz-"+r,o),i.isMs&&t.push("-ms-"+r,o),i.isOpera&&t.push("-o-"+r,o))}}var l,c=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function f(t,n){var i=t[n],e=t[n+1];if("number"==typeof e){var r=c.indexOf(i)>-1,o=i.indexOf("--")>-1,a=r||o?"":"px";t[n+1]="".concat(e).concat(a)}}var h="left",d="right",v="@noflip",p=((l={})[h]=d,l[d]=h,l),g={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function m(t,n,i){if(t.rtl){var e=n[i];if(!e)return;var r=n[i+1];if("string"==typeof r&&r.indexOf(v)>=0)n[i+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(e.indexOf(h)>=0)n[i]=e.replace(h,d);else if(e.indexOf(d)>=0)n[i]=e.replace(d,h);else if(String(r).indexOf(h)>=0)n[i+1]=r.replace(h,d);else if(String(r).indexOf(d)>=0)n[i+1]=r.replace(d,h);else if(p[e])n[i]=p[e];else if(g[r])n[i+1]=g[r];else switch(e){case"margin":case"padding":n[i+1]=function(t){if("string"==typeof t){var n=t.split(" ");if(4===n.length)return"".concat(n[0]," ").concat(n[3]," ").concat(n[2]," ").concat(n[1])}return t}(r);break;case"box-shadow":n[i+1]=function(t,n){var i=t.split(" "),e=parseInt(i[0],10);return i[0]=i[0].replace(String(e),String(-1*e)),i.join(" ")}(r)}}}var y="displayName",b=/\:global\((.+?)\)/g;function x(t,n){return t.indexOf(":global(")>=0?t.replace(b,"$1"):0===t.indexOf(":host(")?t:0===t.indexOf(":")?n+t:t.indexOf("&")<0?n+" "+t:t}function w(t,n,i,e,r){void 0===n&&(n={__order:[]}),0===i.indexOf("@")?C([e],n,i=i+"{"+t,r):i.indexOf(",")>-1?function(t){if(!b.test(t))return t;for(var n=[],i=/\:global\((.+?)\)/g,e=null;e=i.exec(t);)e[1].indexOf(",")>-1&&n.push([e.index,e.index+e[0].length,e[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return n.reverse().reduce((function(t,n){var i=n[0],e=n[1],r=n[2];return t.slice(0,i)+r+t.slice(e)}),t)}(i).split(",").map((function(t){return t.trim()})).forEach((function(i){return C([e],n,x(i,t),r)})):C([e],n,x(i,t),r)}function C(t,n,i,e){void 0===n&&(n={__order:[]}),void 0===i&&(i="&");var r=n[i];r||(r={},n[i]=r,n.__order.push(i));for(var o=0,a=t;o<a.length;o++){var u=a[o];if("string"==typeof u){var s=e.argsFromClassName(u);s&&C(s,n,i,e)}else if(Array.isArray(u))C(u,n,i,e);else for(var l in u)if(u.hasOwnProperty(l)){var c=u[l];if("selectors"===l){var f=u.selectors;for(var h in f)f.hasOwnProperty(h)&&w(i,n,h,f[h],e)}else"object"==typeof c?null!==c&&w(i,n,l,c,e):void 0!==c&&("margin"===l||"padding"===l?M(r,l,c):r[l]=c)}}return n}function M(t,n,i){var e="string"==typeof i?function(t){for(var n=[],i=0,e=0,r=0;r<t.length;r++)switch(t[r]){case"(":e++;break;case")":e&&e--;break;case"\t":case" ":e||(r>i&&n.push(t.substring(i,r)),i=r+1)}return i<t.length&&n.push(t.substring(i)),n}(i):[i];0===e.length&&e.push(i),"!important"===e[e.length-1]&&(e=e.slice(0,-1).map((function(t){return t+" !important"}))),t[n+"Top"]=e[0],t[n+"Right"]=e[1]||e[0],t[n+"Bottom"]=e[2]||e[0],t[n+"Left"]=e[3]||e[1]||e[0]}function k(t,n){return n<=0?"":1===n?t:t+k(t,n-1)}function L(t,n){if(!n)return"";var i,e,r,o=[];for(var u in n)n.hasOwnProperty(u)&&u!==y&&void 0!==n[u]&&o.push(u,n[u]);for(var l=0;l<o.length;l+=2)r=void 0,"-"!==(r=(i=o)[e=l]).charAt(0)&&(i[e]=a[r]=a[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase()),f(o,l),m(t,o,l),s(o,l);for(l=1;l<o.length;l+=4)o.splice(l,1,":",o[l],";");return o.join("")}function S(t){for(var n,i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var r=null!==(n=t.stylesheet)&&void 0!==n?n:o.nr.getInstance(t.shadowConfig),a=C(i,void 0,void 0,r),u=function(t,n){for(var i=[t.rtl?"rtl":"ltr"],e=!1,r=0,o=n.__order;r<o.length;r++){var a=o[r];i.push(a);var u=n[a];for(var s in u)u.hasOwnProperty(s)&&void 0!==u[s]&&(e=!0,i.push(s,u[s]))}return e?i.join(""):void 0}(t,a);if(u){var s={className:r.classNameFromKey(u),key:u,args:i};if(!s.className){s.className=r.getClassName(function(t){var n=t&&t["&"];return n?n.displayName:void 0}(a));for(var l=[],c=0,f=a.__order;c<f.length;c++){var h=f[c];l.push(h,L(t,a[h]))}s.rulesToInsert=l}return s}}function V(t,n,i,e){void 0===n&&(n=1);var r=null!=e?e:o.nr.getInstance(i),a=t.className,u=t.key,s=t.args,l=t.rulesToInsert;if(l){for(var c=0;c<l.length;c+=2){var f=l[c+1];if(f){var h=l[c];h=h.replace(/&/g,k(".".concat(t.className),n));var d="".concat(h,"{").concat(f,"}").concat(0===h.indexOf("@")?"}":"");r.insertRule(d)}}r.cacheClassName(a,u,s,l)}}function A(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=S.apply(void 0,(0,r.fX)([t],n,!1));return e?(V(e,t.specificityMultiplier,t.shadowConfig,t.stylesheet),e.className):""}},395:function(t,n,i){i.r(n),i.d(n,{ChartHoverCard:function(){return f}});var e=i(761),r=i(179),o=i(594),a=i(799),u=i(464),s=(0,a.Z)(),l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.color,i=t.Legend,e=t.XValue,r=t.YValue,a=t.styles,l=t.theme,c=t.ratio,f=t.descriptionMessage,h=t.culture;return this._classNames=s(a,{theme:l,color:n,XValue:e,isRatioPresent:!!c}),o.createElement("div",{className:this._classNames.calloutContentRoot},o.createElement("div",{className:this._classNames.calloutDateTimeContainer},o.createElement("div",{className:this._classNames.calloutContentX},e," ")),o.createElement("div",{className:this._classNames.calloutInfoContainer},o.createElement("div",{className:this._classNames.calloutBlockContainer},o.createElement("div",{className:this._classNames.calloutlegendText},(0,u.U)(i,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,u.U)(r,h))),!!c&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,u.U)(c[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,u.U)(c[1],h))))),!!f&&o.createElement("div",{className:this._classNames.descriptionMessage},f))},n}(o.Component),c=i(714),f=(0,e.I)(l,c.J)},714:function(t,n,i){i.d(n,{J:function(){return r}});var e=i(286),r=function(t){var n,i,r,o=t.color,a=t.XValue,u=t.theme,s=t.isRatioPresent,l=void 0!==s&&s;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:u.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[u.fonts.small,{lineHeight:"16px",opacity:"0.85",color:u.semanticColors.bodySubtext}],calloutBlockContainer:[u.fonts.xxLarge,{marginTop:a?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:u.semanticColors.bodyText,borderLeft:"4px solid ".concat(o),selectors:(n={},n[e.up]={forcedColorAdjust:"none"},n)}],calloutlegendText:[u.fonts.small,{lineHeight:"16px",color:u.semanticColors.bodyText,selectors:(i={},i[e.NK]={color:"rgb(255, 255, 255)"},i)}],calloutContentY:[u.fonts.xxLarge,{color:o||u.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px",selectors:(r={},r[e.NK]={color:"rgb(255, 255, 255)"},r)}],calloutInfoContainer:[l&&{display:"flex",alignItems:"flex-end"}],ratio:[u.fonts.small,{marginLeft:"6px",color:u.semanticColors.bodyText}],numerator:{fontWeight:e.BO.bold},denominator:{fontWeight:e.BO.semibold},descriptionMessage:[u.fonts.small,{color:u.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(u.semanticColors.menuDivider)}]}}},464:function(t,n,i){i.d(n,{U:function(){return e}});var e=function(t,n){return t?(n=n||void 0,"number"==typeof t?t.toLocaleString(n):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(n):t:Number(t).toLocaleString(n)):t}},409:function(t,n,i){i.d(n,{v:function(){return o}});var e={},r=void 0;try{r=window}catch(t){}function o(t,n){if(void 0!==r){var i=r.__packages__=r.__packages__||{};i[t]&&e[t]||(e[t]=n,(i[t]=i[t]||[]).push(n))}}o("@fluentui/set-version","6.0.0")},286:function(t,n,i){i.d(n,{lw:function(){return K},bp:function(){return kt.b},s:function(){return Lt.s},BO:function(){return Lt.BO},up:function(){return it},NK:function(){return et},nA:function(){return nt},QN:function(){return at},gm:function(){return ot},Km:function(){return tt},O4:function(){return Mt},dX:function(){return J}});var e=i(106),r=i(934),o=i(290),a=i(359);function u(t){var n=o.nr.getInstance(),i=[];for(var e in t)t.hasOwnProperty(e)&&i.push(e,"{",(0,a.bz)((0,r.Iy)(),t[e]),"}");var u=i.join(""),s=n.classNameFromKey(u);if(s)return s;var l=n.getClassName();return n.insertRule("@keyframes ".concat(l,"{").concat(u,"}"),!0),n.cacheClassName(l,u,[],["keyframes",u]),l}var s="cubic-bezier(.1,.9,.2,1)",l="cubic-bezier(.1,.25,.75,.9)",c="0.167s",f="0.267s",h="0.367s",d="0.467s",v=u({from:{opacity:0},to:{opacity:1}}),p=u({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),g=$(-10),m=$(-20),y=$(-40),b=$(-400),x=$(10),w=$(20),C=$(40),M=$(400),k=U(10),L=U(20),S=U(-10),V=U(-20),A=G(10),N=G(20),D=G(40),T=G(400),O=G(-10),P=G(-20),E=G(-40),F=G(-400),B=Z(-10),H=Z(-20),_=Z(10),I=Z(20),W=u({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),R=u({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),z=u({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),j=u({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Y=u({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),X=u({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function q(t,n,i){return{animationName:t,animationDuration:n,animationTimingFunction:i,animationFillMode:"both"}}function $(t){return u({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function U(t){return u({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function G(t){return u({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function Z(t){return u({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var K=function(t){var n={},i=function(i){var r;t.hasOwnProperty(i)&&Object.defineProperty(n,i,{get:function(){return void 0===r&&(r=(0,e.Z)(t[i]).toString()),r},enumerable:!0,configurable:!0})};for(var r in t)i(r);return n}({slideRightIn10:q("".concat(v,",").concat(g),h,s),slideRightIn20:q("".concat(v,",").concat(m),h,s),slideRightIn40:q("".concat(v,",").concat(y),h,s),slideRightIn400:q("".concat(v,",").concat(b),h,s),slideLeftIn10:q("".concat(v,",").concat(x),h,s),slideLeftIn20:q("".concat(v,",").concat(w),h,s),slideLeftIn40:q("".concat(v,",").concat(C),h,s),slideLeftIn400:q("".concat(v,",").concat(M),h,s),slideUpIn10:q("".concat(v,",").concat(k),h,s),slideUpIn20:q("".concat(v,",").concat(L),h,s),slideDownIn10:q("".concat(v,",").concat(S),h,s),slideDownIn20:q("".concat(v,",").concat(V),h,s),slideRightOut10:q("".concat(p,",").concat(A),h,s),slideRightOut20:q("".concat(p,",").concat(N),h,s),slideRightOut40:q("".concat(p,",").concat(D),h,s),slideRightOut400:q("".concat(p,",").concat(T),h,s),slideLeftOut10:q("".concat(p,",").concat(O),h,s),slideLeftOut20:q("".concat(p,",").concat(P),h,s),slideLeftOut40:q("".concat(p,",").concat(E),h,s),slideLeftOut400:q("".concat(p,",").concat(F),h,s),slideUpOut10:q("".concat(p,",").concat(B),h,s),slideUpOut20:q("".concat(p,",").concat(H),h,s),slideDownOut10:q("".concat(p,",").concat(_),h,s),slideDownOut20:q("".concat(p,",").concat(I),h,s),scaleUpIn100:q("".concat(v,",").concat(W),h,s),scaleDownIn100:q("".concat(v,",").concat(z),h,s),scaleUpOut103:q("".concat(p,",").concat(j),c,l),scaleDownOut98:q("".concat(p,",").concat(R),c,l),fadeIn100:q(v,c,l),fadeIn200:q(v,f,l),fadeIn400:q(v,h,l),fadeIn500:q(v,d,l),fadeOut100:q(p,c,l),fadeOut200:q(p,f,l),fadeOut400:q(p,h,l),fadeOut500:q(p,d,l),rotate90deg:q(Y,"0.1s",l),rotateN90deg:q(X,"0.1s",l)}),J={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Q=(0,i(351).J9)((function(t,n){var i=o.nr.getInstance();return n?Object.keys(t).reduce((function(n,e){return n[e]=i.getClassName(t[e]),n}),{}):t}));function tt(t,n,i){return Q(t,void 0!==i?i:n.disableGlobalClassNames)}var nt,it="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",et="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",rt=i(119);function ot(t,n,i,e,r,o,a,u){return function(t,n){var i,e;void 0===n&&(n={});var r=n.borderRadius,o=n.inset,a=void 0===o?0:o,u=n.width,s=void 0===u?1:u,l=n.position,c=void 0===l?"relative":l,f=n.highContrastStyle,h=n.borderColor,d=void 0===h?t.palette.white:h,v=n.outlineColor,p=void 0===v?t.palette.neutralSecondary:v,g=n.isFocusedOnly,m=void 0===g||g,y=n.pointerEvents;return{outline:"transparent",position:c,selectors:(i={"::-moz-focus-inner":{border:"0"}},i[".".concat(rt.Y2," &").concat(m?":focus":"",":after, :host(.").concat(rt.Y2,") &").concat(m?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:a+1,top:a+1,bottom:a+1,right:a+1,border:"".concat(s,"px solid ").concat(d),outline:"".concat(s,"px solid ").concat(p),zIndex:nt.FocusStyle,borderRadius:r,selectors:(e={},e[it]=f,e)},i)}}(t,"number"!=typeof n&&n?n:{inset:n,position:i,highContrastStyle:e,borderColor:r,outlineColor:o,isFocusedOnly:a,borderRadius:u})}function at(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}(nt||(nt={}));var ut,st=i(179),lt=i(308),ct=i(86),ft=function(){return ft=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},ft.apply(this,arguments)},ht="undefined"==typeof window?i.g:window,dt=ht&&ht.CSPSettings&&ht.CSPSettings.nonce,vt=((ut=ht.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(ut=ft({},ut,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),ut.registeredThemableStyles||(ut=ft({},ut,{registeredThemableStyles:[]})),ht.__themeState__=ut,ut);function pt(t){vt.theme=t,function(){if(vt.theme){for(var t=[],n=0,i=vt.registeredThemableStyles;n<i.length;n++){var e=i[n];t.push(e.themableStyle)}t.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(gt(vt.registeredStyles),vt.registeredStyles=[]),3!==o&&1!==o||(gt(vt.registeredThemableStyles),vt.registeredThemableStyles=[]),r=[].concat.apply([],t),vt.loadStyles?vt.loadStyles(mt(r).styleString,r):function(t){if("undefined"!=typeof document){var n=document.getElementsByTagName("head")[0],i=document.createElement("style"),e=mt(t),r=e.styleString,o=e.themable;i.setAttribute("data-load-themed-styles","true"),i.type="text/css",dt&&i.setAttribute("nonce",dt),i.appendChild(document.createTextNode(r)),vt.perf.count++,n.appendChild(i);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:i},document.dispatchEvent(a);var u={styleElement:i,themableStyle:t};o?vt.registeredThemableStyles.push(u):vt.registeredStyles.push(u)}}(r))}var r,o}()}function gt(t){t.forEach((function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)}))}function mt(t){var n=vt.theme,i=!1;return{styleString:(t||[]).map((function(t){var e=t.theme;if(e){i=!0;var r=n?n[e]:void 0,o=t.defaultValue||"inherit";return n&&!r&&console&&!(e in n)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+e+'". Falling back to "'+o+'".'),r||o}return t.rawString})).join(""),themable:i}}var yt=i(253),bt=(0,yt.a)({}),xt=[],wt="theme";function Ct(){var t,n,i,e=(0,lt.z)();(null===(n=null==e?void 0:e.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(t,n){var i;void 0===n&&(n=!1),bt=(0,yt.a)(t,n),pt((0,st.Cl)((0,st.Cl)((0,st.Cl)((0,st.Cl)({},bt.palette),bt.semanticColors),bt.effects),function(t){for(var n={},i=0,e=Object.keys(t.fonts);i<e.length;i++)for(var r=e[i],o=t.fonts[r],a=0,u=Object.keys(o);a<u.length;a++){var s=u[a],l=r+s.charAt(0).toUpperCase()+s.slice(1),c=o[s];"fontSize"===s&&"number"==typeof c&&(c+="px"),n[l]=c}return n}(bt))),ct.X.applySettings(((i={})[wt]=bt,i)),xt.forEach((function(t){try{t(bt)}catch(t){}}))}(e.FabricConfig.legacyTheme):ct.X.getSettings([wt]).theme||((null===(i=null==e?void 0:e.FabricConfig)||void 0===i?void 0:i.theme)&&(bt=(0,yt.a)(e.FabricConfig.theme)),ct.X.applySettings(((t={})[wt]=bt,t)))}function Mt(t){return void 0===t&&(t=!1),!0===t&&(bt=(0,yt.a)({},t)),bt}Ct();var kt=i(823),Lt=i(703);(0,i(409).v)("@fluentui/style-utilities","8.10.11"),Ct()},823:function(t,n,i){i.d(n,{b:function(){return e}});var e={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"}},253:function(t,n,i){i.d(n,{a:function(){return O}});var e,r=i(823);!function(t){t.depth0="0 0 0 0 transparent",t.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",t.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",t.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",t.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(e||(e={}));var o={elevation4:e.depth4,elevation8:e.depth8,elevation16:e.depth16,elevation64:e.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},a=i(934),u=i(290),s=i(359),l=i(703),c="'Segoe UI', '".concat(l.Dn.WestEuropean,"'"),f={ar:l.bi.Arabic,bg:l.bi.Cyrillic,cs:l.bi.EastEuropean,el:l.bi.Greek,et:l.bi.EastEuropean,he:l.bi.Hebrew,hi:l.bi.Hindi,hr:l.bi.EastEuropean,hu:l.bi.EastEuropean,ja:l.bi.Japanese,kk:l.bi.EastEuropean,ko:l.bi.Korean,lt:l.bi.EastEuropean,lv:l.bi.EastEuropean,pl:l.bi.EastEuropean,ru:l.bi.Cyrillic,sk:l.bi.EastEuropean,"sr-latn":l.bi.EastEuropean,th:l.bi.Thai,tr:l.bi.EastEuropean,uk:l.bi.Cyrillic,vi:l.bi.Vietnamese,"zh-hans":l.bi.ChineseSimplified,"zh-hant":l.bi.ChineseTraditional,hy:l.bi.Armenian,ka:l.bi.Georgian};function h(t,n,i){return{fontFamily:i,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:n}}var d,v,p,g,m,y,b=i(741),x=i(308),w=i(74),C="language",M=(v=function(t){for(var n in f)if(f.hasOwnProperty(n)&&t&&0===n.indexOf(t))return f[n];return c}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===d){var n=(0,b.Y)(),i="localStorage"===t?function(t){var n=null;try{var i=(0,x.z)();n=i?i.localStorage.getItem(t):null}catch(t){}return n}(C):"sessionStorage"===t?w.G(C):void 0;i&&(d=i),void 0===d&&n&&(d=n.documentElement.getAttribute("lang")),void 0===d&&(d="en")}return d}()),p="".concat(v,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:h(l.s.mini,l.BO.regular,p),xSmall:h(l.s.xSmall,l.BO.regular,p),small:h(l.s.small,l.BO.regular,p),smallPlus:h(l.s.smallPlus,l.BO.regular,p),medium:h(l.s.medium,l.BO.regular,p),mediumPlus:h(l.s.mediumPlus,l.BO.regular,p),large:h(l.s.large,l.BO.regular,p),xLarge:h(l.s.xLarge,l.BO.semibold,p),xLargePlus:h(l.s.xLargePlus,l.BO.semibold,p),xxLarge:h(l.s.xxLarge,l.BO.semibold,p),xxLargePlus:h(l.s.xxLargePlus,l.BO.semibold,p),superLarge:h(l.s.superLarge,l.BO.semibold,p),mega:h(l.s.mega,l.BO.semibold,p)});function k(t,n,i,e){!function(t){var n=u.nr.getInstance(),i=(0,s.bz)((0,a.Iy)(),t);if(!n.classNameFromKey(i)){var e=n.getClassName();n.insertRule("@font-face{".concat(i,"}"),!0),n.cacheClassName(e,i,[],["font-face",i])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==e?"local('".concat(e,"'),"):"")+"url('".concat(n,".woff2') format('woff2'),")+"url('".concat(n,".woff') format('woff')"),fontWeight:i,fontStyle:"normal",fontDisplay:"swap"})}function L(t,n,i,e,r){void 0===e&&(e="segoeui");var o="".concat(t,"/").concat(i,"/").concat(e);k(n,o+"-light",l.BO.light,r&&r+" Light"),k(n,o+"-semilight",l.BO.semilight,r&&r+" SemiLight"),k(n,o+"-regular",l.BO.regular,r),k(n,o+"-semibold",l.BO.semibold,r&&r+" SemiBold"),k(n,o+"-bold",l.BO.bold,r&&r+" Bold")}function S(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=0,r=n;e<r.length;e++)V(t||{},r[e]);return t}function V(t,n,i){for(var e in void 0===i&&(i=[]),i.push(n),n)if(n.hasOwnProperty(e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var r=n[e];if("object"!=typeof r||null===r||Array.isArray(r))t[e]=r;else{var o=i.indexOf(r)>-1;t[e]=o?r:V(t[e]||{},r,i)}}return i.pop(),t}!function(t){if(t){var n="".concat(t,"/fonts");L(n,l.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),L(n,l.Dn.Arabic,"segoeui-arabic"),L(n,l.Dn.Cyrillic,"segoeui-cyrillic"),L(n,l.Dn.EastEuropean,"segoeui-easteuropean"),L(n,l.Dn.Greek,"segoeui-greek"),L(n,l.Dn.Hebrew,"segoeui-hebrew"),L(n,l.Dn.Vietnamese,"segoeui-vietnamese"),L(n,l.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),L(n,l.bi.Selawik,"selawik","selawik"),L(n,l.Dn.Armenian,"segoeui-armenian"),L(n,l.Dn.Georgian,"segoeui-georgian"),k("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-semilight"),l.BO.light),k("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-bold"),l.BO.semibold)}}((y=null===(g=(0,x.z)())||void 0===g?void 0:g.FabricConfig,null!==(m=null==y?void 0:y.fontBaseUrl)&&void 0!==m?m:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"));var A=i(179);function N(t,n,i,e,r){return void 0===r&&(r=!1),function(t,n){var i="";return!0===n&&(i=" /* @deprecated */"),t.listTextColor=t.listText+i,t.menuItemBackgroundChecked+=i,t.warningHighlight+=i,t.warningText=t.messageText+i,t.successText+=i,t}(D(t,n,(0,A.Cl)({primaryButtonBorder:"transparent",errorText:e?"#F1707B":"#a4262c",messageText:e?"#F3F2F1":"#323130",messageLink:e?"#6CB8F6":"#005A9E",messageLinkHovered:e?"#82C7FF":"#004578",infoIcon:e?"#C8C6C4":"#605e5c",errorIcon:e?"#F1707B":"#A80000",blockingIcon:e?"#442726":"#FDE7E9",warningIcon:e?"#C8C6C4":"#797775",severeWarningIcon:e?"#FCE100":"#D83B01",successIcon:e?"#92C353":"#107C10",infoBackground:e?"#323130":"#f3f2f1",errorBackground:e?"#442726":"#FDE7E9",blockingBackground:e?"#442726":"#FDE7E9",warningBackground:e?"#433519":"#FFF4CE",severeWarningBackground:e?"#4F2A0F":"#FED9CC",successBackground:e?"#393D1B":"#DFF6DD",warningHighlight:e?"#fff100":"#ffb900",successText:e?"#92c353":"#107C10"},i),e),r)}function D(t,n,i,e,r){void 0===r&&(r=!1);var o={},a=t||{},u=a.white,s=a.black,l=a.themePrimary,c=a.themeDark,f=a.themeDarker,h=a.themeDarkAlt,d=a.themeLighter,v=a.neutralLight,p=a.neutralLighter,g=a.neutralDark,m=a.neutralQuaternary,y=a.neutralQuaternaryAlt,b=a.neutralPrimary,x=a.neutralSecondary,w=a.neutralSecondaryAlt,C=a.neutralTertiary,M=a.neutralTertiaryAlt,k=a.neutralLighterAlt,L=a.accent;return u&&(o.bodyBackground=u,o.bodyFrameBackground=u,o.accentButtonText=u,o.buttonBackground=u,o.primaryButtonText=u,o.primaryButtonTextHovered=u,o.primaryButtonTextPressed=u,o.inputBackground=u,o.inputForegroundChecked=u,o.listBackground=u,o.menuBackground=u,o.cardStandoutBackground=u),s&&(o.bodyTextChecked=s,o.buttonTextCheckedHovered=s),l&&(o.link=l,o.primaryButtonBackground=l,o.inputBackgroundChecked=l,o.inputIcon=l,o.inputFocusBorderAlt=l,o.menuIcon=l,o.menuHeader=l,o.accentButtonBackground=l),c&&(o.primaryButtonBackgroundPressed=c,o.inputBackgroundCheckedHovered=c,o.inputIconHovered=c),f&&(o.linkHovered=f),h&&(o.primaryButtonBackgroundHovered=h),d&&(o.inputPlaceholderBackgroundChecked=d),v&&(o.bodyBackgroundChecked=v,o.bodyFrameDivider=v,o.bodyDivider=v,o.variantBorder=v,o.buttonBackgroundCheckedHovered=v,o.buttonBackgroundPressed=v,o.listItemBackgroundChecked=v,o.listHeaderBackgroundPressed=v,o.menuItemBackgroundPressed=v,o.menuItemBackgroundChecked=v),p&&(o.bodyBackgroundHovered=p,o.buttonBackgroundHovered=p,o.buttonBackgroundDisabled=p,o.buttonBorderDisabled=p,o.primaryButtonBackgroundDisabled=p,o.disabledBackground=p,o.listItemBackgroundHovered=p,o.listHeaderBackgroundHovered=p,o.menuItemBackgroundHovered=p),m&&(o.primaryButtonTextDisabled=m,o.disabledSubtext=m),y&&(o.listItemBackgroundCheckedHovered=y),C&&(o.disabledBodyText=C,o.variantBorderHovered=(null==i?void 0:i.variantBorderHovered)||C,o.buttonTextDisabled=C,o.inputIconDisabled=C,o.disabledText=C),b&&(o.bodyText=b,o.actionLink=b,o.buttonText=b,o.inputBorderHovered=b,o.inputText=b,o.listText=b,o.menuItemText=b),k&&(o.bodyStandoutBackground=k,o.defaultStateBackground=k),g&&(o.actionLinkHovered=g,o.buttonTextHovered=g,o.buttonTextChecked=g,o.buttonTextPressed=g,o.inputTextHovered=g,o.menuItemTextHovered=g),x&&(o.bodySubtext=x,o.focusBorder=x,o.inputBorder=x,o.smallInputBorder=x,o.inputPlaceholderText=x),w&&(o.buttonBorder=w),M&&(o.disabledBodySubtext=M,o.disabledBorder=M,o.buttonBackgroundChecked=M,o.menuDivider=M),L&&(o.accentButtonBackground=L),(null==n?void 0:n.elevation4)&&(o.cardShadow=n.elevation4),!e&&(null==n?void 0:n.elevation8)?o.cardShadowHovered=n.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),(0,A.Cl)((0,A.Cl)({},o),i)}var T={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function O(t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var i=!!t.isInverted;return function(t,n){var i,e,r;void 0===n&&(n={});var o=S({},t,n,{semanticColors:D(n.palette,n.effects,n.semanticColors,void 0===n.isInverted?t.isInverted:n.isInverted)});if((null===(i=n.palette)||void 0===i?void 0:i.themePrimary)&&!(null===(e=n.palette)||void 0===e?void 0:e.accent)&&(o.palette.accent=n.palette.themePrimary),n.defaultFontStyle)for(var a=0,u=Object.keys(o.fonts);a<u.length;a++){var s=u[a];o.fonts[s]=S(o.fonts[s],n.defaultFontStyle,null===(r=null==n?void 0:n.fonts)||void 0===r?void 0:r[s])}return o}({palette:r.b,effects:o,fonts:M,spacing:T,isInverted:i,disableGlobalClassNames:!1,semanticColors:N(r.b,o,void 0,i,n),rtl:void 0},t)}},703:function(t,n,i){var e,r,o,a,u;i.d(n,{BO:function(){return a},Dn:function(){return e},bi:function(){return r},s:function(){return o}}),function(t){t.Arabic="Segoe UI Web (Arabic)",t.Cyrillic="Segoe UI Web (Cyrillic)",t.EastEuropean="Segoe UI Web (East European)",t.Greek="Segoe UI Web (Greek)",t.Hebrew="Segoe UI Web (Hebrew)",t.Thai="Leelawadee UI Web",t.Vietnamese="Segoe UI Web (Vietnamese)",t.WestEuropean="Segoe UI Web (West European)",t.Selawik="Selawik Web",t.Armenian="Segoe UI Web (Armenian)",t.Georgian="Segoe UI Web (Georgian)"}(e||(e={})),function(t){t.Arabic="'".concat(e.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(e.Cyrillic,"'"),t.EastEuropean="'".concat(e.EastEuropean,"'"),t.Greek="'".concat(e.Greek,"'"),t.Hebrew="'".concat(e.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(e.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(e.Vietnamese,"'"),t.WestEuropean="'".concat(e.WestEuropean,"'"),t.Armenian="'".concat(e.Armenian,"'"),t.Georgian="'".concat(e.Georgian,"'")}(r||(r={})),function(t){t.size10="10px",t.size12="12px",t.size14="14px",t.size16="16px",t.size18="18px",t.size20="20px",t.size24="24px",t.size28="28px",t.size32="32px",t.size42="42px",t.size68="68px",t.mini="10px",t.xSmall="10px",t.small="12px",t.smallPlus="12px",t.medium="14px",t.mediumPlus="16px",t.icon="16px",t.large="18px",t.xLarge="20px",t.xLargePlus="24px",t.xxLarge="28px",t.xxLargePlus="32px",t.superLarge="42px",t.mega="68px"}(o||(o={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(a||(a={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(u||(u={}))},799:function(t,n,i){i.d(n,{Z:function(){return g}});var e=i(290),r=i(179),o=i(572),a=i(316),u=i(359),s=i(192);var l=i(709),c=i(308),f=50,h=5,d=0,v=e.nr.getInstance();v&&v.onReset&&v.onReset((function(){return d++}));var p="__retval__";function g(t){void 0===t&&(t={});var n=new Map,i=0,v=0,g=d;return function(m,b){var x;if(void 0===b&&(b={}),t.useStaticStyles&&"function"==typeof m&&m.__noStyleOverride__)return m(b);v++;var w=m?m.__shadowConfig__:void 0,C=w&&w.window?w.window:"__default__";n.has(C)||n.set(C,new Map);var M=n.get(C),k=b.theme,L=k&&void 0!==k.rtl?k.rtl:(0,l.jI)(),S=t.disableCaching;if(g!==d&&(g=d,n.set(C,new Map),M=n.get(C),i=0),t.disableCaching||(M=y(n.get(C),m),M=y(M,b)),!S&&M[p]||(M[p]=void 0===m?{}:function(t,n){var i,l={subComponentStyles:{}},c=void 0;(0,s.db)(t[0])?(c=t[0],i=t[1]):i=t[0],null!=c||(c=null==n?void 0:n.shadowConfig);var f=(0,r.Cl)((0,r.Cl)({},n),{shadowConfig:c});if(!i&&t.length<=1)return{subComponentStyles:{}};var h=e.nr.getInstance(c);f.stylesheet=h;var d=o.T.apply(void 0,t),v=[];for(var p in d)if(d.hasOwnProperty(p)){if("subComponentStyles"===p){l.subComponentStyles=d.subComponentStyles||{};continue}if("__shadowConfig__"===p)continue;var g=d[p],m=(0,a.h)(h,g),y=m.classes,b=m.objects;(null==b?void 0:b.length)?(C=(0,u.GJ)(f||{},{displayName:p},b))&&(v.push(C),l[p]=y.concat([C.className]).join(" ")):l[p]=y.join(" ")}for(var x=0,w=v;x<w.length;x++){var C;(C=w[x])&&(0,u.Ae)(C,null==n?void 0:n.specificityMultiplier,c)}return l}(["function"==typeof m?m(b):m],{shadowConfig:m.__shadowConfig__,rtl:!!L,specificityMultiplier:t.useStaticStyles?h:void 0}),S||i++),i>(t.cacheSize||f)){var V=(0,c.z)();(null===(x=null==V?void 0:V.FabricConfig)||void 0===x?void 0:x.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(i,"/").concat(v,".")),console.trace()),n.get(C).clear(),i=0,t.disableCaching=!0}return M[p]}}function m(t,n){return n=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(n),t.has(n)||t.set(n,new Map),t.get(n)}function y(t,n){if("function"==typeof n)if(n.__cachedInputs__)for(var i=0,e=n.__cachedInputs__;i<e.length;i++)t=m(t,e[i]);else t=m(t,n);else if("object"==typeof n)for(var r in n)n.hasOwnProperty(r)&&(t=m(t,n[r]));return t}},86:function(t,n,i){i.d(n,{X:function(){return v}});var e=i(179),r=i(308),o="__globalSettings__",a="__callbacks__",u=0,s=function(){function t(){}return t.getValue=function(t,n){var i=l();return void 0===i[t]&&(i[t]="function"==typeof n?n():n),i[t]},t.setValue=function(t,n){var i=l(),e=i[a],r=i[t];if(n!==r){i[t]=n;var o={oldValue:r,value:n,key:t};for(var u in e)e.hasOwnProperty(u)&&e[u](o)}return n},t.addChangeListener=function(t){var n=t.__id__,i=c();n||(n=t.__id__=String(u++)),i[n]=t},t.removeChangeListener=function(t){delete c()[t.__id__]},t}();function l(){var t,n=(0,r.z)()||{};return n[o]||(n[o]=((t={})[a]={},t)),n[o]}function c(){return l()[a]}var f={settings:{},scopedSettings:{},inCustomizerContext:!1},h=s.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),d=[],v=function(){function t(){}return t.reset=function(){h.settings={},h.scopedSettings={}},t.applySettings=function(n){h.settings=(0,e.Cl)((0,e.Cl)({},h.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,i){h.scopedSettings[n]=(0,e.Cl)((0,e.Cl)({},h.scopedSettings[n]),i),t._raiseChange()},t.getSettings=function(t,n,i){void 0===i&&(i=f);for(var e={},r=n&&i.scopedSettings[n]||{},o=n&&h.scopedSettings[n]||{},a=0,u=t;a<u.length;a++){var s=u[a];e[s]=r[s]||i.settings[s]||o[s]||h.settings[s]}return e},t.applyBatchedUpdates=function(n,i){t._suppressUpdates=!0;try{n()}catch(t){}t._suppressUpdates=!1,i||t._raiseChange()},t.observe=function(t){d.push(t)},t.unobserve=function(t){d=d.filter((function(n){return n!==t}))},t._raiseChange=function(){t._suppressUpdates||d.forEach((function(t){return t()}))},t}()},956:function(t,n,i){i.d(n,{z:function(){return e}});var e=i(594).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},927:function(t,n,i){function e(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}i.d(n,{S:function(){return e}})},741:function(t,n,i){i.d(n,{Y:function(){return r}});var e=i(927);function r(t){if((0,e.S)()&&"undefined"!=typeof document){var n=t;return n&&n.ownerDocument?n.ownerDocument:document}}},308:function(t,n,i){i.d(n,{z:function(){return o}});var e=i(927),r=void 0;try{r=window}catch(t){}function o(t){if((0,e.S)()&&void 0!==r){var n=t;return n&&n.ownerDocument&&n.ownerDocument.defaultView?n.ownerDocument.defaultView:r}}},351:function(t,n,i){i.d(n,{J5:function(){return f},J9:function(){return c}});var e=i(290),r=!1,o=0,a={empty:!0},u={},s="undefined"==typeof WeakMap?null:WeakMap;function l(){o++}function c(t,n,i){if(void 0===n&&(n=100),void 0===i&&(i=!1),!s)return t;if(!r){var c=e.nr.getInstance();c&&c.onReset&&e.nr.getInstance().onReset(l),r=!0}var f,d=0,v=o;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var s,l=f;(void 0===f||v!==o||n>0&&d>n)&&(f=h(),d=0,v=o),l=f;for(var c=0;c<e.length;c++){var p=(s=e[c])?"object"==typeof s||"function"==typeof s?s:(u[s]||(u[s]={val:s}),u[s]):a;l.map.has(p)||l.map.set(p,h()),l=l.map.get(p)}return l.hasOwnProperty("value")||(l.value=t.apply(void 0,e),d++),!i||null!==l.value&&void 0!==l.value||(l.value=t.apply(void 0,e)),l.value}}function f(t){if(!s)return t;var n=new s;return function(i){if(!i||"function"!=typeof i&&"object"!=typeof i)return t(i);if(n.has(i))return n.get(i);var e=t(i);return n.set(i,e),e}}function h(){return{map:s?new s:null}}},709:function(t,n,i){i.d(n,{jI:function(){return s}});var e,r=i(741),o=i(74),a=i(934),u="isRTL";function s(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===e){var n=(0,o.G)(u);null!==n&&function(t,n){void 0===n&&(n=!1);var i=(0,r.Y)();i&&i.documentElement.setAttribute("dir",t?"rtl":"ltr"),n&&(0,o.S)(u,t?"1":"0"),e=t,(0,a.DU)(e)}(e="1"===n);var i=(0,r.Y)();void 0===e&&i&&(e="rtl"===(i.body&&i.body.getAttribute("dir")||i.documentElement.getAttribute("dir")),(0,a.DU)(e))}return!!e}},74:function(t,n,i){i.d(n,{G:function(){return r},S:function(){return o}});var e=i(308);function r(t){var n=null;try{var i=(0,e.z)();n=i?i.sessionStorage.getItem(t):null}catch(t){}return n}function o(t,n){var i;try{null===(i=(0,e.z)())||void 0===i||i.sessionStorage.setItem(t,n)}catch(t){}}},119:function(t,n,i){i.d(n,{Y2:function(){return e}});var e="ms-Fabric--isFocusVisible"},761:function(t,n,i){i.d(n,{I:function(){return v}});var e=i(179),r=i(594),o=i(572),a=i(192),u=function(){return!1},s=function(){},l=r.createContext({stylesheets:new Map,useAdoptedStylesheetEx:u,useAdoptedStylesheet:u,useShadowConfig:function(){return a.ou},useMergeStylesShadowRootContext:s,useHasMergeStylesShadowRootContext:u,useMergeStylesRootStylesheets:function(){return new Map},useWindow:s,useStyled:s}),c=function(){var t=r.useContext(l);return{useAdoptedStylesheet:t.useAdoptedStylesheet,useAdoptedStylesheetEx:t.useAdoptedStylesheetEx,useShadowConfig:t.useShadowConfig,useMergeStylesShadowRootContext:t.useMergeStylesShadowRootContext,useHasMergeStylesShadowRootContext:t.useHasMergeStylesShadowRootContext,useMergeStylesRootStylesheets:t.useMergeStylesRootStylesheets,useWindow:t.useWindow,useStyled:t.useStyled}},f=i(86),h=i(956);var d=["theme","styles"];function v(t,n,i,a,u){var s=(a=a||{scope:"",fields:void 0}).scope,l=a.fields,v=void 0===l?d:l,p=r.forwardRef((function(a,u){var l,d,p,g,m,y,b=r.useRef(),x=(l=v,d=s,p=r.useState(0)[1],g=function(){return p((function(t){return++t}))},m=r.useContext(h.z).customizations,y=m.inCustomizerContext,r.useEffect((function(){return y||f.X.observe(g),function(){y||f.X.unobserve(g)}}),[y]),f.X.getSettings(l,d,m)),w=x.styles,C=(x.dir,(0,e.Tt)(x,["styles","dir"])),M=i?i(a):void 0,k=c().useStyled,L=b.current&&b.current.__cachedInputs__||[],S=a.styles;if(!b.current||w!==L[1]||S!==L[2]){var V=function(t){return function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=[],r=0,a=n;r<a.length;r++){var u=a[r];u&&e.push("function"==typeof u?u(t):u)}return 1===e.length?e[0]:e.length?o.T.apply(void 0,e):{}}(t,n,w,S)};V.__cachedInputs__=[n,w,S],V.__noStyleOverride__=!w&&!S,b.current=V}return b.current.__shadowConfig__=k(s),r.createElement(t,(0,e.Cl)({ref:u},C,M,a,{styles:b.current}))}));p.displayName="Styled".concat(t.displayName||t.name);var g=u?r.memo(p):p;return p.displayName&&(g.displayName=p.displayName),g}},594:function(t){t.exports=React}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,{a:n}),n},i.d=function(t,n){for(var e in n)i.o(n,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};!function(){i.r(e),i.d(e,{AreaChart:function(){return Wf},CartesianChart:function(){return rf},ChartHoverCard:function(){return ys.ChartHoverCard},DataVizPalette:function(){return Oc},DonutChart:function(){return zc},GaugeChart:function(){return Vd},GaugeChartVariant:function(){return pd},GaugeValueFormat:function(){return vd},GroupedVerticalBarChart:function(){return vh},HeatMapChart:function(){return yh},HorizontalBarChart:function(){return il},HorizontalBarChartVariant:function(){return h},HorizontalBarChartWithAxis:function(){return wd},Legends:function(){return Ul},LineChart:function(){return Mf},MultiStackedBarChart:function(){return ih},MultiStackedBarChartVariant:function(){return Xf},NodesComposition:function(){return sd},PieChart:function(){return Gf},SankeyChart:function(){return Uh},Shape:function(){return Xl},Sparkline:function(){return yd},StackedBarChart:function(){return Jf},Textbox:function(){return mf},TreeChart:function(){return dd},TreeTraverse:function(){return ld},VerticalBarChart:function(){return uh},VerticalStackedBarChart:function(){return ch},getChartHoverCardStyles:function(){return ph.J},getColorFromToken:function(){return Ic},getNextColor:function(){return _c}});var t=i(761),n=i(179),r=i(594),o=i(799),a=i(709),u=i(308),s=i(290),l="__currentId__",c="id__",f=(0,u.z)()||{};void 0===f[l]&&(f[l]=0);var h,d=!1;function v(t){if(!d){var n=s.nr.getInstance();n&&n.onReset&&n.onReset(p),d=!0}var i=f[l]++;return(void 0===t?c:t)+i}function p(t){void 0===t&&(t=0),f[l]=t}function g(t,n,i){void 0===i&&(i=0);for(var e=-1,r=i;t&&r<t.length;r++)if(n(t[r],r)){e=r;break}return e}function m(t,n){var i=g(t,n);if(!(i<0))return t[i]}!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(h||(h={}));var y={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function b(t,n){var i,e;if(void 0===n&&(n=!0),!t)return null;var r=n&&function(t){var n,i;return t&&(i=t)&&i._virtual&&(n=t._virtual.parent),n}(t);return r||("function"!=typeof t.assignedElements&&(null===(i=t.assignedSlot)||void 0===i?void 0:i.parentNode)?t.assignedSlot:11===(null===(e=t.parentNode)||void 0===e?void 0:e.nodeType)?t.parentNode.host:t.parentNode)}function x(t,n,i){return null!=i||(i=document),t&&t!==i.body?n(t)?t:x(b(t),n):null}function w(t,n,i){void 0===i&&(i=!0);var e=!1;if(t&&n)if(i)if(t===n)e=!0;else for(e=!1;n;){var r=b(n);if(r===t){e=!0;break}n=r}else t.contains&&(e=t.contains(n));return e}var C=i(741),M="data-is-focusable",k="data-is-visible",L="data-focuszone-id",S="data-is-sub-focuszone";function V(t,n,i){var e=N(t,t,!0,!1,!1,!0,void 0,void 0,n,i);return!!e&&(B(e),!0)}function A(t,n,i,e,r,o,a,u,s){var l;if(!n||!a&&n===t)return null;var c=D(n);if(r&&c&&(o||!P(n)&&!E(n))){var f=A(t,n.lastElementChild||s&&(null===(l=n.shadowRoot)||void 0===l?void 0:l.lastElementChild),!0,!0,!0,o,a,u,s);if(f){if(u&&O(f,!0,s)||!u)return f;var h=A(t,f.previousElementSibling,!0,!0,!0,o,a,u,s);if(h)return h;for(var d=f.parentElement;d&&d!==n;){var v=A(t,d.previousElementSibling,!0,!0,!0,o,a,u,s);if(v)return v;d=d.parentElement}}}return i&&c&&O(n,u,s)?n:A(t,n.previousElementSibling,!0,!0,!0,o,a,u,s)||(e?null:A(t,n.parentElement,!0,!1,!1,o,a,u,s))}function N(t,n,i,e,r,o,a,u,s,l){var c;if(!n||n===t&&r&&!a)return null;var f=(s?T:D)(n);if(i&&f&&O(n,u,l))return n;if(!r&&f&&(o||!P(n)&&!E(n))){var h=N(t,n.firstElementChild||l&&(null===(c=n.shadowRoot)||void 0===c?void 0:c.firstElementChild),!0,!0,!1,o,a,u,s,l);if(h)return h}return n===t?null:N(t,n.nextElementSibling,!0,!0,!1,o,a,u,s,l)||(e?null:N(t,n.parentElement,!1,!1,!0,o,a,u,s,l))}function D(t){if(!t||!t.getAttribute)return!1;var n=t.getAttribute(k);return null!=n?"true"===n:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function T(t,n){var i=null!=n?n:(0,u.z)();return!!t&&D(t)&&!t.hidden&&"hidden"!==i.getComputedStyle(t).visibility}function O(t,n,i){if(void 0===i&&(i=!0),!t||t.disabled)return!1;var e=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(e=parseInt(r,10));var o=t.getAttribute?t.getAttribute(M):null,a=null!==r&&e>=0,u=!(!i||!t.shadowRoot||!t.shadowRoot.delegatesFocus),s=!!t&&"false"!==o&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===o||a||u);return n?-1!==e&&s:s}function P(t){return!!(t&&t.getAttribute&&t.getAttribute(L))}function E(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(S))}var F=void 0;function B(t){if(t){var n=(0,u.z)(t);n&&(void 0!==F&&n.cancelAnimationFrame(F),F=n.requestAnimationFrame((function(){t&&t.focus(),F=void 0})))}}function H(t,n,i,e){return t.addEventListener(n,i,e),function(){return t.removeEventListener(n,i,e)}}function _(t,i){for(var e=(0,n.Cl)({},i),r=0,o=Object.keys(t);r<o.length;r++){var a=o[r];void 0===e[a]&&(e[a]=t[a])}return e}var I=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i={},e=0,r=t;e<r.length;e++)for(var o=r[e],a=0,u=Array.isArray(o)?o:Object.keys(o);a<u.length;a++)i[u[a]]=1;return i},W=I(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),R=I(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),z=I(R,W),j=(I(z,["form"]),I(z,["height","loop","muted","preload","src","width"])),Y=(I(j,["poster"]),I(z,["start"]),I(z,["value"]),I(z,["download","href","hrefLang","media","rel","target","type"]),I(z,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),X=(I(Y,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),I(Y,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),I(Y,["form","multiple","required"]),I(z,["selected","value"]),I(z,["cellPadding","cellSpacing"]),I(z,["rowSpan","scope"]),I(z,["colSpan","headers","rowSpan","scope"]),I(z,["span"]),I(z,["span"]),I(z,["acceptCharset","action","encType","encType","method","noValidate","target"]),I(z,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),I(z,["alt","crossOrigin","height","src","srcSet","useMap","width"]),z);function q(t,n,i){for(var e=Array.isArray(n),r={},o=0,a=Object.keys(t);o<a.length;o++){var u=a[o];!(!e&&n[u]||e&&n.indexOf(u)>=0||0===u.indexOf("data-")||0===u.indexOf("aria-"))||i&&-1!==(null==i?void 0:i.indexOf(u))||(r[u]=t[u])}return r}function $(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=[],e=0,r=t;e<r.length;e++){var o=r[e];if(o)if("string"==typeof o)i.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)i.push(o.toString());else for(var a in o)o[a]&&i.push(a)}return i.join(" ")}function U(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return G.apply(this,[null,t].concat(n))}function G(t,n){for(var i=[],e=2;e<arguments.length;e++)i[e-2]=arguments[e];n=n||{};for(var r=0,o=i;r<o.length;r++){var a=o[r];if(a)for(var u in a)!a.hasOwnProperty(u)||t&&!t(u)||(n[u]=a[u])}return n}var Z,K,J,Q=i(106),tt=((0,Q.Z)({overflow:"hidden !important"}),"data-is-scrollable");function nt(t){for(var n=t,i=(0,C.Y)(t);n&&n!==i.body;){if("true"===n.getAttribute(tt))return n;n=n.parentElement}for(n=t;n&&n!==i.body;){if("false"!==n.getAttribute(tt)){var e=getComputedStyle(n),r=e?e.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return n}n=n.parentElement}return n&&n!==i.body||(n=(0,u.z)(t)),n}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}(K||(K={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(J||(J={}));var it,et=function(){function t(t,n,i,e){void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===e&&(e=0),this.top=i,this.bottom=e,this.left=t,this.right=n}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function rt(t,n,i){return{targetEdge:t,alignmentEdge:n,isAuto:i}}var ot=((it={})[y.topLeftEdge]=rt(K.top,K.left),it[y.topCenter]=rt(K.top),it[y.topRightEdge]=rt(K.top,K.right),it[y.topAutoEdge]=rt(K.top,void 0,!0),it[y.bottomLeftEdge]=rt(K.bottom,K.left),it[y.bottomCenter]=rt(K.bottom),it[y.bottomRightEdge]=rt(K.bottom,K.right),it[y.bottomAutoEdge]=rt(K.bottom,void 0,!0),it[y.leftTopEdge]=rt(K.left,K.top),it[y.leftCenter]=rt(K.left),it[y.leftBottomEdge]=rt(K.left,K.bottom),it[y.rightTopEdge]=rt(K.right,K.top),it[y.rightCenter]=rt(K.right),it[y.rightBottomEdge]=rt(K.right,K.bottom),it);function at(t,n){return!(t.top<n.top||t.bottom>n.bottom||t.left<n.left||t.right>n.right)}function ut(t,n){var i=[];return t.top<n.top&&i.push(K.top),t.bottom>n.bottom&&i.push(K.bottom),t.left<n.left&&i.push(K.left),t.right>n.right&&i.push(K.right),i}function st(t,n){return t[K[n]]}function lt(t,n,i){return t[K[n]]=i,t}function ct(t,n){var i=Ct(n);return(st(t,i.positiveEdge)+st(t,i.negativeEdge))/2}function ft(t,n){return t>0?n:-1*n}function ht(t,n){return ft(t,st(n,t))}function dt(t,n,i){return ft(i,st(t,i)-st(n,i))}function vt(t,n,i,e){void 0===e&&(e=!0);var r=st(t,n)-i,o=lt(t,n,i);return e&&(o=lt(t,-1*n,st(t,-1*n)-r)),o}function pt(t,n,i,e){return void 0===e&&(e=0),vt(t,i,st(n,i)+ft(i,e))}function gt(t,n,i){return ht(i,t)>ht(i,n)}function mt(t,n){for(var i=0,e=0,r=ut(t,n);e<r.length;e++){var o=r[e];i+=Math.pow(dt(t,n,o),2)}return i}function yt(t,n,i,e){return void 0===e&&(e=200),(i===K.bottom||i===K.top)&&dt(t,n,i)>=e}function bt(t,n,i,e){for(var r=0,o=t;r<o.length;r++){var a=o[r],u=void 0;e&&e===-1*a?(u=vt(n.elementRectangle,a,st(i,a),!1),n.forcedInBounds=!0):gt(u=pt(n.elementRectangle,i,a),i,-1*a)||(u=vt(u,-1*a,st(i,-1*a),!1),n.forcedInBounds=!0),n.elementRectangle=u}return n}function xt(t,n,i){var e=Ct(n).positiveEdge;return vt(t,e,i-(ct(t,n)-st(t,e)))}function wt(t,n,i,e,r){void 0===e&&(e=0);var o=new et(t.left,t.right,t.top,t.bottom),a=i.alignmentEdge,u=i.targetEdge,s=r?u:-1*u;return o=r?pt(o,n,u,e):function(t,n,i,e){void 0===e&&(e=0);var r=ft(-1*i,e);return vt(t,-1*i,st(n,i)+r)}(o,n,u,e),o=a?pt(o,n,a):xt(o,s,ct(n,u))}function Ct(t){return t===K.top||t===K.bottom?{positiveEdge:K.left,negativeEdge:K.right}:{positiveEdge:K.top,negativeEdge:K.bottom}}function Mt(t,n,i){return i&&Math.abs(dt(t,i,n))>Math.abs(dt(t,i,-1*n))?-1*n:n}function kt(t,n,i,e,r,o,a,u){var s,l={},c=Vt(n),f=o?i:-1*i,h=r||Ct(i).positiveEdge;return a&&!function(t,n,i){return void 0!==i&&st(t,n)===st(i,n)}(t,(s=h,-1*s),e)||(h=Mt(t,h,e)),l[K[f]]=dt(t,c,f),l[K[h]]=dt(t,c,h),u&&(l[K[-1*f]]=dt(t,c,-1*f),l[K[-1*h]]=dt(t,c,-1*h)),l}function Lt(t,n,i){var e=ct(n,t),r=ct(i,t),o=Ct(t),a=o.positiveEdge,u=o.negativeEdge;return e<=r?a:u}function St(t,n,i,e,r,o,u,s,l){void 0===o&&(o=!1);var c=wt(t,n,e,r,l);return at(c,i)?{elementRectangle:c,targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}:function(t,n,i,e,r,o,u,s,l){void 0===r&&(r=!1),void 0===u&&(u=0);var c=e.alignmentEdge,f=e.alignTargetEdge,h={elementRectangle:t,targetEdge:e.targetEdge,alignmentEdge:c};s||l||(h=function(t,n,i,e,r,o,u){void 0===r&&(r=!1),void 0===u&&(u=0);var s=[K.left,K.right,K.bottom,K.top];(0,a.jI)()&&(s[0]*=-1,s[1]*=-1);for(var l,c=t,f=e.targetEdge,h=e.alignmentEdge,d=f,v=h,p=0;p<4;p++){if(gt(c,i,f))return{elementRectangle:c,targetEdge:f,alignmentEdge:h};if(r&&yt(n,i,f,o)){switch(f){case K.bottom:c.bottom=i.bottom;break;case K.top:c.top=i.top}return{elementRectangle:c,targetEdge:f,alignmentEdge:h,forcedInBounds:!0}}var g=mt(c,i);(!l||g<l)&&(l=g,d=f,v=h),s.splice(s.indexOf(f),1),s.length>0&&(s.indexOf(-1*f)>-1?f*=-1:(h=f,f=s.slice(-1)[0]),c=wt(t,n,{targetEdge:f,alignmentEdge:h},u))}return{elementRectangle:c=wt(t,n,{targetEdge:d,alignmentEdge:v},u),targetEdge:d,alignmentEdge:v}}(t,n,i,e,r,o,u));var d=ut(h.elementRectangle,i),v=s?-h.targetEdge:void 0;if(d.length>0)if(f)if(h.alignmentEdge&&d.indexOf(-1*h.alignmentEdge)>-1){var p=function(t,n,i,e){var r=t.alignmentEdge,o=t.targetEdge,a=-1*r;return{elementRectangle:wt(t.elementRectangle,n,{targetEdge:o,alignmentEdge:a},i,e),targetEdge:o,alignmentEdge:a}}(h,n,u,l);if(at(p.elementRectangle,i))return p;h=bt(ut(p.elementRectangle,i),h,i,v)}else h=bt(d,h,i,v);else h=bt(d,h,i,v);return h}(c,n,i,e,o,u,r,s,l)}function Vt(t){var n=t.getBoundingClientRect();return new et(n.left,n.right,n.top,n.bottom)}function At(t,i,e,r,o,u){void 0===o&&(o=!1);var s=t.gapSpace?t.gapSpace:0,l=function(t,n){var i;if(n){if(n.preventDefault){var e=n;i=new et(e.clientX,e.clientX,e.clientY,e.clientY)}else if(n.getBoundingClientRect)i=Vt(n);else{var r=n,o=r.left||r.x,a=r.top||r.y,u=r.right||o,s=r.bottom||a;i=new et(o,u,a,s)}if(!at(i,t))for(var l=0,c=ut(i,t);l<c.length;l++){var f=c[l];i[K[f]]=t[K[f]]}}else i=new et(0,0,0,0);return i}(e,t.target),c=function(t,n,i,e,r){return t.isAuto&&(t.alignmentEdge=Lt(t.targetEdge,n,i)),t.alignTargetEdge=r,t}(function(t,i,e){if(void 0===t&&(t=y.bottomAutoEdge),e)return{alignmentEdge:e.alignmentEdge,isAuto:e.isAuto,targetEdge:e.targetEdge};var r=(0,n.Cl)({},ot[t]);return(0,a.jI)()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==i?ot[i]:r):r}(t.directionalHint,t.directionalHintForRTL,r),l,e,t.coverTarget,t.alignTargetEdge),f=St(Vt(i),l,e,c,s,o,u,t.directionalHintFixed,t.coverTarget);return(0,n.Cl)((0,n.Cl)({},f),{targetRectangle:l})}function Nt(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),function(t){return Math.sqrt(t*t*2)}(t?n:0)/2+i}function Dt(t,i,e,r,o,a,s,l){void 0===o&&(o=!1);var c=null!=l?l:(0,u.z)(),f=t.isBeakVisible&&t.beakWidth||0,h=Nt(t.isBeakVisible,t.beakWidth,t.gapSpace),d=t;d.gapSpace=h;var v,p,g,m,y,b,x,w,M,k=t.bounds?(M=t.bounds,new et(M.left,M.right,M.top,M.bottom)):new et(0,c.innerWidth-function(t){if(void 0===Z){var n=(0,C.Y)(),i=n.createElement("div");i.style.setProperty("width","100px"),i.style.setProperty("height","100px"),i.style.setProperty("overflow","scroll"),i.style.setProperty("position","absolute"),i.style.setProperty("top","-9999px"),n.body.appendChild(i),Z=i.offsetWidth-i.clientWidth,n.body.removeChild(i)}return Z}(),0,c.innerHeight),L=At(d,e,k,r,o,a),S=(v=L,p=function(t,n){var i=n.targetRectangle,e=Ct(n.targetEdge),r=e.positiveEdge,o=e.negativeEdge,a=ct(i,n.targetEdge),u=new et(t/2,n.elementRectangle.width-t/2,t/2,n.elementRectangle.height-t/2),s=new et(0,t,0,t);return gt(s=xt(s=vt(s,-1*n.targetEdge,-t/2),-1*n.targetEdge,a-ht(r,n.elementRectangle)),u,r)?gt(s,u,o)||(s=pt(s,u,o)):s=pt(s,u,r),s}(f,L),g=k,m=-1*v.targetEdge,y=new et(0,v.elementRectangle.width,0,v.elementRectangle.height),b={},x=Mt(v.elementRectangle,v.alignmentEdge?v.alignmentEdge:Ct(m).positiveEdge,g),w=dt(v.elementRectangle,v.targetRectangle,m)>Math.abs(st(p,m)),b[K[m]]=st(p,m),b[K[x]]=dt(p,y,x),{elementPosition:(0,n.Cl)({},b),closestEdge:Lt(v.targetEdge,p,y),targetEdge:m,hideBeak:!w});return(0,n.Cl)((0,n.Cl)({},function(t,n,i,e,r){return{elementPosition:kt(t.elementRectangle,n,t.targetEdge,i,t.alignmentEdge,e,r,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(L,i,k,t.coverTarget,s)),{beakPosition:S})}var Tt=["TEMPLATE","STYLE","SCRIPT"];function Ot(t){var n=(0,C.Y)(t);if(!n)return function(){};for(var i=[];t!==n.body&&t.parentElement;){for(var e=0,r=t.parentElement.children;e<r.length;e++){var o=r[e],a=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Tt.indexOf(o.tagName)&&i.push([o,a])}t=t.parentElement}return i.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var n=t[0],i=t[1];i?n.setAttribute("aria-hidden",i):n.removeAttribute("aria-hidden")}))}(i),i=[]}}var Pt=27,Et=function(){function t(t,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=n,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,n){var i=this,e=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),e=setTimeout((function(){try{i._timeoutIds&&delete i._timeoutIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._timeoutIds[e]=!0),e},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,n){var i=this,e=0,r=(0,u.z)(n);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),e=r.setTimeout((function(){try{i._immediateIds&&delete i._immediateIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),0),this._immediateIds[e]=!0),e},t.prototype.clearImmediate=function(t,n){var i=(0,u.z)(n);this._immediateIds&&this._immediateIds[t]&&(i.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,n){var i=this,e=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),e=setInterval((function(){try{t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._intervalIds[e]=!0),e},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,n,i){var e=this;if(this._isDisposed)return this._noop;var r,o,a=n||0,u=!0,s=!0,l=0,c=null;i&&"boolean"==typeof i.leading&&(u=i.leading),i&&"boolean"==typeof i.trailing&&(s=i.trailing);var f=function(n){var i=Date.now(),h=i-l,d=u?a-h:a;return h>=a&&(!n||u)?(l=i,c&&(e.clearTimeout(c),c=null),r=t.apply(e._parent,o)):null===c&&s&&(c=e.setTimeout(f,d)),r};return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o=t,f(!0)}},t.prototype.debounce=function(t,n,i){var e=this;if(this._isDisposed){var r=function(){};return r.cancel=function(){},r.flush=function(){return null},r.pending=function(){return!1},r}var o,a,u=n||0,s=!1,l=!0,c=null,f=0,h=Date.now(),d=null;i&&"boolean"==typeof i.leading&&(s=i.leading),i&&"boolean"==typeof i.trailing&&(l=i.trailing),i&&"number"==typeof i.maxWait&&!isNaN(i.maxWait)&&(c=i.maxWait);var v=function(t){d&&(e.clearTimeout(d),d=null),h=t},p=function(n){v(n),o=t.apply(e._parent,a)},g=function(t){var n=Date.now(),i=!1;t&&(s&&n-f>=u&&(i=!0),f=n);var r=n-f,a=u-r,v=n-h,m=!1;return null!==c&&(v>=c&&d?m=!0:a=Math.min(a,c-v)),r>=u||m||i?p(n):null!==d&&t||!l||(d=e.setTimeout(g,a)),o},m=function(){return!!d},y=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a=t,g(!0)};return y.cancel=function(){m()&&v(Date.now())},y.flush=function(){return m()&&p(Date.now()),o},y.pending=m,y},t.prototype.requestAnimationFrame=function(t,n){var i=this,e=0,r=(0,u.z)(n);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{i._animationFrameIds&&delete i._animationFrameIds[e],t.apply(i._parent)}catch(t){i._logError(t)}};e=r.requestAnimationFrame?r.requestAnimationFrame(o):r.setTimeout(o,0),this._animationFrameIds[e]=!0}return e},t.prototype.cancelAnimationFrame=function(t,n){var i=(0,u.z)(n);this._animationFrameIds&&this._animationFrameIds[t]&&(i.cancelAnimationFrame?i.cancelAnimationFrame(t):i.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function Ft(){var t=r.useRef();return t.current||(t.current=new Et),r.useEffect((function(){return function(){var n;null===(n=t.current)||void 0===n||n.dispose(),t.current=void 0}}),[]),t.current}function Bt(t,n,i,e){var o=r.useRef(i);o.current=i,r.useEffect((function(){var i=t&&"current"in t?t.current:t;if(i&&i.addEventListener)return H(i,n,(function(t){return o.current(t)}),e)}),[t,n,e])}function Ht(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var e=r.useCallback((function(n){e.current=n;for(var i=0,r=t;i<r.length;i++){var o=r[i];"function"==typeof o?o(n):o&&(o.current=n)}}),(0,n.fX)([],t,!0));return e}var _t=r.createContext({window:"object"==typeof window?window:void 0}),It=function(){return r.useContext(_t).window},Wt=function(){var t;return null===(t=r.useContext(_t).window)||void 0===t?void 0:t.document};function Rt(t){var n=t.originalElement,i=t.containsFocus;n&&i&&n!==(0,u.z)()&&setTimeout((function(){var t;null===(t=n.focus)||void 0===t||t.call(n)}),0)}var zt=r.forwardRef((function(t,i){var e=_({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),o=r.useRef(),a=Ht(o,i);!function(t,n){var i="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;r.useEffect((function(){if(i&&n.current)return Ot(n.current)}),[n,i])}(e,o),function(t,n){var i=t.onRestoreFocus,e=void 0===i?Rt:i,o=r.useRef(),a=r.useRef(!1);r.useEffect((function(){var t,i,r;return o.current=(0,C.Y)().activeElement,t=n.current,(r=(i=(0,C.Y)(t))&&i.activeElement)&&w(t,r)&&(a.current=!0),function(){var t;null==e||e({originalElement:o.current,containsFocus:a.current,documentContainsFocus:(null===(t=(0,C.Y)())||void 0===t?void 0:t.hasFocus())||!1}),o.current=void 0}}),[]),Bt(n,"focus",r.useCallback((function(){a.current=!0}),[]),!0),Bt(n,"blur",r.useCallback((function(t){n.current&&t.relatedTarget&&!n.current.contains(t.relatedTarget)&&(a.current=!1)}),[]),!0)}(e,o);var u=e.role,s=e.className,l=e.ariaLabel,c=e.ariaLabelledBy,f=e.ariaDescribedBy,h=e.style,d=e.children,v=e.onDismiss,p=function(t,n){var i=Ft(),e=r.useState(!1),o=e[0],a=e[1];return r.useEffect((function(){return i.requestAnimationFrame((function(){var i;if(!t.style||!t.style.overflowY){var e=!1;if(n&&n.current&&(null===(i=n.current)||void 0===i?void 0:i.firstElementChild)){var r=n.current.clientHeight,u=n.current.firstElementChild.clientHeight;r>0&&u>r&&(e=u-r>1)}o!==e&&a(e)}})),function(){return i.dispose()}})),o}(e,o),g=r.useCallback((function(t){t.which===Pt&&v&&(v(t),t.preventDefault(),t.stopPropagation())}),[v]);return Bt(It(),"keydown",g),r.createElement("div",(0,n.Cl)({ref:a},q(e,X),{className:s,role:u,"aria-label":l,"aria-labelledby":c,"aria-describedby":f,onKeyDown:g,style:(0,n.Cl)({overflowY:p?"scroll":void 0,outline:"none"},h)}),d)}));zt.displayName="Popup";var jt=i(286);function Yt(t){var n=r.useRef();return void 0===n.current&&(n.current={value:"function"==typeof t?t():t}),n.current.value}var Xt,qt=function(){var t;return(null!==(t=It())&&void 0!==t?t:"undefined"!=typeof window)?window:void 0},$t=function(t){var n,i;return(null!==(i=null===(n=null==t?void 0:t.window)||void 0===n?void 0:n.document)&&void 0!==i?i:"undefined"!=typeof document)?document:void 0},Ut=((Xt={})[K.top]=jt.lw.slideUpIn10,Xt[K.bottom]=jt.lw.slideDownIn10,Xt[K.left]=jt.lw.slideLeftIn10,Xt[K.right]=jt.lw.slideRightIn10,Xt),Gt={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Zt=["role","aria-roledescription"],Kt={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:y.bottomAutoEdge},Jt=(0,o.Z)({disableCaching:!0});function Qt(t,n,i,e){var o,a=t.calloutMaxHeight,u=t.finalHeight,s=t.directionalHint,l=t.directionalHintFixed,c=t.hidden,f=t.gapSpace,h=t.beakWidth,d=t.isBeakVisible,v=t.coverTarget,p=r.useState(),g=p[0],m=p[1],y=null!==(o=null==e?void 0:e.elementPosition)&&void 0!==o?o:{},b=y.top,x=y.bottom,w=(null==i?void 0:i.current)?function(t){var n,i,e,r,o=t,a=t,u=t,s=null!==(n=u.left)&&void 0!==n?n:u.x,l=null!==(i=u.top)&&void 0!==i?i:u.y,c=null!==(e=u.right)&&void 0!==e?e:s,f=null!==(r=u.bottom)&&void 0!==r?r:l;return o.stopPropagation?new et(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==s&&void 0!==l?new et(s,c,l,f):Vt(a)}(i.current):void 0;return r.useEffect((function(){var t,i,r=null!==(t=n())&&void 0!==t?t:{},o=r.top,u=r.bottom;(null==e?void 0:e.targetEdge)===K.top&&(null==w?void 0:w.top)&&!v&&(u=w.top-function(t,n,i){return Nt(t,n,i)}(d,h,f)),"number"==typeof b&&u?i=u-b:"number"==typeof x&&"number"==typeof o&&u&&(i=u-o-x),m(!a&&!c||a&&i&&a>i?i:a||void 0)}),[x,a,u,s,l,n,c,e,b,f,h,d,w,v]),g}function tn(t,i,e,o,a,s){var l,c=r.useState(),f=c[0],h=c[1],d=r.useRef(0),v=r.useRef(),p=Ft(),g=t.hidden,m=t.target,y=t.finalHeight,b=t.calloutMaxHeight,x=t.onPositioned,w=t.directionalHint,C=t.hideOverflow,M=t.preferScrollResizePositioning,k=qt(),L=r.useRef();L.current!==s.current&&(L.current=s.current,l=s.current?null==k?void 0:k.getComputedStyle(s.current):void 0);var S=null==l?void 0:l.overflowY;return r.useEffect((function(){if(!g){var r=p.requestAnimationFrame((function(){var r,s,l,c;if(i.current&&e){var p=(0,n.Cl)((0,n.Cl)({},t),{target:o.current,bounds:a()}),g=e.cloneNode(!0);g.style.maxHeight=b?"".concat(b):"",g.style.visibility="hidden",null===(r=e.parentElement)||void 0===r||r.appendChild(g);var w=v.current===m?f:void 0,L=M&&!(C||"clip"===S||"hidden"===S),V=y?function(t,n,i,e,r){return function(t,n,i,e,r){return Dt(t,n,i,e,!1,void 0,!0,null!=r?r:(0,u.z)())}(t,n,i,e,r)}(p,i.current,g,w,k):function(t,n,i,e,r,o,a){return Dt(t,n,i,e,r,void 0,void 0,a)}(p,i.current,g,w,L,0,k);null===(s=e.parentElement)||void 0===s||s.removeChild(g),!f&&V||f&&V&&(c=V,!rn((l=f).elementPosition,c.elementPosition)||!rn(l.beakPosition.elementPosition,c.beakPosition.elementPosition))&&d.current<5?(d.current++,h(V)):d.current>0&&(d.current=0,null==x||x(f))}}),e);return v.current=m,function(){p.cancelAnimationFrame(r),v.current=void 0}}h(void 0),d.current=0}),[g,w,p,e,b,i,o,y,a,x,f,t,m,C,M,S,k]),f}var nn=r.memo(r.forwardRef((function(t,i){var e=_(Kt,t),o=e.styles,a=e.style,u=e.ariaLabel,s=e.ariaDescribedBy,l=e.ariaLabelledBy,c=e.className,f=e.isBeakVisible,h=e.children,d=e.beakWidth,v=e.calloutWidth,p=e.calloutMaxWidth,g=e.calloutMinWidth,m=e.doNotLayer,y=e.finalHeight,b=e.hideOverflow,x=void 0===b?!!y:b,M=e.backgroundColor,k=e.calloutMaxHeight,L=e.onScroll,S=e.shouldRestoreFocus,A=void 0===S||S,N=e.target,D=e.hidden,T=e.onLayerMounted,O=e.popupProps,P=r.useRef(null),E=Ht(r.useRef(null),null==O?void 0:O.ref),F=r.useState(null),B=F[0],I=F[1],W=r.useCallback((function(t){I(t)}),[]),R=Ht(P,i),z=function(t,n){var i,e,o,a=r.useRef(),u=r.useRef(null),s=It();if(!t||t!==a.current||"string"==typeof t){var l=null==n?void 0:n.current;if(t)if("string"==typeof t)if(null===(i=null==l?void 0:l.getRootNode())||void 0===i?void 0:i.host)u.current=null!==(o=null===(e=null==l?void 0:l.getRootNode())||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null;else{var c=(0,C.Y)(l);u.current=c?c.querySelector(t):null}else u.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;a.current=t}return[u,s]}(e.target,{current:B}),j=z[0],Y=z[1],U=function(t,n,i){var e=t.bounds,o=t.minPagePadding,a=void 0===o?Kt.minPagePadding:o,u=t.target,s=r.useState(!1),l=s[0],c=s[1],f=r.useRef(),h=r.useCallback((function(){if(!f.current||l){var t="function"==typeof e?i?e(u,i):void 0:e;!t&&i&&(t=function(t,n){return function(t,n){var i=void 0;if(n.getWindowSegments&&(i=n.getWindowSegments()),void 0===i||i.length<=1)return{top:0,left:0,right:n.innerWidth,bottom:n.innerHeight,width:n.innerWidth,height:n.innerHeight};var e=0,r=0;if(null!==t&&t.getBoundingClientRect){var o=t.getBoundingClientRect();e=(o.left+o.right)/2,r=(o.top+o.bottom)/2}else null!==t&&(e=t.left||t.x,r=t.top||t.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},u=0,s=i;u<s.length;u++){var l=s[u];e&&l.left<=e&&l.right>=e&&r&&l.top<=r&&l.bottom>=r&&(a={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return a}(t,n)}(n.current,i),t={top:t.top+a,left:t.left+a,right:t.right-a,bottom:t.bottom-a,width:t.width-2*a,height:t.height-2*a}),f.current=t,l&&c(!1)}return f.current}),[e,a,u,n,i,l]),d=Ft();return Bt(i,"resize",d.debounce((function(){c(!0)}),500,{leading:!0})),h}(e,j,Y),G=tn(e,P,B,j,U,E),Z=Qt(e,U,j,G),K=function(t,n,i,e,o){var a=t.hidden,u=t.onDismiss,s=t.preventDismissOnScroll,l=t.preventDismissOnResize,c=t.preventDismissOnLostFocus,f=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,d=t.preventDismissOnEvent,v=r.useRef(!1),p=Ft(),g=Yt([function(){v.current=!0},function(){v.current=!1}]),m=!!n;return r.useEffect((function(){var t=function(t){m&&!s&&g(t)},n=function(t){l||d&&d(t)||null==u||u(t)},r=function(t){c||g(t)},g=function(t){var n=t.composedPath?t.composedPath():[],r=n.length>0?n[0]:t.target,a=i.current&&!w(i.current,r);if(a&&v.current)v.current=!1;else if(!e.current&&a||t.target!==o&&a&&(!e.current||"stopPropagation"in e.current||f||r!==e.current&&!w(e.current,r))){if(d&&d(t))return;null==u||u(t)}},y=function(t){h&&((!d||d(t))&&(d||c)||(null==o?void 0:o.document.hasFocus())||null!==t.relatedTarget||null==u||u(t))},b=new Promise((function(i){p.setTimeout((function(){if(!a&&o){var e=[H(o,"scroll",t,!0),H(o,"resize",n,!0),H(o.document.documentElement,"focus",r,!0),H(o.document.documentElement,"click",r,!0),H(o,"blur",y,!0)];i((function(){e.forEach((function(t){return t()}))}))}}),0)}));return function(){b.then((function(t){return t()}))}}),[a,p,i,e,o,u,h,f,c,l,s,m,d]),g}(e,G,P,j,Y),J=K[0],Q=K[1],tt=(null==G?void 0:G.elementPosition.top)&&(null==G?void 0:G.elementPosition.bottom),nt=(0,n.Cl)((0,n.Cl)({},null==G?void 0:G.elementPosition),{maxHeight:Z});if(tt&&(nt.bottom=void 0),function(t,n,i){var e=t.hidden,o=t.setInitialFocus,a=Ft(),u=!!n;r.useEffect((function(){if(!e&&o&&u&&i){var t=a.requestAnimationFrame((function(){return V(i)}),i);return function(){return a.cancelAnimationFrame(t)}}}),[e,u,a,i,o])}(e,G,B),r.useEffect((function(){D||null==T||T()}),[D]),!Y)return null;var it=x,et=f&&!!N,rt=Jt(o,{theme:e.theme,className:c,overflowYHidden:it,calloutWidth:v,positions:G,beakWidth:d,backgroundColor:M,calloutMaxWidth:p,calloutMinWidth:g,doNotLayer:m}),ot=(0,n.Cl)((0,n.Cl)({maxHeight:k||"100%"},a),it&&{overflowY:"hidden"}),at=e.hidden?{visibility:"hidden"}:void 0;return r.createElement("div",{ref:R,className:rt.container,style:at},r.createElement("div",(0,n.Cl)({},q(e,X,Zt),{className:$(rt.root,G&&G.targetEdge&&Ut[G.targetEdge]),style:G?(0,n.Cl)({},nt):Gt,tabIndex:-1,ref:W}),et&&r.createElement("div",{className:rt.beak,style:en(G)}),et&&r.createElement("div",{className:rt.beakCurtain}),r.createElement(zt,(0,n.Cl)({role:e.role,"aria-roledescription":e["aria-roledescription"],ariaDescribedBy:s,ariaLabel:u,ariaLabelledBy:l,className:rt.calloutMain,onDismiss:e.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:e.onRestoreFocus,onScroll:L,shouldRestoreFocus:A,style:ot},O,{ref:E}),h)))})),(function(t,n){return!(n.shouldUpdateWhenHidden||!t.hidden||!n.hidden)||function(t,n){if(!t||!n)return!t&&!n;for(var i in t)if(t.hasOwnProperty(i)&&(!n.hasOwnProperty(i)||n[i]!==t[i]))return!1;for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0}(t,n)}));function en(t){var i,e,r=(0,n.Cl)((0,n.Cl)({},null===(i=null==t?void 0:t.beakPosition)||void 0===i?void 0:i.elementPosition),{display:(null===(e=null==t?void 0:t.beakPosition)||void 0===e?void 0:e.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=0,r.top=0),r}function rn(t,n){for(var i in n)if(n.hasOwnProperty(i)){var e=t[i],r=n[i];if(void 0===e||void 0===r)return!1;if(e.toFixed(2)!==r.toFixed(2))return!1}return!0}function on(t){return{height:t,width:t}}nn.displayName="CalloutContentBase";var an={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},un=(0,t.I)(nn,(function(t){var n,i=t.theme,e=t.className,r=t.overflowYHidden,o=t.calloutWidth,a=t.beakWidth,u=t.backgroundColor,s=t.calloutMaxWidth,l=t.calloutMinWidth,c=t.doNotLayer,f=(0,jt.Km)(an,i),h=i.semanticColors,d=i.effects;return{container:[f.container,{position:"relative"}],root:[f.root,i.fonts.medium,{position:"absolute",display:"flex",zIndex:c?jt.nA.Layer:void 0,boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(n={},n[jt.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},n)},(0,jt.QN)(),e,!!o&&{width:o},!!s&&{maxWidth:s},!!l&&{minWidth:l}],beak:[f.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},on(a),u&&{backgroundColor:u}],beakCurtain:[f.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:d.roundedCorner2}],calloutMain:[f.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:d.roundedCorner2},r&&{overflowY:"hidden"},u&&{backgroundColor:u}]}}),void 0,{scope:"CalloutContent"}),sn=r.createContext(void 0),ln=function(){return function(){}};sn.Provider;var cn=ReactDOM,fn=i(351);new WeakMap,new WeakMap;var hn=r.createContext(void 0),dn=function(t){var n=t.providerRef,i=t.layerRoot,e=r.useState([])[0],o=r.useContext(hn),a=void 0!==o&&!i,u=r.useMemo((function(){return a?void 0:{providerRef:n,registeredProviders:e,registerProvider:function(t){e.push(t),null==o||o.registerProvider(t)},unregisterProvider:function(t){null==o||o.unregisterProvider(t);var n=e.indexOf(t);n>=0&&e.splice(n,1)}}}),[n,e,o,a]);return r.useEffect((function(){if(u)return u.registerProvider(u.providerRef),function(){return u.unregisterProvider(u.providerRef)}}),[u]),u?r.createElement(hn.Provider,{value:u},t.children):r.createElement(r.Fragment,null,t.children)},vn=i(86),pn=i(956);function gn(t,i){void 0===t&&(t={});var e=mn(i)?i:function(t){return function(i){return t?(0,n.Cl)((0,n.Cl)({},i),t):i}}(i);return e(t)}function mn(t){return"function"==typeof t}var yn=function(t){function i(){var n=null!==t&&t.apply(this,arguments)||this;return n._onCustomizationChange=function(){return n.forceUpdate()},n}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){vn.X.observe(this._onCustomizationChange)},i.prototype.componentWillUnmount=function(){vn.X.unobserve(this._onCustomizationChange)},i.prototype.render=function(){var t=this,i=this.props.contextTransform;return r.createElement(pn.z.Consumer,null,(function(e){var o=function(t,i){var e,r,o,a=(i||{}).customizations,u=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:gn(u.settings,t.settings),scopedSettings:(e=u.scopedSettings,r=t.scopedSettings,void 0===e&&(e={}),(mn(r)?r:(void 0===(o=r)&&(o={}),function(t){var i=(0,n.Cl)({},t);for(var e in o)o.hasOwnProperty(e)&&(i[e]=(0,n.Cl)((0,n.Cl)({},t[e]),o[e]));return i}))(e)),inCustomizerContext:!0}}}(t.props,e);return i&&(o=i(o)),r.createElement(pn.z.Provider,{value:o},t.props.children)}))},i}(r.Component),bn=i(253),xn=(0,o.Z)(),wn=(0,fn.J9)((function(t,i){return(0,bn.a)((0,n.Cl)((0,n.Cl)({},t),{rtl:i}))})),Cn=r.forwardRef((function(t,i){var e=t.className,o=t.theme,u=t.applyTheme,s=t.applyThemeToBody,l=t.styles,c=xn(l,{theme:o,applyTheme:u,className:e}),f=r.useRef(null);return function(t,n,i){var e=n.bodyThemed;r.useEffect((function(){if(t){var n=(0,C.Y)(i.current);if(n)return n.body.classList.add(e),function(){n.body.classList.remove(e)}}}),[e,t,i])}(s,c,f),r.createElement(r.Fragment,null,function(t,i,e,o){var u=i.root,s=t.as,l=void 0===s?"div":s,c=t.dir,f=t.theme,h=q(t,X,["dir"]),d=function(t){var n=t.theme,i=t.dir,e=(0,a.jI)(n)?"rtl":"ltr",r=(0,a.jI)()?"rtl":"ltr",o=i||e;return{rootDir:o!==e||o!==r?o:i,needsTheme:o!==e}}(t),v=d.rootDir,p=d.needsTheme,g=r.createElement(dn,{providerRef:e},r.createElement(l,(0,n.Cl)({dir:v},h,{className:u,ref:Ht(e,o)})));return p&&(g=r.createElement(yn,{settings:{theme:wn(f,"rtl"===c)}},g)),g}(t,c,f,i))}));Cn.displayName="FabricBase";var Mn,kn={fontFamily:"inherit"},Ln={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Sn=(0,t.I)(Cn,(function(t){var n=t.applyTheme,i=t.className,e=t.preventBlanketFontInheritance,r=t.theme;return{root:[(0,jt.Km)(Ln,r).root,r.fonts.medium,{color:r.palette.neutralPrimary},!e&&{"& button":kn,"& input":kn,"& textarea":kn},n&&{color:r.semanticColors.bodyText,backgroundColor:r.semanticColors.bodyBackground},i],bodyThemed:[{backgroundColor:r.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Vn=i(119),An="data-portal-element",Nn={},Dn={},Tn="fluent-default-layer-host",On="#".concat(Tn),Pn=i(927),En=(0,Pn.S)()?r.useLayoutEffect:r.useEffect,Fn=void 0;function Bn(t){Fn?Fn(t):console&&console.warn&&console.warn(t)}function Hn(t,n,i,e,r){if(!0===r)for(var o=0,a=i;o<a.length;o++){var u=a[o];u in n||Bn("".concat(t," property '").concat(u,"' is required when '").concat(e,"' is used.'"))}}function _n(t,n,i){for(var e in i)if(n&&e in n){var r="".concat(t," property '").concat(e,"' was used but has been deprecated."),o=i[e];o&&(r+=" Use '".concat(o,"' instead.")),Bn(r)}}function In(t,n){return void 0!==t[n]&&null!==t[n]}function Wn(t){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=t})),n.current}Mn={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var Rn=0;function zn(t){var i=t.name,e=t.props,o=t.other,a=void 0===o?[]:o,u=t.conditionallyRequired,s=t.deprecations,l=t.mutuallyExclusive,c=t.controlledUsage,f=r.useRef(!1),h=Yt((function(){return"useWarnings_".concat(Rn++)})),d=Wn(e);if(!f.current){f.current=!0;for(var v=0,p=a;v<p.length;v++)Bn(p[v]);if(u)for(var g=0,m=u;g<m.length;g++){var y=m[g];Hn(i,e,y.requiredProps,y.conditionalPropName,y.condition)}s&&_n(i,e,s),l&&function(t,n,i){for(var e in i)if(n&&void 0!==n[e]){var r=i[e];r&&void 0!==n[r]&&Bn("".concat(t," property '").concat(e,"' is mutually exclusive with '").concat(i[e],"'. ")+"Use one or the other.")}}(i,e,l)}c&&function(t){var n=t.componentId,i=t.componentName,e=t.defaultValueProp,r=t.props,o=t.oldProps,a=t.onChangeProp,u=t.readOnlyProp,s=t.valueProp,l=o?In(o,s):void 0,c=In(r,s);if(c){var f=!!r[a],h=!(!u||!r[u]);f||h||Mn.valueOnChange[n]||(Mn.valueOnChange[n]=!0,Bn("Warning: You provided a '".concat(String(s),"' prop to a ").concat(String(i)," without an '").concat(String(a),"' handler. ")+"This will render a read-only field. If the field should be mutable use '".concat(String(e),"'. ")+"Otherwise, set '".concat(String(a),"'").concat(u?" or '".concat(String(u),"'"):"","."))),null==r[e]||Mn.valueDefaultValue[n]||(Mn.valueDefaultValue[n]=!0,Bn("Warning: You provided both '".concat(String(s),"' and '").concat(String(e),"' to a ").concat(i,". ")+"Form fields must be either controlled or uncontrolled (specify either the '".concat(String(s),"' prop, ")+"or the '".concat(String(e),"' prop, but not both). Decide between using a controlled or uncontrolled ")+"".concat(i," and remove one of these props. More info: https://fb.me/react-controlled-components")))}if(o&&c!==l){var d=l?"a controlled":"an uncontrolled",v=l?"uncontrolled":"controlled",p=l?Mn.controlledToUncontrolled:Mn.uncontrolledToControlled;p[n]||(p[n]=!0,Bn("Warning: A component is changing ".concat(d," ").concat(i," to be ").concat(v,". ")+"".concat(i,"s should not switch from controlled to uncontrolled (or vice versa). ")+"Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}((0,n.Cl)((0,n.Cl)({},c),{componentId:h,props:e,componentName:i,oldProps:d}))}var jn,Yn=(0,o.Z)(),Xn=r.forwardRef((function(t,i){var e,o=null!==(e=r.useContext(sn))&&void 0!==e?e:ln,a=r.useRef(null),u=Ht(a,i),s=r.useRef(),l=r.useRef(null),c=r.useContext(hn),f=r.useState(!1),h=f[0],d=f[1],v=r.useCallback((function(t){var n,i=!!(null==(n=null==c?void 0:c.providerRef)?void 0:n.current)&&n.current.classList.contains(Vn.Y2);t&&i&&t.classList.add(Vn.Y2)}),[c]),p=t.children,g=t.className,m=t.eventBubblingEnabled,y=t.fabricProps,b=t.hostId,x=t.insertFirst,w=t.onLayerDidMount,M=void 0===w?function(){}:w,k=t.onLayerMounted,L=void 0===k?function(){}:k,S=t.onLayerWillUnmount,V=t.styles,A=t.theme,N=Ht(l,null==y?void 0:y.ref,v),D=Yn(V,{theme:A,className:g,isNotHost:!b}),T=function(){null==S||S();var t=s.current;s.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},O=function(){var t,n,i,e,r=(0,C.Y)(a.current),o=(null===(n=null===(t=a.current)||void 0===t?void 0:t.getRootNode())||void 0===n?void 0:n.host)?null===(i=null==a?void 0:a.current)||void 0===i?void 0:i.getRootNode():void 0;if(r&&(r||o)){var u=function(t,n){var i,e;void 0===n&&(n=null);var r=null!=n?n:t;if(b){var o=function(t){var n=Dn[t];return n&&n[0]||void 0}(b);return o?null!==(i=o.rootRef.current)&&void 0!==i?i:null:null!==(e=r.getElementById(b))&&void 0!==e?e:null}var a=On,u=a?r.querySelector(a):null;return u||(u=function(t,n){void 0===n&&(n=null);var i=t.createElement("div");return i.setAttribute("id",Tn),i.style.cssText="position:fixed;z-index:1000000",n?n.appendChild(i):null==t||t.body.appendChild(i),i}(t,n)),u}(r,o);if(u){u.__tabsterElementFlags||(u.__tabsterElementFlags={}),u.__tabsterElementFlags.noDirectAriaHidden=!0,T();var l=(null!==(e=u.ownerDocument)&&void 0!==e?e:r).createElement("div");l.className=D.root,l.setAttribute(An,"true"),function(t,n){var i=t,e=n;i._virtual||(i._virtual={children:[]});var r=i._virtual.parent;if(r&&r!==n){var o=r._virtual.children.indexOf(i);o>-1&&r._virtual.children.splice(o,1)}i._virtual.parent=e||void 0,e&&(e._virtual||(e._virtual={children:[]}),e._virtual.children.push(i))}(l,a.current),x?u.insertBefore(l,u.firstChild):u.appendChild(l),s.current=l,d(!0)}}};return En((function(){O(),b&&function(t,n){Nn[t]||(Nn[t]=[]),Nn[t].push(n);var i=Dn[t];if(i)for(var e=0,r=i;e<r.length;e++)r[e].notifyLayersChanged()}(b,O);var t=s.current?o(s.current):void 0;return function(){t&&t(),T(),b&&function(t,n){var i=Nn[t];if(i){var e=i.indexOf(n);e>=0&&(i.splice(e,1),0===i.length&&delete Nn[t])}var r=Dn[t];if(r)for(var o=0,a=r;o<a.length;o++)a[o].notifyLayersChanged()}(b,O)}}),[b]),r.useEffect((function(){s.current&&h&&(null==L||L(),null==M||M(),d(!1))}),[h,L,M]),function(t){zn({name:"Layer",props:t,deprecations:{onLayerMounted:"onLayerDidMount"}})}(t),r.createElement("span",{className:"ms-layer",ref:u},s.current&&cn.createPortal(r.createElement(dn,{layerRoot:!0,providerRef:N},r.createElement(Sn,(0,n.Cl)({},!m&&(jn||(jn={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return jn[t]=qn}))),jn),y,{className:$(D.content,null==y?void 0:y.className),ref:N}),p)),s.current))}));Xn.displayName="LayerBase";var qn=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},$n={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Un=(0,t.I)(Xn,(function(t){var n=t.className,i=t.isNotHost,e=t.theme,r=(0,jt.Km)($n,e);return{root:[r.root,e.fonts.medium,i&&[r.rootNoHost,{position:"fixed",zIndex:jt.nA.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],n],content:[r.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Gn=r.forwardRef((function(t,i){var e=t.layerProps,o=t.doNotLayer,a=(0,n.Tt)(t,["layerProps","doNotLayer"]),u=r.createElement(un,(0,n.Cl)({},a,{doNotLayer:o,ref:i}));return o?u:r.createElement(Un,(0,n.Cl)({},e),u)}));Gn.displayName="Callout";var Zn=i(464),Kn=Array.prototype.slice;function Jn(t){return t}var Qn=1,ti=2,ni=3,ii=4,ei=1e-6;function ri(t){return"translate("+t+",0)"}function oi(t){return"translate(0,"+t+")"}function ai(t){return n=>+t(n)}function ui(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),i=>+t(i)+n}function si(){return!this.__axis}function li(t,n){var i=[],e=null,r=null,o=6,a=6,u=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=t===Qn||t===ii?-1:1,c=t===ii||t===ti?"x":"y",f=t===Qn||t===ni?ri:oi;function h(h){var d=null==e?n.ticks?n.ticks.apply(n,i):n.domain():e,v=null==r?n.tickFormat?n.tickFormat.apply(n,i):Jn:r,p=Math.max(o,0)+u,g=n.range(),m=+g[0]+s,y=+g[g.length-1]+s,b=(n.bandwidth?ui:ai)(n.copy(),s),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),C=x.selectAll(".tick").data(d,n).order(),M=C.exit(),k=C.enter().append("g").attr("class","tick"),L=C.select("line"),S=C.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(k),L=L.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),S=S.merge(k.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",t===Qn?"0em":t===ni?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),C=C.transition(h),L=L.transition(h),S=S.transition(h),M=M.transition(h).attr("opacity",ei).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),k.attr("opacity",ei).attr("transform",(function(t){var n=this.parentNode.__axis;return f((n&&isFinite(n=n(t))?n:b(t))+s)}))),M.remove(),w.attr("d",t===ii||t===ti?a?"M"+l*a+","+m+"H"+s+"V"+y+"H"+l*a:"M"+s+","+m+"V"+y:a?"M"+m+","+l*a+"V"+s+"H"+y+"V"+l*a:"M"+m+","+s+"H"+y),C.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),L.attr(c+"2",l*o),S.attr(c,l*p).text(v),x.filter(si).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ti?"start":t===ii?"end":"middle"),x.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return i=Kn.call(arguments),h},h.tickArguments=function(t){return arguments.length?(i=null==t?[]:Kn.call(t),h):i.slice()},h.tickValues=function(t){return arguments.length?(e=null==t?null:Kn.call(t),h):e&&e.slice()},h.tickFormat=function(t){return arguments.length?(r=t,h):r},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(s=+t,h):s},h}function ci(t){return li(ti,t)}function fi(t){return li(ni,t)}function hi(t){return li(ii,t)}function di(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}function vi(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}var pi=Math.sqrt(50),gi=Math.sqrt(10),mi=Math.sqrt(2);function yi(t,n,i){var e=(n-t)/Math.max(0,i),r=Math.floor(Math.log(e)/Math.LN10),o=e/Math.pow(10,r);return r>=0?(o>=pi?10:o>=gi?5:o>=mi?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=pi?10:o>=gi?5:o>=mi?2:1)}function bi(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function xi(t){let n=t,i=t;function e(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)<0?e=o+1:r=o}return e}return 1===t.length&&(n=(n,i)=>t(n)-i,i=function(t){return(n,i)=>bi(t(n),i)}(t)),{left:e,center:function(t,i,r,o){null==r&&(r=0),null==o&&(o=t.length);const a=e(t,i,r,o-1);return a>r&&n(t[a-1],i)>-n(t[a],i)?a-1:a},right:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)>0?r=o:e=o+1}return e}}}const wi=xi(bi),Ci=wi.right;wi.left,xi((function(t){return null===t?NaN:+t})).center;var Mi=Ci;function ki(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function Li(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function Si(){}var Vi=.7,Ai=1/Vi,Ni="\\s*([+-]?\\d+)\\s*",Di="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ti="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oi=/^#([0-9a-f]{3,8})$/,Pi=new RegExp("^rgb\\("+[Ni,Ni,Ni]+"\\)$"),Ei=new RegExp("^rgb\\("+[Ti,Ti,Ti]+"\\)$"),Fi=new RegExp("^rgba\\("+[Ni,Ni,Ni,Di]+"\\)$"),Bi=new RegExp("^rgba\\("+[Ti,Ti,Ti,Di]+"\\)$"),Hi=new RegExp("^hsl\\("+[Di,Ti,Ti]+"\\)$"),_i=new RegExp("^hsla\\("+[Di,Ti,Ti,Di]+"\\)$"),Ii={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Wi(){return this.rgb().formatHex()}function Ri(){return this.rgb().formatRgb()}function zi(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=Oi.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?ji(n):3===i?new qi(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===i?new qi(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===i?new qi(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Pi.exec(t))?new qi(n[1],n[2],n[3],1):(n=Ei.exec(t))?new qi(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Fi.exec(t))?Yi(n[1],n[2],n[3],n[4]):(n=Bi.exec(t))?Yi(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Hi.exec(t))?Zi(n[1],n[2]/100,n[3]/100,1):(n=_i.exec(t))?Zi(n[1],n[2]/100,n[3]/100,n[4]):Ii.hasOwnProperty(t)?ji(Ii[t]):"transparent"===t?new qi(NaN,NaN,NaN,0):null}function ji(t){return new qi(t>>16&255,t>>8&255,255&t,1)}function Yi(t,n,i,e){return e<=0&&(t=n=i=NaN),new qi(t,n,i,e)}function Xi(t,n,i,e){return 1===arguments.length?((r=t)instanceof Si||(r=zi(r)),r?new qi((r=r.rgb()).r,r.g,r.b,r.opacity):new qi):new qi(t,n,i,null==e?1:e);var r}function qi(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function $i(){return"#"+Gi(this.r)+Gi(this.g)+Gi(this.b)}function Ui(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Gi(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Zi(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new Ji(t,n,i,e)}function Ki(t){if(t instanceof Ji)return new Ji(t.h,t.s,t.l,t.opacity);if(t instanceof Si||(t=zi(t)),!t)return new Ji;if(t instanceof Ji)return t;var n=(t=t.rgb()).r/255,i=t.g/255,e=t.b/255,r=Math.min(n,i,e),o=Math.max(n,i,e),a=NaN,u=o-r,s=(o+r)/2;return u?(a=n===o?(i-e)/u+6*(i<e):i===o?(e-n)/u+2:(n-i)/u+4,u/=s<.5?o+r:2-o-r,a*=60):u=s>0&&s<1?0:a,new Ji(a,u,s,t.opacity)}function Ji(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function Qi(t,n,i){return 255*(t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n)}function te(t,n,i,e,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*i+(1+3*t+3*o-3*a)*e+a*r)/6}function ne(t){return function(){return t}}function ie(t,n){var i=n-t;return i?function(t,n){return function(i){return t+i*n}}(t,i):ne(isNaN(t)?n:t)}ki(Si,zi,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Wi,formatHex:Wi,formatHsl:function(){return Ki(this).formatHsl()},formatRgb:Ri,toString:Ri}),ki(qi,Xi,Li(Si,{brighter:function(t){return t=null==t?Ai:Math.pow(Ai,t),new qi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Vi:Math.pow(Vi,t),new qi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$i,formatHex:$i,formatRgb:Ui,toString:Ui})),ki(Ji,(function(t,n,i,e){return 1===arguments.length?Ki(t):new Ji(t,n,i,null==e?1:e)}),Li(Si,{brighter:function(t){return t=null==t?Ai:Math.pow(Ai,t),new Ji(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Vi:Math.pow(Vi,t),new Ji(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,e=i+(i<.5?i:1-i)*n,r=2*i-e;return new qi(Qi(t>=240?t-240:t+120,r,e),Qi(t,r,e),Qi(t<120?t+240:t-120,r,e),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var ee=function t(n){var i=function(t){return 1==(t=+t)?ie:function(n,i){return i-n?function(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(e){return Math.pow(t+e*n,i)}}(n,i,t):ne(isNaN(n)?i:n)}}(n);function e(t,n){var e=i((t=Xi(t)).r,(n=Xi(n)).r),r=i(t.g,n.g),o=i(t.b,n.b),a=ie(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=r(n),t.b=o(n),t.opacity=a(n),t+""}}return e.gamma=t,e}(1);function re(t){return function(n){var i,e,r=n.length,o=new Array(r),a=new Array(r),u=new Array(r);for(i=0;i<r;++i)e=Xi(n[i]),o[i]=e.r||0,a[i]=e.g||0,u[i]=e.b||0;return o=t(o),a=t(a),u=t(u),e.opacity=1,function(t){return e.r=o(t),e.g=a(t),e.b=u(t),e+""}}}function oe(t,n){var i,e=n?n.length:0,r=t?Math.min(e,t.length):0,o=new Array(r),a=new Array(e);for(i=0;i<r;++i)o[i]=de(t[i],n[i]);for(;i<e;++i)a[i]=n[i];return function(t){for(i=0;i<r;++i)a[i]=o[i](t);return a}}function ae(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function ue(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function se(t,n){var i,e={},r={};for(i in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)i in t?e[i]=de(t[i],n[i]):r[i]=n[i];return function(t){for(i in e)r[i]=e[i](t);return r}}re((function(t){var n=t.length-1;return function(i){var e=i<=0?i=0:i>=1?(i=1,n-1):Math.floor(i*n),r=t[e],o=t[e+1],a=e>0?t[e-1]:2*r-o,u=e<n-1?t[e+2]:2*o-r;return te((i-e/n)*n,a,r,o,u)}})),re((function(t){var n=t.length;return function(i){var e=Math.floor(((i%=1)<0?++i:i)*n),r=t[(e+n-1)%n],o=t[e%n],a=t[(e+1)%n],u=t[(e+2)%n];return te((i-e/n)*n,r,o,a,u)}}));var le=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ce=new RegExp(le.source,"g");function fe(t,n){var i,e,r,o=le.lastIndex=ce.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(i=le.exec(t))&&(e=ce.exec(n));)(r=e.index)>o&&(r=n.slice(o,r),u[a]?u[a]+=r:u[++a]=r),(i=i[0])===(e=e[0])?u[a]?u[a]+=e:u[++a]=e:(u[++a]=null,s.push({i:a,x:ue(i,e)})),o=ce.lastIndex;return o<n.length&&(r=n.slice(o),u[a]?u[a]+=r:u[++a]=r),u.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var i,e=0;e<n;++e)u[(i=s[e]).i]=i.x(t);return u.join("")})}function he(t,n){n||(n=[]);var i,e=t?Math.min(n.length,t.length):0,r=n.slice();return function(o){for(i=0;i<e;++i)r[i]=t[i]*(1-o)+n[i]*o;return r}}function de(t,n){var i,e,r=typeof n;return null==n||"boolean"===r?ne(n):("number"===r?ue:"string"===r?(i=zi(n))?(n=i,ee):fe:n instanceof zi?ee:n instanceof Date?ae:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?oe:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?se:ue:he))(t,n)}function ve(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function pe(t){return+t}var ge=[0,1];function me(t){return t}function ye(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:(i=isNaN(n)?NaN:.5,function(){return i});var i}function be(t,n,i){var e=t[0],r=t[1],o=n[0],a=n[1];return r<e?(e=ye(r,e),o=i(a,o)):(e=ye(e,r),o=i(o,a)),function(t){return o(e(t))}}function xe(t,n,i){var e=Math.min(t.length,n.length)-1,r=new Array(e),o=new Array(e),a=-1;for(t[e]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<e;)r[a]=ye(t[a],t[a+1]),o[a]=i(n[a],n[a+1]);return function(n){var i=Mi(t,n,1,e)-1;return o[i](r[i](n))}}function we(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ce(){return function(){var t,n,i,e,r,o,a=ge,u=ge,s=de,l=me;function c(){var t,n,i,s=Math.min(a.length,u.length);return l!==me&&(t=a[0],n=a[s-1],t>n&&(i=t,t=n,n=i),l=function(i){return Math.max(t,Math.min(n,i))}),e=s>2?xe:be,r=o=null,f}function f(n){return null==n||isNaN(n=+n)?i:(r||(r=e(a.map(t),u,s)))(t(l(n)))}return f.invert=function(i){return l(n((o||(o=e(u,a.map(t),ue)))(i)))},f.domain=function(t){return arguments.length?(a=Array.from(t,pe),c()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),c()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=ve,c()},f.clamp=function(t){return arguments.length?(l=!!t||me,c()):l!==me},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(i=t,f):i},function(i,e){return t=i,n=e,c()}}()(me,me)}function Me(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var ke,Le=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Se(t){if(!(n=Le.exec(t)))throw new Error("invalid format: "+t);var n;return new Ve({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Ve(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ae(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}function Ne(t){return(t=Ae(Math.abs(t)))?t[1]:NaN}function De(t,n){var i=Ae(t,n);if(!i)return t+"";var e=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+e:e.length>r+1?e.slice(0,r+1)+"."+e.slice(r+1):e+new Array(r-e.length+2).join("0")}Se.prototype=Ve.prototype,Ve.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Te={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return De(100*t,n)},r:De,s:function(t,n){var i=Ae(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(ke=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=e.length;return o===a?e:o>a?e+new Array(o-a+1).join("0"):o>0?e.slice(0,o)+"."+e.slice(o):"0."+new Array(1-o).join("0")+Ae(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Oe(t){return t}var Pe,Ee,Fe,Be=Array.prototype.map,He=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _e(t){var n=t.domain;return t.ticks=function(t){var i=n();return function(t,n,i){var e,r,o,a,u=-1;if(i=+i,(t=+t)==(n=+n)&&i>0)return[t];if((e=n<t)&&(r=t,t=n,n=r),0===(a=yi(t,n,i))||!isFinite(a))return[];if(a>0){let i=Math.round(t/a),e=Math.round(n/a);for(i*a<t&&++i,e*a>n&&--e,o=new Array(r=e-i+1);++u<r;)o[u]=(i+u)*a}else{a=-a;let i=Math.round(t*a),e=Math.round(n*a);for(i/a<t&&++i,e/a>n&&--e,o=new Array(r=e-i+1);++u<r;)o[u]=(i+u)/a}return e&&o.reverse(),o}(i[0],i[i.length-1],null==t?10:t)},t.tickFormat=function(t,i){var e=n();return function(t,n,i,e){var r,o=function(t,n,i){var e=Math.abs(n-t)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),o=e/r;return o>=pi?r*=10:o>=gi?r*=5:o>=mi&&(r*=2),n<t?-r:r}(t,n,i);switch((e=Se(null==e?",f":e)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ne(n)/3)))-Ne(Math.abs(t)))}(o,a))||(e.precision=r),Fe(e,a);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ne(n)-Ne(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-Ne(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return Ee(e)}(e[0],e[e.length-1],null==t?10:t,i)},t.nice=function(i){null==i&&(i=10);var e,r,o=n(),a=0,u=o.length-1,s=o[a],l=o[u],c=10;for(l<s&&(r=s,s=l,l=r,r=a,a=u,u=r);c-- >0;){if((r=yi(s,l,i))===e)return o[a]=s,o[u]=l,n(o);if(r>0)s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r}e=r}return t},t}function Ie(){var t=Ce();return t.copy=function(){return we(t,Ie())},Me.apply(t,arguments),_e(t)}Pe=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?Oe:(n=Be.call(t.grouping,Number),i=t.thousands+"",function(t,e){for(var r=t.length,o=[],a=0,u=n[0],s=0;r>0&&u>0&&(s+u+1>e&&(u=Math.max(1,e-s)),o.push(t.substring(r-=u,r+u)),!((s+=u+1)>e));)u=n[a=(a+1)%n.length];return o.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Oe:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Be.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=Se(t)).fill,i=t.align,f=t.sign,h=t.symbol,d=t.zero,v=t.width,p=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):Te[y]||(void 0===g&&(g=12),m=!0,y="g"),(d||"0"===n&&"="===i)&&(d=!0,n="0",i="=");var b="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?s:"",w=Te[y],C=/[defgprs%]/.test(y);function M(t){var r,o,s,h=b,M=x;if("c"===y)M=w(t)+M,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(Math.abs(t),g),m&&(t=function(t){t:for(var n,i=t.length,e=1,r=-1;e<i;++e)switch(t[e]){case".":r=n=e;break;case"0":0===r&&(r=e),n=e;break;default:if(!+t[e])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(n+1):t}(t)),k&&0==+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:l:"-"===f||"("===f?"":f)+h,M=("s"===y?He[8+ke/3]:"")+M+(k&&"("===f?")":""),C)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){M=(46===s?a+t.slice(r+1):t.slice(r))+M,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var L=h.length+t.length+M.length,S=L<v?new Array(v-L+1).join(n):"";switch(p&&d&&(t=e(S+t,S.length?v-M.length:1/0),S=""),i){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,L=S.length>>1)+h+t+M+S.slice(L);break;default:t=S+h+t+M}return u(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,n){var i=f(((t=Se(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(Ne(n)/3))),r=Math.pow(10,-e),o=He[8+e/3];return function(t){return i(r*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ee=Pe.format,Fe=Pe.formatPrefix;var We=Math.sqrt(50),Re=Math.sqrt(10),ze=Math.sqrt(2);function je(t,n,i){var e=Math.abs(n-t)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),o=e/r;return o>=We?r*=10:o>=Re?r*=5:o>=ze&&(r*=2),n<t?-r:r}const Ye=1e3,Xe=6e4,qe=36e5,$e=864e5,Ue=6048e5,Ge=31536e6;var Ze=new Date,Ke=new Date;function Je(t,n,i,e){function r(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return r.floor=function(n){return t(n=new Date(+n)),n},r.ceil=function(i){return t(i=new Date(i-1)),n(i,1),t(i),i},r.round=function(t){var n=r(t),i=r.ceil(t);return t-n<i-t?n:i},r.offset=function(t,i){return n(t=new Date(+t),null==i?1:Math.floor(i)),t},r.range=function(i,e,o){var a,u=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return u;do{u.push(a=new Date(+i)),n(i,o),t(i)}while(a<i&&i<e);return u},r.filter=function(i){return Je((function(n){if(n>=n)for(;t(n),!i(n);)n.setTime(n-1)}),(function(t,e){if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););}))},i&&(r.count=function(n,e){return Ze.setTime(+n),Ke.setTime(+e),t(Ze),t(Ke),Math.floor(i(Ze,Ke))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(e?function(n){return e(n)%t==0}:function(n){return r.count(0,n)%t==0}):r:null}),r}var Qe=Je((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Qe.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Je((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,i){n.setTime(+n+i*t)}),(function(n,i){return(i-n)/t})):Qe:null};var tr=Qe,nr=(Qe.range,Je((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Ye)}),(function(t,n){return(n-t)/Ye}),(function(t){return t.getUTCSeconds()}))),ir=nr,er=(nr.range,Je((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ye)}),(function(t,n){t.setTime(+t+n*Xe)}),(function(t,n){return(n-t)/Xe}),(function(t){return t.getMinutes()}))),rr=er,or=(er.range,Je((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ye-t.getMinutes()*Xe)}),(function(t,n){t.setTime(+t+n*qe)}),(function(t,n){return(n-t)/qe}),(function(t){return t.getHours()}))),ar=or,ur=(or.range,Je((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Xe)/$e),(t=>t.getDate()-1))),sr=ur;function lr(t){return Je((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Xe)/Ue}))}ur.range;var cr=lr(0),fr=lr(1),hr=lr(2),dr=lr(3),vr=lr(4),pr=lr(5),gr=lr(6),mr=(cr.range,fr.range,hr.range,dr.range,vr.range,pr.range,gr.range,Je((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),yr=mr,br=(mr.range,Je((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));br.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Je((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,i){n.setFullYear(n.getFullYear()+i*t)})):null};var xr=br,wr=(br.range,Je((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Xe)}),(function(t,n){return(n-t)/Xe}),(function(t){return t.getUTCMinutes()}))),Cr=wr,Mr=(wr.range,Je((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*qe)}),(function(t,n){return(n-t)/qe}),(function(t){return t.getUTCHours()}))),kr=Mr,Lr=(Mr.range,Je((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/$e}),(function(t){return t.getUTCDate()-1}))),Sr=Lr;function Vr(t){return Je((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Ue}))}Lr.range;var Ar=Vr(0),Nr=Vr(1),Dr=Vr(2),Tr=Vr(3),Or=Vr(4),Pr=Vr(5),Er=Vr(6),Fr=(Ar.range,Nr.range,Dr.range,Tr.range,Or.range,Pr.range,Er.range,Je((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),Br=Fr,Hr=(Fr.range,Je((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Hr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Je((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,i){n.setUTCFullYear(n.getUTCFullYear()+i*t)})):null};var _r=Hr;function Ir(t,n,i,e,r,o){const a=[[ir,1,Ye],[ir,5,5e3],[ir,15,15e3],[ir,30,3e4],[o,1,Xe],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,qe],[r,3,108e5],[r,6,216e5],[r,12,432e5],[e,1,$e],[e,2,1728e5],[i,1,Ue],[n,1,2592e6],[n,3,7776e6],[t,1,Ge]];function u(n,i,e){const r=Math.abs(i-n)/e,o=function(t){let n=t,i=t;function e(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)<0?e=o+1:r=o}return e}return 1===t.length&&(n=(n,i)=>t(n)-i,i=function(t){return(n,i)=>{return(e=t(n))<(r=i)?-1:e>r?1:e>=r?0:NaN;var e,r}}(t)),{left:e,center:function(t,i,r,o){null==r&&(r=0),null==o&&(o=t.length);const a=e(t,i,r,o-1);return a>r&&n(t[a-1],i)>-n(t[a],i)?a-1:a},right:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)>0?r=o:e=o+1}return e}}}((([,,t])=>t)).right(a,r);if(o===a.length)return t.every(je(n/Ge,i/Ge,e));if(0===o)return tr.every(Math.max(je(n,i,e),1));const[u,s]=a[r/a[o-1][2]<a[o][2]/r?o-1:o];return u.every(s)}return[function(t,n,i){const e=n<t;e&&([t,n]=[n,t]);const r=i&&"function"==typeof i.range?i:u(t,n,i),o=r?r.range(t,+n+1):[];return e?o.reverse():o},u]}Hr.range;const[Wr,Rr]=Ir(_r,Br,Ar,Sr,kr,Cr),[zr,jr]=Ir(xr,yr,cr,sr,ar,rr);function Yr(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Xr(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function qr(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function $r(t){var n=t.dateTime,i=t.date,e=t.time,r=t.periods,o=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,l=eo(r),c=ro(r),f=eo(o),h=ro(o),d=eo(a),v=ro(a),p=eo(u),g=ro(u),m=eo(s),y=ro(s),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:So,e:So,f:To,g:zo,G:Yo,H:Vo,I:Ao,j:No,L:Do,m:Oo,M:Po,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:da,s:va,S:Eo,u:Fo,U:Bo,V:_o,w:Io,W:Wo,x:null,X:null,y:Ro,Y:jo,Z:Xo,"%":ha},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:qo,e:qo,f:Ko,g:sa,G:ca,H:$o,I:Uo,j:Go,L:Zo,m:Jo,M:Qo,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:da,s:va,S:ta,u:na,U:ia,V:ra,w:oa,W:aa,x:null,X:null,y:ua,Y:la,Z:fa,"%":ha},w={a:function(t,n,i){var e=d.exec(n.slice(i));return e?(t.w=v.get(e[0].toLowerCase()),i+e[0].length):-1},A:function(t,n,i){var e=f.exec(n.slice(i));return e?(t.w=h.get(e[0].toLowerCase()),i+e[0].length):-1},b:function(t,n,i){var e=m.exec(n.slice(i));return e?(t.m=y.get(e[0].toLowerCase()),i+e[0].length):-1},B:function(t,n,i){var e=p.exec(n.slice(i));return e?(t.m=g.get(e[0].toLowerCase()),i+e[0].length):-1},c:function(t,i,e){return k(t,n,i,e)},d:go,e:go,f:Co,g:fo,G:co,H:yo,I:yo,j:mo,L:wo,m:po,M:bo,p:function(t,n,i){var e=l.exec(n.slice(i));return e?(t.p=c.get(e[0].toLowerCase()),i+e[0].length):-1},q:vo,Q:ko,s:Lo,S:xo,u:ao,U:uo,V:so,w:oo,W:lo,x:function(t,n,e){return k(t,i,n,e)},X:function(t,n,i){return k(t,e,n,i)},y:fo,Y:co,Z:ho,"%":Mo};function C(t,n){return function(i){var e,r,o,a=[],u=-1,s=0,l=t.length;for(i instanceof Date||(i=new Date(+i));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(r=Kr[e=t.charAt(++u)])?e=t.charAt(++u):r="e"===e?" ":"0",(o=n[e])&&(e=o(i,r)),a.push(e),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function M(t,n){return function(i){var e,r,o=qr(1900,void 0,1);if(k(o,t,i+="",0)!=i.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(e=Xr(qr(o.y,0,1))).getUTCDay(),e=r>4||0===r?Nr.ceil(e):Nr(e),e=Sr.offset(e,7*(o.V-1)),o.y=e.getUTCFullYear(),o.m=e.getUTCMonth(),o.d=e.getUTCDate()+(o.w+6)%7):(r=(e=Yr(qr(o.y,0,1))).getDay(),e=r>4||0===r?fr.ceil(e):fr(e),e=sr.offset(e,7*(o.V-1)),o.y=e.getFullYear(),o.m=e.getMonth(),o.d=e.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?Xr(qr(o.y,0,1)).getUTCDay():Yr(qr(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Xr(o)):Yr(o)}}function k(t,n,i,e){for(var r,o,a=0,u=n.length,s=i.length;a<u;){if(e>=s)return-1;if(37===(r=n.charCodeAt(a++))){if(r=n.charAt(a++),!(o=w[r in Kr?n.charAt(a++):r])||(e=o(t,i,e))<0)return-1}else if(r!=i.charCodeAt(e++))return-1}return e}return b.x=C(i,b),b.X=C(e,b),b.c=C(n,b),x.x=C(i,x),x.X=C(e,x),x.c=C(n,x),{format:function(t){var n=C(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=C(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var Ur,Gr,Zr,Kr={"-":"",_:" ",0:"0"},Jr=/^\s*\d+/,Qr=/^%/,to=/[\\^$*+?|[\]().{}]/g;function no(t,n,i){var e=t<0?"-":"",r=(e?-t:t)+"",o=r.length;return e+(o<i?new Array(i-o+1).join(n)+r:r)}function io(t){return t.replace(to,"\\$&")}function eo(t){return new RegExp("^(?:"+t.map(io).join("|")+")","i")}function ro(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function oo(t,n,i){var e=Jr.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function ao(t,n,i){var e=Jr.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function uo(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function so(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function lo(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function co(t,n,i){var e=Jr.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function fo(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function ho(t,n,i){var e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return e?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),i+e[0].length):-1}function vo(t,n,i){var e=Jr.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function po(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function go(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function mo(t,n,i){var e=Jr.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function yo(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function bo(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function xo(t,n,i){var e=Jr.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function wo(t,n,i){var e=Jr.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function Co(t,n,i){var e=Jr.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function Mo(t,n,i){var e=Qr.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function ko(t,n,i){var e=Jr.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function Lo(t,n,i){var e=Jr.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function So(t,n){return no(t.getDate(),n,2)}function Vo(t,n){return no(t.getHours(),n,2)}function Ao(t,n){return no(t.getHours()%12||12,n,2)}function No(t,n){return no(1+sr.count(xr(t),t),n,3)}function Do(t,n){return no(t.getMilliseconds(),n,3)}function To(t,n){return Do(t,n)+"000"}function Oo(t,n){return no(t.getMonth()+1,n,2)}function Po(t,n){return no(t.getMinutes(),n,2)}function Eo(t,n){return no(t.getSeconds(),n,2)}function Fo(t){var n=t.getDay();return 0===n?7:n}function Bo(t,n){return no(cr.count(xr(t)-1,t),n,2)}function Ho(t){var n=t.getDay();return n>=4||0===n?vr(t):vr.ceil(t)}function _o(t,n){return t=Ho(t),no(vr.count(xr(t),t)+(4===xr(t).getDay()),n,2)}function Io(t){return t.getDay()}function Wo(t,n){return no(fr.count(xr(t)-1,t),n,2)}function Ro(t,n){return no(t.getFullYear()%100,n,2)}function zo(t,n){return no((t=Ho(t)).getFullYear()%100,n,2)}function jo(t,n){return no(t.getFullYear()%1e4,n,4)}function Yo(t,n){var i=t.getDay();return no((t=i>=4||0===i?vr(t):vr.ceil(t)).getFullYear()%1e4,n,4)}function Xo(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+no(n/60|0,"0",2)+no(n%60,"0",2)}function qo(t,n){return no(t.getUTCDate(),n,2)}function $o(t,n){return no(t.getUTCHours(),n,2)}function Uo(t,n){return no(t.getUTCHours()%12||12,n,2)}function Go(t,n){return no(1+Sr.count(_r(t),t),n,3)}function Zo(t,n){return no(t.getUTCMilliseconds(),n,3)}function Ko(t,n){return Zo(t,n)+"000"}function Jo(t,n){return no(t.getUTCMonth()+1,n,2)}function Qo(t,n){return no(t.getUTCMinutes(),n,2)}function ta(t,n){return no(t.getUTCSeconds(),n,2)}function na(t){var n=t.getUTCDay();return 0===n?7:n}function ia(t,n){return no(Ar.count(_r(t)-1,t),n,2)}function ea(t){var n=t.getUTCDay();return n>=4||0===n?Or(t):Or.ceil(t)}function ra(t,n){return t=ea(t),no(Or.count(_r(t),t)+(4===_r(t).getUTCDay()),n,2)}function oa(t){return t.getUTCDay()}function aa(t,n){return no(Nr.count(_r(t)-1,t),n,2)}function ua(t,n){return no(t.getUTCFullYear()%100,n,2)}function sa(t,n){return no((t=ea(t)).getUTCFullYear()%100,n,2)}function la(t,n){return no(t.getUTCFullYear()%1e4,n,4)}function ca(t,n){var i=t.getUTCDay();return no((t=i>=4||0===i?Or(t):Or.ceil(t)).getUTCFullYear()%1e4,n,4)}function fa(){return"+0000"}function ha(){return"%"}function da(t){return+t}function va(t){return Math.floor(+t/1e3)}function pa(t){return new Date(t)}function ga(t){return t instanceof Date?+t:+new Date(+t)}function ma(t,n,i,e,r,o,a,u,s,l){var c=Ce(),f=c.invert,h=c.domain,d=l(".%L"),v=l(":%S"),p=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),y=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(s(t)<t?d:u(t)<t?v:a(t)<t?p:o(t)<t?g:e(t)<t?r(t)<t?m:y:i(t)<t?b:x)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,ga)):h().map(pa)},c.ticks=function(n){var i=h();return t(i[0],i[i.length-1],null==n?10:n)},c.tickFormat=function(t,n){return null==n?w:l(n)},c.nice=function(t){var i=h();return t&&"function"==typeof t.range||(t=n(i[0],i[i.length-1],null==t?10:t)),t?h(function(t,n){var i,e=0,r=(t=t.slice()).length-1,o=t[e],a=t[r];return a<o&&(i=e,e=r,r=i,i=o,o=a,a=i),t[e]=n.floor(o),t[r]=n.ceil(a),t}(i,t)):c},c.copy=function(){return we(c,ma(t,n,i,e,r,o,a,u,s,l))},c}function ya(){return Me.apply(ma(Wr,Rr,_r,Br,Ar,Sr,kr,Cr,ir,Zr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}Ur=$r({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Gr=Ur.format,Ur.parse,Zr=Ur.utcFormat,Ur.utcParse;class ba extends Map{constructor(t,n=wa){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(xa(this,t))}has(t){return super.has(xa(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):(t.set(e,i),i)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)&&(i=t.get(i),t.delete(e)),i}(this,t))}}function xa({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function wa(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Ca=Symbol("implicit");function Ma(){var t=new ba,n=[],i=[],e=Ca;function r(r){let o=t.get(r);if(void 0===o){if(e!==Ca)return e;t.set(r,o=n.push(r)-1)}return i[o%i.length]}return r.domain=function(i){if(!arguments.length)return n.slice();n=[],t=new ba;for(const e of i)t.has(e)||t.set(e,n.push(e)-1);return r},r.range=function(t){return arguments.length?(i=Array.from(t),r):i.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Ma(n,i).unknown(e)},Me.apply(r,arguments),r}function ka(){var t,n,i=Ma().unknown(void 0),e=i.domain,r=i.range,o=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var i=e().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,i-s+2*l),u&&(t=Math.floor(t)),h+=(d-h-t*(i-s))*c,n=t*(1-s),u&&(h=Math.round(h),n=Math.round(n));var v=function(t,n,i){t=+t,n=+n,i=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+i;for(var e=-1,r=0|Math.max(0,Math.ceil((n-t)/i)),o=new Array(r);++e<r;)o[e]=t+e*i;return o}(i).map((function(n){return h+t*n}));return r(f?v.reverse():v)}return delete i.unknown,i.domain=function(t){return arguments.length?(e(t),f()):e()},i.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},i.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,f()},i.bandwidth=function(){return n},i.step=function(){return t},i.round=function(t){return arguments.length?(u=!!t,f()):u},i.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),f()):s},i.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},i.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},i.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),f()):c},i.copy=function(){return ka(e(),[o,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},Me.apply(f(),arguments)}function La(){}function Sa(t){return null==t?La:function(){return this.querySelector(t)}}function Va(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Aa(){return[]}function Na(t){return function(n){return n.matches(t)}}var Da=Array.prototype.find;function Ta(){return this.firstElementChild}var Oa=Array.prototype.filter;function Pa(){return this.children}function Ea(t){return new Array(t.length)}function Fa(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Ba(t,n,i,e,r,o){for(var a,u=0,s=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],e[u]=a):i[u]=new Fa(t,o[u]);for(;u<s;++u)(a=n[u])&&(r[u]=a)}function Ha(t,n,i,e,r,o,a){var u,s,l,c=new Map,f=n.length,h=o.length,d=new Array(f);for(u=0;u<f;++u)(s=n[u])&&(d[u]=l=a.call(s,s.__data__,u,n)+"",c.has(l)?r[u]=s:c.set(l,s));for(u=0;u<h;++u)l=a.call(t,o[u],u,o)+"",(s=c.get(l))?(e[u]=s,s.__data__=o[u],c.delete(l)):i[u]=new Fa(t,o[u]);for(u=0;u<f;++u)(s=n[u])&&c.get(d[u])===s&&(r[u]=s)}function _a(t){return t.__data__}function Ia(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Fa.prototype={constructor:Fa,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Wa="http://www.w3.org/1999/xhtml",Ra={svg:"http://www.w3.org/2000/svg",xhtml:Wa,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function za(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),Ra.hasOwnProperty(n)?{space:Ra[n],local:t}:t}function ja(t){return function(){this.removeAttribute(t)}}function Ya(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Xa(t,n){return function(){this.setAttribute(t,n)}}function qa(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function $a(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function Ua(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Ga(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Za(t){return function(){this.style.removeProperty(t)}}function Ka(t,n,i){return function(){this.style.setProperty(t,n,i)}}function Ja(t,n,i){return function(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,i)}}function Qa(t){return function(){delete this[t]}}function tu(t,n){return function(){this[t]=n}}function nu(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function iu(t){return t.trim().split(/^|\s+/)}function eu(t){return t.classList||new ru(t)}function ru(t){this._node=t,this._names=iu(t.getAttribute("class")||"")}function ou(t,n){for(var i=eu(t),e=-1,r=n.length;++e<r;)i.add(n[e])}function au(t,n){for(var i=eu(t),e=-1,r=n.length;++e<r;)i.remove(n[e])}function uu(t){return function(){ou(this,t)}}function su(t){return function(){au(this,t)}}function lu(t,n){return function(){(n.apply(this,arguments)?ou:au)(this,t)}}function cu(){this.textContent=""}function fu(t){return function(){this.textContent=t}}function hu(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function du(){this.innerHTML=""}function vu(t){return function(){this.innerHTML=t}}function pu(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function gu(){this.nextSibling&&this.parentNode.appendChild(this)}function mu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yu(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Wa&&n.documentElement.namespaceURI===Wa?n.createElement(t):n.createElementNS(i,t)}}function bu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function xu(t){var n=za(t);return(n.local?bu:yu)(n)}function wu(){return null}function Cu(){var t=this.parentNode;t&&t.removeChild(this)}function Mu(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ku(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Lu(t){return function(){var n=this.__on;if(n){for(var i,e=0,r=-1,o=n.length;e<o;++e)i=n[e],t.type&&i.type!==t.type||i.name!==t.name?n[++r]=i:this.removeEventListener(i.type,i.listener,i.options);++r?n.length=r:delete this.__on}}}function Su(t,n,i){return function(){var e,r=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(r)for(var a=0,u=r.length;a<u;++a)if((e=r[a]).type===t.type&&e.name===t.name)return this.removeEventListener(e.type,e.listener,e.options),this.addEventListener(e.type,e.listener=o,e.options=i),void(e.value=n);this.addEventListener(t.type,o,i),e={type:t.type,name:t.name,value:n,listener:o,options:i},r?r.push(e):this.__on=[e]}}function Vu(t,n,i){var e=Ga(t),r=e.CustomEvent;"function"==typeof r?r=new r(n,i):(r=e.document.createEvent("Event"),i?(r.initEvent(n,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(n,!1,!1)),t.dispatchEvent(r)}function Au(t,n){return function(){return Vu(this,t,n)}}function Nu(t,n){return function(){return Vu(this,t,n.apply(this,arguments))}}ru.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Du=[null];function Tu(t,n){this._groups=t,this._parents=n}function Ou(t){return"string"==typeof t?new Tu([[document.querySelector(t)]],[document.documentElement]):new Tu([[t]],Du)}function Pu(t){return"string"==typeof t?new Tu([document.querySelectorAll(t)],[document.documentElement]):new Tu([null==t?[]:Va(t)],Du)}function Eu(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}Tu.prototype=function(){return new Tu([[document.documentElement]],Du)}.prototype={constructor:Tu,select:function(t){"function"!=typeof t&&(t=Sa(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,a,u=n[r],s=u.length,l=e[r]=new Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new Tu(e,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);return null==n?[]:Va(n)}}(t):function(t){return null==t?Aa:function(){return this.querySelectorAll(t)}}(t);for(var n=this._groups,i=n.length,e=[],r=[],o=0;o<i;++o)for(var a,u=n[o],s=u.length,l=0;l<s;++l)(a=u[l])&&(e.push(t.call(a,a.__data__,l,u)),r.push(a));return new Tu(e,r)},selectChild:function(t){return this.select(null==t?Ta:function(t){return function(){return Da.call(this.children,t)}}("function"==typeof t?t:Na(t)))},selectChildren:function(t){return this.selectAll(null==t?Pa:function(t){return function(){return Oa.call(this.children,t)}}("function"==typeof t?t:Na(t)))},filter:function(t){"function"!=typeof t&&(t=function(t){return function(){return this.matches(t)}}(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,a=n[r],u=a.length,s=e[r]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new Tu(e,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,_a);var i,e=n?Ha:Ba,r=this._parents,o=this._groups;"function"!=typeof t&&(i=t,t=function(){return i});for(var a=o.length,u=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var f=r[c],h=o[c],d=h.length,v=Va(t.call(f,f&&f.__data__,c,r)),p=v.length,g=s[c]=new Array(p),m=u[c]=new Array(p);e(f,h,g,m,l[c]=new Array(d),v,n);for(var y,b,x=0,w=0;x<p;++x)if(y=g[x]){for(x>=w&&(w=x+1);!(b=m[w])&&++w<p;);y._next=b||null}}return(u=new Tu(u,r))._enter=s,u._exit=l,u},enter:function(){return new Tu(this._enter||this._groups.map(Ea),this._parents)},exit:function(){return new Tu(this._exit||this._groups.map(Ea),this._parents)},join:function(t,n,i){var e=this.enter(),r=this,o=this.exit();return e="function"==typeof t?t(e):e.append(t+""),null!=n&&(r=n(r)),null==i?o.remove():i(o),e&&r?e.merge(r).order():r},merge:function(t){if(!(t instanceof Tu))throw new Error("invalid merge");for(var n=this._groups,i=t._groups,e=n.length,r=i.length,o=Math.min(e,r),a=new Array(e),u=0;u<o;++u)for(var s,l=n[u],c=i[u],f=l.length,h=a[u]=new Array(f),d=0;d<f;++d)(s=l[d]||c[d])&&(h[d]=s);for(;u<e;++u)a[u]=n[u];return new Tu(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,i=t.length;++n<i;)for(var e,r=t[n],o=r.length-1,a=r[o];--o>=0;)(e=r[o])&&(a&&4^e.compareDocumentPosition(a)&&a.parentNode.insertBefore(e,a),a=e);return this},sort:function(t){function n(n,i){return n&&i?t(n.__data__,i.__data__):!n-!i}t||(t=Ia);for(var i=this._groups,e=i.length,r=new Array(e),o=0;o<e;++o){for(var a,u=i[o],s=u.length,l=r[o]=new Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(n)}return new Tu(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e=t[n],r=0,o=e.length;r<o;++r){var a=e[r];if(a)return a}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,i=0,e=n.length;i<e;++i)for(var r,o=n[i],a=0,u=o.length;a<u;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this},attr:function(t,n){var i=za(t);if(arguments.length<2){var e=this.node();return i.local?e.getAttributeNS(i.space,i.local):e.getAttribute(i)}return this.each((null==n?i.local?Ya:ja:"function"==typeof n?i.local?Ua:$a:i.local?qa:Xa)(i,n))},style:function(t,n,i){return arguments.length>1?this.each((null==n?Za:"function"==typeof n?Ja:Ka)(t,n,null==i?"":i)):function(t,n){return t.style.getPropertyValue(n)||Ga(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Qa:"function"==typeof n?nu:tu)(t,n)):this.node()[t]},classed:function(t,n){var i=iu(t+"");if(arguments.length<2){for(var e=eu(this.node()),r=-1,o=i.length;++r<o;)if(!e.contains(i[r]))return!1;return!0}return this.each(("function"==typeof n?lu:n?uu:su)(i,n))},text:function(t){return arguments.length?this.each(null==t?cu:("function"==typeof t?hu:fu)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?du:("function"==typeof t?pu:vu)(t)):this.node().innerHTML},raise:function(){return this.each(gu)},lower:function(){return this.each(mu)},append:function(t){var n="function"==typeof t?t:xu(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var i="function"==typeof t?t:xu(t),e=null==n?wu:"function"==typeof n?n:Sa(n);return this.select((function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)}))},remove:function(){return this.each(Cu)},clone:function(t){return this.select(t?ku:Mu)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,i){var e,r,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?Su:Lu,e=0;e<a;++e)this.each(u(o[e],n,i));return this}var u=this.node().__on;if(u)for(var s,l=0,c=u.length;l<c;++l)for(e=0,s=u[l];e<a;++e)if((r=o[e]).type===s.type&&r.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?Nu:Au)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e,r=t[n],o=0,a=r.length;o<a;++o)(e=r[o])&&(yield e)}};var Fu,Bu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hu(t){if(!(n=Bu.exec(t)))throw new Error("invalid format: "+t);var n;return new _u({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function _u(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Iu(t,n){var i=Eu(t,n);if(!i)return t+"";var e=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+e:e.length>r+1?e.slice(0,r+1)+"."+e.slice(r+1):e+new Array(r-e.length+2).join("0")}Hu.prototype=_u.prototype,_u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Wu={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Iu(100*t,n),r:Iu,s:function(t,n){var i=Eu(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(Fu=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=e.length;return o===a?e:o>a?e+new Array(o-a+1).join("0"):o>0?e.slice(0,o)+"."+e.slice(o):"0."+new Array(1-o).join("0")+Eu(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ru(t){return t}var zu,ju,Yu,Xu,qu,$u,Uu,Gu=Array.prototype.map,Zu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ku(t,n,i){var e=t.domainNRangeValues,r=t.showRoundOffXTickValues,o=void 0!==r&&r,a=t.xAxistickSize,u=void 0===a?6:a,s=t.tickPadding,l=void 0===s?10:s,c=t.xAxisCount,f=void 0===c?6:c,h=t.xAxisElement,d=Ie().domain([e.dStartValue,e.dEndValue]).range([e.rStartValue,e.rEndValue]);o&&d.nice();var v=fi(d).tickSize(u).tickPadding(l).ticks(f).tickFormat((function(t,n){var e="number"==typeof t?t:t.valueOf();return hs(e,i)}));n===qu.HorizontalBarChartWithAxis&&v.tickSizeInner(-(t.containerHeight-t.margins.top)),h&&Ou(h).call(v).selectAll("text").attr("aria-hidden","true");var p=d.ticks(f).map(v.tickFormat());return{xScale:d,tickValues:p}}function Ju(t,n){var i=n?n.format:Gr,e=i(".%L"),r=i(":%S"),o=i("%I:%M"),a=i("%I %p"),u=i("%a %d"),s=i("%b %d"),l=i("%B"),c=i("%Y");return(ir(t)<t?e:rr(t)<t?r:ar(t)<t?o:sr(t)<t?a:yr(t)<t?cr(t)<t?u:s:xr(t)<t?l:c)(t)}function Qu(t,n,i,e,r,o,a){return void 0===a&&(a=!1),e===qu.HorizontalBarChartWithAxis?function(t,n,i,e){var r=t.yMinMaxValues,o=void 0===r?{startValue:0,endValue:0}:r,a=t.yAxisElement,u=void 0===a?null:a,s=t.yMaxValue,l=void 0===s?0:s,c=t.yMinValue,f=void 0===c?0:c,h=t.containerHeight,d=t.margins,v=t.tickPadding,p=void 0===v?12:v,g=t.maxOfYVal,m=void 0===g?0:g,y=t.yAxisTickFormat,b=t.yAxisTickCount,x=void 0===b?4:b,w=m||o.endValue,C=w>l?w:l,M=o.startValue<f?0:f,k=Ie().domain([M,C]).range([h-d.bottom,d.top]),L=(n?ci(k):hi(k)).tickPadding(p).ticks(x);return y?L.tickFormat(y):L.tickFormat(ju(".2~s")),u&&Ou(u).call(L).selectAll("text").attr("aria-hidden","true"),k}(t,n):function(t,n,i,e,r){void 0===r&&(r=!1);var o=t.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,u=t.yAxisElement,s=void 0===u?null:u,l=t.yMaxValue,c=void 0===l?0:l,f=t.yMinValue,h=void 0===f?0:f,d=t.containerHeight,v=t.containerWidth,p=t.margins,g=t.tickPadding,m=void 0===g?12:g,y=t.maxOfYVal,b=void 0===y?0:y,x=t.yAxisTickFormat,w=t.yAxisTickCount,C=void 0===w?4:w,M=t.eventAnnotationProps,k=t.eventLabelHeight,L=b||a.endValue,S=L>c?L:c,V=a.startValue<h?0:h,A=function(t,n,i,e){for(var r=e||(t-n)/i>=1?Math.ceil((t-n)/i):(t-n)/i,o=[n,n+r];o[o.length-1]<t;)o.push(o[o.length-1]+r);return o}(S,V,C,e),N=Ie().domain([V,A[A.length-1]]).range([d-p.bottom,p.top+(M?k:0)]),D=(!n&&r||n&&!r?ci(N):hi(N)).tickPadding(m).tickValues(A).tickSizeInner(-(v-p.left-p.right));return x?D.tickFormat(x):D.tickFormat(ju(".2~s")),s&&Ou(s).call(D).selectAll("text").attr("aria-hidden","true"),i.yAxisDomainValues=A,N}(t,n,i,o,a)}zu=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?Ru:(n=Gu.call(t.grouping,Number),i=t.thousands+"",function(t,e){for(var r=t.length,o=[],a=0,u=n[0],s=0;r>0&&u>0&&(s+u+1>e&&(u=Math.max(1,e-s)),o.push(t.substring(r-=u,r+u)),!((s+=u+1)>e));)u=n[a=(a+1)%n.length];return o.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Ru:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Gu.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=Hu(t)).fill,i=t.align,f=t.sign,h=t.symbol,d=t.zero,v=t.width,p=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):Wu[y]||(void 0===g&&(g=12),m=!0,y="g"),(d||"0"===n&&"="===i)&&(d=!0,n="0",i="=");var b="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?s:"",w=Wu[y],C=/[defgprs%]/.test(y);function M(t){var r,o,s,h=b,M=x;if("c"===y)M=w(t)+M,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(Math.abs(t),g),m&&(t=function(t){t:for(var n,i=t.length,e=1,r=-1;e<i;++e)switch(t[e]){case".":r=n=e;break;case"0":0===r&&(r=e),n=e;break;default:if(!+t[e])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(n+1):t}(t)),k&&0==+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:l:"-"===f||"("===f?"":f)+h,M=("s"===y?Zu[8+Fu/3]:"")+M+(k&&"("===f?")":""),C)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){M=(46===s?a+t.slice(r+1):t.slice(r))+M,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var L=h.length+t.length+M.length,S=L<v?new Array(v-L+1).join(n):"";switch(p&&d&&(t=e(S+t,S.length?v-M.length:1/0),S=""),i){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,L=S.length>>1)+h+t+M+S.slice(L);break;default:t=S+h+t+M}return u(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,n){var i,e=f(((t=Hu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((i=n,((i=Eu(Math.abs(i)))?i[1]:NaN)/3)))),o=Math.pow(10,-r),a=Zu[8+r/3];return function(t){return e(o*t)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),ju=zu.format,Yu=zu.formatPrefix,function(t){t[t.AreaChart=0]="AreaChart",t[t.LineChart=1]="LineChart",t[t.VerticalBarChart=2]="VerticalBarChart",t[t.VerticalStackedBarChart=3]="VerticalStackedBarChart",t[t.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",t[t.HeatMapChart=5]="HeatMapChart",t[t.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(qu||(qu={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}($u||($u={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Uu||(Uu={}));function ts(t){var i=[];t.forEach((function(t){var e=t.data.filter((function(t){return!t.hideCallout})).map((function(i){return(0,n.Cl)((0,n.Cl)({},i),{legend:t.legend,color:t.color,index:t.index})}));i=i.concat(e)}));var e={};return i.forEach((function(t){var n=t.x instanceof Date?t.x.getTime():t.x;n in e?e[n].push({legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}):e[n]=[{legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}]})),Object.keys(e).map((function(t){return{x:Number(t),values:e[t]}}))}var ns=function(t,n,i){var e=Ou("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},is=function(t,n){void 0===n&&(n="none");var i=0,e=document.createElement("canvas").getContext("2d");if(e){var r=document.querySelector(n);if(r){var o=window.getComputedStyle(r,null),a=o.getPropertyValue("font-weight"),u=o.getPropertyValue("font-size"),s=o.getPropertyValue("font-family");e.font="".concat(a," ").concat(u," ").concat(s)}else e.font='600 10px "Segoe UI"';t.forEach((function(t){i=Math.max(e.measureText(t.toString()).width,i)}))}return i};function es(t){var n=t.tooltipCls,i=t.xAxis,e=t.id;if(null===i)return null;for(var r=Ou("body").append("div").attr("id",e).attr("class",n).style("opacity",0),o=i.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,u=[],s=0;s<a;s++){var l=o[s].dataset&&Object.values(o[s].dataset)[0];u.push(l)}var c=i.selectAll(".tick")._groups[0],f=c&&Object.keys(c).length,h=function(t){Ou(c[t]).on("mouseover",(function(n,i){r.style("opacity",.9),r.html(u[t]).style("left",n.pageX+"px").style("top",n.pageY-28+"px")})).on("mouseout",(function(t){r.style("opacity",0)}))};for(s=0;s<f;s++)h(s)}function rs(t){var n=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(n=t.data[0].x instanceof Date)})),n}function os(t,i,e,r,o,a,u,s,l){var c;if(a===$u.NumericAxis)switch(r){case qu.AreaChart:case qu.LineChart:c=function(t,n,i,e){var r=di(t,(function(t){return di(t.data,(function(t){return t.x}))})),o=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),a=n.left,u=i-n.right;return e?{dStartValue:o,dEndValue:r,rStartValue:a,rEndValue:u}:{dStartValue:r,dEndValue:o,rStartValue:a,rEndValue:u}}(t,i,e,o);break;case qu.VerticalStackedBarChart:c=function(t,n,i,e,r){var o=di(t,(function(t){return t.x})),a=vi(t,(function(t){return t.x})),u=n.left,s=i-n.right;return e?{dStartValue:a,dEndValue:o,rStartValue:u,rEndValue:s}:{dStartValue:o,dEndValue:a,rStartValue:u,rEndValue:s}}(t,i,e,o);break;case qu.VerticalBarChart:c=function(t,n,i,e,r){var o=vi(t,(function(t){return t.x})),a=di(t,(function(t){return t.x})),u=n.left,s=i-n.right;return e?{dStartValue:o,dEndValue:a,rStartValue:u,rEndValue:s}:{dStartValue:a,dEndValue:o,rStartValue:u,rEndValue:s}}(t,i,e,o);break;case qu.HorizontalBarChartWithAxis:c=function(t,n,i,e,r){var o=vi(t,(function(t){return t.x})),a=e?n.left:n.left+r,u=e?i-n.right-r:i-n.right;return e?{dStartValue:o,dEndValue:0,rStartValue:a,rEndValue:u}:{dStartValue:0,dEndValue:o,rStartValue:a,rEndValue:u}}(t,i,e,o,l);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(a===$u.DateAxis)switch(r){case qu.AreaChart:case qu.LineChart:case qu.VerticalBarChart:case qu.VerticalStackedBarChart:c=function(t,i,e,r,o,a,u){var s,l;void 0===o&&(o=[]),a===qu.AreaChart||a===qu.LineChart?(s=di(t,(function(t){return di(t.data,(function(t){return t.x}))})),l=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),s=di((0,n.fX)((0,n.fX)([],o,!0),[s],!1)),l=vi((0,n.fX)((0,n.fX)([],o,!0),[l],!1))):(s=di(t,(function(t){return t.x})),l=vi(t,(function(t){return t.x})));var c=i.left,f=e-i.right;return r?{dStartValue:l,dEndValue:s,rStartValue:c,rEndValue:f}:{dStartValue:s,dEndValue:l,rStartValue:c,rEndValue:f}}(t,i,e,o,s,r);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case qu.VerticalStackedBarChart:case qu.GroupedVerticalBarChart:case qu.VerticalBarChart:case qu.HeatMapChart:c=function(t,n,i){var e=t.left,r=n-t.right;return i?{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:e}:{dStartValue:0,dEndValue:0,rStartValue:e,rEndValue:r}}(i,e,o);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return c}function as(t,n,i){var e,r,o;switch(void 0===i&&(i=Uu.NumericAxis),n){case qu.AreaChart:case qu.LineChart:e=function(t){var n=vi(t,(function(t){return vi(t.data,(function(t){return t.y}))}));return{startValue:di(t,(function(t){return di(t.data,(function(t){return t.y}))})),endValue:n}}(t);break;case qu.VerticalStackedBarChart:o=vi(r=t,(function(t){return t.y})),e={startValue:di(r,(function(t){return t.y})),endValue:o};break;case qu.VerticalBarChart:e=function(t){var n=vi(t,(function(t){return void 0!==t.lineData?t.y>t.lineData.y?t.y:t.lineData.y:t.y}));return{startValue:di(t,(function(t){return void 0!==t.lineData?t.y<t.lineData.y?t.y:t.lineData.y:t.y})),endValue:n}}(t);break;case qu.HorizontalBarChartWithAxis:e=function(t,n){if(void 0!==n&&n===Uu.NumericAxis){var i=vi(t,(function(t){return t.y}));return{startValue:di(t,(function(t){return t.y})),endValue:i}}return{startValue:0,endValue:0}}(t,i);break;default:e={startValue:0,endValue:0}}return e}var us,ss,ls=function(t,n){if(n)switch(typeof t){case"string":return $u.StringAxis;case"number":return $u.NumericAxis;default:return $u.DateAxis}else switch(typeof t){case"string":return Uu.StringAxis;case"number":return Uu.NumericAxis;default:return Uu.DateAxis}};!function(t){t[t.circle=0]="circle",t[t.square=1]="square",t[t.triangle=2]="triangle",t[t.diamond=3]="diamond",t[t.pyramid=4]="pyramid",t[t.hexagon=5]="hexagon",t[t.pentagon=6]="pentagon",t[t.octagon=7]="octagon"}(us||(us={})),function(t){t[t.dottedLine=0]="dottedLine"}(ss||(ss={}));var cs=((Xu={})[us.circle]={widthRatio:1},Xu[us.square]={widthRatio:1},Xu[us.triangle]={widthRatio:1},Xu[us.diamond]={widthRatio:1},Xu[us.pyramid]={widthRatio:1},Xu[us.hexagon]={widthRatio:2},Xu[us.pentagon]={widthRatio:1.168},Xu[us.octagon]={widthRatio:2.414},Xu),fs=function(t,n,i){return void 0===n&&(n="text"),void 0===i&&(i=!0),{role:n,"data-is-focusable":i,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},hs=function(t,n){return null==t||Number.isNaN(t)?t:(n=n||void 0,"number"==typeof t?t.toLocaleString(n):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(n):t:Number(t).toLocaleString(n))};function ds(t){return Yu(t<1e3?".2~":".1",t)(t)}var vs,ps=function(t,n,i){var e;return void 0===i&&(i=16),e="number"==typeof t?t:"default"===t||void 0===t?Math.min(i,16):i,"number"==typeof n&&(e=Math.min(e,n)),Math.max(e,1)},gs=function(t,n,i){void 0===i&&(i=0);var e="number"==typeof t?t:"number"==typeof n?n:i;return Math.max(0,Math.min(e,1))},ms=function(t,n){return"number"==typeof t||"number"==typeof n},ys=i(395);function bs(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length<2?n[0]:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];n.forEach((function(n){return n&&n.apply(t,i)}))}}function xs(t){!function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=bs(t,t[i],n[i]))}(t,{componentDidMount:ws,componentDidUpdate:Cs,componentWillUnmount:Ms})}function ws(){ks(this.props.componentRef,this)}function Cs(t){t.componentRef!==this.props.componentRef&&(ks(t.componentRef,null),ks(this.props.componentRef,this))}function Ms(){ks(this.props.componentRef,null)}function ks(t,n){t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))}function Ls(t,n,i){var e=x(t,(function(t){return n===t||t.hasAttribute(An)}),i);return null!==e&&e.hasAttribute(An)}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(vs||(vs={}));var Ss,Vs=r.createContext(void 0),As="data-is-focusable",Ns="data-focuszone-id",Ds="tabindex",Ts="data-no-vertical-wrap",Os="data-no-horizontal-wrap",Ps=999999999,Es=-999999999;function Fs(t,n){var i;"function"==typeof MouseEvent?i=new MouseEvent("click",{ctrlKey:null==n?void 0:n.ctrlKey,metaKey:null==n?void 0:n.metaKey,shiftKey:null==n?void 0:n.shiftKey,altKey:null==n?void 0:n.altKey,bubbles:null==n?void 0:n.bubbles,cancelable:null==n?void 0:n.cancelable}):(i=document.createEvent("MouseEvents")).initMouseEvent("click",!!n&&n.bubbles,!!n&&n.cancelable,window,0,0,0,0,0,!!n&&n.ctrlKey,!!n&&n.altKey,!!n&&n.shiftKey,!!n&&n.metaKey,0,null),t.dispatchEvent(i)}var Bs,Hs={},_s=new Set,Is=["text","number","password","email","tel","url","search","textarea"],Ws=!1,Rs=function(t){function i(n){var e,o,u,s,l,c=this;(c=t.call(this,n)||this)._root=r.createRef(),c._mergedRef=(l={refs:[]},function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l.resolver&&function(t,n){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}(l.refs,t)||(l.resolver=function(t){return function(n){for(var i=0,e=t.refs;i<e.length;i++){var r=e[i];"function"==typeof r?r(n):r&&(r.current=n)}}}(l)),l.refs=t,l.resolver}),c._onFocus=function(t){if(!c._portalContainsElement(t.target)){var n,i=c.props,e=i.onActiveElementChanged,r=i.doNotAllowFocusEventToPropagate,o=i.stopFocusPropagation,a=i.onFocusNotification,u=i.onFocus,s=i.shouldFocusInnerElementWhenReceivedFocus,l=i.defaultTabbableElement,f=c._isImmediateDescendantOfZone(t.target);if(f)n=t.target;else for(var h=t.target;h&&h!==c._root.current;){if(O(h,void 0,c._inShadowRoot)&&c._isImmediateDescendantOfZone(h)){n=h;break}h=b(h,Ws)}if(s&&t.target===c._root.current){var d=l&&"function"==typeof l&&c._root.current&&l(c._root.current);d&&O(d,void 0,c._inShadowRoot)?(n=d,d.focus()):(c.focus(!0),c._activeElement&&(n=null))}var v=!c._activeElement;n&&n!==c._activeElement&&((f||v)&&c._setFocusAlignment(n,!0,!0),c._activeElement=n,v&&c._updateTabIndexes()),e&&e(c._activeElement,t),(o||r)&&t.stopPropagation(),u?u(t):a&&a()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(t){if(!c._portalContainsElement(t.target)&&!c.props.disabled){for(var n=t.target,i=[];n&&n!==c._root.current;)i.push(n),n=b(n,Ws);for(;i.length&&((n=i.pop())&&O(n,void 0,c._inShadowRoot)&&c._setActiveElement(n,!0),!P(n)););}},c._onKeyDown=function(t,n){if(!c._portalContainsElement(t.target)){var i=c.props,e=i.direction,r=i.disabled,o=i.isInnerZoneKeystroke,u=i.pagingSupportDisabled,s=i.shouldEnterInnerZone;if(!(r||(c.props.onKeyDown&&c.props.onKeyDown(t),t.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((s&&s(t)||o&&o(t))&&c._isImmediateDescendantOfZone(t.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!E(t.target))return;if(!c.focusElement(N(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case 32:if(c._shouldRaiseClicksOnSpace&&c._tryInvokeClickForFocusable(t.target,t))break;return;case 37:if(e!==vs.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusLeft(n)))break;return;case 39:if(e!==vs.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusRight(n)))break;return;case 38:if(e!==vs.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusUp()))break;return;case 40:if(e!==vs.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusDown()))break;return;case 34:if(!u&&c._moveFocusPaging(!0))break;return;case 33:if(!u&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(t.target)){var f=!1;if(c._processingTabKey=!0,f=e!==vs.vertical&&c._shouldWrapFocus(c._activeElement,Os)?((0,a.jI)(n)?!t.shiftKey:t.shiftKey)?c._moveFocusLeft(n):c._moveFocusRight(n):t.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,f)break;c.props.shouldResetActiveElementWhenTabFromZone&&(c._activeElement=null)}return;case 36:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!1))return!1;var h=c._root.current&&c._root.current.firstChild;if(c._root.current&&h&&c.focusElement(N(c._root.current,h,!0)))break;return;case 35:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!0))return!1;var d=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(A(c._root.current,d,!0,!0,!0)))break;return;case 13:if(c._shouldRaiseClicksOnEnter&&c._tryInvokeClickForFocusable(t.target,t))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},c._getHorizontalDistanceFromCenter=function(t,n,i){var e=c._focusAlignment.left||c._focusAlignment.x||0,r=Math.floor(i.top),o=Math.floor(n.bottom),a=Math.floor(i.bottom),u=Math.floor(n.top);return t&&r>o||!t&&a<u?e>=i.left&&e<=i.left+i.width?0:Math.abs(i.left+i.width/2-e):c._shouldWrapFocus(c._activeElement,Ts)?Ps:Es},xs(c),_n("FocusZone",n,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),c._id=v("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var f=null===(o=null!==(e=n.shouldRaiseClicks)&&void 0!==e?e:i.defaultProps.shouldRaiseClicks)||void 0===o||o;return c._shouldRaiseClicksOnEnter=null!==(u=n.shouldRaiseClicksOnEnter)&&void 0!==u?u:f,c._shouldRaiseClicksOnSpace=null!==(s=n.shouldRaiseClicksOnSpace)&&void 0!==s?s:f,c}return(0,n.C6)(i,t),i.getOuterZones=function(){return _s.size},i._onKeyDownCapture=function(t){9===t.which&&_s.forEach((function(t){return t._updateTabIndexes()}))},i.prototype.componentDidMount=function(){var t,n=this._root.current;if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),Hs[this._id]=this,n){for(var e=b(n,Ws);e&&e!==this._getDocument().body&&1===e.nodeType;){if(P(e)){this._isInnerZone=!0;break}e=b(e,Ws)}this._isInnerZone||(_s.add(this),this._root.current&&this._root.current.addEventListener("keydown",i._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},i.prototype.componentDidUpdate=function(){var t,n=this._root.current,i=this._getDocument();if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),(this._activeElement&&!w(this._root.current,this._activeElement,Ws)||this._defaultFocusElement&&!w(this._root.current,this._defaultFocusElement,Ws))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&i&&this._lastIndexPath&&(i.activeElement===i.body||null===i.activeElement||i.activeElement===n)){var e=function(t,n){for(var i=t,e=0,r=n;e<r.length;e++){var o=r[e],a=i.children[Math.min(o,i.children.length-1)];if(!a)break;i=a}return O(i)&&D(i)?i:N(t,i,!0)||A(t,i)}(n,this._lastIndexPath);e?(this._setActiveElement(e,!0),e.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},i.prototype.componentWillUnmount=function(){delete Hs[this._id],this._isInnerZone||(_s.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",i._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},i.prototype.render=function(){var t=this,i=this.props,e=i.as,o=i.elementType,a=i.rootProps,u=i.ariaDescribedBy,s=i.ariaLabelledBy,l=i.className,c=q(this.props,z),f=e||o||"div";this._evaluateFocusBeforeRender();var h=(0,jt.O4)();return r.createElement(f,(0,n.Cl)({"aria-labelledby":s,"aria-describedby":u},c,a,{className:$((Ss||(Ss=(0,Q.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Ss),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(n){return t._onKeyDown(n,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},i.prototype.focus=function(t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute(As)&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var e=Hs[i.getAttribute(Ns)];return!!e&&e.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&w(this._root.current,this._activeElement)&&O(this._activeElement,void 0,this._inShadowRoot)&&(!n||T(this._activeElement)))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(N(this._root.current,r,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},i.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(A(this._root.current,t,!0,!0,!0))}return!1},i.prototype.focusElement=function(t,n){var i=this.props,e=i.onBeforeFocus,r=i.shouldReceiveFocus;return!(r&&!r(t)||e&&!e(t)||!t||(this._setActiveElement(t,n),this._activeElement&&this._activeElement.focus(),0))},i.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(i.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),i.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,n=this._getDocument();if(n){var i=n.activeElement;if(i!==t){var e=w(t,i,!1);this._lastIndexPath=e?function(t,n){for(var i=[];n&&t&&n!==t;){var e=b(n,!0);if(null===e)return[];i.unshift(Array.prototype.indexOf.call(e.children,n)),n=e}return i}(t,i):void 0}}},i.prototype._setParkedFocus=function(t){var n=this._root.current;n&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},i.prototype._setActiveElement=function(t,n){var i=this._activeElement;this._activeElement=t,i&&(P(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!n||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},i.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},i.prototype._tryInvokeClickForFocusable=function(t,n){var i=t;if(i===this._root.current)return!1;do{if("BUTTON"===i.tagName||"A"===i.tagName||"INPUT"===i.tagName||"TEXTAREA"===i.tagName||"SUMMARY"===i.tagName)return!1;if(this._isImmediateDescendantOfZone(i)&&"true"===i.getAttribute(As)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return Fs(i,n),!0;i=b(i,Ws)}while(i!==this._root.current);return!1},i.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(P(t))return Hs[t.getAttribute(Ns)];for(var n=t.firstElementChild;n;){if(P(n))return Hs[n.getAttribute(Ns)];var i=this._getFirstInnerZone(n);if(i)return i;n=n.nextElementSibling}return null},i.prototype._moveFocus=function(t,n,i,e){void 0===e&&(e=!0);var r=this._activeElement,o=-1,a=void 0,u=!1,s=this.props.direction===vs.bidirectional;if(!r||!this._root.current)return!1;if(this._isElementInput(r)&&!this._shouldInputLoseFocus(r,t))return!1;var l=s?r.getBoundingClientRect():null;do{if(r=t?N(this._root.current,r):A(this._root.current,r),!s){a=r;break}if(r){var c=n(l,r.getBoundingClientRect());if(-1===c&&-1===o){a=r;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=r),o>=0&&c<0)break}}while(r);if(a&&a!==this._activeElement)u=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(N(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(A(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},i.prototype._moveFocusDown=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(e,r){var o=-1,a=Math.floor(r.top),u=Math.floor(e.bottom);return a<u?t._shouldWrapFocus(t._activeElement,Ts)?Ps:Es:((-1===n&&a>=u||a===n)&&(n=a,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},i.prototype._moveFocusUp=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(e,r){var o=-1,a=Math.floor(r.bottom),u=Math.floor(r.top),s=Math.floor(e.top);return a>s?t._shouldWrapFocus(t._activeElement,Ts)?Ps:Es:((-1===n&&a<=s||u===n)&&(n=u,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},i.prototype._moveFocusLeft=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,Os);return!!this._moveFocus((0,a.jI)(t),(function(e,r){var o=-1;return((0,a.jI)(t)?parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)))&&r.right<=e.right&&n.props.direction!==vs.vertical?o=e.right-r.right:i||(o=Es),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},i.prototype._moveFocusRight=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,Os);return!!this._moveFocus(!(0,a.jI)(t),(function(e,r){var o=-1;return((0,a.jI)(t)?parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)))&&r.left>=e.left&&n.props.direction!==vs.vertical?o=r.left-e.left:i||(o=Es),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},i.prototype._moveFocusPaging=function(t,n){void 0===n&&(n=!0);var i=this._activeElement;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,t))return!1;var e=nt(i);if(!e)return!1;var r=-1,o=void 0,a=-1,u=-1,s=e.clientHeight,l=i.getBoundingClientRect();do{if(i=t?N(this._root.current,i):A(this._root.current,i)){var c=i.getBoundingClientRect(),f=Math.floor(c.top),h=Math.floor(l.bottom),d=Math.floor(c.bottom),v=Math.floor(l.top),p=this._getHorizontalDistanceFromCenter(t,l,c);if(t&&f>h+s||!t&&d<v-s)break;p>-1&&(t&&f>a?(a=f,r=p,o=i):!t&&d<u?(u=d,r=p,o=i):(-1===r||p<=r)&&(r=p,o=i))}}while(i);var g=!1;if(o&&o!==this._activeElement)g=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&n)return t?this.focusElement(N(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(A(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},i.prototype._setFocusAlignment=function(t,n,i){if(this.props.direction===vs.bidirectional&&(!this._focusAlignment||n||i)){var e=t.getBoundingClientRect(),r=e.left+e.width/2,o=e.top+e.height/2;this._focusAlignment||(this._focusAlignment={left:r,top:o}),n&&(this._focusAlignment.left=r),i&&(this._focusAlignment.top=o)}},i.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},i.prototype._getOwnerZone=function(t){for(var n=b(t,Ws);n&&n!==this._root.current&&n!==this._getDocument().body;){if(P(n))return n;n=b(n,Ws)}return n},i.prototype._updateTabIndexes=function(t){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!w(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!O(this._activeElement,void 0,this._inShadowRoot)&&(this._activeElement=null);for(var n=t&&t.children,i=0;n&&i<n.length;i++){var e=n[i];P(e)?"true"===e.getAttribute(As)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(Ds)&&e.setAttribute(Ds,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(Ds)&&e.setAttribute(Ds,"0"))):(e.getAttribute&&"false"===e.getAttribute(As)&&e.setAttribute(Ds,"-1"),O(e,void 0,this._inShadowRoot)?this.props.disabled?e.setAttribute(Ds,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(Ds)&&e.setAttribute(Ds,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(Ds)&&e.setAttribute(Ds,"0")):"svg"===e.tagName&&"false"!==e.getAttribute("focusable")&&e.setAttribute("focusable","false")),this._updateTabIndexes(e)}},i.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},i.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},i.prototype._shouldInputLoseFocus=function(t,n){if(!this._processingTabKey&&t&&t.type&&Is.indexOf(t.type.toLowerCase())>-1){var i=t.selectionStart,e=i!==t.selectionEnd,r=t.value,o=t.readOnly;if(e||i>0&&!n&&!o||i!==r.length&&n&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},i.prototype._shouldWrapFocus=function(t,n){return!this.props.checkForNoWrap||function(t,n,i){return"true"!==function(t,n,i){var e=x(t,(function(t){return t.hasAttribute(n)}),i);return e&&e.getAttribute(n)}(t,n,null!=i?i:(0,C.Y)())}(t,n)},i.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&Ls(t,this._root.current)},i.prototype._getDocument=function(){return(0,C.Y)(this._root.current)},i.contextType=Vs,i.defaultProps={isCircularNavigation:!1,direction:vs.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},i}(r.Component);function zs(t){return function(t){return t.clientWidth<t.scrollWidth}(t)||function(t){return t.clientHeight<t.scrollHeight}(t)}!function(t){t[t.Parent=0]="Parent",t[t.Self=1]="Self"}(Bs||(Bs={}));var js,Ys=(0,o.Z)(),Xs=function(t){function i(){var n=null!==t&&t.apply(this,arguments)||this;return n._onRenderContent=function(t){return"string"==typeof t.content?r.createElement("p",{className:n._classNames.subText},t.content):r.createElement("div",{className:n._classNames.subText},t.content)},n}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,i=t.className,e=t.calloutProps,o=t.directionalHint,a=t.directionalHintForRTL,u=t.styles,s=t.id,l=t.maxWidth,c=t.onRenderContent,f=void 0===c?this._onRenderContent:c,h=t.targetElement,d=t.theme;return this._classNames=Ys(u,{theme:d,className:i||e&&e.className,beakWidth:e&&e.isBeakVisible?e.beakWidth:0,gapSpace:e&&e.gapSpace,maxWidth:l}),r.createElement(Gn,(0,n.Cl)({target:h,directionalHint:o,directionalHintForRTL:a},e,q(this.props,X,["id"]),{className:this._classNames.root}),r.createElement("div",{className:this._classNames.content,id:s,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},f(this.props,this._onRenderContent)))},i.defaultProps={directionalHint:y.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},i}(r.Component),qs=(0,t.I)(Xs,(function(t){var n=t.className,i=t.beakWidth,e=void 0===i?16:i,r=t.gapSpace,o=void 0===r?0:r,a=t.maxWidth,u=t.theme,s=u.semanticColors,l=u.fonts,c=u.effects,f=-(Math.sqrt(e*e/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",u.fonts.medium,jt.lw.fadeIn200,{background:s.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:f,left:f,right:f,top:f,zIndex:0}}},n],content:["ms-Tooltip-content",l.small,{position:"relative",zIndex:1,color:s.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(js||(js={}));var $s,Us,Gs=(0,o.Z)(),Zs=function(t){function i(n){var e=t.call(this,n)||this;return e._tooltipHost=r.createRef(),e._defaultTooltipId=v("tooltip"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._getTargetElement=function(){if(e._tooltipHost.current){var t=e.props.overflowMode;if(void 0!==t)switch(t){case Bs.Parent:return e._tooltipHost.current.parentElement;case Bs.Self:return e._tooltipHost.current}return e._tooltipHost.current}},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipContentFocus=function(t){i._currentVisibleTooltip&&i._currentVisibleTooltip!==e&&i._currentVisibleTooltip.dismiss(),i._currentVisibleTooltip=e,e._clearDismissTimer(),e._clearOpenTimer()},e._onTooltipBlur=function(t){var n;e._ignoreNextFocusEvent=(null===(n=$t(e.context))||void 0===n?void 0:n.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var n=e.props,r=n.overflowMode,o=n.delay,a=$t(e.context);if(i._currentVisibleTooltip&&i._currentVisibleTooltip!==e&&i._currentVisibleTooltip.dismiss(),i._currentVisibleTooltip=e,void 0!==r){var u=e._getTargetElement();if(u&&!zs(u))return}if(!t.target||!Ls(t.target,e._getTargetElement(),a))if(e._clearDismissTimer(),e._clearOpenTimer(),o!==js.zero){var s=e._getDelayTime(o);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),s)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var n=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),n?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),n):e._toggleTooltip(!1),i._currentVisibleTooltip===e&&(i._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Pt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t},(function(){return e.props.onTooltipToggle&&e.props.onTooltipToggle(t)}))},e._getDelayTime=function(t){switch(t){case js.medium:return 300;case js.long:return 500;default:return 0}},xs(e),e.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,i=t.calloutProps,e=t.children,o=t.content,a=t.directionalHint,u=t.directionalHintForRTL,s=t.hostClassName,l=t.id,c=t.setAriaDescribedBy,f=void 0===c||c,h=t.tooltipProps,d=t.styles,v=t.theme;this._classNames=Gs(d,{theme:v,className:s});var p=this.state.isTooltipVisible,g=l||this._defaultTooltipId,m=(0,n.Cl)((0,n.Cl)({id:"".concat(g,"--tooltip"),content:o,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:u,calloutProps:U({},i,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},q(this.props,X,["id"])),h),y=(null==h?void 0:h.onRenderContent)?h.onRenderContent(m,(function(t){return(null==t?void 0:t.content)?r.createElement(r.Fragment,null,t.content):null})):o,b=p&&!!y,x=f&&p&&y?g:void 0;return r.createElement("div",(0,n.Cl)({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x}),e,b&&r.createElement(qs,(0,n.Cl)({},m)),r.createElement("div",{hidden:!0,id:g,style:jt.dX},y))},i.prototype.componentDidMount=function(){this._async=new Et(this)},i.prototype.componentWillUnmount=function(){i._currentVisibleTooltip&&i._currentVisibleTooltip===this&&(i._currentVisibleTooltip=void 0),this._async.dispose()},i.defaultProps={delay:js.medium},i.contextType=_t,i}(r.Component),Ks={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Js=(0,t.I)(Zs,(function(t){var n=t.className,i=t.theme;return{root:[(0,jt.Km)(Ks,i).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"}),Qs=function(t){function i(n){var i=t.call(this,n)||this;return i._tooltipChild=r.createRef(),i._checkTextOverflow=function(){var t=i._getTargetElement(),n=!!t&&zs(t);n!==i.state.textOverflow&&i.setState({textOverflow:n})},i._getTargetElement=function(){if(i._tooltipChild.current&&i._tooltipChild.current.parentElement)return i._tooltipChild.current.parentElement},i.state={textOverflow:!1},i._async=new Et(i),i}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,i=t.className,e=t.content,o=t.accessibilityData;return r.createElement(Js,{overflowMode:Bs.Self,hostClassName:i,content:e},r.createElement("span",(0,n.Cl)({},fs(o),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),e))},i.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},i.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},i}(r.Component),tl=(0,o.Z)(),nl=function(t){function i(n){var i=t.call(this,n)||this;return i._isRTL=(0,a.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.state.isCalloutVisible&&i.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},i._adjustProps=function(){i._barHeight=i.props.barHeight||12,i._classNames=tl(i.props.styles,{theme:i.props.theme,width:i.props.width,className:i.props.className,barHeight:i._barHeight,color:i.state.lineColor,variant:i.props.variant,hideLabels:i.props.hideLabels})},i._getChartDataText=function(t){return i.props.barChartCustomData?r.createElement("div",{role:"text"},i.props.barChartCustomData(t)):i._getDefaultTextData(t)},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.data,r=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(r,".")+(e?"with benchmark at "+"".concat(e,", "):"")},i.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",barSpacingInPercent:0},i._refArray=[],i._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),i._hoverOff=i._hoverOff.bind(i),i._calloutId=v("callout"),i._emptyChartId=v("_HBC_empty"),i.barChartSvgRef=r.createRef(),i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},i.prototype.render=function(){var t=this,i=this.props,e=i.data,o=i.theme;this._adjustProps();var a=o.palette,u=0;return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},e.map((function(n,i){u=n.chartData&&n.chartData[0]&&n.chartData[0].horizontalBarChartdata.x?n.chartData[0].horizontalBarChartdata.x:0,n.chartData[1]={legend:"",horizontalBarChartdata:{x:n.chartData[0].horizontalBarChartdata.y-u,y:n.chartData[0].horizontalBarChartdata.y},color:a.neutralLight};var e=t.props.variant===h.AbsoluteScale?null:t._getChartDataText(n),o=t._createBars(n,a),s=t._uniqLineText+"_"+i,l=tl(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!n.chartData[0].data,variant:t.props.variant});return r.createElement("div",{key:i},r.createElement("div",{className:l.items},r.createElement(Rs,{direction:vs.horizontal},r.createElement("div",{className:t._classNames.chartTitle},n.chartTitle&&r.createElement(Qs,{className:t._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),e)),n.chartData[0].data&&t._createBenchmark(n),r.createElement(Rs,{direction:vs.horizontal,className:t._classNames.chartWrapper},r.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":n.chartTitle},r.createElement("g",{id:s,key:s,ref:function(i){t._refCallback(i,n.chartData[0].legend)},onClick:function(){var t=n.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),r.createElement(Gn,(0,n.Cl)({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:y.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,fs(this.state.callOutAccessibilityData)),r.createElement(r.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):r.createElement(ys.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},i.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},i.prototype._hoverOn=function(t,n){if((!this.state.isCalloutVisible||this.state.legend!==n.legend)&&this._calloutAnchorPoint!==n){var i=m(this._refArray,(function(t){return t.index===n.legend}));this._calloutAnchorPoint=n,this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:n.color,legend:n.legend,refSelected:i.refElement,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,barCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}},i.prototype._hoverOff=function(){},i.prototype._getDefaultTextData=function(t){var i=this.props.culture,e=this.props.chartDataMode||"default",o=t.chartData[0],a=o.horizontalBarChartdata.x,u=o.horizontalBarChartdata.y,s=fs(t.chartDataAccessibilityData,"text",!1);switch(e){case"default":return r.createElement("div",(0,n.Cl)({className:this._classNames.chartTitleRight},s),(0,Zn.U)(a,i));case"fraction":return r.createElement("div",(0,n.Cl)({},s),r.createElement("span",{className:this._classNames.chartTitleRight},(0,Zn.U)(a,i)),r.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,Zn.U)(u,i)));case"percentage":var l="".concat((0,Zn.U)(Math.round(a/u*100),i),"%");return r.createElement("div",(0,n.Cl)({className:this._classNames.chartTitleRight},s),l)}},i.prototype._createBenchmark=function(t){var n=t.chartData[0].horizontalBarChartdata.y,i=t.chartData[0].data,e={left:"calc("+Math.round((i||0)/n*100)+"% - 4px)"};return r.createElement("div",{className:this._classNames.benchmarkContainer},r.createElement("div",{className:this._classNames.triangle,style:e}))},i.prototype._createBars=function(t,n){var i,e=this,o=(null===(i=t.chartData)||void 0===i?void 0:i.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,a=this.state.barSpacingInPercent*(o-1),u=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[],l=t.chartData.reduce((function(t,n){return t+(n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0)}),0),c=0,f=0,d=0;t.chartData.map((function(t,n){var i=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;return(f=i/l*100)<0?f=0:f<1&&0!==f&&(f=1),d+=f}));var v=0!==d?(d-a)/100:1,p=t.chartData.map((function(n,i){var o=n.color?n.color:u[Math.floor(4*Math.random()+1)],a=n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0;i>0&&(c+=f),(f=a/l*100)<0?f=0:f<1&&0!==f?f=1/v:f/=v,s.push(c);var d=n.horizontalBarChartdata.x;if(1===i&&e.props.variant===h.AbsoluteScale){if(e.props.hideLabels)return r.createElement("text",{key:i});var p=t.chartData[0].horizontalBarChartdata.x;return r.createElement("text",{key:i,x:"".concat(e._isRTL?100-s[i]:s[i],"%"),y:e._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(e._isRTL?-4:4,")"),className:e._classNames.barLabel,"aria-hidden":!0},ds(p))}return r.createElement("rect",{key:i,x:"".concat(e._isRTL?100-s[i]-f-i*e.state.barSpacingInPercent:s[i]+i*e.state.barSpacingInPercent,"%"),y:0,"data-is-focusable":""!==n.legend,width:f+"%",height:e._barHeight,fill:o,onMouseOver:""!==n.legend?e._hoverOn.bind(e,d,n):void 0,onFocus:""!==n.legend?e._hoverOn.bind(e,d,n):void 0,role:"img","aria-label":e._getAriaLabel(n),onBlur:e._hoverOff,onMouseLeave:e._hoverOff,className:e._classNames.barWrapper})}));return p},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},i}(r.Component),il=(0,t.I)(nl,(function(t){var i=t.className,e=t.theme,r=t.width,o=t.barHeight,a=t.showTriangle,u=t.variant,s=t.hideLabels,l=e.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},i],items:{marginBottom:a||u===h.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,n.Cl)((0,n.Cl)({},e.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:e.palette.neutralPrimary,marginBottom:u===h.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:jt.s.medium,fontWeight:jt.BO.semibold,color:e.palette.neutralPrimary},chartDataTextDenominator:{fontSize:jt.s.medium,color:e.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:l.blue,marginBottom:"4px",position:"absolute"},barLabel:(0,n.Cl)((0,n.Cl)({},e.fonts.small),{fontWeight:jt.BO.semibold,fill:e.palette.neutralPrimary}),chartWrapper:{paddingRight:u!==h.AbsoluteScale||s?0:40}}})),el={host:"ms-HoverCard-host"},rl=function(){function t(n){this._id=t._uniqueId++,this._parent=n,this._eventRecords=[]}return t.raise=function(n,i,e,r,o){var a,u=null!=o?o:(0,C.Y)();if(t._isElement(n)){if(void 0!==u&&u.createEvent){var s=u.createEvent("HTMLEvents");s.initEvent(i,r||!1,!0),U(s,e),a=n.dispatchEvent(s)}else if(void 0!==u&&u.createEventObject){var l=u.createEventObject(e);n.fireEvent("on"+i,l)}}else for(;n&&!1!==a;){var c=n.__events__,f=c?c[i]:null;if(f)for(var h in f)if(f.hasOwnProperty(h))for(var d=f[h],v=0;!1!==a&&v<d.length;v++){var p=d[v];p.objectCallback&&(a=p.objectCallback.call(p.parent,e))}n=r?n.parent:null}return a},t.isObserved=function(t,n){var i=t&&t.__events__;return!!i&&!!i[n]},t.isDeclared=function(t,n){var i=t&&t.__declaredEvents;return!!i&&!!i[n]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,n,i){for(var e in n)n.hasOwnProperty(e)&&this.on(t,e,n[e],i)},t.prototype.on=function(n,i,e,r){var o=this;if(i.indexOf(",")>-1)for(var a=i.split(/[ ,]+/),u=0;u<a.length;u++)this.on(n,a[u],e,r);else{var s=this._parent,l={target:n,eventName:i,parent:s,callback:e,options:r};if((a=n.__events__=n.__events__||{})[i]=a[i]||{count:0},a[i][this._id]=a[i][this._id]||[],a[i][this._id].push(l),a[i].count++,t._isElement(n)){var c=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed){var i;try{if(!1===(i=e.apply(s,t))&&t[0]){var r=t[0];r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.cancelBubble=!0}}catch(r){}return i}};l.elementCallback=c,n.addEventListener?n.addEventListener(i,c,r):n.attachEvent&&n.attachEvent("on"+i,c)}else l.objectCallback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed)return e.apply(s,t)};this._eventRecords.push(l)}},t.prototype.off=function(t,n,i,e){for(var r=0;r<this._eventRecords.length;r++){var o=this._eventRecords[r];if(!(t&&t!==o.target||n&&n!==o.eventName||i&&i!==o.callback||"boolean"==typeof e&&e!==o.options)){var a=o.target.__events__,u=a[o.eventName],s=u?u[this._id]:null;s&&(1!==s.length&&i?(u.count--,s.splice(s.indexOf(o),1)):(u.count-=s.length,delete a[o.eventName][this._id]),u.count||delete a[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(r--,1)}}},t.prototype.raise=function(n,i,e){return t.raise(this._parent,n,i,e)},t.prototype.declare=function(t){var n=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)n[t]=!0;else for(var i=0;i<t.length;i++)n[t[i]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}($s||($s={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Us||(Us={}));var ol,al={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(ol||(ol={}));var ul=function(t){for(var n=t.activeElement;null==n?void 0:n.shadowRoot;)n=n.shadowRoot.activeElement;return n},sl=function(t){var n=t.target;return n&&n.shadowRoot&&(n=t.composedPath()[0]),n};function ll(t,n){var i=r.useRef(n);return i.current||(i.current=v(t)),i.current}function cl(t){var n=r.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return En((function(){n.current=t}),[t]),Yt((function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.current.apply(void 0,t)}}))}var fl={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},hl=r.forwardRef((function(t,i){var e,o,a,u=r.useRef(null),s=r.useRef(null),l=r.useRef(null),c=Ht(u,i),f=Wt(),h=qt(),d=!!r.useContext(Vs),v=null===(e=Wn(!1))||void 0===e||e,p=_(fl,t),g=Yt({hasFocus:!1,focusStackId:ll("ftz-",p.id)}),m=p.children,y=p.componentRef,b=p.disabled,x=p.disableFirstFocus,C=p.forceFocusInsideTrap,M=p.focusPreviouslyFocusedInnerElement,k=p.firstFocusableSelector,L=p.firstFocusableTarget,S=p.disableRestoreFocus,V=void 0===S?p.ignoreExternalFocusing:S,D=p.isClickableOutsideFocusTrap,T=p.enableAriaHiddenSiblings,O={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:b?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},P=r.useCallback((function(t){t!==s.current&&t!==l.current&&B(t)}),[]),E=cl((function(){if(u.current){var t=g.previouslyFocusedElementInTrapZone;if(M&&t&&w(u.current,t))P(t);else{var n=null;if("string"==typeof L)n=u.current.querySelector(L);else if(L)n=L(u.current);else if(k){var i="string"==typeof k?k:k();n=u.current.querySelector("."+i)}n||(n=N(u.current,u.current.firstChild,!1,!1,!1,!0,void 0,void 0,void 0,d)),n&&P(n)}}})),F=function(t){if(!b&&u.current){var n,i=t===g.hasFocus?(void 0===(n=!1)&&(n=!0),A(u.current,l.current,n,!1,!0,!0,!1,!0,d)):function(t,n,i,e,r){return void 0===e&&(e=!0),N(t,n,e,!1,!1,!0,!1,!0,void 0,r)}(u.current,s.current,0,!1,d);i&&(i===s.current||i===l.current?E():i.focus())}},I=cl((function(t){if(hl.focusStack=hl.focusStack.filter((function(t){return g.focusStackId!==t})),f){var n=f.activeElement;V||"function"!=typeof(null==t?void 0:t.focus)||!w(u.current,n)&&n!==f.body&&!n.shadowRoot||P(t)}})),W=cl((function(t){if(!b&&g.focusStackId===hl.focusStack.slice(-1)[0]){var n=sl(t);n&&!w(u.current,n)&&(f&&ul(f)===f.body?setTimeout((function(){f&&ul(f)===f.body&&(E(),g.hasFocus=!0)}),0):(E(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return r.useEffect((function(){var t=[];return C&&t.push(H(h,"focus",W,!0)),D||t.push(H(h,"click",W,!0)),function(){t.forEach((function(t){return t()}))}}),[C,D,h]),r.useEffect((function(){if(!b&&(v||C)&&u.current){hl.focusStack.push(g.focusStackId);var t=p.elementToFocusOnDismiss||ul(f);return x||w(u.current,t)||E(),function(){return I(t)}}}),[C,b]),r.useEffect((function(){if(!b&&T)return Ot(u.current)}),[b,T,u]),o=function(){delete g.previouslyFocusedElementInTrapZone},(a=r.useRef(o)).current=o,r.useEffect((function(){return function(){var t;null===(t=a.current)||void 0===t||t.call(a)}}),[]),function(t,n,i){r.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return n},focus:i}}),[i,n])}(y,g.previouslyFocusedElementInTrapZone,E),r.createElement("div",(0,n.Cl)({"aria-labelledby":p.ariaLabelledBy},q(p,X),{ref:c,onFocusCapture:function(t){var n;null===(n=p.onFocusCapture)||void 0===n||n.call(p,t),t.target===s.current?F(!0):t.target===l.current&&F(!1),g.hasFocus=!0,t.target!==t.currentTarget&&t.target!==s.current&&t.target!==l.current&&(g.previouslyFocusedElementInTrapZone=sl(t.nativeEvent))},onBlurCapture:function(t){var n;null===(n=p.onBlurCapture)||void 0===n||n.call(p,t);var i=t.relatedTarget;null===t.relatedTarget&&(i=ul(f)),w(u.current,i)||(g.hasFocus=!1)}}),r.createElement("div",(0,n.Cl)({},O,{ref:s})),m,r.createElement("div",(0,n.Cl)({},O,{ref:l})))}));hl.displayName="FocusTrapZone",hl.focusStack=[];var dl,vl=function(t){return r.createElement(Gn,(0,n.Cl)({},t),r.createElement(hl,(0,n.Cl)({disabled:t.hidden},t.focusTrapProps),t.children))},pl=function(t){var i=t.gapSpace,e=void 0===i?0:i,o=t.directionalHint,a=void 0===o?y.bottomLeftEdge:o,u=t.directionalHintFixed,s=t.targetElement,l=t.firstFocus,c=t.trapFocus,f=t.onLeave,h=t.className,d=t.finalHeight,v=t.content,p=t.calloutProps,g=(0,n.Cl)((0,n.Cl)((0,n.Cl)({},q(t,X)),{className:h,target:s,isBeakVisible:!1,directionalHint:a,directionalHintFixed:u,finalHeight:d,minPagePadding:24,onDismiss:f,gapSpace:e}),p);return r.createElement(r.Fragment,null,c?r.createElement(vl,(0,n.Cl)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),v):r.createElement(Gn,(0,n.Cl)({},g),v))},gl=(0,o.Z)(),ml=function(t){function i(n){var i=t.call(this,n)||this;return i._expandedElem=r.createRef(),i._onKeyDown=function(t){t.which===Pt&&i.props.onLeave&&i.props.onLeave(t)},i._onRenderCompactCard=function(){return r.createElement("div",{className:i._classNames.compactCard},i.props.onRenderCompactCard(i.props.renderData))},i._onRenderExpandedCard=function(){return!i.state.firstFrameRendered&&i._async.requestAnimationFrame((function(){i.setState({firstFrameRendered:!0})})),r.createElement("div",{className:i._classNames.expandedCard,ref:i._expandedElem},r.createElement("div",{className:i._classNames.expandedCardScroll},i.props.onRenderExpandedCard&&i.props.onRenderExpandedCard(i.props.renderData)))},i._checkNeedsScroll=function(){var t=i.props.expandedCardHeight;i._async.requestAnimationFrame((function(){i._expandedElem.current&&i._expandedElem.current.scrollHeight>=t&&i.setState({needsScroll:!0})}))},i._async=new Et(i),xs(i),i.state={firstFrameRendered:!1,needsScroll:!1},i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){this._checkNeedsScroll()},i.prototype.componentWillUnmount=function(){this._async.dispose()},i.prototype.render=function(){var t=this.props,i=t.styles,e=t.compactCardHeight,o=t.expandedCardHeight,a=t.theme,u=t.mode,s=t.className,l=this.state,c=l.needsScroll,f=l.firstFrameRendered,h=e+o;this._classNames=gl(i,{theme:a,compactCardHeight:e,className:s,expandedCardHeight:o,needsScroll:c,expandedCardFirstFrameRendered:u===ol.expanded&&f});var d=r.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return r.createElement(pl,(0,n.Cl)({},this.props,{content:d,finalHeight:h,className:this._classNames.root}))},i.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},i}(r.Component),yl=(0,t.I)(ml,(function(t){var n,i=t.theme,e=t.needsScroll,r=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,a=t.expandedCardHeight,u=t.className,s=i.palette,l=(0,jt.Km)(al,i);return{root:[l.root,{width:320,pointerEvents:"none",selectors:(n={},n[jt.up]={border:"1px solid WindowText"},n)},u],compactCard:[l.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[l.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:s.neutralLighter}}},r&&{height:a}],expandedCardScroll:[l.expandedCardScroll,e&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),bl={root:"ms-PlainCard-root"},xl=(0,o.Z)(),wl=function(t){function i(n){var i=t.call(this,n)||this;return i._onKeyDown=function(t){t.which===Pt&&i.props.onLeave&&i.props.onLeave(t)},xs(i),i}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,i=t.styles,e=t.theme,o=t.className;this._classNames=xl(i,{theme:e,className:o});var a=r.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return r.createElement(pl,(0,n.Cl)({},this.props,{content:a,className:this._classNames.root}))},i}(r.Component),Cl=(0,t.I)(wl,(function(t){var n,i=t.theme,e=t.className;return{root:[(0,jt.Km)(bl,i).root,{pointerEvents:"auto",selectors:(n={},n[jt.up]={border:"1px solid WindowText"},n)},e]}}),void 0,{scope:"PlainCard"}),Ml=(0,o.Z)(),kl=function(t){function i(n){var i=t.call(this,n)||this;return i._hoverCard=r.createRef(),i.dismiss=function(t){i._async.clearTimeout(i._openTimerId),i._async.clearTimeout(i._dismissTimerId),t?i._dismissTimerId=i._async.setTimeout((function(){i._setDismissedState()}),i.props.cardDismissDelay):i._setDismissedState()},i._cardOpen=function(t){i._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==i.props.openHotKey||(i._async.clearTimeout(i._dismissTimerId),"mouseenter"===t.type&&(i._currentMouseTarget=t.currentTarget),i._executeCardOpen(t))},i._executeCardOpen=function(t){i._async.clearTimeout(i._openTimerId),i._openTimerId=i._async.setTimeout((function(){i.setState((function(n){return n.isHoverCardVisible?n:{isHoverCardVisible:!0,mode:ol.compact,openMode:"keydown"===t.type?$s.hotKey:$s.hover}}))}),i.props.cardOpenDelay)},i._cardDismiss=function(t,n){if(t){if(!(n instanceof MouseEvent))return;if("keydown"===n.type&&n.which!==Pt)return;i.props.sticky||i._currentMouseTarget!==n.currentTarget&&n.which!==Pt||i.dismiss(!0)}else{if(i.props.sticky&&!(n instanceof MouseEvent)&&n.nativeEvent instanceof MouseEvent&&"mouseleave"===n.type)return;i.dismiss(!0)}},i._setDismissedState=function(){i.setState({isHoverCardVisible:!1,mode:ol.compact,openMode:$s.hover})},i._instantOpenAsExpanded=function(t){i._async.clearTimeout(i._dismissTimerId),i.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:ol.expanded}}))},i._setEventListeners=function(){var t=i.props,n=t.trapFocus,e=t.instantOpenOnClick,r=t.eventListenerTarget,o=r?i._getTargetElement(r):i._getTargetElement(i.props.target),a=i._nativeDismissEvent;o&&(i._events.on(o,"mouseenter",i._cardOpen),i._events.on(o,"mouseleave",a),n?i._events.on(o,"keydown",i._cardOpen):(i._events.on(o,"focus",i._cardOpen),i._events.on(o,"blur",a)),e?i._events.on(o,"click",i._instantOpenAsExpanded):(i._events.on(o,"mousedown",a),i._events.on(o,"keydown",a)))},xs(i),i._async=new Et(i),i._events=new rl(i),i._nativeDismissEvent=i._cardDismiss.bind(i,!0),i._childDismissEvent=i._cardDismiss.bind(i,!1),i.state={isHoverCardVisible:!1,mode:ol.compact,openMode:$s.hover},i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){this._setEventListeners()},i.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},i.prototype.componentDidUpdate=function(t,n){var i=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),n.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){i.setState({mode:ol.expanded},(function(){i.props.onCardExpand&&i.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:ol.compact}),this.props.onCardHide&&this.props.onCardHide()))},i.prototype.render=function(){var t=this.props,i=t.expandingCardProps,e=t.children,o=t.id,a=t.setAriaDescribedBy,u=void 0===a||a,s=t.styles,l=t.theme,c=t.className,f=t.type,h=t.plainCardProps,d=t.trapFocus,p=t.setInitialFocus,g=this.state,m=g.isHoverCardVisible,y=g.mode,b=g.openMode,x=o||v("hoverCard");this._classNames=Ml(s,{theme:l,className:c});var w=(0,n.Cl)((0,n.Cl)({},q(this.props,X)),{id:x,trapFocus:!!d,firstFocus:p||b===$s.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,n.Cl)((0,n.Cl)((0,n.Cl)({},i),w),{mode:y}),M=(0,n.Cl)((0,n.Cl)({},h),w);return r.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":u&&m?x:void 0,"data-is-focusable":!this.props.target},e,m&&(f===Us.expanding?r.createElement(yl,(0,n.Cl)({},C)):r.createElement(Cl,(0,n.Cl)({},M))))},i.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,C.Y)().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},i.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},i.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:Us.expanding},i}(r.Component),Ll=(0,t.I)(kl,(function(t){var n=t.className,i=t.theme;return{host:[(0,jt.Km)(el,i).host,n]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(dl||(dl={}));var Sl=function(t){var i;void 0===t&&(i={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&i.hasOwnProperty(t.cacheKey))return i[t.cacheKey]},addMeasurementToCache:function(t,n){t.cacheKey&&(i[t.cacheKey]=n)}});var e,r=t;function o(t,n){var i=r.getCachedMeasurement(t);if(void 0!==i)return i;var e=n();return r.addMeasurementToCache(t,e),e}function a(t,n,i){for(var a=t,u=o(t,i);u>e;){var s=n(a);if(void 0===s)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=r.getCachedMeasurement(s)))return{dataToMeasure:s,resizeDirection:"shrink"};a=s}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,i,u,s){if(void 0!==s||void 0!==i.dataToMeasure){if(s){if(e&&i.renderedData&&!i.dataToMeasure)return(0,n.Cl)((0,n.Cl)({},i),function(t,i,r,o){var a;return a=t>e?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:i}:{resizeDirection:"shrink",dataToMeasure:r},e=t,(0,n.Cl)((0,n.Cl)({},a),{measureContainer:!1})}(s,t.data,i.renderedData,t.onGrowData));e=s}var l=(0,n.Cl)((0,n.Cl)({},i),{measureContainer:!1});return i.dataToMeasure&&(l="grow"===i.resizeDirection&&t.onGrowData?(0,n.Cl)((0,n.Cl)({},l),function(t,i,u,s){for(var l=t,c=o(t,u);c<e;){var f=i(l);if(void 0===f)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=r.getCachedMeasurement(f)))return{dataToMeasure:f};l=f}return(0,n.Cl)({resizeDirection:"shrink"},a(l,s,u))}(i.dataToMeasure,t.onGrowData,u,t.onReduceData)):(0,n.Cl)((0,n.Cl)({},l),a(i.dataToMeasure,t.onReduceData,u))),l}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==r.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,n.Cl)({},t),resizeDirection:"grow",measureContainer:!0}}}},Vl=r.createContext({isMeasured:!1}),Al={position:"fixed",visibility:"hidden"},Nl={position:"relative"};function Dl(t,i){var e;switch(i.type){case"resizeData":return(0,n.Cl)({},i.value);case"dataToMeasure":return(0,n.Cl)((0,n.Cl)({},t),{dataToMeasure:i.value,resizeDirection:"grow",measureContainer:!0});default:return(0,n.Cl)((0,n.Cl)({},t),((e={})[i.type]=i.value,e))}}var Tl={isMeasured:!0},Ol=r.forwardRef((function(t,i){var e=r.useRef(null),o=Ht(e,i),a=function(t,i){var e=Yt(Sl),o=r.useRef(null),a=r.useRef(null),u=r.useRef(!1),s=Ft(),l=function(t,i,e){var o=Yt((function(){return i.getInitialResizeGroupState(t.data)})),a=r.useReducer(Dl,o),u=a[0],s=a[1];r.useEffect((function(){s({type:"dataToMeasure",value:t.data})}),[t.data]);var l=r.useRef(o);return l.current=(0,n.Cl)({},u),[l,r.useCallback((function(t){t&&s({type:"resizeData",value:t})}),[]),r.useCallback((function(){e.current&&s({type:"measureContainer",value:!0})}),[e])]}(t,e,i),c=l[0],f=l[1],h=l[2];r.useEffect((function(){var n;c.current.renderedData&&(u.current=!0,null===(n=t.dataDidRender)||void 0===n||n.call(t,c.current.renderedData))})),r.useEffect((function(){s.requestAnimationFrame((function(){var n=void 0;if(c.current.measureContainer&&i.current){var r=i.current.getBoundingClientRect();n=t.direction===dl.vertical?r.height:r.width}var s=e.getNextState(t,c.current,(function(){var n=u.current?a:o;if(!n.current)return 0;var i=n.current.getBoundingClientRect();return t.direction===dl.vertical?i.height:i.width}),n);f(s)}),i.current)})),Bt(It(),"resize",s.debounce(h,16,{leading:!0}));var d=e.shouldRenderDataForMeasurement(c.current.dataToMeasure),v=!u.current&&d;return[c.current.dataToMeasure,c.current.renderedData,h,o,a,d,v]}(t,e),u=a[0],s=a[1],l=a[2],c=a[3],f=a[4],h=a[5],d=a[6];r.useImperativeHandle(t.componentRef,(function(){return{remeasure:l}}),[l]),function(t){zn({name:"ResizeGroup",props:t,deprecations:{styles:"className"}})}(t);var v=t.className,p=t.onRenderData,g=q(t,X,["data"]);return r.createElement("div",(0,n.Cl)({},g,{className:v,ref:o}),r.createElement("div",{style:Nl},h&&!d&&r.createElement("div",{style:Al,ref:f},r.createElement(Vl.Provider,{value:Tl},p(u))),r.createElement("div",{ref:c,style:d?Al:void 0,"data-automation-id":"visibleContent"},d?p(u):s&&p(s))))}));Ol.displayName="ResizeGroupBase";var Pl,El=Ol;!function(t){t.KEYTIP_ADDED="keytipAdded",t.KEYTIP_REMOVED="keytipRemoved",t.KEYTIP_UPDATED="keytipUpdated",t.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",t.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",t.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",t.ENTER_KEYTIP_MODE="enterKeytipMode",t.EXIT_KEYTIP_MODE="exitKeytipMode"}(Pl||(Pl={}));var Fl=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,n){void 0===n&&(n=!1);var i=t;n||(i=this.addParentOverflow(t),this.sequenceMapping[i.keySequences.toString()]=i);var e=this._getUniqueKtp(i);if(n?this.persistedKeytips[e.uniqueID]=e:this.keytips[e.uniqueID]=e,this.inKeytipMode||!this.delayUpdatingKeytipChange){var r=n?Pl.PERSISTED_KEYTIP_ADDED:Pl.KEYTIP_ADDED;rl.raise(this,r,{keytip:i,uniqueID:e.uniqueID})}return e.uniqueID},t.prototype.update=function(t,n){var i=this.addParentOverflow(t),e=this._getUniqueKtp(i,n),r=this.keytips[n];r&&(e.keytip.visible=r.keytip.visible,this.keytips[n]=e,delete this.sequenceMapping[r.keytip.keySequences.toString()],this.sequenceMapping[e.keytip.keySequences.toString()]=e.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||rl.raise(this,Pl.KEYTIP_UPDATED,{keytip:e.keytip,uniqueID:e.uniqueID}))},t.prototype.unregister=function(t,n,i){void 0===i&&(i=!1),i?delete this.persistedKeytips[n]:delete this.keytips[n],!i&&delete this.sequenceMapping[t.keySequences.toString()];var e=i?Pl.PERSISTED_KEYTIP_REMOVED:Pl.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||rl.raise(this,e,{keytip:t,uniqueID:n})},t.prototype.enterKeytipMode=function(){rl.raise(this,Pl.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){rl.raise(this,Pl.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(n){return t.keytips[n].keytip}))},t.prototype.addParentOverflow=function(t){var i=(0,n.fX)([],t.keySequences,!0);if(i.pop(),0!==i.length){var e=this.sequenceMapping[i.toString()];if(e&&e.overflowSetSequence)return(0,n.Cl)((0,n.Cl)({},t),{overflowSetSequence:e.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,n){rl.raise(this,Pl.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},t.prototype._getUniqueKtp=function(t,i){return void 0===i&&(i=v()),{keytip:(0,n.Cl)({},t),uniqueID:i}},t._instance=new t,t}(),Bl=function(t,n,i){for(var e=0,r=t;e<r.length;e++){var o=r[e];i[n.register(o,!0)]=o}},Hl=function(t,n){for(var i=0,e=Object.keys(n);i<e.length;i++){var r=e[i];t.unregister(n[r],r,!0),delete n[r]}},_l=function(t){var i=Fl.getInstance(),e=t.className,o=t.overflowItems,a=t.keytipSequences,u=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=Yt({}),c=r.useCallback((function(t){return u?u(t):t.subMenuProps?t.subMenuProps.items:void 0}),[u]),f=r.useMemo((function(){var t=[],e=[];return a?null==o||o.forEach((function(r){var o,u=r.keytipProps;if(u){var s={content:u.content,keySequences:u.keySequences,disabled:u.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:u.hasDynamicChildren,hasMenu:u.hasMenu};u.hasDynamicChildren||c(r)?(s.onExecute=i.menuExecute.bind(i,a,null===(o=null==r?void 0:r.keytipProps)||void 0===o?void 0:o.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=u.onExecute,t.push(s);var l=(0,n.Cl)((0,n.Cl)({},r),{keytipProps:(0,n.Cl)((0,n.Cl)({},u),{overflowSetSequence:a})});null==e||e.push(l)}else null==e||e.push(r)})):e=o,{modifiedOverflowItems:e,keytipsToRegister:t}}),[o,c,i,a]),h=f.modifiedOverflowItems;return function(t,n,i){var e=Wn(t);r.useEffect((function(){e&&(Hl(i,e),Bl(n,i,t))})),r.useEffect((function(){return Bl(n,i,t),function(){Hl(i,t)}}),[])}(l,f.keytipsToRegister,i),r.createElement("div",{className:e},s(h))},Il=(0,o.Z)(),Wl=r.forwardRef((function(t,i){var e=r.useRef(null),o=Ht(e,i);!function(t,n){var i=function(){var t;return(null!==(t=Wt())&&void 0!==t?t:"undefined"!=typeof document)?document:void 0}();r.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,i){var e=!1;return n.current&&(e=V(n.current,i)),e},focusElement:function(t){var e=!1;return!!t&&(n.current&&w(n.current,t)&&(t.focus(),e=(null==i?void 0:i.activeElement)===t),e)}}}),[n,i])}(t,e);var a=t.items,u=t.overflowItems,s=t.className,l=t.styles,c=t.vertical,f=t.role,h=t.overflowSide,d=void 0===h?"end":h,v=t.onRenderItem,p=Il(l,{className:s,vertical:c}),g=!!u&&u.length>0;return r.createElement("div",(0,n.Cl)({},q(t,X),{role:f||"group","aria-orientation":"menubar"===f?!0===c?"vertical":"horizontal":void 0,className:p.root,ref:o}),"start"===d&&g&&r.createElement(_l,(0,n.Cl)({},t,{className:p.overflowButton})),a&&a.map((function(t,n){return r.createElement("div",{className:p.item,key:t.key,role:"none"},v(t))})),"end"===d&&g&&r.createElement(_l,(0,n.Cl)({},t,{className:p.overflowButton})))}));Wl.displayName="OverflowSet";var Rl,zl={flexShrink:0,display:"inherit"},jl=(0,t.I)(Wl,(function(t){var n=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},n],item:["ms-OverflowSet-item",zl],overflowButton:["ms-OverflowSet-overflowButton",zl]}}),void 0,{scope:"OverflowSet"}),Yl=((Rl={})["".concat(us[us.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Rl["".concat(us[us.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Rl["".concat(us[us.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Rl["".concat(us[us.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Rl["".concat(us[us.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Rl["".concat(us[us.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Rl["".concat(us[us.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Rl["".concat(us[us.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Rl["".concat(ss[ss.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",Rl),Xl=function(t){var i=t.svgProps,e=t.pathProps,o=t.shape,a=t.classNameForNonSvg;return-1===Object.keys(Yl).indexOf(o)?r.createElement("div",{className:a}):r.createElement("svg",(0,n.Cl)({width:14,height:14,viewBox:"-1 -1 14 14"},i,{transform:"rotate(".concat(o===us[us.diamond]?45:o===us[us.pyramid]?180:0,", 0, 0)")}),r.createElement("path",(0,n.Cl)({d:Yl[o]},e)))},ql=(0,o.Z)(),$l=function(t){function i(i){var e,o,a=this;(a=t.call(this,i)||this)._isLegendSelected=!1,a._onRenderData=function(t){var i=a.props,e=i.overflowProps,o=i.allowFocusOnLegends,u=void 0===o||o,s=i.canSelectMultipleLegends,l=void 0!==s&&s,c={root:{justifyContent:a.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return r.createElement(Rs,(0,n.Cl)({},u&&{role:"listbox","aria-label":"Legends","aria-multiselectable":l}),r.createElement(jl,(0,n.Cl)({items:t.primary,overflowItems:t.overflow,onRenderItem:a._renderButton,onRenderOverflowButton:a._renderOverflowItems},e,{styles:(0,n.Cl)((0,n.Cl)({},c),null==e?void 0:e.styles)})))},a._onReduceData=function(t){if(0!==t.primary.length){var i=(0,n.fX)((0,n.fX)([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:i}}},a._onGrowData=function(t){if(0!==t.overflow.length){var i=t.overflow.slice(1);return{primary:(0,n.fX)((0,n.fX)([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:i}}},a._canSelectMultipleLegends=function(t){var i=(0,n.Cl)({},a.state.selectedLegends);return i[t.title]?delete i[t.title]:(i[t.title]=!0,Object.keys(i).length===a.props.legends.length&&(i={})),a.setState({selectedLegends:i}),i},a._canSelectOnlySingleLegend=function(t){var n;return a.state.selectedLegends[t.title]?(a.setState({selectedLegends:{}}),!1):(a.setState({selectedLegends:(n={},n[t.title]=!0,n)}),!0)},a._onClick=function(t,n){var i,e,r,o=a.props.canSelectMultipleLegends,u=[];if(void 0!==o&&o){var s=a._canSelectMultipleLegends(t);u=Object.keys(s)}else u=a._canSelectOnlySingleLegend(t)?[t.title]:[];null===(e=(i=a.props).onChange)||void 0===e||e.call(i,u,n,t),null===(r=t.action)||void 0===r||r.call(t)},a._onRenderCompactCard=function(t){var i=a.props,e=i.allowFocusOnLegends,o=void 0===e||e,u=i.className,s=i.styles,l=i.theme,c=i.canSelectMultipleLegends,f=void 0!==c&&c,h=[],d=ql(s,{theme:l,className:u});return t.renderData.forEach((function(t,n){var i=a._renderButton(t,n,!0);h.push(i)})),r.createElement(Rs,(0,n.Cl)({},o&&{role:"listbox","aria-label":"Legends","aria-multiselectable":f},{direction:vs.vertical,handleTabKey:1,isCircularNavigation:!0},a.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),h)},a._renderOverflowItems=function(t){var i=a.props.allowFocusOnLegends,e=void 0===i||i,o=[];t.forEach((function(t,n){o.push({key:n.toString(),name:t.title,onClick:t.action})}));var u={renderData:t},s=a.props,l=s.theme,c=s.className,f=s.styles,h=s.overflowText,d=ql(f,{theme:l,className:c}),v={onRenderPlainCard:a._onRenderCompactCard,renderData:u},p=h||"more";return r.createElement(Ll,{type:Us.plain,plainCardProps:v,instantOpenOnClick:!0,onCardHide:function(){a.setState({isHoverCardVisible:!1});var n=m(t,(function(t){return t.title===a.state.activeLegend}));n&&(a.setState({activeLegend:""}),n.onMouseOutAction&&n.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:a._hoverCardVisible,styles:d.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:a._hoverCardRef},r.createElement("div",(0,n.Cl)({className:d.overflowIndicationTextStyle,ref:function(t){return a._hoverCardRef=t}},e&&{role:"button","aria-expanded":a.state.isHoverCardVisible,"aria-label":"".concat(o.length," ").concat(p)},{"data-is-focusable":e}),o.length," ",p))},a._hoverCardVisible=function(){a.setState({isHoverCardVisible:!0})},a._onHoverOverLegend=function(t){t.hoverAction&&(a.setState({activeLegend:t.title}),t.hoverAction())},a._onLeave=function(t){t.onMouseOutAction&&(a.setState({activeLegend:""}),t.onMouseOutAction())},a._renderButton=function(t,i,e){var o=a.props.allowFocusOnLegends,u=void 0===o||o,s={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},l=a._getColor(s.title,s.color),c=a.props,f=c.theme,h=c.className,d=c.styles,v=ql(d,{theme:f,className:h,colorOnSelectedState:l,borderColor:s.color,overflow:e,stripePattern:s.stripePattern,isLineLegendInBarChart:s.isLineLegendInBarChart,opacity:s.opacity}),p=function(){a._onHoverOverLegend(s)},g=function(){a._onLeave(s)},m=a._getShape(v,s,l);return r.createElement("button",(0,n.Cl)({},u&&{"aria-selected":!!a.state.selectedLegends[s.title],role:"option","aria-label":"".concat(s.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&(0,n.Cl)({},t.nativeButtonProps),{key:i,className:v.legend,onClick:function(t){a._onClick(s,t)},onMouseOver:p,onMouseOut:g,onFocus:p,onBlur:g,"data-is-focusable":u}),m,r.createElement("div",{className:v.text},s.title))};var u={};return i.canSelectMultipleLegends?u=(null===(o=i.defaultSelectedLegends)||void 0===o?void 0:o.reduce((function(t,i){var e;return(0,n.Cl)(((e={})[i]=!0,e),t)}),{}))||{}:i.defaultSelectedLegend&&((e={})[i.defaultSelectedLegend]=!0,u=e),a.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:u},a}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,n=t.theme,i=t.className,e=t.styles;this._classNames=ql(e,{theme:n,className:i}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return r.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(o):r.createElement(El,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},i.prototype._generateData=function(){var t=this,i=this.props,e=i.allowFocusOnLegends,r=void 0===e||e,o=i.shape;return{primary:this.props.legends.map((function(i,e){return(0,n.Cl)((0,n.Cl)({},r&&{nativeButtonProps:q(i,Y,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":e+1}),{title:i.title,action:i.action,hoverAction:i.hoverAction,onMouseOutAction:i.onMouseOutAction,color:i.color,shape:o||i.shape,stripePattern:i.stripePattern,isLineLegendInBarChart:i.isLineLegendInBarChart,opacity:i.opacity,key:e})})),overflow:[]}},i.prototype._getShape=function(t,n,i){var e={className:t.shape},o={fill:i,strokeWidth:2,stroke:n.color};return r.createElement(Xl,{svgProps:e,pathProps:o,shape:n.shape,classNameForNonSvg:t.rect})},i.prototype._getColor=function(t,n){var i=this.props.theme;return this._isLegendSelected?this.state.selectedLegends[t]?n:i.semanticColors.buttonBackground:this.state.activeLegend===t||""===this.state.activeLegend?n:i.semanticColors.buttonBackground},i}(r.Component),Ul=(0,t.I)($l,(function(t){var i,e,r=t.className,o=t.theme,a=t.isLineLegendInBarChart,u=void 0!==a&&a,s=o,l=s.palette,c=s.fonts,f={inset:void 0,position:void 0,highContrastStyle:{outlineColor:o.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[(0,jt.gm)(o,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(i={},i[jt.up]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.6":""},i),width:"12px",height:u?"4px":"12px",backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:null==o?void 0:o.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.6":t.opacity?t.opacity:"",selectors:(e={},e[jt.up]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},e)},text:(0,n.Cl)((0,n.Cl)({},c.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:o.semanticColors.buttonBackground,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:l.black},overflowIndicationTextStyle:[(0,jt.gm)(o,f),(0,n.Cl)((0,n.Cl)({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[(0,jt.gm)(o,f)]}}}}));function Gl(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Zl(t){return function(){return t}}function Kl(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Jl(t){return t}Array.prototype.slice;const Ql=Math.abs,tc=Math.atan2,nc=Math.cos,ic=Math.max,ec=Math.min,rc=Math.sin,oc=Math.sqrt,ac=1e-12,uc=Math.PI,sc=uc/2,lc=2*uc;function cc(t){return t>=1?sc:t<=-1?-sc:Math.asin(t)}function fc(){var t=Jl,n=Kl,i=null,e=Zl(0),r=Zl(lc),o=Zl(0);function a(a){var u,s,l,c,f,h=(a=Gl(a)).length,d=0,v=new Array(h),p=new Array(h),g=+e.apply(this,arguments),m=Math.min(lc,Math.max(-lc,r.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,o.apply(this,arguments)),b=y*(m<0?-1:1);for(u=0;u<h;++u)(f=p[v[u]=u]=+t(a[u],u,a))>0&&(d+=f);for(null!=n?v.sort((function(t,i){return n(p[t],p[i])})):null!=i&&v.sort((function(t,n){return i(a[t],a[n])})),u=0,l=d?(m-h*b)/d:0;u<h;++u,g=c)s=v[u],c=g+((f=p[s])>0?f*l:0)+b,p[s]={data:a[s],index:u,value:f,startAngle:g,endAngle:c,padAngle:y};return p}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:Zl(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,i=null,a):n},a.sort=function(t){return arguments.length?(i=t,n=null,a):i},a.startAngle=function(t){return arguments.length?(e="function"==typeof t?t:Zl(+t),a):e},a.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Zl(+t),a):r},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Zl(+t),a):o},a}const hc=Math.PI,dc=2*hc,vc=1e-6,pc=dc-vc;function gc(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class mc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?gc:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return gc;const i=10**n;return function(t){this._+=t[0];for(let n=1,e=t.length;n<e;++n)this._+=Math.round(arguments[n]*i)/i+t[n]}}(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,e){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+e}`}bezierCurveTo(t,n,i,e,r,o){this._append`C${+t},${+n},${+i},${+e},${this._x1=+r},${this._y1=+o}`}arcTo(t,n,i,e,r){if(t=+t,n=+n,i=+i,e=+e,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=this._x1,a=this._y1,u=i-t,s=e-n,l=o-t,c=a-n,f=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=n}`;else if(f>vc)if(Math.abs(c*u-s*l)>vc&&r){let h=i-o,d=e-a,v=u*u+s*s,p=h*h+d*d,g=Math.sqrt(v),m=Math.sqrt(f),y=r*Math.tan((hc-Math.acos((v+f-p)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>vc&&this._append`L${t+b*l},${n+b*c}`,this._append`A${r},${r},0,0,${+(c*h>l*d)},${this._x1=t+x*u},${this._y1=n+x*s}`}else this._append`L${this._x1=t},${this._y1=n}`}arc(t,n,i,e,r,o){if(t=+t,n=+n,o=!!o,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(e),u=i*Math.sin(e),s=t+a,l=n+u,c=1^o,f=o?e-r:r-e;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>vc||Math.abs(this._y1-l)>vc)&&this._append`L${s},${l}`,i&&(f<0&&(f=f%dc+dc),f>pc?this._append`A${i},${i},0,1,${c},${t-a},${n-u}A${i},${i},0,1,${c},${this._x1=s},${this._y1=l}`:f>vc&&this._append`A${i},${i},0,${+(f>=hc)},${c},${this._x1=t+i*Math.cos(r)},${this._y1=n+i*Math.sin(r)}`)}rect(t,n,i,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+e}h${-i}Z`}toString(){return this._}}function yc(t){let n=3;return t.digits=function(i){if(!arguments.length)return n;if(null==i)n=null;else{const t=Math.floor(i);if(!(t>=0))throw new RangeError(`invalid digits: ${i}`);n=t}return t},()=>new mc(n)}function bc(t){return t.innerRadius}function xc(t){return t.outerRadius}function wc(t){return t.startAngle}function Cc(t){return t.endAngle}function Mc(t){return t&&t.padAngle}function kc(t,n,i,e,r,o,a){var u=t-i,s=n-e,l=(a?o:-o)/oc(u*u+s*s),c=l*s,f=-l*u,h=t+c,d=n+f,v=i+c,p=e+f,g=(h+v)/2,m=(d+p)/2,y=v-h,b=p-d,x=y*y+b*b,w=r-o,C=h*p-v*d,M=(b<0?-1:1)*oc(ic(0,w*w*x-C*C)),k=(C*b-y*M)/x,L=(-C*y-b*M)/x,S=(C*b+y*M)/x,V=(-C*y+b*M)/x,A=k-g,N=L-m,D=S-g,T=V-m;return A*A+N*N>D*D+T*T&&(k=S,L=V),{cx:k,cy:L,x01:-c,y01:-f,x11:k*(r/w-1),y11:L*(r/w-1)}}function Lc(){var t=bc,n=xc,i=Zl(0),e=null,r=wc,o=Cc,a=Mc,u=null,s=yc(l);function l(){var l,c,f,h=+t.apply(this,arguments),d=+n.apply(this,arguments),v=r.apply(this,arguments)-sc,p=o.apply(this,arguments)-sc,g=Ql(p-v),m=p>v;if(u||(u=l=s()),d<h&&(c=d,d=h,h=c),d>ac)if(g>lc-ac)u.moveTo(d*nc(v),d*rc(v)),u.arc(0,0,d,v,p,!m),h>ac&&(u.moveTo(h*nc(p),h*rc(p)),u.arc(0,0,h,p,v,m));else{var y,b,x=v,w=p,C=v,M=p,k=g,L=g,S=a.apply(this,arguments)/2,V=S>ac&&(e?+e.apply(this,arguments):oc(h*h+d*d)),A=ec(Ql(d-h)/2,+i.apply(this,arguments)),N=A,D=A;if(V>ac){var T=cc(V/h*rc(S)),O=cc(V/d*rc(S));(k-=2*T)>ac?(C+=T*=m?1:-1,M-=T):(k=0,C=M=(v+p)/2),(L-=2*O)>ac?(x+=O*=m?1:-1,w-=O):(L=0,x=w=(v+p)/2)}var P=d*nc(x),E=d*rc(x),F=h*nc(M),B=h*rc(M);if(A>ac){var H,_=d*nc(w),I=d*rc(w),W=h*nc(C),R=h*rc(C);if(g<uc)if(H=function(t,n,i,e,r,o,a,u){var s=i-t,l=e-n,c=a-r,f=u-o,h=f*s-c*l;if(!(h*h<ac))return[t+(h=(c*(n-o)-f*(t-r))/h)*s,n+h*l]}(P,E,W,R,_,I,F,B)){var z=P-H[0],j=E-H[1],Y=_-H[0],X=I-H[1],q=1/rc(((f=(z*Y+j*X)/(oc(z*z+j*j)*oc(Y*Y+X*X)))>1?0:f<-1?uc:Math.acos(f))/2),$=oc(H[0]*H[0]+H[1]*H[1]);N=ec(A,(h-$)/(q-1)),D=ec(A,(d-$)/(q+1))}else N=D=0}L>ac?D>ac?(y=kc(W,R,P,E,d,D,m),b=kc(_,I,F,B,d,D,m),u.moveTo(y.cx+y.x01,y.cy+y.y01),D<A?u.arc(y.cx,y.cy,D,tc(y.y01,y.x01),tc(b.y01,b.x01),!m):(u.arc(y.cx,y.cy,D,tc(y.y01,y.x01),tc(y.y11,y.x11),!m),u.arc(0,0,d,tc(y.cy+y.y11,y.cx+y.x11),tc(b.cy+b.y11,b.cx+b.x11),!m),u.arc(b.cx,b.cy,D,tc(b.y11,b.x11),tc(b.y01,b.x01),!m))):(u.moveTo(P,E),u.arc(0,0,d,x,w,!m)):u.moveTo(P,E),h>ac&&k>ac?N>ac?(y=kc(F,B,_,I,h,-N,m),b=kc(P,E,W,R,h,-N,m),u.lineTo(y.cx+y.x01,y.cy+y.y01),N<A?u.arc(y.cx,y.cy,N,tc(y.y01,y.x01),tc(b.y01,b.x01),!m):(u.arc(y.cx,y.cy,N,tc(y.y01,y.x01),tc(y.y11,y.x11),!m),u.arc(0,0,h,tc(y.cy+y.y11,y.cx+y.x11),tc(b.cy+b.y11,b.cx+b.x11),m),u.arc(b.cx,b.cy,N,tc(b.y11,b.x11),tc(b.y01,b.x01),!m))):u.arc(0,0,h,M,C,m):u.lineTo(F,B)}else u.moveTo(0,0);if(u.closePath(),l)return u=null,l+""||null}return l.centroid=function(){var i=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-uc/2;return[nc(e)*i,rc(e)*i]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Zl(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Zl(+t),l):n},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Zl(+t),l):i},l.padRadius=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Zl(+t),l):e},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Zl(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Zl(+t),l):o},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Zl(+t),l):a},l.context=function(t){return arguments.length?(u=null==t?null:t,l):u},l}mc.prototype;var Sc=function(t){var n=t.color,i=t.href,e=t.theme;return{root:{fill:n,cursor:i?"pointer":"default",stroke:e.semanticColors.bodyBackground,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:e.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:e.palette.neutralPrimary}}},Vc=function(t){function i(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={},n.currentRef=r.createRef(),n._isRTL=(0,a.jI)(),n._hoverOff=function(){n.props.hoverLeaveCallback()},n._onBlur=function(){n.props.onBlurCallback()},n._getAriaLabel=function(){var t,i=n.props.data.data,e=i.xAxisCalloutData||i.legend,r=i.yAxisCalloutData||i.data||0;return(null===(t=i.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(e?"".concat(e,", "):"")+"".concat(r,".")},n._renderArcLabel=function(t){var i=n.props,e=i.arc,o=i.data,a=i.innerRadius,u=i.outerRadius,s=i.showLabelsInPercent,l=i.totalValue,c=i.hideLabels,f=i.activeArc;if(c||Math.abs(o.endAngle-o.startAngle)<Math.PI/12||f!==o.data.legend&&""!==f)return null;var h=e.centroid(o),d=h[0],v=h[1],p=Math.sqrt(d*d+v*v),g=Math.max(a,u)+2,m=(o.startAngle+o.endAngle)/2,y=o.value;return r.createElement("text",{x:(0===p?0:d/p)*g,y:(0===p?0:v/p)*g,textAnchor:m>Math.PI!==n._isRTL?"end":"start",dominantBaseline:m>Math.PI/2&&m<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},s?ju(".0%")(0===l?0:y/l):ds(y))},n}return(0,n.C6)(i,t),i.getDerivedStateFromProps=function(t){return Ac(t),null},i.prototype.updateChart=function(t){Ac(t)},i.prototype.render=function(){var t,n=this.props,i=n.arc,e=n.href,a=n.focusedArcId,u=(0,o.Z)()(Sc,{color:this.props.color,href:e,theme:this.props.theme}),s=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,l=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return r.createElement("g",{ref:this.currentRef},!!a&&a===s&&r.createElement("path",{id:s+"focusRing",d:i(this.props.focusData),className:u.focusRing}),r.createElement("path",{id:s,d:i(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,s),className:u.root,"data-is-focusable":this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc,onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,opacity:l,onClick:e?this._redirectToUrl.bind(this,e):null===(t=this.props.data)||void 0===t?void 0:t.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(u.arcLabel))},i.prototype._onFocus=function(t,n){this.props.onFocusCallback(t,n,this.currentRef.current)},i.prototype._hoverOn=function(t,n){n.persist(),this.props.hoverOnCallback(t,n)},i.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},i.defaultProps={arc:Lc()},i}(r.Component);function Ac(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Nc=function(t){var n,i=t.theme;return{root:{},insideDonutString:{fontSize:jt.s.xLargePlus,fontWeight:jt.BO.semibold,fill:i.semanticColors.bodyText,selectors:(n={},n[jt.NK]={fill:"rgb(179, 179, 179)"},n)}}},Dc=(0,o.Z)(),Tc=function(t){function i(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n,e,o){var a=t&&t.data&&t.data.color;return r.createElement(Vc,{key:n,data:t,focusData:e,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:a,onFocusCallback:i._focusCallback,hoverOnCallback:i._hoverCallback,onBlurCallback:i.props.onBlurCallback,hoverLeaveCallback:i.props.hoverLeaveCallback,uniqText:i.props.uniqText,activeArc:i.props.activeArc,href:o,calloutId:i.props.calloutId,valueInsideDonut:i.props.valueInsideDonut,theme:i.props.theme,focusedArcId:i.props.focusedArcId,showLabelsInPercent:i.props.showLabelsInPercent,totalValue:i._totalValue,hideLabels:i.props.hideLabels})},i._focusCallback=function(t,n,e){i.props.onFocusCallback(t,n,e)},i._computeTotalValue=function(){var t=0;return i.props.data.forEach((function(n){t+=n.data})),t},i._hoverCallback=i._hoverCallback.bind(i),i._pieForFocusRing=fc().sort(null).value((function(t){return t.data})).padAngle(0),i}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,o=this._pieForFocusRing(e),a=i(e),u="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),s=Dc(Nc,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),r.createElement("g",{transform:u},a.map((function(n,i){return t.arcGenerator(n,i,o[i],t.props.href)})),this.props.valueInsideDonut&&r.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:s.insideDonutString},this.props.valueInsideDonut))},i.prototype.componentDidUpdate=function(){var t,n,i;t=Dc(Nc,{theme:this.props.theme}).insideDonutString,n=2*this.props.innerRadius-5,i=0,Pu(".".concat(t)).each((function(){for(var t=Ou(this),e=t.text().split(/\s+/).reverse(),r="",o=[],a=0,u=t.attr("y"),s=t.text(null).append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(a)).attr("x",0).attr("y",u).attr("dy",1.1*a+++"em");r=e.pop();)o.push(r),s.text(o.join(" ")+" "),s.node().getComputedTextLength()>n&&o.length>1&&(o.pop(),s.text(o.join(" ")+" "),o=[r],s=t.append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(a)).attr("x",0).attr("y",u).attr("dy",1.1*a+++"em").text(r));i+=1}))},i.prototype._hoverCallback=function(t,n){this.props.hoverOnCallback(t,n)},i.defaultProps={pie:fc().sort(null).value((function(t){return t.data})).padAngle(.02)},i}(r.Component),Oc={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},Pc={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},Ec={qualitative:Pc,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},Fc=Object.values(Pc),Bc=Object.values(Oc),Hc=function(t,n){if(0===t.length)return"";var i=Number(n);return i<t.length?t[i]:t[0]},_c=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Fc[(t+n)%Fc.length];return Hc(e,i)},Ic=function(t,n){if(void 0===n&&(n=!1),Bc.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=Ec[e][r];return Hc(o,n)}return t},Wc=(0,o.Z)(),Rc=function(t){function i(i){var e=t.call(this,i)||this;return e._closeCallout=function(){e.setState({showHover:!1})},e._focusCallback=function(t,n,i){e._currentHoverElement=i,e.setState({showHover:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:n,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},e._hoverCallback=function(t,n){e._calloutAnchorPoint!==t&&(e._calloutAnchorPoint=t,e._currentHoverElement=n,e.setState({showHover:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},e._onBlur=function(){e.setState({focusedArcId:""})},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({showHover:!1})},e._addDefaultColors=function(t){return t?t.map((function(t,i){var r,o,a;return a=void 0===t.color?_c(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted):Ic(t.color,null===(o=e.props.theme)||void 0===o?void 0:o.isInverted),(0,n.Cl)((0,n.Cl)({},t),{color:a})})):[]},e.state={showHover:!1,value:"",legend:"",_width:e.props.width||200,_height:e.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},e._hoverCallback=e._hoverCallback.bind(e),e._focusCallback=e._focusCallback.bind(e),e._hoverLeave=e._hoverLeave.bind(e),e._calloutId=v("callout"),e._uniqText=v("_Pie_"),e._emptyChartId=v("_DonutChart_empty"),e}return(0,n.C6)(i,t),i.getDerivedStateFromProps=function(t,i){var e,r;return t.width&&t.width!==i._width&&(e={_width:t.width}),t.height&&t.height!==i._height&&(r={_height:t.height-40}),(0,n.Cl)((0,n.Cl)({},e),r)},i.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},i.prototype.render=function(){var t=this,i=this.props,e=i.data,o=i.hideLegend,a=void 0!==o&&o,u=this._addDefaultColors(null==e?void 0:e.chartData);this._classNames=Wc(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var s=this._createLegends(u),l=this.props.hideLabels?0:80,c=this.props.hideLabels?0:40,f=Math.min(this.state._width-l,this.state._height-c)/2,h=this._elevateToMinimums(u.filter((function(t){return t.data>=0}))),d=this._valueInsideDonut(this.props.valueInsideDonut,h);return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n},onMouseLeave:this._handleChartMouseLeave},r.createElement(Rs,{direction:vs.horizontal,handleTabKey:1},r.createElement("div",null,r.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle,ref:function(n){return t._setViewBox(n)}},r.createElement(Tc,{width:this.state._width,height:this.state._height,outerRadius:f,innerRadius:this.props.innerRadius,data:h,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(d),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),r.createElement(Gn,(0,n.Cl)({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:y.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,fs(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):r.createElement(ys.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!a&&r.createElement("div",{className:this._classNames.legendContainer},s))},i.prototype._elevateToMinimums=function(t){var i=0,e=[];return t.forEach((function(t){i+=t.data})),t.forEach((function(t){e.push(.01*i>t.data&&t.data>0?(0,n.Cl)((0,n.Cl)({},t),{data:.01*i,yAxisCalloutData:void 0===t.yAxisCalloutData?t.data.toLocaleString():t.yAxisCalloutData}):t)})),e},i.prototype._setViewBox=function(t){var n,i;if(null!==t){var e=t.parentElement?t.parentElement.clientWidth:this.state._width,r=t.parentElement&&(null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight)>this.state._height?null===(i=t.parentElement)||void 0===i?void 0:i.offsetHeight:this.state._height,o="0 0 ".concat(e," ").concat(r);t.setAttribute("viewBox",o)}},i.prototype._createLegends=function(t){var i=this,e=t.map((function(t,n){var e=t.color;return{title:t.legend,color:e,action:function(){i.state.selectedLegend===t.legend?i.setState({selectedLegend:""}):i.setState({selectedLegend:t.legend})},hoverAction:function(){i._handleChartMouseLeave(),i.setState({activeLegend:t.legend})},onMouseOutAction:function(){i.setState({activeLegend:""})}}}));return r.createElement(Ul,(0,n.Cl)({legends:e,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},i.prototype._hoverLeave=function(){},i.prototype._valueInsideDonut=function(t,n){var i=this,e=this._getHighlightedLegend();if(void 0===t||""===e&&!this.state.showHover)return t;var r=t;return n.map((function(t,n){(t.legend===e||i.state.showHover&&t.legend===i.state.legend)&&(r=t.yAxisCalloutData?t.yAxisCalloutData:t.data)})),r},i.prototype._toLocaleString=function(t){var n=(0,Zn.U)(t,this.props.culture);return n?null==n?void 0:n.toString():t},i.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(t){return t.data>0})).length>0)},i.defaultProps={innerRadius:0,hideLabels:!0},i}(r.Component),zc=(0,t.I)(Rc,(function(t){var n=t.className,i=t.width,e=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},n],chart:{width:i,height:e,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(i,"px")}}}));function jc(t,n){if(t=function(t){let n;for(;n=t.sourceEvent;)t=n;return t}(t),void 0===n&&(n=t.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var e=i.createSVGPoint();return e.x=t.clientX,e.y=t.clientY,[(e=e.matrixTransform(n.getScreenCTM().inverse())).x,e.y]}if(n.getBoundingClientRect){var r=n.getBoundingClientRect();return[t.clientX-r.left-n.clientLeft,t.clientY-r.top-n.clientTop]}}return[t.pageX,t.pageY]}function Yc(t){this._context=t}function Xc(t){return new Yc(t)}function qc(t){return t[0]}function $c(t){return t[1]}function Uc(t,n){var i=Zl(!0),e=null,r=Xc,o=null,a=yc(u);function u(u){var s,l,c,f=(u=Gl(u)).length,h=!1;for(null==e&&(o=r(c=a())),s=0;s<=f;++s)!(s<f&&i(l=u[s],s,u))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,u),+n(l,s,u));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?qc:Zl(t),n="function"==typeof n?n:void 0===n?$c:Zl(n),u.x=function(n){return arguments.length?(t="function"==typeof n?n:Zl(+n),u):t},u.y=function(t){return arguments.length?(n="function"==typeof t?t:Zl(+t),u):n},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:Zl(!!t),u):i},u.curve=function(t){return arguments.length?(r=t,null!=e&&(o=r(e)),u):r},u.context=function(t){return arguments.length?(null==t?e=o=null:o=r(e=t),u):e},u}Yc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Gc,Zc,Kc,Jc=function(t){function i(n){var e=t.call(this,n)||this;return e._tooltipHost=r.createRef(),e._tooltipHostId=v("tooltip-host"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._getTargetElement=function(){if(e._tooltipHost.current)return e._tooltipHost.current},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipBlur=function(t){e._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var n=e.props.delay;if(i._currentVisibleTooltip&&i._currentVisibleTooltip!==e&&i._currentVisibleTooltip.dismiss(),i._currentVisibleTooltip=e,e.state.isOverflowing&&(!t.target||!Ls(t.target,e._getTargetElement())))if(e._clearDismissTimer(),e._clearOpenTimer(),n!==js.zero){var r=e._getDelayTime(n);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),r)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var n=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),n?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),n):e._toggleTooltip(!1),i._currentVisibleTooltip===e&&(i._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Pt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t})},e._getDelayTime=function(t){switch(t){case js.medium:return 300;case js.long:return 500;default:return 0}},e._wrapContent=function(){var t=e.props,n=t.content,i=t.wrapContent,r=t.maxWidth,o=void 0===r?Number.POSITIVE_INFINITY:r,a=t.maxHeight,u=!1;n&&i&&i(n,e._tooltipHostId,o,a)&&(u=!0),e.state.isOverflowing!==u&&e.setState({isOverflowing:u})},e.state={isTooltipVisible:!1,isOverflowing:!1},e._async=new Et(e),e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,i=t.content,e=t.tooltipProps,o=t.textProps,a=t.shouldReceiveFocus,u=void 0===a||a,s=this.state.isTooltipVisible,l=(0,n.Cl)({content:i,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},e),c=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!i||s&&!!i;return r.createElement(r.Fragment,null,r.createElement("text",(0,n.Cl)({},o,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":u&&this.state.isOverflowing}),i),c&&r.createElement(qs,(0,n.Cl)({},l)))},i.prototype.componentDidMount=function(){this._wrapContent()},i.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||this._wrapContent()},i.prototype.componentWillUnmount=function(){i._currentVisibleTooltip&&i._currentVisibleTooltip===this&&(i._currentVisibleTooltip=void 0),this._async.dispose()},i.defaultProps={delay:js.medium},i}(r.Component),Qc=(0,o.Z)(),tf=(0,r.lazy)((function(){return Promise.resolve().then(i.bind(i,395)).then((function(t){return{default:t.ChartHoverCard}}))})),nf=function(t){function i(i){var e,o,u,s,l,c,f,h,d,p,g,m,y,b,x,w,C,M,k,L,S,V,A,N,D,T,O=this;return(O=t.call(this,i)||this).minLegendContainerHeight=32,O._isRtl=(0,a.jI)(),O._isFirstRender=!0,O.isIntegralDataset=!0,O._multiValueCallout=function(t){var i=O._yValueHoverSubCountsExists(t.YValueHover);return r.createElement("div",{className:O._classNames.calloutContentRoot},r.createElement("div",{className:O._classNames.calloutDateTimeContainer,style:i?{marginBottom:"11px"}:{}},r.createElement("div",(0,n.Cl)({className:O._classNames.calloutContentX},fs(t.xAxisCalloutAccessibilityData,"text",!1)),(0,Zn.U)(t.hoverXValue,O.props.culture))),r.createElement("div",{className:O._classNames.calloutInfoContainer,style:i?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,e,o){var a=e+1===o.length,u=t.shouldDrawBorderBottom,s=void 0!==u&&u;return r.createElement("div",(0,n.Cl)({},fs(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(e),style:i?(0,n.Cl)({display:"inline-block"},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,n.Cl)({},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),O._getCalloutContent(t,e,i,a))})),!!t.descriptionMessage&&r.createElement("div",{className:O._classNames.descriptionMessage},t.descriptionMessage)))},O._getData=function(t,n){O.props.getGraphData&&O.props.getGraphData(t,n,O.state.containerHeight-O.state._removalValueForTextTuncate,O.state.containerWidth,O.xAxisElement,O.yAxisElement)},O._onChartLeave=function(){O.props.onChartMouseLeave&&O.props.onChartMouseLeave()},O._calculateChartMinWidth=function(){var t=10;if(!O.props.wrapXAxisLables&&O.props.rotateXAxisLables&&O.props.xAxisType===$u.StringAxis){var n=is(O._tickValues,".".concat(O._classNames.xAxis," text"));t+=Math.ceil(n*Math.cos(Math.PI/4))}else if(O.props.showXAxisLablesTooltip){var i=O._tickValues.map((function(t){var n=O.props.noOfCharsToTruncate||4;return t.toString().length>n?"".concat(t.toString().slice(0,n),"..."):t}));n=is(i,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n)}else if(O.props.wrapXAxisLables){var e=[];O._tickValues.forEach((function(t){e.push.apply(e,t.toString().split(/\s+/))})),n=is(e,".".concat(O._classNames.xAxis," text")),t+=Math.max(Math.ceil(n),10)}else n=is(O._tickValues,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n);var r=O.margins.left+O.margins.right+t*(O._tickValues.length-1);return[qu.GroupedVerticalBarChart,qu.VerticalBarChart,qu.VerticalStackedBarChart].includes(O.props.chartType)&&(r+=16),r},O._getChartDescription=function(){return(O.props.chartTitle||"Chart. ")+O._getAxisTitle("X",O.props.xAxisTitle,O.props.xAxisType)+O._getAxisTitle("Y",O.props.yAxisTitle,O.props.yAxisType||Uu.NumericAxis)+(O.props.secondaryYScaleOptions?O._getAxisTitle("secondary Y",O.props.secondaryYAxistitle,Uu.NumericAxis):"")},O._getAxisTitle=function(t,n,i){return"The ".concat(t," axis displays ")+(n||(i===$u.StringAxis||i===Uu.StringAxis?"categories":i===$u.DateAxis||i===Uu.DateAxis?"time":"values"))+". "},O.state={containerHeight:0,containerWidth:0,_width:O.props.width||600,_height:O.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},O.idForGraph=v("chart_"),O.titleMargin=8,O.idForDefaultTabbableElement=v("defaultTabbableElement_"),O.margins={top:null!==(o=null===(e=O.props.margins)||void 0===e?void 0:e.top)&&void 0!==o?o:20,bottom:null!==(s=null===(u=O.props.margins)||void 0===u?void 0:u.bottom)&&void 0!==s?s:35,right:O._isRtl?null!==(c=null===(l=O.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(h=null===(f=O.props.margins)||void 0===f?void 0:f.right)&&void 0!==h?h:null===(d=O.props)||void 0===d?void 0:d.secondaryYScaleOptions)?40:20,left:O._isRtl?(null!==(g=null===(p=O.props.margins)||void 0===p?void 0:p.right)&&void 0!==g?g:null===(m=O.props)||void 0===m?void 0:m.secondaryYScaleOptions)?40:20:null!==(b=null===(y=O.props.margins)||void 0===y?void 0:y.left)&&void 0!==b?b:40},void 0!==O.props.xAxisTitle&&""!==O.props.xAxisTitle&&(O.margins.bottom=null!==(w=null===(x=O.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==w?w:55),void 0!==O.props.yAxisTitle&&""!==O.props.yAxisTitle&&(O.margins.left=O._isRtl?(null!==(M=null===(C=O.props.margins)||void 0===C?void 0:C.right)&&void 0!==M?M:null===(k=O.props)||void 0===k?void 0:k.secondaryYAxistitle)?60:40:null!==(S=null===(L=O.props.margins)||void 0===L?void 0:L.left)&&void 0!==S?S:60,O.margins.right=O._isRtl?null!==(A=null===(V=O.props.margins)||void 0===V?void 0:V.left)&&void 0!==A?A:60:(null!==(D=null===(N=O.props.margins)||void 0===N?void 0:N.right)&&void 0!==D?D:null===(T=O.props)||void 0===T?void 0:T.secondaryYAxistitle)?60:40),O}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===qu.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var t=is(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0}))},i.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},i.prototype.componentDidUpdate=function(t){if(t.height===this.props.height&&t.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===$u.StringAxis){var n=function(t){var n=t.node,i=t.xAxis;if(null!==n&&null!==i){var e=0,r=[];Ou(n).call(i).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var n=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===n.length&&(r.push(n[0]),this.setAttribute("transform","translate(".concat(n[0],",0)rotate(-45)")))}var i=this.getBoundingClientRect(),o=i&&i.height;o>e&&(e=o)}));var o=0;return Ou(n).call(i).selectAll(".tick").each((function(){r.length>o&&(this.setAttribute("transform","translate(".concat(r[o],",").concat(e/2,")rotate(-45)")),o+=1)})),Math.floor(e/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==n+this.margins.bottom&&n>0&&this.setState({_removalValueForTextTuncate:n+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===qu.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var i=is(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==i&&this.setState({startFromX:i})}else 0!==this.state.startFromX&&this.setState({startFromX:0});t.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0})))},i.prototype.render=function(){var t,i,e,o,a,u,s,l,c,f,h=this,d=this.props,v=d.calloutProps,p=d.points,g=d.chartType,m=d.chartHoverProps,y=d.svgFocusZoneProps,b=d.svgProps,x=d.culture,w=d.dateLocalizeOptions,C=d.timeFormatLocale,M=d.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var k=(0,n.Cl)({},this.margins);this.props.chartType===qu.HorizontalBarChartWithAxis&&(this._isRtl?k.right+=this.state.startFromX:k.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(k);var L,S,V,A,N,D=null,T=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var O={domainNRangeValues:os(p,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,g,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},P={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElement,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:this.props.yMinValue||0,yMaxValue:this.props.yMaxValue||0,tickPadding:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:as(p,g,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},E=void 0,F=void 0;switch(this.props.xAxisType){case $u.NumericAxis:E=(t=Ku(O,this.props.chartType,x)).xScale,F=t.tickValues;break;case $u.DateAxis:i=function(t,n,i,e,r,o){var a,u=t.domainNRangeValues,s=t.xAxisElement,l=t.tickPadding,c=void 0===l?6:l,f=t.xAxistickSize,h=void 0===f?6:f,d=t.xAxisCount,v=void 0===d?6:d,p=ya().domain([u.dStartValue,u.dEndValue]).range([u.rStartValue,u.rEndValue]),g=fi(p).tickSize(h).tickPadding(c).ticks(v);if(o)g.tickFormat((function(t,n){return o(t)}));else if(i&&e)g.tickFormat((function(t,n){return t.toLocaleString(i,e)}));else if(r){var m=$r(r);g.tickFormat((function(t,n){return Ju(t,m)}))}n.tickValues&&g.tickValues(n.tickValues),void 0===i&&n.tickFormat&&g.tickFormat(Gr(n.tickFormat)),s&&Ou(s).call(g).selectAll("text").attr("aria-hidden","true");var y=(null!==(a=n.tickValues)&&void 0!==a?a:p.ticks(v)).map((function(t,n){var i=g.tickFormat();return i?i(t,n):Ju(t)}));return{xScale:p,tickValues:y}}(O,this.props.tickParams,x,w,C,M),E=i.xScale,F=i.tickValues;break;case $u.StringAxis:e=function(t,n,i,e){var r=t.domainNRangeValues,o=t.xAxisCount,a=void 0===o?6:o,u=t.xAxistickSize,s=void 0===u?6:u,l=t.tickPadding,c=void 0===l?10:l,f=t.xAxisPadding,h=void 0===f?.1:f,d=t.xAxisInnerPadding,v=t.xAxisOuterPadding,p=ka().domain(i).range([r.rStartValue,r.rEndValue]).paddingInner(void 0!==d?d:h).paddingOuter(void 0!==v?v:h),g=fi(p).tickSize(s).tickPadding(c).ticks(a).tickFormat((function(t,n){return hs(i[n],e)}));return t.xAxisElement&&Ou(t.xAxisElement).call(g).selectAll("text").attr("aria-hidden","true"),{xScale:p,tickValues:i.map(g.tickFormat())}}(O,this.props.tickParams,this.props.datasetForXAxisDomain,x),E=e.xScale,F=e.tickValues;break;default:E=(o=Ku(O,this.props.chartType,x)).xScale,F=o.tickValues}if(this._xScale=E,this._tickValues=F,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var B={node:this.xAxisElement,xAxis:E,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},H=E&&function(t){var n=t.node,i=t.xAxis,e=t.noOfCharsToTruncate,r=t.showXAxisLablesTooltip;if(null!==n){var o=Ou(n).call(i),a=0,u=[];return o.selectAll(".tick text").each((function(){var t=Ou(this),n=t.text(),i="".concat(t.text().slice(0,e),"..."),s=t.text().length,l=t.text().split(/\s+/).reverse();u.push(l.length);var c="",f=[],h=0,d=t.attr("y"),v=parseFloat(t.attr("dy")),p=t.text(null).append("tspan").attr("x",0).attr("y",d).attr("id","BaseSpan").attr("dy",v+"em").attr("data-",n);if(r&&s>e)p=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(i);else if(r&&s<=e)p=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(n);else{for(;c=l.pop();)f.push(c),p.text(f.join(" ")),p.node().getComputedTextLength()>10&&f.length>1&&(f.pop(),p.text(f.join(" ")),f=[c],p=t.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(c));var g=Math.max.apply(Math,u),m=12;o.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),n=t&&t.getBoundingClientRect(),i=n&&n.height;i>m&&(m=i)}));var y=4;g<=2?y=1:g>2&&g<=6?y=2:g>6&&g<=9&&(y=3),a=(g-y)*m}})),a>0?a:0}}(B);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==H&&this.setState({_removalValueForTextTuncate:H,isRemoveValCalculated:!1})}var _=void 0,I=void 0,W={yAxisDomainValues:[]};this.props.yAxisType&&this.props.yAxisType===Uu.StringAxis?_=function(t,n,i,e,r,o){return e===qu.HorizontalBarChartWithAxis?function(t,n,i,e,r){var o=t.containerHeight,a=t.tickPadding,u=void 0===a?12:a,s=t.margins,l=t.yAxisTickFormat,c=t.yAxisElement,f=ka().domain(n).range([o-s.bottom-e/2,s.top+e/2]),h=(i?ci(f):hi(f)).tickPadding(u).ticks(n);return l&&h.tickFormat(l),c&&Ou(c).call(h).selectAll("text"),f}(t,n,i,r):function(t,n,i){var e=t.containerHeight,r=t.tickPadding,o=void 0===r?12:r,a=t.margins,u=t.yAxisTickFormat,s=t.yAxisElement,l=t.yAxisPadding,c=void 0===l?0:l,f=ka().domain(n).range([e-a.bottom,a.top]).padding(c),h=(i?ci(f):hi(f)).tickPadding(o).tickValues(n).tickSize(0);return u&&h.tickFormat(u),s&&Ou(s).call(h).selectAll("text"),f}(t,n,i)}(P,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth):((null===(a=this.props)||void 0===a?void 0:a.secondaryYScaleOptions)&&(I=Qu({margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(u=this.props.secondaryYScaleOptions)||void 0===u?void 0:u.yMinValue)||0,yMaxValue:null!==(l=null===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMaxValue)&&void 0!==l?l:100,tickPadding:10,maxOfYVal:null!==(f=null===(c=this.props.secondaryYScaleOptions)||void 0===c?void 0:c.yMaxValue)&&void 0!==f?f:100,yMinMaxValues:as(p,g),yAxisPadding:this.props.yAxisPadding},this._isRtl,W,g,this.props.barwidth,this.isIntegralDataset,!0)),_=Qu(P,this._isRtl,W,g,this.props.barwidth,this.isIntegralDataset)),this.props.chartType===qu.HorizontalBarChartWithAxis&&_&&(L=this.yAxisElement,S=_,V=this.props.noOfCharsToTruncate||4,A=this.props.showYAxisLablesTooltip||!1,this.state.startFromX,N=this._isRtl,null!==L&&Ou(L).call(S).selectAll(".tick text").each((function(){var t=Ou(this),n=t.text(),i=N?"...".concat(t.text().slice(0,V)):"".concat(t.text().slice(0,V),"..."),e=t.text().length,r=A?1.5:1,o=t.attr("y"),a=t.attr("x"),u=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",a).attr("y",o).attr("id","BaseSpan").attr("dy",u+"em").attr("data-",n),A&&e>V?t.append("tspan").attr("id","showDots").attr("x",N?0:a).attr("y",o).attr("dy",u).attr("dx",r+0+"em").text(i):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",N?0:a).attr("y",o).attr("dx",r+0+"em").text(n)}))),this.props.getAxisData&&this.props.getAxisData(W),this._getData(E,_),T=this.props.children((0,n.Cl)((0,n.Cl)({},this.state),{xScale:E,yScale:_,yScaleSecondary:I})),!this.props.hideTooltip&&v.isCalloutVisible&&(D=this._generateCallout(v,m))}this._classNames=Qc(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var R,z={width:this.state.containerWidth,height:this.state.containerHeight};R=this.props.focusZoneDirection===vs.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:vs.horizontal;var j=z.width-this.margins.left-this.margins.right-this.state.startFromX,Y=z.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return r.createElement("div",{id:this.idForGraph,className:this._classNames.root,ref:function(t){return h.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&r.createElement("div",{id:this.idForDefaultTabbableElement}),r.createElement(Rs,(0,n.Cl)({direction:R,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},y),this._isFirstRender&&r.createElement("div",{id:this.idForDefaultTabbableElement}),r.createElement("svg",(0,n.Cl)({width:z.width,height:z.height,role:"region","aria-label":this._getChartDescription(),style:{display:"block"}},b),r.createElement("g",{ref:function(t){h.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(z.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&r.createElement(Jc,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+j/2,y:z.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle","aria-hidden":!0},maxWidth:j,wrapContent:ns}),r.createElement("g",{ref:function(t){h.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?z.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&r.createElement("g",null,r.createElement("g",{ref:function(t){h.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:z.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&r.createElement(Jc,{content:this.props.secondaryYAxistitle,textProps:{x:(Y-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:z.width-this.margins.right,textAnchor:"middle",transform:"translate(".concat(this._isRtl?this.margins.right/2-this.titleMargin:this.margins.right/2+this.titleMargin,",\n ").concat(z.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:Y,wrapContent:ns})),T,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&r.createElement(Jc,{content:this.props.yAxisTitle,textProps:{x:(Y-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?z.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(z.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:Y,wrapContent:ns}))),!this.props.hideLegend&&r.createElement("div",{ref:function(t){return h.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),D&&r.createElement(r.Suspense,{fallback:r.createElement("div",null,"Loading...")},D))},i.prototype._generateCallout=function(t,i){return r.createElement(Gn,(0,n.Cl)({hidden:!(!this.props.hideTooltip&&t.isCalloutVisible),shouldUpdateWhenHidden:!0},t),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(t),!this.props.customizedCallout&&!this.props.isCalloutForStack&&r.createElement(tf,(0,n.Cl)({XValue:t.XValue,Legend:t.legend,YValue:t.YValue,color:t.color,culture:this.props.culture},i)))},i.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},i.prototype._getCalloutContent=function(t,n,i,e){var o,a=e?{}:{marginRight:"16px"},u=void 0!==t.index&&-1!==t.index,s=Qc(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:t.color,toDrawShape:u}),l=this.props.culture,c=(0,Zn.U)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var f=t.yAxisCalloutData;return r.createElement("div",{style:a},r.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(f).map((function(t){return r.createElement("div",{key:t,className:s.calloutBlockContainer},r.createElement("div",{className:s.calloutlegendText}," ",(0,Zn.U)(t,l)),r.createElement("div",{className:s.calloutContentY},(0,Zn.U)(f[t],l)))})))}return r.createElement("div",{style:i?a:{}},i&&r.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),r.createElement("div",{id:"".concat(n,"_").concat(t.y),className:s.calloutBlockContainer},u&&r.createElement(Xl,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:us[t.index%Object.keys(cs).length]}),r.createElement("div",null,r.createElement("div",{className:s.calloutlegendText}," ",t.legend),r.createElement("div",{className:s.calloutContentY},(0,Zn.U)(t.yAxisCalloutData?t.yAxisCalloutData:null!==(o=t.y)&&void 0!==o?o:t.data,l)))))},i.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n;if(t.props.hideLegend)n=0;else{var r=t.legendContainer&&getComputedStyle(t.legendContainer);n=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(r&&r.marginTop||"0")+parseFloat(r&&r.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var o=t.props.parentRef?t.props.parentRef:t.chartContainer,a=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,u=o.getBoundingClientRect().height>n?o.getBoundingClientRect().height:350;(i!==a||e!==u-n)&&t.setState({containerWidth:a,containerHeight:u-n})}}))},i}(r.Component);!function(t){t.shade30="#004578",t.shade20="#005a9e",t.shade10="#106ebe",t.primary="#0078d4",t.tint10="#2b88d8",t.tint20="#c7e0f4",t.tint30="#deecf9",t.tint40="#eff6fc"}(Gc||(Gc={})),function(t){t.black="#000000",t.gray220="#11100f",t.gray210="#161514",t.gray200="#1b1a19",t.gray190="#201f1e",t.gray180="#252423",t.gray170="#292827",t.gray160="#323130",t.gray150="#3b3a39",t.gray140="#484644",t.gray130="#605e5c",t.gray120="#797775",t.gray110="#8a8886",t.gray100="#979593",t.gray90="#a19f9d",t.gray80="#b3b0ad",t.gray70="#bebbb8",t.gray60="#c8c6c4",t.gray50="#d2d0ce",t.gray40="#e1dfdd",t.gray30="#edebe9",t.gray20="#f3f2f1",t.gray10="#faf9f8",t.white="#ffffff"}(Zc||(Zc={})),function(t){t.pinkRed10="#750b1c",t.red20="#a4262c",t.red10="#d13438",t.redOrange20="#603d30",t.redOrange10="#da3b01",t.orange30="#8e562e",t.orange20="#ca5010",t.orange10="#ffaa44",t.yellow10="#fce100",t.orangeYellow20="#986f0b",t.orangeYellow10="#c19c00",t.yellowGreen10="#8cbd18",t.green20="#0b6a0b",t.green10="#498205",t.greenCyan10="#00ad56",t.cyan40="#005e50",t.cyan30="#005b70",t.cyan20="#038387",t.cyan10="#00b7c3",t.cyanBlue20="#004e8c",t.cyanBlue10="#0078d4",t.blue10="#4f6bed",t.blueMagenta40="#373277",t.blueMagenta30="#5c2e91",t.blueMagenta20="#8764b8",t.blueMagenta10="#8378de",t.magenta20="#881798",t.magenta10="#c239b3",t.magentaPink20="#9b0062",t.magentaPink10="#e3008c",t.gray40="#393939",t.gray30="#7a7574",t.gray20="#69797e",t.gray10="#a0aeb2"}(Kc||(Kc={}));var ef=function(){var t,n=(0,u.z)();return!!(null===(t=null==n?void 0:n.navigator)||void 0===t?void 0:t.userAgent)&&n.navigator.userAgent.indexOf("rv:11.0")>-1}(),rf=(0,t.I)(nf,(function(t){var i,e,r,o,a,u,s,l,c=t.className,f=t.theme,h=t.isRtl,d=t.shouldHighlight,v=t.href,p=t.lineColor,g=void 0===p?"transparent":p,m=t.toDrawShape,y=f.fonts;return{root:[f.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],chartWrapper:{overflow:"auto"},axisTitle:[f.fonts.xSmall,{textAlign:"center",fontWeight:jt.BO.semibold,fontStyle:"normal",lineHeight:jt.s.medium,color:Zc.gray160,fill:f.semanticColors.bodyText}],xAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(i={},i[jt.NK]={fill:"rgb(179, 179, 179)"},i)}],line:{opacity:.2,stroke:f.semanticColors.bodyText,width:"1px",selectors:(e={},e[jt.NK]={opacity:.1,stroke:"rgb(179, 179, 179)"},e)},path:{display:"none"}}},yAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[jt.NK]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:f.semanticColors.bodyText,selectors:(o={},o[jt.NK]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!ef&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:d?"":"0.1",cursor:v?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:f.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,n.Cl)((0,n.Cl)({},y.small),{lineHeight:"16px",opacity:"0.85",color:f.semanticColors.bodySubtext})],calloutBlockContainer:[f.fonts.mediumPlus,{marginTop:"13px",color:f.semanticColors.bodyText},!m&&{selectors:(a={},a[jt.up]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(g),paddingLeft:"8px"},m&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,n.Cl)((0,n.Cl)({},y.small),{lineHeight:"16px",selectors:(u={},u[jt.NK]={color:"rgb(255, 255, 255)"},u),color:f.semanticColors.bodySubtext}),calloutContentY:[(0,n.Cl)((0,n.Cl)({},y.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(s={},s[jt.NK]={color:"rgb(255, 255, 255)"},s)})],descriptionMessage:[f.fonts.small,{selectors:(l={},l[jt.NK]={color:"rgb(255, 255, 255)"},l),color:f.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(f.semanticColors.menuDivider)}]}})),of=(0,fn.J5)((function(t){return(0,fn.J5)((function(n){var i=(0,fn.J5)((function(t){return function(i){return n(i,t)}}));return function(e,r){return t(e,r?i(r):n)}}))}));function af(t,n){return of(t)(n)}var uf=function(t){if(void 0===t)return 0;var n=0;return"scrollTop"in t?n=t.scrollTop:"scrollY"in t&&(n=t.scrollY),Math.ceil(n)},sf=function(t,n){"scrollTop"in t?t.scrollTop=n:"scrollY"in t&&t.scrollTo(t.scrollX,n)},lf="spacer-",cf={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},ff=function(t){return t.getBoundingClientRect()},hf=ff,df=ff,vf=function(t){function i(i){var e=t.call(this,i)||this;return e._root=r.createRef(),e._surface=r.createRef(),e._pageRefs={},e._getDerivedStateFromProps=function(t,n){return t.items!==e.props.items||t.renderCount!==e.props.renderCount||t.startIndex!==e.props.startIndex||t.version!==e.props.version||!n.hasMounted&&e.props.renderEarly&&(0,Pn.S)()?(e._resetRequiredWindows(),e._requiredRect=null,e._measureVersion++,e._invalidatePageCache(),e._updatePages(t,n)):n},e._onRenderRoot=function(t){var i=t.rootRef,e=t.surfaceElement,o=t.divProps;return r.createElement("div",(0,n.Cl)({ref:i},o),e)},e._onRenderSurface=function(t){var i=t.surfaceRef,e=t.pageElements,o=t.divProps;return r.createElement("div",(0,n.Cl)({ref:i},o),e)},e._onRenderPage=function(t,i){for(var o,a=e.props,u=a.onRenderCell,s=a.onRenderCellConditional,l=a.role,c=t.page,f=c.items,h=void 0===f?[]:f,d=c.startIndex,v=(0,n.Tt)(t,["page"]),p=void 0===l?"listitem":"presentation",g=[],m=0;m<h.length;m++){var y=d+m,b=h[m],x=e.props.getKey?e.props.getKey(b,y):b&&b.key;null==x&&(x=y);var w=null!=s?s:u,C=null!==(o=null==w?void 0:w(b,y,e.props.ignoreScrollingState?void 0:e.state.isScrolling))&&void 0!==o?o:null;s&&!C||g.push(r.createElement("div",{role:p,className:"ms-List-cell",key:x,"data-list-index":y,"data-automationid":"ListCell"},C))}return r.createElement("div",(0,n.Cl)({},v),g)},xs(e),e.state={pages:[],isScrolling:!1,getDerivedStateFromProps:e._getDerivedStateFromProps,hasMounted:!1},e._estimatedPageHeight=0,e._totalEstimates=0,e._requiredWindowsAhead=0,e._requiredWindowsBehind=0,e._measureVersion=0,e._cachedPageHeights={},e._estimatedPageHeight=0,e._focusedIndex=-1,e._pageCache={},e}return(0,n.C6)(i,t),i.getDerivedStateFromProps=function(t,n){return n.getDerivedStateFromProps(t,n)},Object.defineProperty(i.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),i.prototype.scrollToIndex=function(t,n,i){void 0===i&&(i=0);for(var e=this.props.startIndex,r=e+this._getRenderCount(),o=this._allowedRect,a=0,u=1,s=e;s<r;s+=u){var l=this._getPageSpecification(this.props,s,o),c=l.height;if(u=l.itemCount,s<=t&&s+u>t){if(n&&this._scrollElement){for(var f=df(this._scrollElement),h=uf(this._scrollElement),d={top:h,bottom:h+f.height},v=t-s,p=0;p<v;++p)a+=n(s+p);var g=a+n(t);switch(i){case 1:return void sf(this._scrollElement,a);case 2:return void sf(this._scrollElement,g-f.height);case 3:return void sf(this._scrollElement,(a+g-f.height)/2)}if(a>=d.top&&g<=d.bottom)return;a<d.top||g>d.bottom&&(a=g-f.height)}return void(this._scrollElement&&sf(this._scrollElement,a))}a+=c}},i.prototype.getStartItemIndexInView=function(t){for(var n=0,i=this.state.pages||[];n<i.length;n++){var e=i[n];if(!e.isSpacer&&(this._scrollTop||0)>=e.top&&(this._scrollTop||0)<=e.top+e.height){if(!t){var r=Math.floor(e.height/e.itemCount);return e.startIndex+Math.floor((this._scrollTop-e.top)/r)}for(var o=0,a=e.startIndex;a<e.startIndex+e.itemCount;a++){if(r=t(a),e.top+o<=this._scrollTop&&this._scrollTop<e.top+o+r)return a;o+=r}}}return 0},i.prototype.componentDidMount=function(){this._async=new Et(this),this._events=new rl(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=nt(this._root.current),this._scrollTop=0,this.setState((0,n.Cl)((0,n.Cl)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var t=function(t){var n;return(null!==(n=null==t?void 0:t.window)&&void 0!==n?n:"undefined"!=typeof window)?window:void 0}(this.context);this._events.on(t,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},i.prototype.componentDidUpdate=function(t,n){var i=this.props,e=this.state;this.state.pagesVersion!==n.pagesVersion&&(i.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(e.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(i,e)))):this._onAsyncIdleDebounced(),i.onPagesUpdated&&i.onPagesUpdated(e.pages))},i.prototype.componentWillUnmount=function(){var t,n;null===(t=this._async)||void 0===t||t.dispose(),null===(n=this._events)||void 0===n||n.dispose(),delete this._scrollElement},i.prototype.shouldComponentUpdate=function(t,n){var i=this.state.pages,e=n.pages,r=!1;if(!n.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&i.length===e.length)for(var o=0;o<i.length;o++){var a=i[o],u=e[o];if(a.key!==u.key||a.itemCount!==u.itemCount){r=!0;break}}else r=!0;return r},i.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,t.prototype.forceUpdate.call(this)},i.prototype.getTotalListHeight=function(){return this._surfaceRect.height},i.prototype.render=function(){for(var t=this.props,i=t.className,e=t.role,r=void 0===e?"list":e,o=t.onRenderSurface,a=t.onRenderRoot,u=this.state.pages,s=void 0===u?[]:u,l=[],c=q(this.props,X),f=0,h=s;f<h.length;f++){var d=h[f];l.push(this._renderPage(d))}var v=o?af(o,this._onRenderSurface):this._onRenderSurface;return(a?af(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:v({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,n.Cl)((0,n.Cl)({},c),{className:$("ms-List",i),role:l.length>0?r:void 0,"aria-label":l.length>0?c["aria-label"]:void 0})})},i.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var n=t.onShouldVirtualize;return!n||n(t)},i.prototype._invalidatePageCache=function(){this._pageCache={}},i.prototype._renderPage=function(t){var n,i=this,e=this.props.usePageCache;if(e&&(n=this._pageCache[t.key])&&n.pageElement)return n.pageElement;var r=this._getPageStyle(t),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:t,className:"ms-List-page",key:t.key,ref:function(n){i._pageRefs[t.key]=n},style:r,role:"presentation"},this._onRenderPage);return e&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:a}),a},i.prototype._getPageStyle=function(t){var i=this.props.getPageStyle;return(0,n.Cl)((0,n.Cl)({},i?i(t):{}),t.items?{}:{height:t.height})},i.prototype._onFocus=function(t){for(var n=t.target;n!==this._surface.current;){var i=n.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}n=b(n)}},i.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},i.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},i.prototype._onAsyncScroll=function(){var t,n;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,n=this._materializedRect,t.top>=n.top&&t.left>=n.left&&t.bottom<=n.bottom&&t.right<=n.right)||this.setState(this._updatePages(this.props,this.state))},i.prototype._onAsyncIdle=function(){var t=this.props,n=t.renderedWindowsAhead,i=t.renderedWindowsBehind,e=this._requiredWindowsAhead,r=this._requiredWindowsBehind,o=Math.min(n,e+1),a=Math.min(i,r+1);o===e&&a===r||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(n>o||i>a)&&this._onAsyncIdleDebounced()},i.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||(this.setState({isScrolling:!1}),this._onAsyncIdle())},i.prototype._onAsyncResize=function(){this.forceUpdate()},i.prototype._updatePages=function(t,i){this._requiredRect||this._updateRenderRects(t,i);var e=this._buildPages(t,i),r=i.pages;return this._notifyPageChanges(r,e.pages,this.props),(0,n.Cl)((0,n.Cl)((0,n.Cl)({},i),e),{pagesVersion:{}})},i.prototype._notifyPageChanges=function(t,n,i){var e=i.onPageAdded,r=i.onPageRemoved;if(e||r){for(var o={},a=0,u=t;a<u.length;a++)(c=u[a]).items&&(o[c.startIndex]=c);for(var s=0,l=n;s<l.length;s++){var c;(c=l[s]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var f in o)o.hasOwnProperty(f)&&this._onPageRemoved(o[f])}},i.prototype._updatePageMeasurements=function(t){var n=!1;if(!this._shouldVirtualize())return n;for(var i=0;i<t.length;i++){var e=t[i];e.items&&(n=this._measurePage(e)||n)}return n},i.prototype._measurePage=function(t){var n=!1,i=this._pageRefs[t.key],e=this._cachedPageHeights[t.startIndex];if(i&&this._shouldVirtualize()&&(!e||e.measureVersion!==this._measureVersion)){var r={width:i.clientWidth,height:i.clientHeight};(r.height||r.width)&&(n=t.height!==r.height,t.height=r.height,this._cachedPageHeights[t.startIndex]={height:r.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+r.height)/(this._totalEstimates+1)),this._totalEstimates++)}return n},i.prototype._onPageAdded=function(t){var n=this.props.onPageAdded;n&&n(t)},i.prototype._onPageRemoved=function(t){var n=this.props.onPageRemoved;n&&n(t)},i.prototype._buildPages=function(t,i){var e=t.renderCount,r=t.items,o=t.startIndex,a=t.getPageHeight;e=this._getRenderCount(t);for(var u=(0,n.Cl)({},cf),s=[],l=1,c=0,f=null,h=this._focusedIndex,d=o+e,v=this._shouldVirtualize(t),p=0===this._estimatedPageHeight&&!a,m=this._allowedRect,y=function(n){var e=b._getPageSpecification(t,n,m),a=e.height,y=e.data,x=e.key;l=e.itemCount;var w,C,M=c+a-1,k=g(i.pages,(function(t){return!!t.items&&t.startIndex===n}))>-1,L=!m||M>=m.top&&c<=m.bottom,S=!b._requiredRect||M>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!p&&(S||L&&k)||!v||h>=n&&h<n+l||n===o){f&&(s.push(f),f=null);var V=Math.min(l,d-n),A=b._createPage(x,r.slice(n,n+V),n,void 0,void 0,y);A.top=c,A.height=a,b._visibleRect&&b._visibleRect.bottom&&(A.isVisible=M>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(A),S&&b._allowedRect&&(w=u,C={top:c,bottom:M,height:a,left:m.left,right:m.right,width:m.width},w.top=C.top<w.top||-1===w.top?C.top:w.top,w.left=C.left<w.left||-1===w.left?C.left:w.left,w.bottom=C.bottom>w.bottom||-1===w.bottom?C.bottom:w.bottom,w.right=C.right>w.right||-1===w.right?C.right:w.right,w.width=w.right-w.left+1,w.height=w.bottom-w.top+1)}else f||(f=b._createPage(lf+n,void 0,n,0,void 0,y,!0)),f.height=(f.height||0)+(M-c)+1,f.itemCount+=l;if(c+=M-c+1,p&&v)return"break"},b=this,x=o;x<d&&"break"!==y(x);x+=l);return f&&(f.key=lf+"end",s.push(f)),this._materializedRect=u,(0,n.Cl)((0,n.Cl)({},i),{pages:s,measureVersion:this._measureVersion})},i.prototype._getPageSpecification=function(t,n,i){var e=t.getPageSpecification;if(e){var r=e(n,i,t.items),o=r.itemCount,a=void 0===o?this._getItemCountForPage(n,i):o,u=r.height;return{itemCount:a,height:void 0===u?this._getPageHeight(n,i,a):u,data:r.data,key:r.key}}return{itemCount:a=this._getItemCountForPage(n,i),height:this._getPageHeight(n,i,a)}},i.prototype._getPageHeight=function(t,n,i){if(this.props.getPageHeight)return this.props.getPageHeight(t,n,i,this.props.items);var e=this._cachedPageHeights[t];return e?e.height:this._estimatedPageHeight||30},i.prototype._getItemCountForPage=function(t,n){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,n):10)||10},i.prototype._createPage=function(t,n,i,e,r,o,a){void 0===i&&(i=-1),void 0===e&&(e=n?n.length:0),void 0===r&&(r={}),t=t||"page-"+i;var u=this._pageCache[t];return u&&u.page?u.page:{key:t,startIndex:i,itemCount:e,items:n,style:r,top:0,height:0,data:o,isSpacer:a||!1}},i.prototype._getRenderCount=function(t){var n=t||this.props,i=n.items,e=n.startIndex,r=n.renderCount;return void 0===r?i?i.length-e:0:r},i.prototype._updateRenderRects=function(t,i,e){var r=t.renderedWindowsAhead,o=t.renderedWindowsBehind,a=i.pages;if(this._shouldVirtualize(t)){var s=this._surfaceRect||(0,n.Cl)({},cf),l=function(t){if(void 0===t)return 0;var n=0;return"scrollHeight"in t?n=t.scrollHeight:"document"in t&&(n=t.document.documentElement.scrollHeight),n}(this._scrollElement),c=uf(this._scrollElement);this._surface.current&&(e||!a||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>.3333333333333333*this._estimatedPageHeight)&&(s=this._surfaceRect=hf(this._surface.current),this._scrollTop=c),!e&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var f=Math.max(0,-s.top),h=(0,u.z)(this._root.current),d={top:f,left:s.left,bottom:f+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=pf(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=pf(d,o,r),this._visibleRect=d}},i.defaultProps={startIndex:0,onRenderCell:function(t,n,i){return r.createElement(r.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},i.contextType=_t,i}(r.Component);function pf(t,n,i){var e=t.top-n*t.height,r=t.height+(n+i)*t.height;return{top:e,bottom:e+r,height:r,left:t.left,right:t.right,width:t.width}}var gf,mf=function(t){var i=r.useRef(null);r.useEffect((function(){if(i.current){var n=Ou(i.current),e=t.text.split(/\s+/),r=[],o=n.append("tspan"),a=0;return e.forEach((function(i){r.push(i),o.text(r.join(" "));var e=o.node();e&&e.getComputedTextLength()>t.width&&r.length>1&&(a++,r.pop(),o.text(r.join(" ")),r=[i],o=n.append("tspan").text(i).attr("dy",t.lineHeight).attr("x",t.x))})),n.attr("dy",-a*t.lineHeight),function(){n.selectAll("tspan").remove()}}})),t.lineHeight;var e=(0,n.Tt)(t,["lineHeight"]);return r.createElement("text",(0,n.Cl)({ref:i},e))},yf=function(t){var n,i,e,o=r.useRef(null),a=r.useState(!1),u=a[0],s=a[1],l=null;if(u){var c=t.labelDef.aggregatedIdx.map((function(n){return t.lineDefs[n].onRenderCard})).filter((function(t){return!!t}));c.length>0&&(l=r.createElement(Gn,{target:o.current,onDismiss:function(){return s(!1)},setInitialFocus:!0,role:"dialog"},r.createElement(Rs,{isCircularNavigation:!0,direction:vs.vertical},r.createElement(vf,{items:c,role:"alert","aria-roledescription":" ",onRenderCell:function(t){return r.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var f=t.textColor?Ic(t.textColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(i=t.theme)||void 0===i?void 0:i.semanticColors.messageText;return e=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),r.createElement(r.Fragment,null,r.createElement("g",{ref:o,onClick:function(){return s(!0)},"data-is-focusable":!0,style:{cursor:"pointer"}},r.createElement(mf,{text:e,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:f})),l)},bf=function(t){var i,e,o=t.labelWidth?t.labelWidth:105,a=t.chartYTop-20,u=a+7,s=t.scale.range(),l=t.events.map((function(i){return(0,n.Cl)((0,n.Cl)({},i),{x:t.scale(i.date)})}));l.sort((function(t,n){return+t.date-+n.date}));var c=t.strokeColor?Ic(t.strokeColor,null===(i=t.theme)||void 0===i?void 0:i.isInverted):null===(e=t.theme)||void 0===e?void 0:e.palette.black,f=function(t,n){for(var i=[],e=[],r=0,o=t;r<o.length;r++){var a=o[r],u=n(a);-1===i.indexOf(u)&&(e.push(a),i.push(u))}return e}(l,(function(t){return t.date.toString()})).map((function(n,i){return r.createElement("line",{key:i,x1:n.x,x2:n.x,y1:u,y2:t.chartYBottom,stroke:c,strokeDasharray:"8"})})),h=function(t,n,i,e){var r=function(e,r){if(r===t.length)return[];var a=t[r].x,u=a-n;return a<e?[]:r===t.length-1?e<u?[{x:a,anchor:"end",aggregatedIdx:[r]}]:a+n<i?[{x:a,anchor:"start",aggregatedIdx:[r]}]:[]:o(r,e<u?"end":"start")},o=function(e,o){var a="end"===o?t[e].x:t[e].x+n,u=g(t,(function(t){return t.x>a&&(t.x-n>=a||t.x+n<i)}),e+1);-1===u&&(u=t.length);for(var s=[],l=e;l<u;l++)s.push(l);var c=r(a,u);return c.unshift({x:t[e].x,anchor:o,aggregatedIdx:s}),c};return r(e,0)}(l,o+5,s[1],s[0]).map((function(i,e){return r.createElement(yf,(0,n.Cl)({key:e,theme:t.theme},{lineDefs:l,labelDef:i,textY:a,textWidth:o,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel}))}));return r.createElement(r.Fragment,null,f,h)},xf=(0,o.Z)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(gf||(gf={}));var wf=xi((function(t){return t.x})).left,Cf=function(t){function i(i){var e=t.call(this,i)||this;return e._xAxisScale="",e._yAxisScale="",e.eventLabelHeight=36,e._isRTL=(0,a.jI)(),e._injectIndexPropertyInLineChartData=function(t){var i=e.props.allowMultipleShapesForPoints,r=void 0!==i&&i;return t?t.map((function(t,i){var o,a,u;return u=void 0===t.color?_c(i,0,null===(o=e.props.theme)||void 0===o?void 0:o.isInverted):Ic(t.color,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted),(0,n.Cl)((0,n.Cl)({},t),{index:r?i:-1,color:u})})):[]},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getMargins=function(t){e.margins=t},e._initializeLineChartData=function(t,n,i,r,o){e._xAxisScale=t,e._yAxisScale=n,e._renderedColorFillBars=e.props.colorFillBars?e._createColorFillBars(i):[],e.lines=e._createLines(o,i)},e._handleSingleLegendSelectionAction=function(t){e.state.selectedLegend===t.legend?(e.setState({selectedLegend:""}),e._handleLegendClick(t,null)):(e.setState({selectedLegend:t.legend}),e._handleLegendClick(t,t.legend))},e._onHoverCardHide=function(){e.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getBoxWidthOfShape=function(t,n,i){var r=e.props,o=r.allowMultipleShapesForPoints,a=void 0!==o&&o,u=r.strokeWidth,s=void 0===u?4:u,l=e.state.activePoint;return a?l===t?gf.hoverSize:1===n||i?2.5*s:gf.invisibleSize:l===t?gf.hoverSize:gf.invisibleSize},e._getPath=function(t,n,i,r,o,a){var u=e.props.allowMultipleShapesForPoints,s=void 0!==u&&u,l=e._getBoxWidthOfShape(i,r,o),c=s?a%Object.keys(cs).length:0,f=cs[c].widthRatio;return function(t,n,i,e){return["M".concat(t-i/2," ").concat(n,"\n A").concat(i/2," ").concat(i/2," 0 1 0 ").concat(t+i/2," ").concat(n,"\n M").concat(t-i/2," ").concat(n,"\n A ").concat(i/2," ").concat(i/2," 0 1 1 ").concat(t+i/2," ").concat(n,"\n "),"M".concat(t-i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n+i/2,"\n Z"),"M".concat(t-i/2," ").concat(n-.2886*i,"\n H ").concat(t+i/2,"\n L").concat(t," ").concat(n+.5774*i," Z"),"M".concat(t," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n,"\n L").concat(t," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.5774*i,"\n L").concat(t+i/2," ").concat(n+.2886*i,"\n L").concat(t-i/2," ").concat(n+.2886*i," Z"),"M".concat(t-.5*i," ").concat(n-.866*i,"\n L").concat(t+.5*i," ").concat(n-.866*i,"\n L").concat(t+i," ").concat(n,"\n L").concat(t+.5*i," ").concat(n+.866*i,"\n L").concat(t-.5*i," ").concat(n+.866*i,"\n L").concat(t-i," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.851*i,"\n L").concat(t+.6884*i," ").concat(n-.2633*i,"\n L").concat(t+.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.6884*i," ").concat(n-.2633*i,"\n Z"),"M".concat(t-.5001*i," ").concat(n-1.207*i,"\n L").concat(t+.5001*i," ").concat(n-1.207*i,"\n L").concat(t+1.207*i," ").concat(n-.5001*i,"\n L").concat(t+1.207*i," ").concat(n+.5001*i,"\n L").concat(t+.5001*i," ").concat(n+1.207*i,"\n L").concat(t-.5001*i," ").concat(n+1.207*i,"\n L").concat(t-1.207*i," ").concat(n+.5001*i,"\n L").concat(t-1.207*i," ").concat(n-.5001*i,"\n Z")][e]}(t,n,l=f>1?l/f:l,c)},e._getPointFill=function(t,n,i,r){var o=e.state.activePoint,a=e.props,u=a.theme;return a.allowMultipleShapesForPoints,o===n?u.semanticColors.bodyBackground:t},e._createColorFillBars=function(t){var n,i=[];e.state.isSelectedLegend?e._colorFillBars=e.state.selectedColorBarLegend:e._colorFillBars=e.props.colorFillBars;for(var o=as(e._points,qu.LineChart),a=0;a<e._colorFillBars.length;a++){var u=e._colorFillBars[a],s=v(u.legend.replace(/\W/g,"")),l=Ic(u.color,null===(n=e.props.theme)||void 0===n?void 0:n.isInverted);u.applyPattern&&i.push(e._getStripePattern(l,a));for(var c=0;c<u.data.length;c++){var f=u.data[c].startX,h=u.data[c].endX,d=e._legendHighlighted(u.legend)||e._noLegendHighlighted()||e.state.isSelectedLegend?e._getColorFillBarOpacity(u):.1;i.push(r.createElement("rect",{fill:u.applyPattern?"url(#".concat(e._colorFillBarPatternId,"_").concat(a,")"):l,fillOpacity:d,x:e._isRTL?e._xAxisScale(h):e._xAxisScale(f),y:e._yAxisScale(o.endValue)-3,width:Math.abs(e._xAxisScale(h)-e._xAxisScale(f)),height:e._yAxisScale(e.props.yMinValue||0)-e._yAxisScale(o.endValue)+3,key:"".concat(s).concat(c)}))}}return i},e._getStripePattern=function(t,n){return r.createElement("pattern",{id:"".concat(e._colorFillBarPatternId,"_").concat(n),width:16,height:16,key:"".concat(e._colorFillBarPatternId,"_").concat(n),patternUnits:"userSpaceOnUse"},r.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},e._checkInGap=function(t,n,i){for(var e=i,r=!1;e<n.length&&t>n[e].endIndex;)e++;return e<n.length&&t>n[e].startIndex&&t<=n[e].endIndex&&(r=!0),{isInGap:r,gapIndex:e}},e._onMouseOverLargeDataset=function(t,n,i){i.persist();var r=e.props.data.lineChartData,o=e._xAxisScale.invert(jc(i)[0],document.getElementById(e._rectId)),a=wf(r[t].data,o),u=r[t].data[a-1],s=r[t].data[a],l=null,c=null;if(void 0===u&&void 0!==s)l=s.x,c=a;else if(void 0!==u&&void 0===s)l=u.x,c=a-1;else{var f=void 0,h=void 0,d=void 0;switch(ls(r[t].data[0].x,!0)){case $u.DateAxis:f=new Date(o).getTime(),h=u.x.getTime(),d=s.x.getTime(),l=Math.abs(f-h)>Math.abs(f-d)?s.x:u.x,c=Math.abs(f-h)>Math.abs(f-d)?a:a-1;break;case $u.NumericAxis:f=o,h=u.x,d=s.x,l=Math.abs(f-h)>Math.abs(f-d)?s.x:u.x,c=Math.abs(f-h)>Math.abs(f-d)?a:a-1}}var v=r[t].data[c],p=v.xAxisCalloutData,g=v.xAxisCalloutAccessibilityData,y=l instanceof Date?l.toLocaleString():l,b=l instanceof Date?l.getTime():l,x=m(e._calloutPoints,(function(t){return t.x===b})),w=r[t].data[c],C=null===e.state.nearestCircleToHighlight||null!==e.state.nearestCircleToHighlight&&null!==w&&(e.state.nearestCircleToHighlight.x!==w.x||e.state.nearestCircleToHighlight.y!==w.y);x&&C&&(e._uniqueCallOutID="#".concat(e._staticHighlightCircle,"_").concat(t),Ou("#".concat(e._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(e._xAxisScale(w.x))).attr("cy","".concat(e._yAxisScale(w.y))).attr("visibility","visibility"),Ou("#".concat(e._verticalLine)).attr("transform",(function(){return"translate(".concat(e._xAxisScale(w.x),", ").concat(e._yAxisScale(w.y),")")})).attr("visibility","visibility").attr("y2","".concat(n-e._yAxisScale(w.y))),e.setState({nearestCircleToHighlight:w,isCalloutVisible:!0,refSelected:"#".concat(e._staticHighlightCircle,"_").concat(t),stackCalloutProps:x,YValueHover:x.values,dataPointCalloutProps:x,hoverXValue:p||y,xAxisCalloutAccessibilityData:g,activePoint:"",activeLine:t})),x||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:w,activePoint:"",activeLine:t})},e._handleFocus=function(t,n,i,r,o){e._uniqueCallOutID=r;var a=n instanceof Date?n.toLocaleDateString():n,u=n instanceof Date?n.getTime():n,s=m(e._calloutPoints,(function(t){return t.x===u}));if(s){var l=e;Ou("#".concat(e._verticalLine)).attr("transform",(function(){return"translate(".concat(l._xAxisScale(n),", 0)")})).attr("visibility","visibility"),e._refArray.forEach((function(n){n.index===t&&e.setState({isCalloutVisible:!0,refSelected:n.refElement,hoverXValue:i||""+a,YValueHover:s.values,stackCalloutProps:s,dataPointCalloutProps:s,activePoint:r,xAxisCalloutAccessibilityData:o})}))}else e.setState({activePoint:r})},e._handleHover=function(t,n,i,r,o,a,u){u.persist();var s=t instanceof Date?t.toLocaleDateString():t,l=t instanceof Date?t.getTime():t,c=e,f=m(e._calloutPoints,(function(t){return t.x===l}));f?(Ou("#".concat(e._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(t),", ").concat(c._yAxisScale(n),")")})).attr("visibility","visibility").attr("y2","".concat(i-c._yAxisScale(n))),e._uniqueCallOutID!==o&&(e._uniqueCallOutID=o,e.setState({isCalloutVisible:!0,refSelected:"#".concat(o),hoverXValue:r||""+s,YValueHover:f.values,stackCalloutProps:f,dataPointCalloutProps:f,activePoint:o,xAxisCalloutAccessibilityData:a,nearestCircleToHighlight:null,activeLine:null}))):e.setState({activePoint:o,nearestCircleToHighlight:null,activeLine:null})},e._getClickHandler=function(t){return t?{onClick:t}:{}},e._handleMouseOut=function(){Ou("#".concat(e._verticalLine)).attr("visibility","hidden")},e._handleChartMouseLeave=function(){e._uniqueCallOutID=null,e.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},e._handleLegendClick=function(t,n){t.onLegendClick&&t.onLegendClick(n)},e._handleMultipleLineLegendSelectionAction=function(t){var i,r=e.state.selectedLegendPoints.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);i=-1===r?(0,n.fX)((0,n.fX)([],e.state.selectedLegendPoints,!0),[t],!1):e.state.selectedLegendPoints.slice(0,r).concat(e.state.selectedLegendPoints.slice(r+1)),e.props.data&&i.length===e.props.data.lineChartData.length&&(e.props.colorFillBars&&e.props.colorFillBars.length===e.state.selectedColorBarLegend.length||!e.props.colorFillBars)?e._clearMultipleLegendSelections():i.length||e.state.selectedColorBarLegend.length?e.setState({selectedLegendPoints:i,isSelectedLegend:!0}):e._clearMultipleLegendSelections();var o=i.map((function(t){return t.legend}));e._handleLegendClick(t,o)},e._handleMultipleColorFillBarLegendSelectionAction=function(t){var i,r=e.state.selectedColorBarLegend.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);(i=-1===r?(0,n.fX)((0,n.fX)([],e.state.selectedColorBarLegend,!0),[t],!1):e.state.selectedColorBarLegend.slice(0,r).concat(e.state.selectedColorBarLegend.slice(r+1))).length===(e.props.colorFillBars&&e.props.colorFillBars.length)&&(e.props.data&&e.props.data.lineChartData.length===e.state.selectedLegendPoints.length||!e.props.data)?e._clearMultipleLegendSelections():i.length||e.state.selectedLegendPoints.length?e.setState({selectedColorBarLegend:i,isSelectedLegend:!0}):e._clearMultipleLegendSelections();var o=i.map((function(t){return t.legend}));e._handleLegendClick(t,o)},e._clearMultipleLegendSelections=function(){e.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},e._getAriaLabel=function(t,n){var i,r=e._points[t],o=r.data[n],a=o.x instanceof Date?o.x.toLocaleString():o.x,u=o.xAxisCalloutData||a,s=r.legend,l=o.yAxisCalloutData||o.y;return(null===(i=o.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(u,". ").concat(s,", ").concat(l,".")},e._getChartTitle=function(){var t=e.props.data,n=t.chartTitle,i=t.lineChartData;return(n?"".concat(n,". "):"")+"Line chart with ".concat((null==i?void 0:i.length)||0," lines. ")},e.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null},e._refArray=[],e._points=e._injectIndexPropertyInLineChartData(e.props.data.lineChartData),e._colorFillBars=[],e._calloutPoints=ts(e._points)||[],e._circleId=v("circle"),e._lineId=v("lineID"),e._borderId=v("borderID"),e._verticalLine=v("verticalLine"),e._colorFillBarPatternId=v("colorFillBarPattern"),e._tooltipId=v("LineChartTooltipId_"),e._rectId=v("containerRectLD"),e._staticHighlightCircle=v("staticHighlightCircle"),e._createLegendsMemoized=(0,fn.J9)((function(t){return e._createLegends(t)})),e._firstRenderOptimization=!0,e._emptyChartId=v("_LineChart_empty"),i.eventAnnotationProps&&i.eventAnnotationProps.labelHeight&&(e.eventLabelHeight=i.eventAnnotationProps.labelHeight),e}return(0,n.C6)(i,t),i.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=ts(this._points)||[])},i.prototype.render=function(){var t=this,i=this.props,e=i.tickValues,o=i.tickFormat,a=i.eventAnnotationProps,u=i.legendProps,s=i.data;this._points=this._injectIndexPropertyInLineChartData(s.lineChartData);var l=rs(this._points),c=this._points;u&&u.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=ts(c));var f=null;this.props.hideLegend||(f=this._createLegendsMemoized(this._points));var h=(0,n.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),d={tickValues:e,tickFormat:o};return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement(rf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:c,chartType:qu.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:d,legendBars:f,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:l?$u.DateAxis:$u.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(i){return t._xAxisScale=i.xScale,t._yAxisScale=i.yScale,r.createElement(r.Fragment,null,r.createElement("g",null,r.createElement("line",{x1:0,y1:0,x2:0,y2:i.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?r.createElement("rect",{id:t._rectId,width:i.containerWidth,height:i.containerHeight,fill:"transparent"}):r.createElement(r.Fragment,null),r.createElement("g",null,t._renderedColorFillBars,t.lines),a&&r.createElement(bf,(0,n.Cl)({theme:t.props.theme},a,{scale:i.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:i.containerHeight-35}))))}}))},i.prototype._createLegends=function(t){var i=this,e=this.props,o=e.legendProps,a=e.allowMultipleShapesForPoints,u=void 0!==a&&a,s=!(!o||!o.canSelectMultipleLegends),l=t.map((function(t){var e=t.color;return(0,n.Cl)((0,n.Cl)({title:t.legend,color:e,action:function(){s?i._handleMultipleLineLegendSelectionAction(t):i._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){i.setState({activeLegend:""})},hoverAction:function(){i._handleChartMouseLeave(),i.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),u&&{shape:us[t.index%Object.keys(cs).length]})})),c=this.props.colorFillBars?this.props.colorFillBars.map((function(t,n){var e,r=t.legend,o=Ic(t.color,null===(e=i.props.theme)||void 0===e?void 0:e.isInverted);return{title:r,color:o,action:function(){s?i._handleMultipleColorFillBarLegendSelectionAction(t):i._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){i.setState({activeLegend:""})},hoverAction:function(){i._handleChartMouseLeave(),i.setState({activeLegend:r})},opacity:i._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return r.createElement(Ul,(0,n.Cl)({legends:(0,n.fX)((0,n.fX)([],l,!0),c,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},s&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},i.prototype._createLines=function(t,i){var e,o,a,u,s,l,c,f,h,d,v,p,g,m,y,b,x,w,C,M,k,L,S,V,A=this,N=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var D=function(t){var D=[],O=[],P=[],E=T._points[t].legend,F=T._points[t].color,B=T.state.activePoint,H=T.props.theme,_=i-T.margins.bottom+6;if(1===T._points[t].data.length){var I=T._points[t].data[0],W=I.x,R=I.y,z=I.xAxisCalloutData,j=I.xAxisCalloutAccessibilityData,Y="".concat(T._circleId,"_").concat(t),X=T._legendHighlighted(E)||T._noLegendHighlighted()||T.state.isSelectedLegend;P.push(r.createElement("circle",(0,n.Cl)({id:Y,key:Y,r:B===Y?5.5:3.5,cx:T._xAxisScale(W),cy:T._yAxisScale(R),fill:B===Y?H.semanticColors.bodyBackground:F,opacity:X?1:.1,onMouseOver:T._handleHover.bind(T,W,R,_,z,Y,j),onMouseMove:T._handleHover.bind(T,W,R,_,z,Y,j),onMouseOut:T._handleMouseOut,strokeWidth:B===Y?4:0,stroke:B===Y?F:"",role:"img","aria-label":T._getAriaLabel(t,0),"data-is-focusable":X,ref:function(t){A._refCallback(t,Y)},onFocus:function(){return A._handleFocus(Y,W,z,Y,j)},onBlur:T._handleMouseOut},T._getClickHandler(T._points[t].data[0].onDataPointClick))))}var q=0,$=null!==(o=null===(e=T._points[t].gaps)||void 0===e?void 0:e.sort((function(t,n){return t.startIndex-n.startIndex})))&&void 0!==o?o:[];if(T.props.optimizeLargeData&&T._points[t].data.length>1){for(var U=Uc().x((function(t){return A._xAxisScale(t[0])})).y((function(t){return A._yAxisScale(t[1])})).curve(Xc),G="".concat(T._lineId,"_").concat(t),Z="".concat(T._borderId,"_").concat(t),K=(null===(a=T._points[t].lineOptions)||void 0===a?void 0:a.strokeWidth)||T.props.strokeWidth||4,J=(X=T._legendHighlighted(E)||T._noLegendHighlighted()||T.state.isSelectedLegend,[]),Q=0;Q<T._points[t].data.length;Q++)J.push([T._points[t].data[Q].x instanceof Date?T._points[t].data[Q].x.getTime():T._points[t].data[Q].x,T._points[t].data[Q].y]);if(X){var tt=(null===(u=T._points[t].lineOptions)||void 0===u?void 0:u.lineBorderWidth)?Number.parseFloat(T._points[t].lineOptions.lineBorderWidth.toString()):0;tt>0&&O.push(r.createElement("path",{id:Z,key:Z,d:U(J),fill:"transparent",strokeLinecap:null!==(l=null===(s=T._points[t].lineOptions)||void 0===s?void 0:s.strokeLinecap)&&void 0!==l?l:"round",strokeWidth:Number.parseFloat(K.toString())+tt,stroke:(null===(c=T._points[t].lineOptions)||void 0===c?void 0:c.lineBorderColor)||H.semanticColors.bodyBackground,opacity:1})),D.push(r.createElement("path",(0,n.Cl)({id:G,key:G,d:U(J),fill:"transparent","data-is-focusable":!0,stroke:F,strokeWidth:K,strokeLinecap:null!==(h=null===(f=T._points[t].lineOptions)||void 0===f?void 0:f.strokeLinecap)&&void 0!==h?h:"round",onMouseMove:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOver:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOut:T._handleMouseOut},T._getClickHandler(T._points[t].onLineClick),{opacity:1})))}else D.push(r.createElement("path",{id:G,key:G,d:U(J),fill:"transparent","data-is-focusable":!1,stroke:F,strokeWidth:K,strokeLinecap:null!==(v=null===(d=T._points[t].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==v?v:"round",opacity:.1}));var nt=null!==T.state.activeLine&&T.state.activeLine===t;P.push(r.createElement("circle",{id:"".concat(T._staticHighlightCircle,"_").concat(t),key:"".concat(T._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:H.semanticColors.bodyBackground,strokeWidth:4,stroke:F,visibility:nt?"visibility":"hidden",onMouseMove:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOver:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOut:T._handleMouseOut}))}else if(!T.props.optimizeLargeData)for(var it=function(i){var e=T._checkInGap(i,$,q),o=e.isInGap;q=e.gapIndex;var a="".concat(T._lineId,"_").concat(t,"_").concat(i),u="".concat(T._borderId,"_").concat(t,"_").concat(i),s="".concat(T._circleId,"_").concat(t,"_").concat(i),l=T._points[t].data[i-1],c=l.x,f=l.y,h=l.xAxisCalloutData,d=l.xAxisCalloutAccessibilityData,v=T._points[t].data[i],N=v.x,I=v.y,W=T._getPath(T._xAxisScale(c),T._yAxisScale(f),s,i,!1,T._points[t].index),R=(null===(p=T._points[t].lineOptions)||void 0===p?void 0:p.strokeWidth)||T.props.strokeWidth||4,z=T._legendHighlighted(E)||T._noLegendHighlighted()||T.state.isSelectedLegend,j=T._points[t].hideNonActiveDots&&B!==s;if(P.push(r.createElement("path",(0,n.Cl)({id:s,key:s,d:W,"data-is-focusable":z,onMouseOver:T._handleHover.bind(T,c,f,_,h,s,d),onMouseMove:T._handleHover.bind(T,c,f,_,h,s,d),onMouseOut:T._handleMouseOut,onFocus:function(){return A._handleFocus(a,c,h,s,d)},onBlur:T._handleMouseOut},T._getClickHandler(T._points[t].data[i-1].onDataPointClick),{opacity:z&&!j?1:.01,fill:T._getPointFill(F,s,i,!1),stroke:F,strokeWidth:R,role:"img","aria-label":T._getAriaLabel(t,i-1)}))),i+1===T._points[t].data.length){var Y="".concat(s).concat(i,"L"),X="".concat(s).concat(i,"D"),U=T._points[t].hideNonActiveDots&&B!==Y;W=T._getPath(T._xAxisScale(N),T._yAxisScale(I),Y,i,!0,T._points[t].index);var G=T._points[t].data[i],Z=G.xAxisCalloutData,K=G.xAxisCalloutAccessibilityData;P.push(r.createElement(r.Fragment,{key:"".concat(Y,"_container")},r.createElement("path",(0,n.Cl)({id:Y,key:Y,d:W,"data-is-focusable":z,onMouseOver:T._handleHover.bind(T,N,I,_,Z,Y,K),onMouseMove:T._handleHover.bind(T,N,I,_,Z,Y,K),onMouseOut:T._handleMouseOut,onFocus:function(){return A._handleFocus(a,N,Z,Y,K)},onBlur:T._handleMouseOut},T._getClickHandler(T._points[t].data[i].onDataPointClick),{opacity:z&&!U?1:.01,fill:T._getPointFill(F,Y,i,!0),stroke:F,strokeWidth:R,role:"img","aria-label":T._getAriaLabel(t,i)})),r.createElement("circle",{id:X,key:X,r:8,cx:T._xAxisScale(N),cy:T._yAxisScale(I),opacity:0,width:0,onMouseOver:T._handleHover.bind(T,N,I,_,Z,Y,K),onMouseMove:T._handleHover.bind(T,N,I,_,Z,Y,K),onMouseOut:T._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:T._handleMouseOut})))}if(z){if(!o){var J=(null===(g=T._points[t].lineOptions)||void 0===g?void 0:g.lineBorderWidth)?Number.parseFloat(T._points[t].lineOptions.lineBorderWidth.toString()):0;J>0&&O.push(r.createElement("line",{id:u,key:u,x1:T._xAxisScale(c),y1:T._yAxisScale(f),x2:T._xAxisScale(N),y2:T._yAxisScale(I),strokeLinecap:null!==(y=null===(m=T._points[t].lineOptions)||void 0===m?void 0:m.strokeLinecap)&&void 0!==y?y:"round",strokeWidth:Number.parseFloat(R.toString())+J,stroke:(null===(b=T._points[t].lineOptions)||void 0===b?void 0:b.lineBorderColor)||H.semanticColors.bodyBackground,opacity:1})),D.push(r.createElement("line",(0,n.Cl)({id:a,key:a,x1:T._xAxisScale(c),y1:T._yAxisScale(f),x2:T._xAxisScale(N),y2:T._yAxisScale(I),strokeWidth:R,ref:function(t){A._refCallback(t,a)},onMouseOver:T._handleHover.bind(T,c,f,_,h,s,d),onMouseMove:T._handleHover.bind(T,c,f,_,h,s,d),onMouseOut:T._handleMouseOut,stroke:F,strokeLinecap:null!==(w=null===(x=T._points[t].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==w?w:"round",strokeDasharray:null===(C=T._points[t].lineOptions)||void 0===C?void 0:C.strokeDasharray,strokeDashoffset:null===(M=T._points[t].lineOptions)||void 0===M?void 0:M.strokeDashoffset,opacity:1},T._getClickHandler(T._points[t].onLineClick))))}}else o||D.push(r.createElement("line",{id:a,key:a,x1:T._xAxisScale(c),y1:T._yAxisScale(f),x2:T._xAxisScale(N),y2:T._yAxisScale(I),strokeWidth:R,stroke:F,strokeLinecap:null!==(L=null===(k=T._points[t].lineOptions)||void 0===k?void 0:k.strokeLinecap)&&void 0!==L?L:"round",strokeDasharray:null===(S=T._points[t].lineOptions)||void 0===S?void 0:S.strokeDasharray,strokeDashoffset:null===(V=T._points[t].lineOptions)||void 0===V?void 0:V.strokeDashoffset,opacity:.1}))},et=1;et<T._points[t].data.length;et++)it(et);N.push(r.createElement("g",{key:"line_".concat(t),role:"region","aria-label":"".concat(E,", line ").concat(t+1," of ").concat(T._points.length," with ").concat(T._points[t].data.length," data points.")},O,D,P))},T=this,O=this._points.length-1;O>=0;O--)D(O);var P=xf(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var E=Ou(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var F={tooltipCls:P.tooltip,id:this._tooltipId,xAxis:E};E&&es(F)}return N},i.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(t){return t.data.length})).length>0)},i.defaultProps={enableReflow:!0},i}(r.Component),Mf=(0,t.I)(Cf,(function(t){return{tooltip:(0,n.Cl)((0,n.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));function kf(t,n){if((r=t.length)>1)for(var i,e,r,o=1,a=t[n[0]],u=a.length;o<r;++o)for(e=a,a=t[n[o]],i=0;i<u;++i)a[i][1]+=a[i][0]=isNaN(e[i][1])?e[i][0]:e[i][1]}function Lf(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function Sf(t,n){return t[n]}function Vf(t){const n=[];return n.key=t,n}function Af(t,n,i){var e=null,r=Zl(!0),o=null,a=Xc,u=null,s=yc(l);function l(l){var c,f,h,d,v,p=(l=Gl(l)).length,g=!1,m=new Array(p),y=new Array(p);for(null==o&&(u=a(v=s())),c=0;c<=p;++c){if(!(c<p&&r(d=l[c],c,l))===g)if(g=!g)f=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=c-1;h>=f;--h)u.point(m[h],y[h]);u.lineEnd(),u.areaEnd()}g&&(m[c]=+t(d,c,l),y[c]=+n(d,c,l),u.point(e?+e(d,c,l):m[c],i?+i(d,c,l):y[c]))}if(v)return u=null,v+""||null}function c(){return Uc().defined(r).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?qc:Zl(+t),n="function"==typeof n?n:Zl(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?$c:Zl(+i),l.x=function(n){return arguments.length?(t="function"==typeof n?n:Zl(+n),e=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:Zl(+n),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Zl(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Zl(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Zl(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Zl(+t),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(e).y(n)},l.defined=function(t){return arguments.length?(r="function"==typeof t?t:Zl(!!t),l):r},l.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),l):o},l}function Nf(t){return t<0?-1:1}function Df(t,n,i){var e=t._x1-t._x0,r=n-t._x1,o=(t._y1-t._y0)/(e||r<0&&-0),a=(i-t._y1)/(r||e<0&&-0),u=(o*r+a*e)/(e+r);return(Nf(o)+Nf(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function Tf(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function Of(t,n,i){var e=t._x0,r=t._y0,o=t._x1,a=t._y1,u=(o-e)/3;t._context.bezierCurveTo(e+u,r+u*n,o-u,a-u*i,o,a)}function Pf(t){this._context=t}function Ef(t){this._context=t}function Ff(t){return new Pf(t)}Pf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Of(this,this._t0,Tf(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var i=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,Of(this,Tf(this,i=Df(this,t,n)),i);break;default:Of(this,this._t0,i=Df(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=i}}},(function(t){this._context=new Ef(t)}.prototype=Object.create(Pf.prototype)).point=function(t,n){Pf.prototype.point.call(this,n,t)},Ef.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,i,e,r,o){this._context.bezierCurveTo(n,t,e,i,o,r)}};var Bf,Hf=(0,o.Z)(),_f=xi((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(Bf||(Bf={}));var If=function(t){function i(i){var e=t.call(this,i)||this;return e._getMargins=function(t){e.margins=t},e._onRectMouseMove=function(t){t.persist();var n=e.props.data.lineChartData,i=e._xAxisRectScale.invert(jc(t)[0],document.getElementById(e._rectId)),r=_f(n[0].data,i),o=n[0].data[r-1],a=n[0].data[r],u=null,s=null,l=n[0].data.length>0?ls(n[0].data[0].x,!0):null;if(void 0===o&&void 0!==a)u=a.x,s=r;else if(void 0!==o&&void 0===a)u=o.x,s=r-1;else{var c=void 0,f=void 0,h=void 0;switch(l){case $u.DateAxis:c=new Date(i).getTime(),f=o.x.getTime(),h=a.x.getTime(),u=Math.abs(c-f)>Math.abs(c-h)?a.x:o.x,s=Math.abs(c-f)>Math.abs(c-h)?r:r-1;break;case $u.NumericAxis:c=i,f=o.x,h=a.x,u=Math.abs(c-f)>Math.abs(c-h)?a.x:o.x,s=Math.abs(c-f)>Math.abs(c-h)?r:r-1}}var d=n[0].data[s],v=d.xAxisCalloutData,p=d.xAxisCalloutAccessibilityData,g=u instanceof Date?u.toLocaleString():u,y=u instanceof Date?u.getTime():u,b=m(e._calloutPoints,(function(t){return t.x===y})),x=l===$u.DateAxis?u.getTime():u,w=e.state.nearestCircleToHighlight!==x;b&&w&&!e.state.isShowCalloutPending&&e.setState({nearestCircleToHighlight:x,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:e._xAxisRectScale(u),displayOfLine:Bf.show,isCircleClicked:!1,stackCalloutProps:b,YValueHover:b.values,dataPointCalloutProps:b,hoverXValue:v||g,xAxisCalloutAccessibilityData:p,activePoint:""}),b||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,displayOfLine:Bf.hide,isCircleClicked:!1})},e._onRectMouseOut=function(){},e._handleChartMouseLeave=function(){e.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Bf.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},e._getStackedData=function(t,n){var i=function(){var t=Zl([]),n=Lf,i=kf,e=Sf;function r(r){var o,a,u=Array.from(t.apply(this,arguments),Vf),s=u.length,l=-1;for(const t of r)for(o=0,++l;o<s;++o)(u[o][l]=[0,+e(t,u[o].key,l,r)]).data=t;for(o=0,a=Gl(n(u));o<s;++o)u[a[o]].index=o;return i(u,a),u}return r.keys=function(n){return arguments.length?(t="function"==typeof n?n:Zl(Array.from(n)),r):t},r.value=function(t){return arguments.length?(e="function"==typeof t?t:Zl(+t),r):e},r.order=function(t){return arguments.length?(n=null==t?Lf:"function"==typeof t?t:Zl(Array.from(t)),r):n},r.offset=function(t){return arguments.length?(i=null==t?kf:t,r):i},r}().keys(t)(n),r=vi(i[i.length-1],(function(t){return t[1]})),o=[];return i.forEach((function(t){var n=[];t.forEach((function(t){n.push({values:t,xVal:t.data.xVal})})),o.push(n)})),e._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:r}},e._createDataSet=function(t){if(e.props.enablePerfOptimization&&e._enableComputationOptimization){var n=[],i=[],r=[],o=[],a=ts(t);t&&t.length&&t.forEach((function(t){r.push(t.color),o.push(t.opacity||1),n.push.apply(n,t.data)}));var u={};n.forEach((function(t){var n=t.x instanceof Date?t.x.toLocaleString():t.x;u[n]?u[n].push(t):u[n]=[t]})),Object.keys(u).forEach((function(t){var n=u[t],e={};n.forEach((function(t,n){e.xVal=t.x,e["chart".concat(n)]=t.y})),i.push(e)}));for(var s=i&&Object.keys(i[0]).length,l=[],c=0;c<s-1;c++){var f="chart".concat(c);l.push(f)}var h=e._getStackedData(l,i);return{colors:r,opacity:o,keys:l,stackedInfo:h,calloutPoints:a}}var d=[],v=[],p=[],g=[];a=ts(t),t&&t.length&&t.forEach((function(t){p.push(t.color),g.push(t.opacity||1),d.push.apply(d,t.data)}));for(var m=d,y=function(){var t=m[0].x instanceof Date?m[0].x.toLocaleString():m[0].x,n=m.filter((function(n){return(n.x instanceof Date?n.x.toLocaleString():n.x)===t})),i={};n.forEach((function(t,n){i.xVal=t.x,i["chart".concat(n)]=t.y})),v.push(i);var e=m[0].x instanceof Date?m[0].x.toLocaleString():m[0].x;m=m.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)!==e}))};m.length;)y();for(s=v&&Object.keys(v[0]).length,l=[],c=0;c<s-1;c++)f="chart".concat(c),l.push(f);return h=e._getStackedData(l,v),{colors:p,opacity:g,keys:l,stackedInfo:h,calloutPoints:a}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getGraphData=function(t,n,i,r,o){e._chart=e._drawGraph(i,t,n,o)},e._getLegendData=function(t){var i=[];return t.forEach((function(t){var n=t.color;if(!(i.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var r={title:t.legend,color:n,action:function(){e._onLegendClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};i.push(r)}})),r.createElement(Ul,(0,n.Cl)({legends:i,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps))},e._onDataPointClick=function(t){t&&t(),e.setState({isCircleClicked:!0})},e._getOpacity=function(t){return e._isMultiStackChart?e._legendHighlighted(t)||e._noLegendHighlighted()?.7:.1:.7},e._getLineOpacity=function(t){if(e._isMultiStackChart){var n=.3;return e.state.isCalloutVisible&&(n=1),e._noLegendHighlighted()||(n=e._legendHighlighted(t)?0:.1),n}return 1},e._updateCircleFillColor=function(t,n,i){var r=n;return e.state.nearestCircleToHighlight!==t&&e.state.activePoint!==i||(e._highlightedCircleId=i,e.state.isCircleClicked||(r=e.props.theme.semanticColors.bodyBackground)),r},e._drawGraph=function(t,i,o,a){var u,s=e._addDefaultColors(e.props.data.lineChartData),l=e.props.data,c=l.pointOptions,f=l.pointLineOptions,h=Af().x((function(t){return i(t.xVal)})).y0((function(t){return o(t.values[0])})).y1((function(t){return o(t.values[1])})).curve(Ff),d=Uc().x((function(t){return i(t.xVal)})).y((function(t){return o(t.values[1])})).curve(Ff),v=[];e._stackedData.forEach((function(t,a){v.push(r.createElement(r.Fragment,{key:"".concat(a,"-graph-").concat(e._uniqueIdForGraph)},e.props.enableGradient&&r.createElement("defs",null,r.createElement("linearGradient",{id:"gradient_".concat(a),x1:"0%",x2:"0%",y1:"0%",y2:"100%"},r.createElement("stop",{offset:"0",stopColor:e._colors[a]}),r.createElement("stop",{offset:"100%",stopColor:"transparent"}))),r.createElement("path",(0,n.Cl)({id:"".concat(a,"-line-").concat(e._uniqueIdForGraph),d:d(t),fill:"transparent",strokeWidth:3,stroke:e._colors[a],opacity:e._getLineOpacity(s[a].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},s[a].lineOptions)),1===t.length?r.createElement("circle",{id:"".concat(a,"-graph-").concat(e._uniqueIdForGraph),cx:i(t[0].xVal),cy:o(t[0].values[1]),r:6,stroke:e._colors[a],strokeWidth:3,fill:e._colors[a],opacity:e._opacity[a],fillOpacity:e._getOpacity(s[a].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove}):r.createElement("path",(0,n.Cl)({id:"".concat(a,"-graph-").concat(e._uniqueIdForGraph),d:h(t),fill:e.props.enableGradient?"url(#gradient_".concat(a,")"):e._colors[a],opacity:e._opacity[a],fillOpacity:e._getOpacity(s[a].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e.props.optimizeLargeData&&{"data-is-focusable":e._legendHighlighted(s[a].legend)||e._noLegendHighlighted(),role:"img","aria-label":"".concat(s[a].legend,", series ").concat(a+1," of ").concat(s.length," with ").concat(s[a].data.length," data points.")}))))}));var p=c&&c.r?Number(c.r):8;e._stackedData.forEach((function(t,a){s.length!==a&&(e.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,l){var f=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(e.state.nearestCircleToHighlight===f){var h="".concat(e._circleId,"_").concat(a*e._stackedData[0].length+l);u=s[a].color,v.push(r.createElement("circle",(0,n.Cl)({key:h,id:h,cx:i(t.xVal),cy:o(t.values[1]),stroke:u,strokeWidth:3,fill:e._updateCircleFillColor(f,u,h),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,s[a].data[l].onDataPointClick)},c,{r:e._getCircleRadius(f,p,h)})))}})):v.push(r.createElement("g",{key:"".concat(a,"-dots-").concat(e._uniqueIdForGraph),d:h(t),clipPath:"url(#clip)",role:"region","aria-label":"".concat(s[a].legend,", series ").concat(a+1," of ").concat(s.length," with ").concat(s[a].data.length," data points.")},t.map((function(t,l){var f="".concat(e._circleId,"_").concat(a*e._stackedData[0].length+l),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;return u=s[a].color,r.createElement("circle",(0,n.Cl)({key:f,id:f,"data-is-focusable":e._legendHighlighted(s[a].legend)||e._noLegendHighlighted(),cx:i(t.xVal),cy:o(t.values[1]),stroke:u,strokeWidth:3,fill:e._updateCircleFillColor(h,u,f),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,s[a].data[l].onDataPointClick),onFocus:function(){return e._handleFocus(a,l,f)},onBlur:e._handleBlur},c,{r:e._getCircleRadius(h,p,f),role:"img","aria-label":e._getAriaLabel(a,l)}))})))))})),v.push(r.createElement("line",(0,n.Cl)({id:e._verticalLineId,key:e._verticalLineId,x1:e.state.lineXValue,y1:0,x2:e.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:u,opacity:.5,visibility:e.state.displayOfLine},f)));var g=Hf(e.props.styles,{theme:e.props.theme});if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var m=Ou(a).call(i);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var y={tooltipCls:g.tooltip,id:e._tooltipId,xAxis:m};m&&es(y)}return v},e._getCircleRadius=function(t,n,i){var r=e.state,o=r.isCircleClicked,a=r.nearestCircleToHighlight,u=r.activePoint;return o&&a===t?1:a===t||u===i?n:0},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._addDefaultColors=function(t){return t?t.map((function(t,i){var r,o,a;return a=void 0===t.color?_c(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted):Ic(t.color,null===(o=e.props.theme)||void 0===o?void 0:o.isInverted),(0,n.Cl)((0,n.Cl)({},t),{color:a})})):[]},e._handleFocus=function(t,n,i){var r=e.props.data.lineChartData[t].data[n],o=r.x,a=r.y,u=r.xAxisCalloutData,s=o instanceof Date?o.toLocaleString():o,l=o instanceof Date?o.getTime():o,c=e._calloutPoints.find((function(t){return t.x===l}));c.values=c.values.filter((function(t){return t.y===a})),e.setState({refSelected:"#".concat(i),isCalloutVisible:!0,hoverXValue:u||s,YValueHover:c.values,stackCalloutProps:c,dataPointCalloutProps:c,activePoint:i})},e._handleBlur=function(){e.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},e._getChartTitle=function(){var t=e.props.data,n=t.chartTitle,i=t.lineChartData;return(n?"".concat(n,". "):"")+"Area chart with ".concat((null==i?void 0:i.length)||0," data series. ")},e._createSet=(0,fn.J9)(e._createDataSet),e.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Bf.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},_n("AREA CHART",i,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),e._uniqueIdForGraph=v("areaChart_"),e._verticalLineId=v("verticalLine_"),e._circleId=v("circle"),e._rectId=v("rectangle"),e._tooltipId=v("AreaChartTooltipID"),e._enableComputationOptimization=!0,e._firstRenderOptimization=!0,e._emptyChartId=v("_AreaChart_empty"),e}return(0,n.C6)(i,t),i.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},i.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var i=this.props.data.lineChartData,e=this._addDefaultColors(i),o=this._createSet(e),a=o.colors,u=o.opacity,s=o.stackedInfo,l=o.calloutPoints;this._calloutPoints=l;var c=rs(e);this._colors=a,this._opacity=u,this._stackedData=s.stackedData;var f=this._getLegendData(e),h={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},d=(0,n.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return r.createElement(rf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:e,chartType:qu.AreaChart,calloutProps:d,legendBars:f,isCalloutForStack:!0,xAxisType:c?$u.DateAxis:$u.NumericAxis,tickParams:h,maxOfYVal:s.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(n){t._xAxisRectScale=n.xScale;var i=t._xAxisRectScale.ticks(),e=t._xAxisRectScale(i[i.length-1]),o=n.containerHeight-t.margins.top;return r.createElement(r.Fragment,null,r.createElement("g",null,r.createElement("rect",{id:t._rectId,width:e,height:o,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),r.createElement("g",null,t._chart))}}))}return r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},i.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},i.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},i.prototype._getAriaLabel=function(t,n){var i,e=this.props.data.lineChartData[t],r=e.data[n],o=r.x instanceof Date?r.x.toLocaleString():r.x,a=r.xAxisCalloutData||o,u=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(a,". ").concat(u,", ").concat(s,".")},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},i}(r.Component),Wf=(0,t.I)(If,(function(t){return{tooltip:(0,n.Cl)((0,n.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Rf=function(t,n){var i=t.color;return{arcRoot:{fill:i},arcRootFocussed:{fill:i,stroke:(null==n?void 0:n.palette.black)||jt.bp.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==n?void 0:n.palette.black)||jt.bp.black,outline:"none"}}},zf=function(t){function i(n){var i=t.call(this,n)||this;return i.updateChart=function(t){Yf(t)},i._onFocus=function(){i.setState({isArcFocused:!0})},i._onBlur=function(){i.setState({isArcFocused:!1})},i.state={isArcFocused:!1},i._arcId=v("piechart_arc"),i}return(0,n.C6)(i,t),i.getDerivedStateFromProps=function(t){return Yf(t),null},i.prototype.render=function(){var t,i=this,e=this.props.arc,a=(0,o.Z)()((function(t){return Rf(t,i.props.theme)}),(0,n.Cl)({},this.props));return r.createElement("path",{d:e(this.props.data),className:"".concat(this.state.isArcFocused?a.arcRootFocussed:a.arcRoot),onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},i.defaultProps={arc:Lc()},i}(r.Component),jf=function(t){function i(n){var i=t.call(this,n)||this;return i._isRTL=(0,a.jI)(),i._arcId=v("piechart_arc"),i}return(0,n.C6)(i,t),i.prototype.render=function(){var n,i,e=this,a=this.props,u=a.data,s=a.culture,l=Lc().centroid({endAngle:(null==u?void 0:u.endAngle)||0,startAngle:(null==u?void 0:u.startAngle)||0,padAngle:null==u?void 0:u.padAngle,innerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||0,outerRadius:(null===(i=this.props)||void 0===i?void 0:i.outerRadius)||4}),c=l[0],f=l[1],h=(0,o.Z)()((function(t){return Rf(t,e.props.theme)})),d=(((null==u?void 0:u.startAngle)||0)+((null==u?void 0:u.endAngle)||0))/2,v="".concat(null==u?void 0:u.data.x,"-").concat((0,Zn.U)(null==u?void 0:u.data.y,s));return r.createElement("g",{className:"".concat(h.arc," arc"),"data-is-focusable":!0,id:this._arcId,onFocus:this._onFocus,onBlur:this._onBlur,"aria-label":v,role:"img"},t.prototype.render.call(this),r.createElement(Jc,{content:v,textProps:{x:c,y:f,dominantBaseline:d>Math.PI/2&&d<3*Math.PI/2?"hanging":"auto",textAnchor:!this._isRTL&&d>Math.PI||this._isRTL&&d<Math.PI?"end":"start","aria-label":"".concat(null==u?void 0:u.data.x,"-").concat((0,Zn.U)(null==u?void 0:u.data.y,s)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:ns}))},i}(zf);function Yf(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Xf,qf=function(t){function i(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n){return r.createElement(jf,{culture:i.props.culture,key:n,data:t,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:"".concat(i.colors(n)),theme:i.props.theme})},i}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,o=n.width,a=n.height,u=n.chartTitle,s=n.theme,l=[];if(e&&!this.props.colors)for(var c=0;c<e.length;c++)l.push(_c(c,0,null==s?void 0:s.isInverted));var f=this.props.colors,h=void 0===f?l:f;this.colors=Ma().range(h.map((function(t){return Ic(t)})));var d=i(e),v="translate(".concat(o/2,", ").concat(a/2,")");return r.createElement(Rs,{direction:vs.domOrder},r.createElement("svg",{width:o,height:a,"aria-label":u},r.createElement("g",{className:"pie",transform:v},d.map((function(n,i){return t.arcGenerator(n,i)})))))},i.defaultProps={pie:fc().padAngle(.01).sort(null).value((function(t){return t.y}))},i}(r.Component),$f=(0,o.Z)(),Uf=function(t){function i(n){var i=t.call(this,n)||this;return i._emptyChartId=v("_PieChart_empty"),i}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this.props,n=t.data,i=t.width,e=t.height,o=t.colors,a=t.chartTitle,u=this.props,s=u.theme,l=u.className,c=u.styles,f=u.culture;this._classNames=$f(c,{theme:s,width:i,height:e,className:l});var h=Math.min(i-80,e-32)/2;return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement("div",{className:this._classNames.root},this.props.chartTitle&&r.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),r.createElement(qf,{culture:f,width:i,height:e,outerRadius:h,innerRadius:1,data:n,colors:o,chartTitle:a,theme:s}))},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0)},i.defaultProps={data:[],width:600,height:350},i}(r.Component),Gf=(0,t.I)(Uf,(function(t){var i=t.className,e=t.theme,r=t.width+30,o=t.height+10;return{root:[e.fonts.medium,"ms-PieChart",i,{width:r+40}],chart:[{padding:20,width:r,height:o,boxSizing:"content-box"}],chartTitle:[(0,n.Cl)({textAlign:"center"},e.fonts.mediumPlus)]}})),Zf=(0,o.Z)(),Kf=function(t){function i(n){var i=t.call(this,n)||this;return i._isRTL=(0,a.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.setState({isCalloutVisible:!1})},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._legendHighlighted=function(t){return i.state.selectedLegend===t||""===i.state.selectedLegend&&i.state.activeLegend===t},i._noLegendHighlighted=function(){return""===i.state.selectedLegend&&""===i.state.activeLegend},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(e,".")},i.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},i._refArray=[],i._onLeave=i._onLeave.bind(i),i._refCallback=i._refCallback.bind(i),i._onBarLeave=i._onBarLeave.bind(i),i._calloutId=v("callout"),i._emptyChartId=v("_SBC_empty"),i.barChartSvgRef=r.createRef(),i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},i.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var t=this.props,i=t.data,e=t.benchmarkData,o=t.targetData,a=t.hideNumberDisplay,u=t.ignoreFixStyle,s=t.culture,l=this.props.theme.palette,c=u||i.chartData.length>2?this.props.barHeight:12;e&&(e.color=e.color||l.neutralTertiary),o&&(o.color=o.color||l.neutralSecondary);var f=this._createBarsAndLegends(i,c,l,e,o),h=!1===a&&!u&&2===i.chartData.length,d=!1===a&&!u&&1===i.chartData.length,v=i.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),p=0;e&&v&&(p=e.data/v*100);var g=0;o&&v&&(g=o.data/v*100);var m=!1===this.props.hideLegend&&(u||i.chartData.length>2);this._classNames=Zf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:e?e.color:"",benchmarkRatio:p,targetColor:o?o.color:"",targetRatio:g,showTriangle:!(!e&&!o)});var b=function(){return(0,Zn.U)(i.chartData[0].data?i.chartData[0].data:0,s)};return r.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},r.createElement(Rs,{direction:vs.horizontal},r.createElement("div",{className:this._classNames.chartTitle},i.chartTitle&&r.createElement(Qs,{className:this._classNames.chartTitleLeft,content:i.chartTitle,accessibilityData:i.chartTitleAccessibilityData}),h&&r.createElement("div",(0,n.Cl)({},fs(i.chartDataAccessibilityData,"text",!1)),r.createElement("span",{className:this._classNames.ratioNumerator},b()),!this.props.hideDenominator&&r.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Zn.U)(v,s))),d&&r.createElement("div",(0,n.Cl)({className:this._classNames.ratioNumerator},fs(i.chartDataAccessibilityData,"text",!1)),b())),(e||o)&&r.createElement("div",{className:this._classNames.benchmarkContainer},e&&r.createElement("div",{className:this._classNames.benchmark,role:"text"}),o&&r.createElement("div",{className:this._classNames.target,role:"text"}))),r.createElement(Rs,{direction:vs.horizontal},r.createElement("div",null,r.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==i?void 0:i.chartTitle},r.createElement("g",null,f[0]),r.createElement(Gn,(0,n.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:y.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,fs(this.state.callOutAccessibilityData,"text",!1)),r.createElement(r.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):r.createElement(ys.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:s})))))),m&&r.createElement("div",{className:this._classNames.legendContainer},f[1]))}return r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},i.prototype._adjustProps=function(){this._classNames=Zf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},i.prototype._createBarsAndLegends=function(t,i,e,o,a){var u,s=this,l=(null===(u=t.chartData)||void 0===u?void 0:u.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,c=this.state.barSpacingInPercent*(l-1),f=[e.blueLight,e.blue,e.blueMid,e.red,e.black],h=[],d=[],p=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),g=0,m=0,y=0;t.chartData.map((function(t,n){var i=t.data?t.data:0;return(m=i/p*100)<1&&0!==m?m=1:m>99&&100!==m&&(m=99),y+=m}));var b=0!==y?y/(100-c):1,x=t.chartData.map((function(t,n){var e=t.color?t.color:f[Math.floor(4*Math.random()+1)],o=t.data?t.data:0,a={title:t.legend,color:e,action:p>0?function(){s._onClick(t.legend)}:void 0,hoverAction:p>0?function(){s._handleChartMouseLeave(),s._onHover(t.legend)}:void 0,onMouseOutAction:p>0?function(){s._onLeave()}:void 0};t.placeHolder||h.push(a),n>0&&(g+=m),(m=o/p*100)<1&&0!==m?m=1/b:m>99&&100!==m?m=99/b:m/=b,d.push(g);var u=s.props.styles,l=!(!s._legendHighlighted(t.legend)&&!s._noLegendHighlighted());return s._classNames=Zf(u,{theme:s.props.theme,shouldHighlight:l,href:s.props.href}),r.createElement("g",{key:n,className:s._classNames.opacityChangeOnHover,ref:function(t){s._refCallback(t,a.title)},"data-is-focusable":!s.props.hideTooltip&&l,onFocus:s._onBarFocus.bind(s,o,e,t),onBlur:s._onBarLeave,"aria-label":s._getAriaLabel(t),role:"img",onMouseOver:s._onBarHover.bind(s,o,e,t),onMouseMove:s._onBarHover.bind(s,o,e,t),onMouseLeave:s._onBarLeave,pointerEvents:"all",onClick:s.props.href?s._redirectToUrl.bind(s,s.props.href):t.onClick},r.createElement("rect",{key:n,id:v("_SBC_bar"),x:"".concat(s._isRTL?100-d[n]-m-s.state.barSpacingInPercent*n:d[n]+s.state.barSpacingInPercent*n,"%"),y:0,width:m+"%",height:i,fill:e}))}));this._addLegend(h,o),this._addLegend(h,a);var w=r.createElement(Ul,(0,n.Cl)({legends:h,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===p?[this._generateEmptyBar(i,this.props.barBackgroundColor?this.props.barBackgroundColor:e.neutralLight)]:x,w]},i.prototype._onBarFocus=function(t,n,i){var e=this;this._refArray.forEach((function(r){r.index===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData})}))},i.prototype._addLegend=function(t,n){if(n){var i={title:n.legend,color:n.color,shape:"triangle"};t.push(i)}},i.prototype._generateEmptyBar=function(t,n){return r.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},r.createElement("rect",{key:0,id:v("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:t,fill:n}))},i.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},i.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onHover=function(t){this.setState({activeLegend:t})},i.prototype._onLeave=function(){this.setState({activeLegend:""})},i.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData}))},i.prototype._onBarLeave=function(){},i.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},i.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},i}(r.Component),Jf=(0,t.I)(Kf,(function(t){var i,e,r=t.className,o=t.width,a=t.barHeight,u=t.shouldHighlight,s=t.theme,l=t.href,c=t.benchmarkColor,f=t.benchmarkRatio,h=t.targetColor,d=t.targetRatio,v=t.showTriangle;return{root:[s.fonts.medium,"ms-StackedBarChart",{width:o||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:a||12,display:"block",marginBottom:v?"16px":"10px",overflow:"visible"},chartTitle:(0,n.Cl)((0,n.Cl)({},s.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:s.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:u?"":"0.1",cursor:l?"pointer":"default",selectors:{"&:focus":{stroke:s.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:jt.s.medium,fontWeight:jt.BO.semibold,color:s.palette.neutralPrimary},ratioDenominator:{fontSize:jt.s.medium,color:s.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+f+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c,marginBottom:"4px",selectors:(i={},i[jt.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(c,", ").concat(c,")")},i)},target:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(e={},e[jt.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},e)}}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(Xf||(Xf={}));var Qf,th=(0,o.Z)(),nh=function(t){function i(i){var e=t.call(this,i)||this;return e._isRTL=(0,a.jI)(),e._adjustProps=function(){var t=e.props,n=t.theme,i=t.className,r=t.styles,o=t.width,a=t.barHeight;e._classNames=th(r,{legendColor:e.state.color,theme:n,width:o,className:i,barHeight:a})},e._getLegendData=function(t,i,o){var a=[o.blueLight,o.blue,o.blueMid,o.red,o.black],u=[];return t.forEach((function(t,n){var r=t.chartData.filter((function(t){return!t.placeHolder}));r.length<3?void 0!==i[n]&&i[n]&&r.forEach((function(t){var n=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(u.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){e._onClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onHover(t.legend)},onMouseOutAction:function(){e._onLeave()}};u.push(i)}})):r.forEach((function(t){var n=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(u.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){e._onClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onHover(t.legend)},onMouseOutAction:function(){e._onLeave()}};u.push(i)}}))})),r.createElement(Ul,(0,n.Cl)({legends:u,overflowProps:e.props.legendsOverflowProps,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard,overflowText:e.props.legendsOverflowText},e.props.legendProps))},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1})},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(e,".")},e._computeLongestBarTotalValue=function(){var t=0;return e.props.data.forEach((function(n){var i=n.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0);t=Math.max(t,i)})),t},e.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},e._onLeave=e._onLeave.bind(e),e._onBarLeave=e._onBarLeave.bind(e),e._calloutId=v("callout"),e.barChartSvgRef=r.createRef(),e._emptyChartId=v("_MSBC_empty"),e._barId=v("_MSBC_rect_"),e._barIdPlaceholderPartToWhole=v("_MSBC_rect_partToWhole_"),e._barIdEmpty=v("_MSBC_rect_empty"),e}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},i.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var i=this.props,e=i.data,o=i.theme,a=i.culture;this._adjustProps();var u=o.palette,s=this._getLegendData(e,this.props.hideRatio,u),l=this.state.isCalloutVisible;this._classNames=th(this.props.styles,{legendColor:this.state.color,theme:o,variant:this.props.variant,hideLabels:this.props.hideLabels});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,f=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=e.map((function(n,i){var e=t._createBarsAndLegends(n,t.props.barHeight,u,t.props.hideRatio[i],t.props.hideDenominator[i],t.props.href,i);return r.createElement("div",{key:i,id:"_MSBC_bar-".concat(i)},e)}));return r.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&r.createElement("div",{className:this._classNames.legendContainer},s),r.createElement(Gn,(0,n.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&l),directionalHint:y.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,fs(this.state.callOutAccessibilityData,"text",!1)),r.createElement(r.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):r.createElement(ys.ChartHoverCard,{Legend:c,YValue:f,color:this.state.color,culture:a}))))}return r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},i.prototype._createBarsAndLegends=function(t,i,e,o,a,u,s){var l,c,f=this,h=(null===(l=t.chartData)||void 0===l?void 0:l.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,d=this.state.barSpacingInPercent*(h-1),v=this.props.culture,p=[e.blueLight,e.blue,e.blueMid,e.red,e.black],g=[],m=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),y=this.props.variant===Xf.AbsoluteScale?this._longestBarTotalValue:m,b=0;if(t.chartData.map((function(t,n){var i=(t.data?t.data:0)/y*100||0;return i<1&&0!==i?i=1:i>99&&100!==i&&(i=99),b+=i})),this.props.variant===Xf.AbsoluteScale){var x=0===y?0:(y-m)/y*100;x<1&&0!==x?x=1:x>99&&100!==x&&(x=99),b+=x}var w=0!==b?b/(100-d):1,C=0,M=0,k=t.chartData.map((function(t,n){var o=t.color?t.color:t.placeHolder?e.neutralLight:p[Math.floor(4*Math.random()+1)],a=t.data?t.data:0;n>0&&(C+=M),(M=a/y*100?a/y*100:0)<1&&0!==M?M=1/w:M>99&&100!==M?M=99/w:M/=w,g.push(C);var l=f.props.styles,c=!(!f._legendHighlighted(t.legend)&&!f._noLegendHighlighted());return f._classNames=th(l,{theme:f.props.theme,shouldHighlight:c,href:u,variant:f.props.variant,hideLabels:f.props.hideLabels}),r.createElement("g",{key:n,className:t.placeHolder?f._classNames.placeHolderOnHover:f._classNames.opacityChangeOnHover,ref:function(n){f._refCallback(n,t.legend)},"data-is-focusable":!f.props.hideTooltip&&c,onFocus:f._onBarFocus.bind(f,a,o,t),onBlur:f._onBarLeave,role:"img","aria-label":f._getAriaLabel(t),onMouseOver:t.placeHolder?void 0:f._onBarHover.bind(f,a,o,t),onMouseMove:t.placeHolder?void 0:f._onBarHover.bind(f,a,o,t),onMouseLeave:t.placeHolder?void 0:f._onBarLeave,onClick:u?t.placeHolder?void 0:f._redirectToUrl.bind(f,u):t.onClick},r.createElement("rect",{key:n,id:"".concat(f._barId,"-").concat(s,"-").concat(n),x:"".concat(f._isRTL?100-g[n]-M-f.state.barSpacingInPercent*n:g[n]+f.state.barSpacingInPercent*n,"%"),y:0,width:M+"%",height:i,fill:o}))}));if(this.props.variant!==Xf.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&k.push(r.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,u)},r.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:i,fill:e.neutralLight}))),0===m&&k.push(r.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,u)},r.createElement("rect",{key:0,id:this._barIdEmpty,x:"0%",y:0,width:"100%",height:i,fill:e.neutralLight})));else{var L=!1,S=0;this._noLegendHighlighted()?(L=!0,S=m):null===(c=t.chartData)||void 0===c||c.forEach((function(t){f._legendHighlighted(t.legend)&&(L=!0,S+=t.data?t.data:0)})),L&&k.push(r.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(g[g.length-1]||0)-M-d:(g[g.length-1]||0)+M+d,"%"),textAnchor:"start",y:i/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(S),role:"img"},ds(S)))}var V=void 0!==o&&o,A=this.props.variant!==Xf.AbsoluteScale&&!V&&2===t.chartData.length,N=this.props.variant!==Xf.AbsoluteScale&&!V&&1===t.chartData.length,D=function(){return(0,Zn.U)(t.chartData[0].data?t.chartData[0].data:0,v)};return r.createElement("div",{className:this._classNames.singleChartRoot},r.createElement(Rs,{direction:vs.horizontal},r.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&r.createElement(Qs,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),A&&r.createElement("div",(0,n.Cl)({},fs(t.chartDataAccessibilityData,"text",!1)),r.createElement("span",{className:this._classNames.ratioNumerator},D()),!a&&r.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Zn.U)(m,v))),N&&r.createElement("div",(0,n.Cl)({className:this._classNames.ratioNumerator},fs(t.chartDataAccessibilityData,"text",!1)),D()))),r.createElement(Rs,{direction:vs.horizontal},r.createElement("div",{className:this._classNames.chartWrapper},r.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},k))))},i.prototype._onBarFocus=function(t,n,i){var e=this;this.state.refArray.forEach((function(r){r.legendText===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData})}))},i.prototype._refCallback=function(t,n){this.state.refArray.push({legendText:n,refElement:t})},i.prototype._onHover=function(t){this.setState({activeLegend:t})},i.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onLeave=function(){this.setState({activeLegend:""})},i.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData}))},i.prototype._onBarLeave=function(){},i.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length&&(!t.chartTitle||""===t.chartTitle)})).length)},i.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},i}(r.Component),ih=(0,t.I)(nh,(function(t){var i=t.className,e=t.width,r=t.barHeight,o=t.shouldHighlight,a=t.theme,u=t.href,s=t.variant,l=t.hideLabels;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:e||"100%"},i],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:(0,n.Cl)((0,n.Cl)({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:s===Xf.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:e||"100%",display:"flex",flexDirection:"column",marginBottom:s===Xf.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:u?"pointer":"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:jt.s.medium,fontWeight:jt.BO.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:jt.s.medium,color:a.palette.neutralPrimary},placeHolderOnHover:{opacity:o?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:u?"pointer":"default"},barLabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:s!==Xf.AbsoluteScale||l?0:40}}})),eh=function(t,n){var i=function(t){if(!(t.length<2)){t=t.sort((function(t,n){return t instanceof Date?t.getTime()-n.getTime():t-n}));for(var n=Number.MAX_VALUE,i=1;i<t.length;i++){var e=t[i]instanceof Date?t[i].getTime()-t[i-1].getTime():t[i]-t[i-1];n=Math.min(n,e)}return[n,t[0]instanceof Date?t[t.length-1].getTime()-t[0].getTime():t[t.length-1]-t[0]]}}(t);if(!i||0===i[1])return 16;var e=i[0],r=i[1];return Math.round(n*e/(2*r+e))};!function(t){t.show="visibility",t.hide="hidden"}(Qf||(Qf={}));var rh,oh=(0,o.Z)(),ah=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,a.jI)(),e._createLine=function(t,n,i,o,a){var u;void 0===i&&(i=0),void 0===o&&(o=0);var s=e._xAxisType===$u.StringAxis,l=e._getScales(i,o).xBarScale,c=e._createColors(),f=e.props.theme,h=e.props,d=h.data,p=h.lineLegendColor,g=void 0===p?f.palette.yellow:p,m=h.lineLegendText,y=[],b=[];d&&d.forEach((function(t,n){var i;t.lineData&&t.lineData.y&&y.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(i=t.lineData.useSecondaryYScale)&&void 0!==i&&i,point:t,index:n})}));var x=Uc().x((function(n){return s?l(n.x)+.5*l.bandwidth():t(n.x)})).y((function(t){return t.useSecondaryYScale&&a?a(t.y):n(t.y)})),w=!(!e._legendHighlighted(m)&&!e._noLegendHighlighted()),C=(null===(u=e.props.lineOptions)||void 0===u?void 0:u.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0;C>0&&b.push(r.createElement("path",{key:v("_VBC_line_"),id:v("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*C,stroke:f.semanticColors.bodyBackground})),b.push(r.createElement("path",{key:v("_VBC_line_"),id:v("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:g}));var M=y.map((function(i,o){var u,f={refElement:null};return r.createElement("circle",{key:o,id:v("_VBC_point_"),cx:s?l(i.x)+.5*l.bandwidth():t(i.x),cy:i.useSecondaryYScale&&a?a(i.y):n(i.y),onMouseOver:e._legendHighlighted(m)?e._lineHover.bind(e,i.point):e._onBarHover.bind(e,i.point,c(i.y)),onMouseOut:e._onBarLeave,r:e._getCircleVisibilityAndRadius(i.x,m).radius,stroke:g,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:e._getCircleVisibilityAndRadius(i.x,m).visibility,onClick:null===(u=i.point.lineData)||void 0===u?void 0:u.onClick,"data-is-focusable":e._legendHighlighted(m),ref:function(t){return f.refElement=t},onFocus:e._lineFocus.bind(e,i.point,f),onBlur:e._handleChartMouseLeave})}));return r.createElement(r.Fragment,null,b,M)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state,r=i.selectedLegend,o=i.activeXdataPoint;return""!==r?t===o&&r===n?{visibility:Qf.show,radius:8}:r===n?{visibility:Qf.show,radius:.3}:{visibility:Qf.hide,radius:0}:{visibility:o===t?Qf.show:Qf.hide,radius:8}},e._checkForLine=function(){return e.props.data.some((function(t){var n;return void 0!==(null===(n=null==t?void 0:t.lineData)||void 0===n?void 0:n.y)}))},e._getMargins=function(t){e.margins=t},e._renderContentForBothLineAndBars=function(t){var i=e._getCalloutContentForLineAndBar(t),o=i.YValueHover,a=i.hoverXValue,u=o.map((function(t,i){return r.createElement(ys.ChartHoverCard,(0,n.Cl)({key:i,Legend:t.legend},0===i&&{XValue:"".concat(a||t.data)},{color:t.color,YValue:t.data||t.y,culture:e.props.culture}))}));return r.createElement(r.Fragment,null,u)},e._renderContentForOnlyBars=function(t){var n=e.props.useSingleColor,i=void 0!==n&&n;return r.createElement(r.Fragment,null,r.createElement(ys.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!i&&t.color?t.color:e._createColors()(t.y),culture:e.props.culture}))},e._renderCallout=function(t){return t?e._isHavingLine?e._renderContentForBothLineAndBars(t):e._renderContentForOnlyBars(t):null},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._getGraphData=function(t,n,i,r,o){return e._bars=e._xAxisType===$u.NumericAxis?e._createNumericBars(i,r,o):e._xAxisType===$u.DateAxis?e._createDateBars(i,r,o):e._createStringBars(i,r,o)},e._refCallback=function(t,n){e._refArray.push({index:n,refElement:t})},e._getCalloutContentForLineAndBar=function(t){var n,i,r,o,a=[],u=e.props,s=u.theme,l=u.useSingleColor,c=void 0!==l&&l,f=e.props,h=f.data,d=f.lineLegendText,v=f.lineLegendColor,p=void 0===v?s.palette.yellow:v,g=h.filter((function(n){return n.x===t.x}));e._isHavingLine&&void 0!==(null===(n=g[0].lineData)||void 0===n?void 0:n.y)&&a.push({legend:d,color:p,y:null===(i=g[0].lineData)||void 0===i?void 0:i.y,data:null===(r=g[0].lineData)||void 0===r?void 0:r.yAxisCalloutData,yAxisCalloutData:null===(o=g[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),a.push({legend:g[0].legend,y:g[0].y,color:c?e._createColors()(1):g[0].color?g[0].color:e._createColors()(g[0].y),data:g[0].yAxisCalloutData,yAxisCalloutData:g[0].yAxisCalloutData});var m=t.x instanceof Date?t.x.toLocaleString():t.x.toString();return{YValueHover:a,hoverXValue:t.xAxisCalloutData||m}},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},e._onBarFocus=function(t,n,i){var r=e._getCalloutContentForLineAndBar(t),o=r.YValueHover,a=r.hoverXValue;e._refArray.forEach((function(r,u){r.index===t.legend&&n===u&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||i,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData})}))},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){var i=e.props.theme,r=e.props,o=r.lineLegendText,a=void 0===o?"":o,u=r.lineLegendColor,s=void 0===u?i.palette.yellow:u;e.setState({refSelected:n,isCalloutVisible:!0,calloutLegend:a,dataForHoverCard:t.lineData.y,color:s,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.lineData.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x})},e._getScales=function(t,n){var i,r=Ie().domain([0,e._yMax]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===$u.NumericAxis){var o=vi(e._points,(function(t){return t.x})),a=di(e._points,(function(t){return t.x}));i=Ie().domain(e._isRtl?[o,a]:[a,o]).nice().range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else if(e._xAxisType===$u.DateAxis){var u=di(e._points,(function(t){return t.x})),s=vi(e._points,(function(t){return t.x}));i=ya().domain([u,s]).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else i=ka().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding);return{xBarScale:i,yBarScale:r}},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,i){var o=e.props,a=o.theme,u=o.useSingleColor,s=e.props,l=s.lineLegendText,c=s.lineLegendColor,f=void 0===c?a.palette.yellow:c,h=[];if(t.forEach((function(t,n){var i=u?e._createColors()(1):t.color,r={title:t.legend,color:i,action:function(){e._onLegendClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};h.push(r)})),e._isHavingLine&&l&&f){var d={title:l,color:f,action:function(){e._onLegendClick(l)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(l)},onMouseOutAction:function(){e._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(d)}return r.createElement(Ul,(0,n.Cl)({legends:h,enabledWrapLines:e.props.enabledLegendsWrapLines,overflowProps:e.props.legendsOverflowProps,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard,overflowText:e.props.legendsOverflowText},e.props.legendProps))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getAriaLabel=function(t){var n,i,r,o=t.xAxisCalloutData?t.xAxisCalloutData:t.x instanceof Date?t.x.toLocaleString():t.x,a=t.legend,u=t.yAxisCalloutData||t.y,s=e.props.lineLegendText||"Line",l=(null===(n=t.lineData)||void 0===n?void 0:n.yAxisCalloutData)||(null===(i=t.lineData)||void 0===i?void 0:i.y);return(null===(r=t.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(o,". ")+(a?"".concat(a,", "):"")+"".concat(u,".")+(void 0!==l?" ".concat(s,", ").concat(l,"."):"")},e._getDomainMargins=function(t){var i;e._domainMargin=8;var r=t-(e.margins.left+8)-(e.margins.right+8);if(e._xAxisType===$u.StringAxis){if(ms(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth){var o=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth);var a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*o)*e._barWidth;r>=a&&(e._domainMargin=8+(r-a)/2)}}else{var u=(null===(i=e.props.data)||void 0===i?void 0:i.map((function(t){return t.x})))||[];e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth,eh(u,r)),e._domainMargin=8+e._barWidth/2}return(0,n.Cl)((0,n.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Vertical bar chart with ".concat((null==i?void 0:i.length)||0," bars")+(e._isHavingLine?" and 1 line":"")+". "},e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:""},e._isHavingLine=e._checkForLine(),e._calloutId=v("callout"),e._tooltipId=v("VCTooltipID_"),e._refArray=[],e._xAxisType=e.props.data&&e.props.data.length>0?ls(e.props.data[0].x,!0):$u.StringAxis,e._emptyChartId=v("_VBC_empty"),e._domainMargin=8,e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max(vi(this._points,(function(t){return t.y})),this.props.yMaxValue||0);var i=this._getLegendData(this._points,this.props.theme.palette);this._classNames=oh(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var e=(0,n.Cl)((0,n.Cl)((0,n.Cl)((0,n.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),fs(this.state.callOutAccessibilityData)),o={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement(rf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,chartType:qu.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:e,tickParams:o},this._isHavingLine&&this._noLegendHighlighted()&&{isCalloutForStack:!0},{legendBars:i,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:vs.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===$u.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{children:function(n){return r.createElement(r.Fragment,null,r.createElement("g",null,t._bars),t._isHavingLine&&r.createElement("g",null,t._createLine(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))},i.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=ps(this.props.barWidth,this.props.maxBarWidth);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine(),this._xAxisInnerPadding=gs(this.props.xAxisInnerPadding,this.props.xAxisPadding,2/3),this._xAxisOuterPadding=gs(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},i.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._yMax);return Ie().domain(e).range(this._colors)},i.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForLineAndBar(t),r=e.YValueHover,o=e.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||n,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:this._noLegendHighlighted()?t.x:null,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},i.prototype._createNumericBars=function(t,n,i){var e=this,o=this.props.useSingleColor,a=void 0!==o&&o,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._points.map((function(n,i){var o=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=oh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:o});var u,f=Math.max(l(n.y),0);if(f<=0)return r.createElement(r.Fragment,{key:n.x}," ");u=f<=Math.ceil(l(e._yMax)/100)?Math.ceil(l(e._yMax)/100):f;var h=s(n.x)-e._barWidth/2,d=t-e.margins.bottom-u;return r.createElement("g",{key:n.x},r.createElement("rect",{id:v("_VBC_bar_"),x:h,className:e._classNames.opacityChangeOnHover,y:d,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&o,height:u,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,c(n.y)),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,c(n.y)),onBlur:e._onBarLeave,fill:n.color&&!a?n.color:c(n.y)}),e._renderBarLabel(h,d,n.y,n.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=Ou(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&es(d)}return f},i.prototype._createStringBars=function(t,n,i){var e=this,o=this._getScales(t,n),a=o.xBarScale,u=o.yBarScale,s=this._createColors(),l=this._points.map((function(n,i){var o,l=Math.max(u(n.y),0);if(l<=0)return r.createElement(r.Fragment,{key:n.x instanceof Date?n.x.getTime():n.x}," ");o=l<=Math.ceil(u(e._yMax)/100)?Math.ceil(u(e._yMax)/100):l;var c=a(n.x),f=t-e.margins.bottom-o;return e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth,a.bandwidth()),r.createElement("g",{key:n.x instanceof Date?n.x.getTime():n.x,transform:"translate(".concat(.5*(a.bandwidth()-e._barWidth),", 0)")},r.createElement("rect",{id:v("_VBC_bar_"),x:c,y:f,width:e._barWidth,height:o,"aria-label":e._getAriaLabel(n),role:"img",ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,s(n.y)),onMouseLeave:e._onBarLeave,onBlur:e._onBarLeave,"data-is-focusable":!e.props.hideTooltip,onFocus:e._onBarFocus.bind(e,n,i,s(n.y)),fill:n.color?n.color:s(n.y)}),e._renderBarLabel(c,f,n.y,n.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var c=Ou(i).call(a);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var f={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:c,showTooltip:this.props.showXAxisLablesTooltip};c&&es(f)}return l},i.prototype._createDateBars=function(t,n,i){var e=this,o=this.props.useSingleColor,a=void 0!==o&&o,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._points.map((function(n,i){var o=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=oh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:o});var u,f=Math.max(l(n.y),0);if(f<=0)return r.createElement(r.Fragment,{key:n.x instanceof Date?n.x.getTime():n.x}," ");u=f<=Math.ceil(l(e._yMax)/100)?Math.ceil(l(e._yMax)/100):f;var h=s(n.x)-e._barWidth/2,d=t-e.margins.bottom-u;return r.createElement("g",{key:n.x instanceof Date?n.x.getTime():n.x},r.createElement("rect",{id:v("_VBC_bar_"),x:h,className:e._classNames.opacityChangeOnHover,y:d,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&o,height:u,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,c(n.y)),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,c(n.y)),onBlur:e._onBarLeave,fill:n.color&&!a?n.color:c(n.y)}),e._renderBarLabel(h,d,n.y,n.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=Ou(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&es(d)}return f},i.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},i.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},i.prototype._renderBarLabel=function(t,n,i,e){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(e)&&!this._noLegendHighlighted()?null:r.createElement("text",{x:t+this._barWidth/2,y:n-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},ds(i))},i.prototype._isChartEmpty=function(){return 0===this._points.length||vi(this._points,(function(t){return t.y}))<=0&&!this._isHavingLine},i.defaultProps={maxBarWidth:24},i}(r.Component),uh=(0,t.I)(ah,(function(t){var i=t.shouldHighlight,e=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,n.Cl)((0,n.Cl)({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:e.palette.neutralPrimary}}})),sh=(0,o.Z)();!function(t){t.show="visibility",t.hide="hidden"}(rh||(rh={}));var lh=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,a.jI)(),e._toFocusWholeStack=function(t){var n=e.props.isCalloutForStack,i=void 0!==n&&n;return t?""===e.state.selectedLegend:i},e._getFormattedLineData=function(t){var i=[],e={};return t.forEach((function(t,e){t.lineData&&t.lineData.forEach((function(r){i.push((0,n.Cl)((0,n.Cl)({},r),{index:e,xItem:t}))}))})),i.forEach((function(t){e[t.legend]?e[t.legend].push(t):e[t.legend]=[t]})),e},e._getLineLegends=function(t){var n=e._lineObject,i=[];return Object.keys(n).forEach((function(t){i.push({title:t,color:n[t][0].color})})),i},e._createLines=function(t,i,o,a,u){var s,l=e._getFormattedLineData(e.props.data),c=[],f=[],h=[],d=e.props.theme,v=(null===(s=e.props.lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0,p=e._xAxisType!==$u.StringAxis?0:t.bandwidth()/2;return Object.keys(l).forEach((function(o,a){for(var s=e._legendHighlighted(o)||e._noLegendHighlighted(),h=1;h<l[o].length;h++){var g=t(l[o][h-1].xItem.xAxisPoint),m=l[o][h-1].useSecondaryYScale&&l[o][h].useSecondaryYScale&&u,y=m?u(l[o][h-1].y):i(l[o][h-1].y),b=t(l[o][h].xItem.xAxisPoint),x=m?u(l[o][h].y):i(l[o][h].y);v>0&&f.push(r.createElement("line",{key:"".concat(a,"-").concat(h,"-BorderLine"),x1:g,y1:y,x2:b,y2:x,opacity:s?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:d.semanticColors.bodyBackground,transform:"translate(".concat(p,", 0)")})),c.push(r.createElement("line",(0,n.Cl)({key:"".concat(a,"-").concat(h,"-line"),x1:g,y1:y,x2:b,y2:x,opacity:s?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:l[o][h].color,transform:"translate(".concat(p,", 0)")},e.state.selectedLegend===o&&{onMouseOver:e._lineHover.bind(e,l[o][h-1]),onMouseLeave:e._lineHoverOut})))}})),Object.keys(l).forEach((function(o,a){l[o].forEach((function(s,l){var c={refElement:null};h.push(r.createElement("circle",(0,n.Cl)({key:"".concat(a,"-").concat(l,"-dot"),cx:t(s.xItem.xAxisPoint),cy:s.useSecondaryYScale&&u?u(s.y):i(s.y),onMouseOver:e.state.selectedLegend===o?e._lineHover.bind(e,s):e._onStackHover.bind(e,s.xItem)},e.state.selectedLegend===o&&{onMouseLeave:e._lineHoverOut},{r:e._getCircleVisibilityAndRadius(s.xItem.xAxisPoint,s.legend).radius,stroke:s.color,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:e._getCircleVisibilityAndRadius(s.xItem.xAxisPoint,s.legend).visibility,transform:"translate(".concat(p,", 0)"),"data-is-focusable":e._legendHighlighted(o),ref:function(t){return c.refElement=t},onFocus:e._lineFocus.bind(e,s,c),onBlur:e._lineHoverOut})))}))})),r.createElement(r.Fragment,null,f,c,h)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state,r=i.selectedLegend,o=i.activeXAxisDataPoint;return""!==r?t===o&&r===n?{visibility:rh.show,radius:8}:r===n?{visibility:rh.show,radius:.3}:{visibility:rh.hide,radius:0}:{visibility:o===t?rh.show:rh.hide,radius:8}},e._getMargins=function(t){e.margins=t},e._getCustomizedCallout=function(){var t=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint&&!t?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineHoverOut=function(){e.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){e.setState({refSelected:n,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.color})},e._handleMouseOut=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},e._createBar=function(t,i,o,a){var u=e.props,s=u.barCornerRadius,l=void 0===s?0:s,c=u.barMinimumHeight,f=void 0===c?0:c,h=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),d=e._toFocusWholeStack(h);e._xAxisType===$u.StringAxis&&(e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth,t.bandwidth()));var v=e._points.map((function(a,u){var s=o-e.margins.bottom,c=t((e._xAxisType===$u.NumericAxis||(e._xAxisType,$u.DateAxis),a.xAxisPoint)),h=e._xAxisType!==$u.StringAxis?-e._barWidth/2:(t.bandwidth()-e._barWidth)/2,v=0,p=a.chartData.filter((function(t){return t.data>0}));if(p.length){var g=e._getBarGapAndScale(p,i),m=g.gapHeight,y=g.heightValueScale;if(!(y<0)){var b=p.map((function(t,i){var o=t.color?t.color:e._colors[i],g={},b=!(!e._legendHighlighted(t.legend)&&!e._noLegendHighlighted());e._classNames=sh(e.props.styles,{theme:e.props.theme,shouldHighlight:b,href:e.props.href});var x=!d&&{"data-is-focusable":!e.props.hideTooltip&&b,"aria-label":e._getAriaLabel(a,t),onMouseOver:e._onRectHover.bind(e,a.xAxisPoint,t,o),onMouseMove:e._onRectHover.bind(e,a.xAxisPoint,t,o),onMouseLeave:e._handleMouseOut,onFocus:e._onRectFocus.bind(e,t,a.xAxisPoint,o,g),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,t),role:"img"},w=y*t.data;return w<Math.max(Math.ceil(y*e._yMax/100),f)&&(w=Math.max(Math.ceil(y*e._yMax/100),f)),s=s-w-(i?m:0),v+=t.data,l&&w>l&&i===p.length-1?r.createElement("path",(0,n.Cl)({key:i+u+"".concat(d),className:e._classNames.opacityChangeOnHover,d:"\n M ".concat(c," ").concat(s+l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(-l,"\n h ").concat(e._barWidth-2*l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(l,"\n v ").concat(w-l,"\n h ").concat(-e._barWidth,"\n z\n "),fill:o,ref:function(t){return g.refElement=t},transform:"translate(".concat(h,", 0)")},x)):w<0?r.createElement(r.Fragment,{key:i+u}," "):r.createElement("rect",(0,n.Cl)({key:i+u,className:e._classNames.opacityChangeOnHover,x:c,y:s,width:e._barWidth,height:w,fill:o,ref:function(t){return g.refElement=t}},x,{transform:"translate(".concat(h,", 0)")}))})),x={},w=d&&{"data-is-focusable":!e.props.hideTooltip,"aria-label":e._getAriaLabel(a),onMouseOver:e._onStackHover.bind(e,a),onMouseMove:e._onStackHover.bind(e,a),onMouseLeave:e._handleMouseOut,onFocus:e._onStackFocus.bind(e,a,x),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,a),role:"img"},C=!1,M=0;return e.props.hideLabels||(e._noLegendHighlighted()?(C=!0,M=v):p.forEach((function(t){e._legendHighlighted(t.legend)&&(C=!0,M+=t.data)}))),r.createElement("g",{key:u+"".concat(d)},r.createElement("g",(0,n.Cl)({id:"".concat(u,"-singleBar"),ref:function(t){return x.refElement=t}},w),b),!e.props.hideLabels&&e._barWidth>=16&&C&&r.createElement("text",{x:c+e._barWidth/2,y:s-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-label":"Total: ".concat(M),role:"img",transform:"translate(".concat(h,", 0)")},ds(M)))}}}));if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var p=Ou(a).call(t);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var g={tooltipCls:e._classNames.tooltip,id:e._tooltipId,xAxis:p};p&&es(g)}return v.filter((function(t){return!!t}))},e._getScales=function(t,n){var i=e._yMax,r=Ie().domain([0,i]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===$u.NumericAxis){var o=vi(e._dataset,(function(t){return t.x})),a=di(e._dataset,(function(t){return t.x}));return{xBarScale:Ie().domain(e._isRtl?[o,a]:[a,o]).nice().range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),yBarScale:r}}if(e._xAxisType===$u.DateAxis){var u=di(e._dataset,(function(t){return t.x})),s=vi(e._dataset,(function(t){return t.x}));return{xBarScale:ya().domain(e._isRtl?[s,u]:[u,s]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),yBarScale:r}}return{xBarScale:ka().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding),yBarScale:r}},e._getGraphData=function(t,n,i,r,o){var a=e._getScales(i,r),u=a.xBarScale,s=a.yBarScale;return e._bars=e._createBar(u,s,i,o)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getAriaLabel=function(t,n){var i,e,r;if(!n){var o=t.xAxisCalloutData||t.xAxisPoint,a=t.chartData.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data;return"".concat(n,", ").concat(i,".")})).join(" "),u=null===(i=t.lineData)||void 0===i?void 0:i.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data||t.y;return"".concat(n,", ").concat(i,".")})).join(" ");return(null===(e=t.stackCallOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(o,". ").concat(a)+(u?" ".concat(u):"")}var s=t.xAxisCalloutData||n.xAxisCalloutData||t.xAxisPoint,l=n.legend,c=n.yAxisCalloutData||n.data;return(null===(r=n.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},e._getDomainMargins=function(t){var i;e._domainMargin=8;var r=t-(e.margins.left+8)-(e.margins.right+8);if(e._xAxisType===$u.StringAxis){if(ms(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth){var o=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth);var a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*o)*e._barWidth;r>=a&&(e._domainMargin=8+(r-a)/2)}}else{var u=(null===(i=e.props.data)||void 0===i?void 0:i.map((function(t){return t.xAxisPoint})))||[];e._barWidth=ps(e.props.barWidth,e.props.maxBarWidth,eh(u,r)),e._domainMargin=8+e._barWidth/2}return(0,n.Cl)((0,n.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props,n=t.chartTitle,i=t.data,r=Object.keys(e._lineObject).length;return(n?"".concat(n,". "):"")+"Vertical bar chart with ".concat((null==i?void 0:i.length)||0," stacked bars")+(r>0?" and ".concat(r," lines"):"")+". "},e.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},_n("VERTICAL STACKED BAR CHART",i,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),e._handleMouseOut=e._handleMouseOut.bind(e),e._calloutId=v("callout"),e._tooltipId=v("VSBCTooltipId_"),e._isChartEmpty()||(e._adjustProps(),e._dataset=e._createDataSetLayer()),e._createLegendsForLine=(0,fn.J9)((function(t){return e._getLineLegends(t)})),e._emptyChartId=v("_VSBC_empty"),e._domainMargin=8,e}return(0,n.C6)(i,t),i.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},i.prototype.render=function(){var t=this;if(!this._isChartEmpty()){this._adjustProps();var i=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),e=this._toFocusWholeStack(i),o=this.props.isCalloutForStack,a=void 0!==o&&o;this._dataset=this._createDataSetLayer();var u=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=sh(this.props.styles,{theme:this.props.theme,href:this.props.href});var s=(0,n.Cl)((0,n.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),fs(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return r.createElement(rf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._dataset,chartType:qu.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,tickParams:l,legendBars:u,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:e,barwidth:this._barWidth,focusZoneDirection:a||i?vs.horizontal:vs.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===$u.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{children:function(n){return r.createElement(r.Fragment,null,r.createElement("g",null,t._bars),r.createElement("g",null,i&&t._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))}return r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},i.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=ps(this.props.barWidth,this.props.maxBarWidth);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=ls(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data),this._xAxisInnerPadding=gs(this.props.xAxisInnerPadding,this.props.xAxisPadding,2/3),this._xAxisOuterPadding=gs(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},i.prototype._createDataSetLayer=function(){var t=[],n=this._points.map((function(n){var i=0;return n.chartData.forEach((function(t){i+=t.data})),t.push(n.xAxisPoint),{x:n.xAxisPoint,y:i}}));return this._xAxisLabels=t,n},i.prototype._renderCallout=function(t){return t?r.createElement(ys.ChartHoverCard,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},i.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},i.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},i.prototype._getLegendData=function(t,i,e){var o=this;if(this.props.hideLegend)return r.createElement(r.Fragment,null);var a=[i.blueLight,i.blue,i.blueMid,i.red,i.black],u=[],s=this.props.allowHoverOnLegend,l=void 0===s||s;t.forEach((function(t){t.chartData.forEach((function(t){var n=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(u.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){o._onLegendClick(t.legend)},hoverAction:l?function(){o._handleChartMouseLeave(),o._onLegendHover(t.legend)}:void 0,onMouseOutAction:l?function(){return o._onLegendLeave()}:void 0};u.push(i)}}))}));var c=[];e&&e.length>0&&e.forEach((function(t){var n={title:t.title,color:t.color,isLineLegendInBarChart:!0,action:function(){o._onLegendClick(t.title)},hoverAction:l?function(){o._handleChartMouseLeave(),o._onLegendHover(t.title)}:void 0,onMouseOutAction:l?function(){return o._onLegendLeave()}:void 0};c.push(n)}));var f=c.concat(u);return r.createElement(Ul,(0,n.Cl)({legends:f,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},i.prototype._onRectHover=function(t,n,i,e){e.persist(),this._onRectFocusHover(t,n,i,e)},i.prototype._onRectFocusHover=function(t,n,i,e){var r,o;(null===(r=this._calloutAnchorPoint)||void 0===r?void 0:r.chartDataPoint)===n&&(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.xAxisDataPoint)===t||(this._calloutAnchorPoint={chartDataPoint:n,xAxisDataPoint:t},this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:n.data,color:i,xCalloutValue:n.xAxisCalloutData?n.xAxisCalloutData:t,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},i.prototype._onStackHover=function(t,n){n.persist(),this._onStackHoverFocus(t,n)},i.prototype._onStackHoverFocus=function(t,i){var e=t.lineData,r=void 0!==e&&e.length>0;r&&e.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:i,isCalloutVisible:!0,YValueHover:r?(0,n.fX)((0,n.fX)([],e.sort((function(t,n){return t.data<n.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint instanceof Date?t.xAxisPoint.toLocaleDateString():t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},i.prototype._onRectFocus=function(t,n,i,e){e.refElement&&this._onRectFocusHover(n,t,i,e.refElement)},i.prototype._onStackFocus=function(t,n){n.refElement&&this._onStackHoverFocus(t,n.refElement)},i.prototype._onClick=function(t,n){var i,e;null===(e=(i=this.props).onBarClick)||void 0===e||e.call(i,n,t),this.props.href&&(window.location.href=this.props.href)},i.prototype._getBarGapAndScale=function(t,n,i){var e=this.props.barGapMax,r=void 0===e?0:e,o=t.reduce((function(t,n){return t+n.data}),0),a=null!=i?i:n(o),u=r&&t.length-1,s=u&&Math.max(1,Math.min(r,.2*a/u));return{gapHeight:s,heightValueScale:(a-s*u)/o}},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return 0===t.chartData.length})).length)},i.defaultProps={maxBarWidth:24},i}(r.Component),ch=(0,t.I)(lh,(function(t){var i=t.shouldHighlight,e=t.href,r=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1",cursor:e?"pointer":"default"},tooltip:(0,n.Cl)((0,n.Cl)({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:r.palette.neutralPrimary}}})),fh=(0,o.Z)(),hh=.1/.9,dh=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,a.jI)(),e._getGraphData=function(t,n,i,r,o){var a=e._createX0Scale(r);e._barWidth=ps(e.props.barwidth,e.props.maxBarWidth,a.bandwidth()/(e._keys.length+(e._keys.length-1)*hh)),e._groupWidth=(e._keys.length+(e._keys.length-1)*hh)*e._barWidth;var u=e._createX1Scale(),s=[];e._datasetForBars.forEach((function(t){s.push(e._buildGraph(t,a,u,i,o))})),e._groupedVerticalBarGraph=s},e._getMargins=function(t){return e.margins=t},e._createDataSetOfGVBC=function(t){var n=[],i=t.map((function(t){return t.name}));t[0].series.forEach((function(t){n.push(t.key)}));var r=e._createDataset(t);return{keys:n,xAxisLabels:i,datasetForBars:r}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getOpacity=function(t){return e._legendHighlighted(t)||e._noLegendHighlighted()?"":"0.1"},e._onBarHover=function(t,n,i){i.persist(),e._calloutAnchorPoint!==t&&(e._calloutAnchorPoint=t,e.setState({refSelected:i,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData}))},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1})},e._onBarFocus=function(t,n,i){e._refArray.forEach((function(r,o){r.index===t.legend&&i===o&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData})}))},e._redirectToUrl=function(t){t&&(window.location.href=t)},e._buildGraph=function(t,n,i,o,a){var u=[],s=[],l=Ie().domain([0,e._yMax]).range([0,o-e.margins.bottom-e.margins.top]),c=Object.keys(e._datasetForBars[0]).splice(0,e._keys.length);if(c.forEach((function(n,a){var f=t.indexNum*c.length+a,h=t[n],d=i(n)+(i.bandwidth()-e._barWidth)/2,v=Math.max(o-e.margins.bottom-l(h.data),0);h.data&&u.push(r.createElement("rect",{className:e._classNames.opacityChangeOnHover,key:"".concat(t.indexNum,"-").concat(a),height:Math.max(l(h.data),0),width:e._barWidth,x:d,y:v,"data-is-focusable":!e.props.hideTooltip&&(e._legendHighlighted(h.legend)||e._noLegendHighlighted()),opacity:e._getOpacity(h.legend),ref:function(t){e._refCallback(t,h.legend,f)},fill:h.color,onMouseOver:e._onBarHover.bind(e,h,t),onMouseMove:e._onBarHover.bind(e,h,t),onMouseOut:e._onBarLeave,onFocus:e._onBarFocus.bind(e,h,t,f),onBlur:e._onBarLeave,onClick:e.props.href?e._redirectToUrl.bind(e,e.props.href):h.onClick,"aria-label":e._getAriaLabel(h,t.xAxisPoint),role:"img"})),h.data&&!e.props.hideLabels&&e._barWidth>=16&&(e._legendHighlighted(h.legend)||e._noLegendHighlighted())&&s.push(r.createElement("text",{key:"".concat(t.indexNum,"-").concat(a),x:d+e._barWidth/2,y:v-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-hidden":!0},ds(h.data)))})),!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var f=Ou(a).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var h={tooltipCls:e._classNames.tooltip,id:e._tooltipId,xAxis:f};f&&es(h)}return r.createElement("g",{key:t.indexNum,transform:"translate(".concat(n(t.xAxisPoint)+(n.bandwidth()-e._groupWidth)/2,", 0)")},u,s)},e._createDataset=function(t){var i=[],r=[];return t.forEach((function(t,e){var o={},a={},u=[];t.series.forEach((function(t){o[t.key]=t.data,a[t.key]=(0,n.Cl)({},t),u.push(t)})),a.xAxisPoint=t.name,a.indexNum=e,a.groupSeries=u,a.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,i.push(a),r.push(o)})),e._dataset=r,i},e._createX0Scale=function(t){return ka().domain(e._xAxisLabels).range(e._isRtl?[t-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,t-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding)},e._createX1Scale=function(){return ka().domain(e._keys).range(e._isRtl?[e._groupWidth,0]:[0,e._groupWidth]).paddingInner(.1)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,i){var o=t,a=[i.blueLight,i.blue,i.blueMid,i.red,i.black],u=[];return o.forEach((function(t){t.series.forEach((function(t){var n=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(u.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){e._onLegendClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};u.push(i)}}))})),r.createElement(Ul,(0,n.Cl)({legends:u,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getAriaLabel=function(t,n){var i,e=t.xAxisCalloutData||n,r=t.legend,o=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(e,". ").concat(r,", ").concat(o,".")},e._getDomainMargins=function(t){if(e._domainMargin=8,e._xAxisType===$u.StringAxis)if(ms(e.props.xAxisOuterPadding))e._domainMargin=0;else if("auto"!==e.props.barwidth){var i=t-(e.margins.left+8)-(e.margins.right+8);e._barWidth=ps(e.props.barwidth,e.props.maxBarWidth);var r=(e._keys.length+(e._keys.length-1)*hh)*e._barWidth,o=e._xAxisInnerPadding/(1-e._xAxisInnerPadding),a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*o)*r;i>=a&&(e._domainMargin=8+(i-a)/2)}return(0,n.Cl)((0,n.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props.chartTitle;return(t?"".concat(t,". "):"")+"Vertical bar chart with ".concat(e._xAxisLabels.length," groups of ").concat(e._keys.length," bars each. ")},e._createSet=(0,fn.J9)((function(t){return e._createDataSetOfGVBC(t)})),e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},_n("GROUPED VERTICAL BAR CHART",i,{showYAxisGridLines:"Dont use this property. Lines are drawn by default",showXAxisPath:"Dont use this property. Axis line removed default.",showYAxisPath:"Dont use this property. No need to display Y axis path. Handling default",showXAxisGridLines:"Dont use this property. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),e._refArray=[],e._calloutId=v("callout"),e._tooltipId=v("GVBCTooltipId_"),e._emptyChartId=v("_GVBC_empty"),e._domainMargin=8,e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this,i=this.props.data,e=this._createSet(i),o=e.keys,a=e.xAxisLabels,u=e.datasetForBars;this._keys=o,this._xAxisLabels=a,this._datasetForBars=u,this._xAxisType=ls(i[0].name,!0);var s=this._getLegendData(i,this.props.theme.palette);this._adjustProps();var l=vi(this._dataset,(function(n){return vi(t._keys,(function(t){return n[t]}))}));this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=fh(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=(0,n.Cl)((0,n.Cl)((0,n.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,id:"toolTip".concat(this._calloutId),gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),fs(this.state.callOutAccessibilityData,"text",!1)),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement(rf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._datasetForBars,chartType:qu.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:f,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:vs.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===$u.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{barwidth:this._barWidth,children:function(){return r.createElement("g",null,t._groupedVerticalBarGraph)}}))},i.prototype._refCallback=function(t,n,i){this._refArray[i]={index:n,refElement:t}},i.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},i.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.series.length})).length>0)},i.prototype._adjustProps=function(){this._barWidth=ps(this.props.barwidth,this.props.maxBarWidth),this._xAxisInnerPadding=gs(this.props.xAxisInnerPadding,void 0,2/(2+this._keys.length+(this._keys.length-1)*hh)),this._xAxisOuterPadding=gs(this.props.xAxisOuterPadding)},i.defaultProps={maxBarWidth:24},i}(r.Component),vh=(0,t.I)(dh,(function(t){var i=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:(0,n.Cl)((0,n.Cl)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:i.palette.neutralPrimary}}})),ph=i(714),gh=(0,o.Z)(),mh=function(t){function i(i){var e=t.call(this,i)||this;return e._rectRefArray={},e._getXandY=function(){var t="",n="";return e.props.data.forEach((function(i){if(i.data&&i.data.length>0)return t=i.data[0].x,n=i.data[0].y,{x:t,y:n}})),{x:t,y:n}},e._getOpacity=function(t){return e._legendHighlighted(t)||e._noLegendHighlighted()?"1":"0.1"},e._rectRefCallback=function(t,n,i){e._rectRefArray[n]={data:i,refElement:t}},e._onRectFocus=function(t,n){e.setState({target:e._rectRefArray[t].refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?e.props.theme.semanticColors.bodyText:e._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData})},e._onRectMouseOver=function(t,n,i){i.persist(),e._calloutAnchorPoint!==n&&(e._calloutAnchorPoint=n,e.setState({target:e._rectRefArray[t].refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?e.props.theme.semanticColors.bodyText:e._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData}))},e._onRectBlurOrMouseOut=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1})},e._createRectangles=function(){var t=[];return e._stringYAxisDataPoints.slice().reverse().forEach((function(n){var i=0;e._stringXAxisDataPoints.forEach((function(o){var a,u,s="x".concat(o,"y").concat(n);if((null===(a=e._dataSet[n][i])||void 0===a?void 0:a.x)===o){var l=e._dataSet[n][i];u=r.createElement("g",{key:s,role:"img","aria-label":e._getAriaLabel(l),"data-is-focusable":e._legendHighlighted(l.legend)||e._noLegendHighlighted(),fillOpacity:e._getOpacity(l.legend),transform:"translate(".concat(e._xAxisScale(l.x),", ").concat(e._yAxisScale(l.y),")"),ref:function(t){e._rectRefCallback(t,s,l)},onFocus:e._onRectFocus.bind(e,s,l),onBlur:e._onRectBlurOrMouseOut,onMouseOver:e._onRectMouseOver.bind(e,s,l),onMouseOut:e._onRectBlurOrMouseOut},r.createElement("rect",{fill:e._colorScale(l.value),width:e._xAxisScale.bandwidth(),height:e._yAxisScale.bandwidth(),onClick:l.onClick}),r.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:e._classNames.text,transform:"translate(".concat(e._xAxisScale.bandwidth()/2,", ").concat(e._yAxisScale.bandwidth()/2,")")},(0,Zn.U)(l.rectText,e.props.culture))),i++}else{var c={x:o,y:n,value:NaN,rectText:"No data available",legend:""};u=r.createElement("g",{key:s,role:"img","aria-label":e._getAriaLabel(c),"data-is-focusable":e._noLegendHighlighted(),transform:"translate(".concat(e._xAxisScale(c.x),", ").concat(e._yAxisScale(c.y),")"),ref:function(t){e._rectRefCallback(t,s,c)},onFocus:e._onRectFocus.bind(e,s,c),onBlur:e._onRectBlurOrMouseOut,onMouseOver:e._onRectMouseOver.bind(e,s,c),onMouseOut:e._onRectBlurOrMouseOut},r.createElement("rect",{fill:e.props.theme.semanticColors.bodyBackground,width:e._xAxisScale.bandwidth(),height:e._yAxisScale.bandwidth()}))}t.push(u)}))})),t},e._createLegendBars=function(){var t=e.props,i=t.data,o=t.legendProps,a=[];return i.forEach((function(t){var n={title:t.legend,color:e._colorScale(t.value),action:function(){e._onLegendClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};a.push(n)})),r.createElement(Ul,(0,n.Cl)({},o,{legends:a}))},e._getColorScale=function(){var t=e.props,n=t.domainValuesForColorScale,i=t.rangeValuesForColorScale;return Ie().domain(n).range(i)},e._getXIndex=function(t){return e._xAxisType===$u.DateAxis?"".concat(t.getTime()):e._xAxisType===$u.StringAxis?t:e._xAxisType===$u.NumericAxis?"".concat(t):""},e._getYIndex=function(t){return e._yAxisType===Uu.DateAxis?"".concat(t.getTime()):e._yAxisType===Uu.StringAxis?t:e._yAxisType===Uu.NumericAxis?"".concat(t):""},e._createNewDataSet=function(t,i,r,o,a){var u=[];t.forEach((function(t){t.data.forEach((function(i){u.push((0,n.Cl)((0,n.Cl)({},i),{legend:t.legend}))}))}));var s={},l={},c={};return u.forEach((function(t){var i=e._getXIndex(t.x),r=e._getYIndex(t.y);c[i]="1",l[r]="1",s[r]?s[r]=(0,n.fX)((0,n.fX)([],s[r],!0),[t],!1):s[r]=[t]})),Object.keys(s).forEach((function(t){s[t].sort((function(t,n){return e._xAxisType===$u.StringAxis?t.x.toLowerCase()>n.x.toLowerCase()?1:-1:e._xAxisType===$u.DateAxis?t.x.getTime()-n.x.getTime():e._xAxisType===$u.NumericAxis?+t.x>+n.x?1:-1:t.x>n.x?1:-1})).forEach((function(t){e._xAxisType===$u.DateAxis&&(t.x=e._getStringFormattedDate(t.x,i)),e._xAxisType===$u.NumericAxis&&(t.x=e._getStringFormattedNumber(t.x,r)),e._xAxisType===$u.StringAxis&&(t.x=e._getFormattedLabelForXAxisDataPoint(t.x)),e._yAxisType===Uu.DateAxis&&(t.y=e._getStringFormattedDate(t.y,o)),e._yAxisType===Uu.NumericAxis&&(t.y=e._getStringFormattedNumber(t.y,a)),e._yAxisType===Uu.StringAxis&&(t.y=e._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(s).forEach((function(t){e._yAxisType===Uu.DateAxis?s[e._getStringFormattedDate(t,o)]=s[t]:e._yAxisType===Uu.NumericAxis?s["".concat(e._getStringFormattedNumber(t,a))]=s[t]:s[e._getFormattedLabelForYAxisDataPoint(t)]=s[t]})),{dataSet:s,yAxisPoints:e._getYAxisDataPoints(l),xAxisPoints:e._getXAxisDataPoints(c)}},e._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return e._xAxisType===$u.DateAxis||e._xAxisType===$u.NumericAxis?+t-+n:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return e._xAxisType===$u.DateAxis?e._getStringFormattedDate(t,e.props.xAxisDateFormatString):e._xAxisType===$u.NumericAxis?e._getStringFormattedNumber(t,e.props.xAxisNumberFormatString):e._getFormattedLabelForXAxisDataPoint(t)}))},e._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return e._yAxisType===Uu.DateAxis||e._yAxisType===Uu.NumericAxis?+t-+n:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return e._yAxisType===Uu.DateAxis?e._getStringFormattedDate(t,e.props.yAxisDateFormatString):e._yAxisType===Uu.NumericAxis?e._getStringFormattedNumber(t,e.props.yAxisNumberFormatString):e._getFormattedLabelForYAxisDataPoint(t)}))},e._getStringFormattedDate=function(t,n){var i=new Date;return i.setTime(+t),Gr(n||"%b/%d")(i)},e._getStringFormattedNumber=function(t,n){return ju(n||".2~s")(+t)},e._getFormattedLabelForXAxisDataPoint=function(t){var n=e.props.xAxisStringFormatter;return n?n(t):t},e._getFormattedLabelForYAxisDataPoint=function(t){var n=e.props.yAxisStringFormatter;return n?n(t):t},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getAriaLabel=function(t){var n,i=t.x,e=t.y,r=t.legend,o=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,a=t.descriptionMessage;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,", ").concat(e,". ").concat(r,", ").concat(o,".")+(a?" ".concat(a,"."):"")},e._getChartTitle=function(){var t=e.props.chartTitle,n=e.props.data.reduce((function(t,n){return t+n.data.length}),0);return(t?"".concat(t,". "):"")+"Heat map chart with ".concat(n," data points. ")},e._createSet=(0,fn.J9)((function(t,n,i,r,o){return e._createNewDataSet(t,n,i,r,o)})),e.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},e._emptyChartId=v("_HeatMap_empty"),e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this,i=this._getXandY(),e=i.x,o=i.y;this._xAxisType=ls(e,!0),this._yAxisType=ls(o,!1);var a=this.props,u=a.data,s=a.xAxisDateFormatString,l=a.xAxisNumberFormatString,c=a.yAxisDateFormatString,f=a.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(u,s,l,c,f),d=h.dataSet,v=h.xAxisPoints,p=h.yAxisPoints;this._dataSet=d,this._stringYAxisDataPoints=p,this._stringXAxisDataPoints=v,this._classNames=gh(this.props.styles,{theme:this.props.theme});var g=(0,n.Cl)((0,n.Cl)((0,n.Cl)((0,n.Cl)({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:y.topAutoEdge,onDismiss:this._closeCallout}),fs(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),m=(0,n.Cl)((0,n.Cl)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement(rf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:u,chartType:qu.HeatMapChart,xAxisType:$u.StringAxis,yAxisType:Uu.StringAxis,calloutProps:g,chartHoverProps:m,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:vs.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScale,t._createRectangles()}}))},i.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},i.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},i.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},i}(r.Component),yh=(0,t.I)(mh,(function(t){var n=t.theme;return{root:{},text:[n.fonts.medium,{pointerEvents:"none",fill:n.palette.white,fontWeight:jt.BO.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}})),bh=/[\{\}]/g,xh=/\{\d+\}/g;function wh(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=n;return t.replace(xh,(function(t){var n=e[t.replace(bh,"")];return null==n&&(n=""),n}))}function Ch(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function Mh(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function kh(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}function Lh(t,n){return n-1-t.height}function Sh(t,n){return t.sourceLinks.length?t.depth:n-1}function Vh(t){return function(){return t}}function Ah(t,n){return Dh(t.source,n.source)||t.index-n.index}function Nh(t,n){return Dh(t.target,n.target)||t.index-n.index}function Dh(t,n){return t.y0-n.y0}function Th(t){return t.value}function Oh(t){return t.index}function Ph(t){return t.nodes}function Eh(t){return t.links}function Fh(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function Bh({nodes:t}){for(const n of t){let t=n.y0,i=t;for(const i of n.sourceLinks)i.y0=t+i.width/2,t+=i.width;for(const t of n.targetLinks)t.y1=i+t.width/2,i+=t.width}}function Hh(){let t,n,i,e=0,r=0,o=1,a=1,u=24,s=8,l=Oh,c=Sh,f=Ph,h=Eh,d=6;function v(){const v={nodes:f.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:n}){for(const[n,i]of t.entries())i.index=n,i.sourceLinks=[],i.targetLinks=[];const e=new Map(t.map(((n,i)=>[l(n,i,t),n])));for(const[t,i]of n.entries()){i.index=t;let{source:n,target:r}=i;"object"!=typeof n&&(n=i.source=Fh(e,n)),"object"!=typeof r&&(r=i.target=Fh(e,r)),n.sourceLinks.push(i),r.targetLinks.push(i)}if(null!=i)for(const{sourceLinks:n,targetLinks:e}of t)n.sort(i),e.sort(i)}(v),function({nodes:t}){for(const n of t)n.value=void 0===n.fixedValue?Math.max(Mh(n.sourceLinks,Th),Mh(n.targetLinks,Th)):n.fixedValue}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.depth=r;for(const{target:n}of t.sourceLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.height=r;for(const{source:n}of t.targetLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function(i){const l=function({nodes:t}){const i=kh(t,(t=>t.depth))+1,r=(o-e-u)/(i-1),a=new Array(i);for(const n of t){const t=Math.max(0,Math.min(i-1,Math.floor(c.call(null,n,i))));n.layer=t,n.x0=e+t*r,n.x1=n.x0+u,a[t]?a[t].push(n):a[t]=[n]}if(n)for(const t of a)t.sort(n);return a}(i);t=Math.min(s,(a-r)/(kh(l,(t=>t.length))-1)),function(n){const i=function(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}(n,(n=>(a-r-(n.length-1)*t)/Mh(n,Th)));for(const e of n){let n=r;for(const r of e){r.y0=n,r.y1=n+r.value*i,n=r.y1+t;for(const t of r.sourceLinks)t.width=t.value*i}n=(a-n+t)/(e.length+1);for(let t=0;t<e.length;++t){const i=e[t];i.y0+=n*(t+1),i.y1+=n*(t+1)}w(e)}}(l);for(let t=0;t<d;++t){const n=Math.pow(.99,t),i=Math.max(1-n,(t+1)/d);g(l,n,i),p(l,n,i)}}(v),Bh(v),v}function p(t,i,e){for(let r=1,o=t.length;r<o;++r){const o=t[r];for(const t of o){let n=0,e=0;for(const{source:i,value:r}of t.targetLinks){let o=r*(t.layer-i.layer);n+=C(i,t)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(Dh),m(o,e)}}function g(t,i,e){for(let r=t.length-2;r>=0;--r){const o=t[r];for(const t of o){let n=0,e=0;for(const{target:i,value:r}of t.sourceLinks){let o=r*(i.layer-t.layer);n+=M(t,i)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(Dh),m(o,e)}}function m(n,i){const e=n.length>>1,o=n[e];b(n,o.y0-t,e-1,i),y(n,o.y1+t,e+1,i),b(n,a,n.length-1,i),y(n,r,0,i)}function y(n,i,e,r){for(;e<n.length;++e){const o=n[e],a=(i-o.y0)*r;a>1e-6&&(o.y0+=a,o.y1+=a),i=o.y1+t}}function b(n,i,e,r){for(;e>=0;--e){const o=n[e],a=(o.y1-i)*r;a>1e-6&&(o.y0-=a,o.y1-=a),i=o.y0-t}}function x({sourceLinks:t,targetLinks:n}){if(void 0===i){for(const{source:{sourceLinks:t}}of n)t.sort(Nh);for(const{target:{targetLinks:n}}of t)n.sort(Ah)}}function w(t){if(void 0===i)for(const{sourceLinks:n,targetLinks:i}of t)n.sort(Nh),i.sort(Ah)}function C(n,i){let e=n.y0-(n.sourceLinks.length-1)*t/2;for(const{target:r,width:o}of n.sourceLinks){if(r===i)break;e+=o+t}for(const{source:t,width:r}of i.targetLinks){if(t===n)break;e-=r}return e}function M(n,i){let e=i.y0-(i.targetLinks.length-1)*t/2;for(const{source:r,width:o}of i.targetLinks){if(r===n)break;e+=o+t}for(const{target:t,width:r}of n.sourceLinks){if(t===i)break;e-=r}return e}return v.update=function(t){return Bh(t),t},v.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:Vh(t),v):l},v.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:Vh(t),v):c},v.nodeSort=function(t){return arguments.length?(n=t,v):n},v.nodeWidth=function(t){return arguments.length?(u=+t,v):u},v.nodePadding=function(n){return arguments.length?(s=t=+n,v):s},v.nodes=function(t){return arguments.length?(f="function"==typeof t?t:Vh(t),v):f},v.links=function(t){return arguments.length?(h="function"==typeof t?t:Vh(t),v):h},v.linkSort=function(t){return arguments.length?(i=t,v):i},v.size=function(t){return arguments.length?(e=r=0,o=+t[0],a=+t[1],v):[o-e,a-r]},v.extent=function(t){return arguments.length?(e=+t[0][0],o=+t[1][0],r=+t[0][1],a=+t[1][1],v):[[e,r],[o,a]]},v.iterations=function(t){return arguments.length?(d=+t,v):d},v}class _h{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}var Ih=(0,o.Z)(),Wh="#757575",Rh=[{fillColor:"#00758F",borderColor:"#002E39"},{fillColor:"#77004D",borderColor:"#43002C"},{fillColor:"#4F6BED",borderColor:"#3B52B4"},{fillColor:"#937600",borderColor:"#6D5700"},{fillColor:"#286EA8",borderColor:"#00457E"},{fillColor:"#A43FB1",borderColor:"#7C158A"},{fillColor:"#CC3595",borderColor:"#7F215D"},{fillColor:"#0E7878",borderColor:"#004E4E"},{fillColor:"#8764B8",borderColor:"#4B3867"},{fillColor:"#9C663F",borderColor:"#6D4123"}];function zh(t){return"number"==typeof t?t:t.nodeId}function jh(t,n){return t[zh(n.source)][zh(n.target)]}var Yh="...";function Xh(t,n){var i;try{return t.text(n),null===(i=t.node())||void 0===i?void 0:i.getComputedTextLength()}finally{t.text(null)}}var qh=Af().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve((function(t){return new _h(t,!0)})),$h=function(t){function i(n){var i=t.call(this,n)||this;return i._isRtl=(0,a.jI)(),i._onCloseCallout=function(){i.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},i._onBlur=function(){},i._fillNodeColors=function(t){var n=i.state;if(!n.selectedState)return t.color;var e=n.selectedNode;return e&&n.selectedNodes.has(t.index)?e.color:e?void 0:t.color},i._fillNodeBorder=function(t){var n=i.state;if(n.selectedState){if(n.selectedNodes.has(t.index)){var e=n.selectedNode;return e?e.borderColor:t.borderColor}return t.borderColor}return t.borderColor},i.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},i._calloutId=v("callout"),i._linkId=v("link"),i._chartId=v("sankeyChart"),i._emptyChartId=v("_SankeyChart_empty"),i._labelTooltipId=v("tooltip"),i._margins={top:36,right:48,bottom:32,left:48},i._computeClassNamesProps=(0,fn.J9)((function(t,n,i,e,r){return{theme:t,width:e,height:r,pathColor:n,className:i}})),i._computeClassNames=(0,fn.J9)((function(t,n){return Ih(t,n)})),i._normalizeData=(0,fn.J9)((function(t,n,e,r,o){return i._normalizeSankeyData(t,n,e,r,o)})),i._fetchTooltip=(0,fn.J9)((function(t){return i._labelTooltipDiv(t)})),i._strings=(0,fn.J9)((function(t){var n=(null==t?void 0:t.linkFrom)||"From {0}";return{linkFrom:function(t){return wh(n,t.name)}}}))(n.strings),i._accessibility=(0,fn.J9)((function(t){var n=(null==t?void 0:t.linkAriaLabel)||"link from {0} to {1} with weight {2}",e=(null==t?void 0:t.nodeAriaLabel)||"node {0} with weight {1}";return{emptyAriaLabel:(null==t?void 0:t.emptyAriaLabel)||"Graph has no data to display",linkAriaLabel:function(t){return wh(n,t.source.name,t.target.name,t.unnormalizedValue?i._formatNumber(t.unnormalizedValue):t.unnormalizedValue)},nodeAriaLabel:function(t,n){return wh(e,t.name,i._formatNumber(n))}}}))(n.accessibility),i._nodeAttributes=(0,fn.J9)((function(t,n){return i._computeNodeAttributes(t,n)})),i._fetchNodes=function(t,n,e,r){return i._createNodes(t,n,e,r)},i._linkAttributes=(0,fn.J9)((function(t,n,i){return function(t,n,i){var e={};return t.forEach((function(t){var r=zh(t.source),o=e[r];o||(o={},e[r]=o),o[zh(t.target)]={reactId:v("link"),from:n(t.source),aria:i(t)}})),e}(t,n,i)})),i._fetchLinks=function(t,n){return i._createLinks(t,n)},i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){this._fitParentContainer()},i.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},i.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},i.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var i=this.props,e=i.theme,o=i.className,a=i.styles,u=i.pathColor,s=i.colorsForNodes,l=i.borderColorsForNodes,c=this.state,f=this._computeClassNamesProps(e,u,o,c.containerWidth,c.containerHeight),h=this._computeClassNames(a,f),d=this._normalizeData(this.props.data.SankeyChartData,c.containerWidth,c.containerHeight,s,l),v=d.nodes,p=d.links,g=d.width,m=d.height,b=this._fetchTooltip(h),x=this._nodeAttributes(v,this._accessibility.nodeAriaLabel),w=this._fetchNodes(h,v,x,b),C=this._linkAttributes(p,this._strings.linkFrom,this._accessibility.linkAriaLabel),M=this._fetchLinks(p,C),k={isCalloutVisible:c.isCalloutVisible,directionalHint:y.topAutoEdge,id:"toolTip".concat(this._calloutId),target:c.refSelected,color:c.color,XValue:c.xCalloutValue,YValue:c.yCalloutValue?c.yCalloutValue:c.dataForHoverCard,descriptionMessage:c.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:h.calloutContentRoot,preventDismissOnLostFocus:!0};return r.createElement("div",{className:h.root,role:"presentation",ref:function(n){return t.chartContainer=n},onMouseLeave:this._onCloseCallout},r.createElement(Rs,{direction:vs.bidirectional},r.createElement("svg",{width:g,height:m,id:this._chartId},r.createElement("g",{className:h.links,strokeOpacity:1},M),r.createElement("g",{className:h.nodes},w),k.isCalloutVisible&&r.createElement(Gn,(0,n.Cl)({},k),r.createElement(ys.ChartHoverCard,{XValue:k.XValue,YValue:k.YValue,color:k.color,descriptionMessage:k.descriptionMessage?k.descriptionMessage:""})))))}return r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":this._accessibility.emptyAriaLabel})},i.prototype._computeNodeAttributes=function(t,n){var i=this,e={},r=Ou(".nodeName").append("text").attr("class","tempText").append("tspan").text(null),o=Ou(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);return t.forEach((function(t){var a=Math.max(t.y1-t.y0,0),u=8,s=0,l=t.actualValue;if(a<36){u+=6;var c=Xh(r,i._formatNumber(l));void 0!==c&&(u+=s=c)}var f=function(t,n,i,e){var r=i-e;if(function(t,n,i){var e=Xh(t,n);return void 0!==e&&e<=i}(t,n,r))return n;for(var o=function(t){var n=Xh(t,Yh);return void 0===n?0:n}(t),a="",u=0;u<n.length;u++){a+=n[u],t.text(a);var s=t.node();if(null!==s&&s.getComputedTextLength()>=r-o){a=a.slice(0,-1),a+=Yh;break}}return t.text(null),a}(o,t.name,116,u),h=f.slice(-3)===Yh;e[t.nodeId]={reactId:v("nodeBar"),gElementId:v("nodeGElement"),name:f,aria:n(t,l),trimmed:h,height:a,weightOffset:s}})),Pu(".tempText").remove(),e},i.prototype._linkCalloutAttributes=function(t,n){return{selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:this._formatNumber(t.unnormalizedValue),descriptionMessage:n}},i.prototype._normalizeSankeyData=function(t,i,e,r,o){var a=function(t,n,i,e){var r=t.left,o=t.right,a=t.top,u=t.bottom,s=n-o,l=i-u>0?i-u:0;return{sankey:Hh().nodeWidth(124).extent([[r,a],[s-1,l-6]]).nodeAlign(e?Lh:Sh),height:l,width:s}}(this._margins,i,e,this._isRtl),u=a.sankey,s=a.height,l=a.width,c=function(t){return{nodes:t.nodes.map((function(t){return(0,n.Cl)({},t)})),links:t.links.map((function(t){return(0,n.Cl)({},t)}))}}(t);u(c);var f,h,d=function(t){var n={};return t.nodes.forEach((function(t){var i=t.layer;n[i]?n[i].push(t):n[i]=[t]})),n}(c),v=(f=c.nodes,h={},f.forEach((function(t){h[t.nodeId]=t.value})),h),p=function(t){var n={};return t.forEach((function(t){var i=zh(t.source),e=n[i];e||(e={},n[i]=e),e[zh(t.target)]=t.value})),n}(c.links);return function(t,n,i){Object.values(t).map((function(t){return Ch(t,(function(t){return t.value}))})).forEach((function(e,r){var o=0,a=.01*e,u=t[r];u.forEach((function(t){var i=n[t.nodeId],r=i/e*100;t.actualValue=i,r<1?(t.value=a,o+=1):o+=r}));var s=0!==o?o/100:1;s>1&&u.forEach((function(t){var e=t.value=t.value/s;!function(t,n,i,e){var r=function(t){var r=jh(e,t);t.unnormalizedValue=r;var o=r/n;t.value=Math.max(i*o,t.value)};t.sourceLinks.forEach(r),t.targetLinks.forEach(r)}(t,n[t.nodeId],e,i)}))}))}(d,v,p),function(t,n,i){var e=t.nodePadding(),r=.3*n;Object.values(i).forEach((function(t){var i=n-Ch(t,(function(t){return t.y1-t.y0}));r<i&&(e=Math.min(e,r/(t.length-1)))})),t.nodePadding(e)}(u,s-6,d),u(c),function(t,n,i){t.links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=jh(i,t))})),t.nodes.forEach((function(t){t.actualValue=n[t.nodeId]}))}(c,v,p),function(t,n,i){var e,r;n&&i?(e=n,r=i):(e=Rh.map((function(t){return t.fillColor})),r=Rh.map((function(t){return t.borderColor})));var o=0;t.forEach((function(t){t.color||t.borderColor?t.color&&!t.borderColor?t.borderColor="#757575":t.borderColor&&!t.color&&(t.color="#F5F5F5"):(t.color=e[o],t.borderColor=r[o]),o=(o+1)%e.length}))}(c.nodes,r,o),{width:l,height:s,nodes:c.nodes,links:c.links}},i.prototype._labelTooltipDiv=function(t){var n=Ou("#".concat(this._labelTooltipId));return n.empty()&&(n=Ou("body").append("div").attr("id",this._labelTooltipId).attr("class",t.toolTip).style("opacity",0)),n.attr("class",t.toolTip),n},i.prototype._createLinks=function(t,n){var i=this;if(t){var e=this._linkId;return t.map((function(t,o){var a,u,s,l,c=jh(n,t),f=c.reactId,h=c.from,d=c.aria,v=(u=.5*(a=t).width,s=a.y0,l=a.y1,[{x:a.source.x1,y0:s+u,y1:s-u},{x:a.target.x0,y0:l+u,y1:l-u}]),p="".concat(e,"-").concat(o),g="gradient-".concat(p),m="url(#".concat(g,")"),y=t.source,b=t.target;return r.createElement("g",{key:p},r.createElement("defs",null,r.createElement("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},r.createElement("stop",{offset:"0",stopColor:y.color}),r.createElement("stop",{offset:"100%",stopColor:b.color}))),r.createElement("path",{d:qh(v),id:f,fill:i._fillStreamColors(t,m),stroke:i._fillStreamBorder(t,m),strokeWidth:"2",strokeOpacity:i._getOpacityStreamBorder(t),onMouseOver:function(n){return i._onStreamHover(n,t,h)},onMouseOut:function(){i._onStreamLeave(t)},onFocus:function(n){return i._onFocusLink(n,t,h)},onBlur:i._onBlur,fillOpacity:i._getOpacityStream(t),"data-is-focusable":!0,"aria-label":d,role:"img"}))}))}return[]},i.prototype._createNodes=function(t,n,i,e){var o=this;if(n){var a=this.state,u=this._isRtl?"end":"start";return n.map((function(n,s){var l=i[n.nodeId],c=l.reactId,f=l.gElementId,h=l.height,d=l.trimmed,v=l.name,p=l.weightOffset,g=l.aria,m=h>36,y=n.name,b=n.actualValue,x=n.x0,w=n.x1,C=n.y0,M=function(t,n){return!t.selectedState||t.selectedNodes.has(n.index)&&t.selectedNode||!t.selectedNode?"#FFFFFF":"#323130"}(a,n);return r.createElement("g",{key:s,id:f},r.createElement("rect",{x:x,y:C,height:h,width:w-x,fill:o._fillNodeColors(n),id:c,onMouseOver:o._onHover.bind(o,n),onMouseOut:function(){o._onLeave(n)},onFocus:o._onCloseCallout.bind(o),stroke:o._fillNodeBorder(n),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":g,role:"img"}),h>24&&r.createElement("g",{className:t.nodeTextContainer},r.createElement("g",{className:"nodeName"},r.createElement("text",{id:"".concat(c,"-name"),x:x,y:C,dy:"1.2em",dx:"0.4em",textAnchor:u,fontWeight:"regular","aria-hidden":"true",fill:M,fontSize:10,onMouseOver:o._showTooltip.bind(o,y,d,e),onMouseOut:o._hideTooltip.bind(o,e)},v)),r.createElement("text",{x:m?x:w-p-8,y:C,dy:m?"2em":"1em",dx:m?"0.4em":"0em",textAnchor:u,fontWeight:"bold","aria-hidden":"true",fill:M,fontSize:14},b?o._formatNumber(b):b)))}))}},i.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},i.prototype._onHover=function(t,n){if(n.persist(),this._onCloseCallout(),!this.state.selectedState){var i=function(t){var n=new Array,i=new Set;for(t.sourceLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;)(e=n.shift().target)&&e.sourceLinks&&e.sourceLinks.forEach((function(t){i.add(t),n.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;){var e;(e=n.shift().source)&&e.targetLinks&&e.targetLinks.forEach((function(t){i.add(t),n.push(t)}))}return i}(t),e=function(t){var n=[];return t.forEach((function(t){n.push(t.target),-1===n.indexOf(t.source)&&n.push(t.source)})),n}(i);e.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(e).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(i).map((function(t){return t.index}))),selectedNode:t,refSelected:n,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:this._formatNumber(t.actualValue)})}},i.prototype._formatNumber=function(t){return this.props.formatNumberOptions?t.toLocaleString(void 0,this.props.formatNumberOptions):t.toString()},i.prototype._onStreamHover=function(t,i,e){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var r=function(t){var n=new Array,i=new Set,e=new Set;for(n.push(t.source),i.add(t);n.length>0;){var r=n.shift();e.add(r),r.targetLinks&&r.targetLinks.length>0&&r.targetLinks.forEach((function(t){n.push(t.source),i.add(t)}))}for(n.push(t.target);n.length>0;)r=n.shift(),e.add(r),r.sourceLinks&&r.sourceLinks.length>0&&r.sourceLinks.forEach((function(t){n.push(t.target),i.add(t)}));return{selectedLinks:i,selectedNodes:e}}(i),o=r.selectedLinks,a=r.selectedNodes;this.setState((0,n.Cl)({selectedState:!0,selectedNodes:new Set(Array.from(a).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(o).map((function(t){return t.index}))),refSelected:t},this._linkCalloutAttributes(i,e)))}},i.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},i.prototype._onFocusLink=function(t,i,e){t.persist(),this._onCloseCallout(),this.setState((0,n.Cl)({refSelected:t.currentTarget},this._linkCalloutAttributes(i,e)))},i.prototype._fillStreamColors=function(t,n){var i=this.state;if(i.selectedState&&i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.color:n}},i.prototype._fillStreamBorder=function(t,n){var i=this.state;if(i.selectedState){if(i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.borderColor:n}return Wh}return Wh},i.prototype._getOpacityStream=function(t){var n=this.state;if(n.selectedState){if(!n.selectedLinks.has(t.index))return 1;if(!n.selectedNode)return.3}return 1},i.prototype._getOpacityStreamBorder=function(t){var n=this.state;return!n.selectedState||n.selectedLinks.has(t.index)||n.selectedNode?1:.5},i.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n=t.props.parentRef?t.props.parentRef:t.chartContainer,r=n&&n.getBoundingClientRect().width,o=n&&n.getBoundingClientRect().height;(i!==r||e!==o)&&t.setState({containerWidth:r,containerHeight:o})}))},i.prototype._showTooltip=function(t,n,i,e){n&&(i.style("opacity",.9),i.html(t).style("left",e.pageX+"px").style("top",e.pageY-28+"px"))},i.prototype._hideTooltip=function(t){t.style("opacity",0)},i.prototype._isChartEmpty=function(){var t,n=null===(t=this.props.data)||void 0===t?void 0:t.SankeyChartData;return!(n&&n.nodes.length>0&&n.links.length>0)},i}(r.Component),Uh=(0,t.I)($h,(function(t){var i,e,r,o=t.className,a=t.theme,u=t.pathColor,s=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},o],links:{stroke:u||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(i={},i[jt.NK]={fill:"#000000"},i)},nodes:{fill:"#F5F5F5",selectors:(e={},e[jt.NK]={fill:"#000000"},e)},toolTip:(0,n.Cl)((0,n.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(r={},r[jt.NK]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:s.elevation4}}}));function Gh(t){var n=0,i=t.children,e=i&&i.length;if(e)for(;--e>=0;)n+=i[e].value;else n=1;t.value=n}function Zh(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Jh)):void 0===n&&(n=Kh);for(var i,e,r,o,a,u=new nd(t),s=[u];i=s.pop();)if((r=n(i.data))&&(a=(r=Array.from(r)).length))for(i.children=r,o=a-1;o>=0;--o)s.push(e=r[o]=new nd(r[o])),e.parent=i,e.depth=i.depth+1;return u.eachBefore(td)}function Kh(t){return t.children}function Jh(t){return Array.isArray(t)?t[1]:null}function Qh(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function td(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function nd(t){this.data=t,this.depth=this.height=0,this.parent=null}function id(t,n){return t.parent===n.parent?1:2}function ed(t){var n=t.children;return n?n[0]:t.t}function rd(t){var n=t.children;return n?n[n.length-1]:t.t}function od(t,n,i){var e=i/(n.i-t.i);n.c-=e,n.s+=i,t.c+=e,n.z+=i,n.m+=i}function ad(t,n,i){return t.a.parent===n.parent?t.a:i}function ud(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}nd.prototype=Zh.prototype={constructor:nd,count:function(){return this.eachAfter(Gh)},each:function(t,n){let i=-1;for(const e of this)t.call(n,e,++i,this);return this},eachAfter:function(t,n){for(var i,e,r,o=this,a=[o],u=[],s=-1;o=a.pop();)if(u.push(o),i=o.children)for(e=0,r=i.length;e<r;++e)a.push(i[e]);for(;o=u.pop();)t.call(n,o,++s,this);return this},eachBefore:function(t,n){for(var i,e,r=this,o=[r],a=-1;r=o.pop();)if(t.call(n,r,++a,this),i=r.children)for(e=i.length-1;e>=0;--e)o.push(i[e]);return this},find:function(t,n){let i=-1;for(const e of this)if(t.call(n,e,++i,this))return e},sum:function(t){return this.eachAfter((function(n){for(var i=+t(n.data)||0,e=n.children,r=e&&e.length;--r>=0;)i+=e[r].value;n.value=i}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,i=function(t,n){if(t===n)return t;var i=t.ancestors(),e=n.ancestors(),r=null;for(t=i.pop(),n=e.pop();t===n;)r=t,t=i.pop(),n=e.pop();return r}(n,t),e=[n];n!==i;)n=n.parent,e.push(n);for(var r=e.length;t!==i;)e.splice(r,0,t),t=t.parent;return e},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(i){i!==t&&n.push({source:i.parent,target:i})})),n},copy:function(){return Zh(this).eachBefore(Qh)},[Symbol.iterator]:function*(){var t,n,i,e,r=this,o=[r];do{for(t=o.reverse(),o=[];r=t.pop();)if(yield r,n=r.children)for(i=0,e=n.length;i<e;++i)o.push(n[i])}while(o.length)}},ud.prototype=Object.create(nd.prototype);var sd,ld,cd=(0,o.Z)(),fd=function(t){function i(n,i,e,r,o,a){void 0===r&&(r=[]),void 0===o&&(o=[]);var u=t.call(this,n,e,r,o)||this;return u.composition=i,u._treeTraversal=a,u}return(0,n.C6)(i,t),i.prototype.C=function(t,n){var i,e,r,o,a,u,s=(t=t<65?65:t>90?90:t)||75,l=Zh(this.treeData,(function(t){return t.children})),c=(null==l?void 0:l.height)+1;(function(){var t=id,n=1,i=1,e=null;function r(r){var s=function(t){for(var n,i,e,r,o,a=new ud(t,0),u=[a];n=u.pop();)if(e=n._.children)for(n.children=new Array(o=e.length),r=o-1;r>=0;--r)u.push(i=n.children[r]=new ud(e[r],r)),i.parent=n;return(a.parent=new ud(null,0)).children=[a],a}(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),e)r.eachBefore(u);else{var l=r,c=r,f=r;r.eachBefore((function(t){t.x<l.x&&(l=t),t.x>c.x&&(c=t),t.depth>f.depth&&(f=t)}));var h=l===c?1:t(l,c)/2,d=h-l.x,v=n/(c.x+h+d),p=i/(f.depth||1);r.eachBefore((function(t){t.x=(t.x+d)*v,t.y=t.depth*p}))}return r}function o(n){var i=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(i){!function(t){for(var n,i=0,e=0,r=t.children,o=r.length;--o>=0;)(n=r[o]).z+=i,n.m+=i,i+=n.s+(e+=n.c)}(n);var o=(i[0].z+i[i.length-1].z)/2;r?(n.z=r.z+t(n._,r._),n.m=n.z-o):n.z=o}else r&&(n.z=r.z+t(n._,r._));n.parent.A=function(n,i,e){if(i){for(var r,o=n,a=n,u=i,s=o.parent.children[0],l=o.m,c=a.m,f=u.m,h=s.m;u=rd(u),o=ed(o),u&&o;)s=ed(s),(a=rd(a)).a=n,(r=u.z+f-o.z-l+t(u._,o._))>0&&(od(ad(u,n,e),n,r),l+=r,c+=r),f+=u.m,l+=o.m,h+=s.m,c+=a.m;u&&!rd(a)&&(a.t=u,a.m+=f-c),o&&!ed(s)&&(s.t=o,s.m+=l-h,e=n)}return e}(n,r,n.parent.A||e[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*i}return r.separation=function(n){return arguments.length?(t=n,r):t},r.size=function(t){return arguments.length?(e=!1,n=+t[0],i=+t[1],r):e?null:[n,i]},r.nodeSize=function(t){return arguments.length?(e=!0,n=+t[0],i=+t[1],r):e?[n,i]:null},r})().nodeSize([s,s/1.5]).separation((function(t,n){return t.parent===l&&n.parent===l?3.5:1}))(l).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=n/2}));var f=[],h=0,d=function(t){var n,i;t.id=h,f.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(n=t.data)||void 0===n?void 0:n.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(i=t.parent)||void 0===i?void 0:i.id}),h++};0===this._treeTraversal?l.each((function(t){d(t)})):l.eachBefore((function(t){d(t)}));for(var v=3*s,p=v/3.45,g=20,m=new Set,y=0,b=f;y<b.length;y++){var x=b[y],w=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(f[x.parentID].dataName,"\n ").concat(f[x.parentID].subName);if(!x.children&&!m.has(x.parentID)&&3===c){var C=(v-g)/2,M=p;m.add(x.parentID),this.k(x.id,f[x.parentID].x,f[x.parentID].y,f[x.id].x,f[x.id].y,!0,v,p,g);for(var k=null===(i=f[x.parentID])||void 0===i?void 0:i.children,L=(null===(e=f[x.parentID])||void 0===e?void 0:e.x)-C/2-10,S=(null===(r=f[x.parentID])||void 0===r?void 0:r.x)+C/2+10,V=null===(o=f[x.parentID])||void 0===o?void 0:o.x,A=null===(a=k[0])||void 0===a?void 0:a.y,N=0;N<k.length;++N){var D=k[N];void 0!==this.composition?0===this.composition?(this.N(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,N%2==0?1===k.length?V:L:S,A,D.data.fill,1===k.length?v:C,p,D.id,w),N%2==1&&(A+=M+g)):(this.N(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,V,A,D.data.fill,v,p,D.id,w),A+=M+g):k.length>2?(this.N(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,N%2==0?L:S,A,D.data.fill,1===k.length?v:C,p,D.id,w),N%2==1&&(A+=M+g)):(this.N(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,V,A,D.data.fill,v,p,D.id,w),A+=M+g)}}if((x.children||c<=2)&&(this.N(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,v,p,x.id,w),0===x.id&&x.children)){var T=di(k=null===(u=f[x.id])||void 0===u?void 0:u.children,(function(t){return t.x})),O=vi(k,(function(t){return t.x}));this.k(x.id,x.x,x.y,T,x.children[0].y,!1,v,p,g,O)}}},i}(function(){function t(t,n,i,e){void 0===i&&(i=[]),void 0===e&&(e=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=n,this._nodeElements=i,this._linkElements=e}return t.prototype.D=function(t,n,i,e){var r,o=t.split(/\s+/).reverse(),a="",u=Ou(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);e&&u.attr("class",e);for(var s=[];a=o.pop();)if(s.push(a),u.text(s.join(" ")+" "),null!==u.node()&&u.node().getComputedTextLength()>n-i){s.pop(),s.push("...");break}return r=s.join(" ")+" ",u.text(null),Pu(".tempText").remove(),r},t.prototype.N=function(t,n,i,e,o,a,u,s,l,c,f){var h="nodeId: ".concat(c," \nnodeMainText: ").concat(t,"\nsubText ").concat(n," ").concat(f),d=o-s/2;!e&&0===c&&i||this._nodeElements.push(r.createElement("rect",{width:s,height:l,x:d,y:a,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:u,key:"".concat(c).concat(this.styleClassNames.rectNode)})),n&&(n=this.D(n,s,s/4,this.styleClassNames.rectSubText)),i&&(i=this.D(i,s,s/4,this.styleClassNames.rectBodyText)),e&&(e=this.D(e,s,s/4,this.styleClassNames.rectMetricText)),t=this.D(t,s,s/4,this.styleClassNames.rectText);var v=e?r.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:d+s/2},e):i?r.createElement(r.Fragment,null,r.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n),r.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:d+s/2},i)):r.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n);n||e||i?this._nodeElements.push(r.createElement("text",{textAnchor:"middle",className:e?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:e?a+l/2.5:a+l/2,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t,v)):this._nodeElements.push(r.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:a+l/1.6,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t))},t.prototype.O=function(t,n,i,e,r,o,a,u,s){var l="M".concat(i-o/2,",").concat(e-u," H").concat(s+o/2," M").concat(t,",").concat(e-u,"\n V").concat(n+a+u/2),c="M".concat(t,",").concat(n+a+u/2," V").concat(n+5*u,"\n H").concat(t-o/2," H").concat(t+o/2);return r?c:l},t.prototype.k=function(t,n,i,e,o,a,u,s,l,c){void 0===c&&(c=0),this._linkElements.push(r.createElement("path",{className:this.styleClassNames.link,d:this.O(n,i,e,o,a,u,s,l,c),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),hd=function(t){function i(n){var i,e,r,o,a,u=this;return(u=t.call(this,n)||this)._nodeElements=[],u._linkElements=[],u._margin={top:(null===(i=u.props.margins)||void 0===i?void 0:i.top)||30,bottom:(null===(e=u.props.margins)||void 0===e?void 0:e.bottom)||30,left:(null===(r=u.props.margins)||void 0===r?void 0:r.left)||50,right:(null===(o=u.props.margins)||void 0===o?void 0:o.right)||20},u._width=u.props.width||1500,u._height=u.props.height||700,u._treeData=u.props.treeData,u._composition=null===(a=u.props)||void 0===a?void 0:a.composition,u._treeTraversal=u.props.treeTraversal,u.state={_width:u._width,_height:u._height},u}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){var t=this.props,n=t.theme,i=t.className,e=t.styles;this._classNames=cd(e,{theme:n,className:i}),this.P(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},i.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var n=Pu("text"),i=Pu("rect"),e=Pu("path");0===this._nodeElements.length&&0===this._linkElements.length&&(n.remove(),i.remove(),e.remove()),this.P()}},i.prototype.P=function(){var t=[],n=[],i=new fd(this._treeData,this._composition,this._classNames,t,n,this._treeTraversal),e=this.state._width-this._margin.left-this._margin.right;i.C(this.props.layoutWidth,e),this._nodeElements=t,this._linkElements=n},i.prototype.render=function(){var t;return r.createElement(Rs,null,r.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},r.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},r.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),r.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},i}(r.Component),dd=(0,t.I)(hd,(function(t){return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:t.theme.palette.neutralSecondary,strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:t.theme.semanticColors.bodyBackground,padding:"10px",rx:"2px"},rectText:(0,n.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.large),rectSubText:(0,n.Cl)({fill:t.theme.palette.neutralPrimary},t.theme.fonts.medium),rectBodyText:(0,n.Cl)({fill:t.theme.palette.neutralPrimaryAlt},t.theme.fonts.xSmall),rectMetricText:(0,n.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.xLarge)}}));!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(sd||(sd={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(ld||(ld={}));var vd,pd,gd=(0,o.Z)(),md=function(t){function i(n){var i=t.call(this,n)||this;return i.margin={top:2,right:0,bottom:0,left:0},i._isRTL=(0,a.jI)(),i.state={_points:null,_width:i.props.width||80,_height:i.props.height||20,_valueTextWidth:i.props.valueTextWidth||80},i._emptyChartId=v("_SparklineChart_empty"),i}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){var t=this;if(!this._isChartEmpty()){var n=Af().x((function(n){return t.x(n.x)})).y0(this.state._height).y1((function(n){return t.y(n.y)})).curve(Xc);this.area=n;var i=Uc().x((function(n){return t.x(n.x)})).y((function(n){return t.y(n.y)})).curve(Xc);this.line=i;var e=this.props.data.lineChartData[0].data,r=function(t,n){let i,e;if(void 0===n)for(const n of t)null!=n&&(void 0===i?n>=n&&(i=e=n):(i>n&&(i=n),e<n&&(e=n)));else{let r=-1;for(let o of t)null!=(o=n(o,++r))&&(void 0===i?o>=o&&(i=e=o):(i>o&&(i=o),e<o&&(e=o)))}return[i,e]}(e,(function(t){return t.x})),o=r[0],a=r[1];this.x=Ie().domain([o,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Ie().domain([0,vi(e,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:e})}},i.prototype.drawSparkline=function(){return r.createElement(r.Fragment,null,r.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),r.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,role:"img","aria-hidden":!0}))},i.prototype.render=function(){var t=gd(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?r.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):r.createElement(Rs,{direction:vs.horizontal,isCircularNavigation:!0,className:t.inlineBlock},r.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?r.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0,"aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)},this.state._points?this.drawSparkline():null):r.createElement(r.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?r.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},r.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):r.createElement(r.Fragment,null)))},i.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},i}(r.Component),yd=(0,t.I)(md,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,n.Cl)((0,n.Cl)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText})}})),bd=(0,o.Z)(),xd=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,a.jI)(),e._getMargins=function(t){e.margins=t},e._renderContentForOnlyBars=function(t){var n,i,o,a=e.props.useSingleColor,u=void 0!==a&&a,s=0;return e.props.data.forEach((function(n,i){n.y===t.y&&(s=i)})),o=u?e.props.colors?e._createColors()(1):_c(1,0,null===(n=e.props.theme)||void 0===n?void 0:n.isInverted):t.color?t.color:e.props.colors?e._createColors()(t.x):_c(s,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted),r.createElement(r.Fragment,null,r.createElement(ys.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:o,culture:e.props.culture}))},e._renderCallout=function(t){return t?e._renderContentForOnlyBars(t):null},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._getGraphData=function(t,n,i,r,o,a){return e._bars=e._yAxisType===Uu.NumericAxis?e._createNumericBars(i,r,o,a):e._createStringBars(i,r,o,a)},e._refCallback=function(t,n){e._refArray.push({index:n,refElement:t})},e._getCalloutContentForBar=function(t){var n,i,r,o=[],a=e.props.useSingleColor,u=void 0!==a&&a,s=e.props.data,l=s.filter((function(n){return n.y===t.y})),c=0;return s.forEach((function(n,i){n.y===t.y&&(c=i)})),r=u?e.props.colors?e._createColors()(1):_c(1,0,null===(n=e.props.theme)||void 0===n?void 0:n.isInverted):l[0].color?l[0].color:e.props.colors?e._createColors()(l[0].x):_c(c,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted),o.push({legend:l[0].legend,y:l[0].x,color:r,data:l[0].yAxisCalloutData,yAxisCalloutData:l[0].yAxisCalloutData}),{YValueHover:o,hoverXValue:t.yAxisCalloutData||t.y.toString()}},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},e._onBarFocus=function(t,n,i){if(!1===e.state.isLegendSelected||e.state.isLegendSelected&&e.state.selectedLegendTitle===t.legend){var r=e._getCalloutContentForBar(t),o=r.YValueHover,a=r.hoverXValue;e._refArray.forEach((function(r,u){n===u&&e.setState({refSelected:r.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:e.props.useSingleColor?i:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData})}))}},e._getScales=function(t,n,i){if(i){var r=vi(e._points,(function(t){return t.x})),o=vi(e._points,(function(t){return t.y}));return{xBarScale:Ie().domain(e._isRtl?[r,0]:[0,r]).nice().range([e.margins.left,n-e.margins.right]),yBarScale:a=Ie().domain([0,o]).range([t-e.margins.bottom,e.margins.top])}}r=vi(e._points,(function(t){return t.x}));var a=ka().domain(e._yAxisLabels).range([t-e.margins.bottom-e._barHeight/2,e.margins.top+e._barHeight/2]).padding(e.props.yAxisPadding||0);return{xBarScale:Ie().domain(e._isRtl?[r,0]:[0,r]).nice().range([e.margins.left,n-e.margins.right]),yBarScale:a}},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,i){var o=e.props.useSingleColor,a=[];return t.forEach((function(t,n){var i,r=o?e.props.colors?e._createColors()(1):_c(1,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):t.color,u={title:t.legend,color:r,action:function(){e._onLegendClick(t.legend)},hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(t){e._onLegendLeave(t)}};a.push(u)})),r.createElement(Ul,(0,n.Cl)({legends:a,enabledWrapLines:e.props.enabledLegendsWrapLines,overflowProps:e.props.legendsOverflowProps,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard,overflowText:e.props.legendsOverflowText},e.props.legendProps))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._xMax=Math.max(n[n.length-1],e.props.xMaxValue||0)}},e._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.x,e=t.yAxisCalloutData||t.y;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,". ")+"".concat(e,".")},e._getChartTitle=function(){var t=e.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Horizontal bar chart with ".concat((null==i?void 0:i.length)||0," bars. ")},e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},e._calloutId=v("callout"),e._tooltipId=v("HBCWATooltipID_"),e._refArray=[],e._xAxisType=e.props.data&&e.props.data.length>0?ls(e.props.data[0].x,!0):$u.NumericAxis,e._yAxisType=e.props.data&&e.props.data.length>0?ls(e.props.data[0].y,!1):Uu.StringAxis,e}return(0,n.C6)(i,t),i.prototype.render=function(){var t=this;this._adjustProps();var i=(0,n.fX)([],this._points,!0).reverse();this._yAxisLabels=i.map((function(t){return t.y})),this._xMax=Math.max(vi(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var e=this._getLegendData(this._points,this.props.theme.palette);this._classNames=bd(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var o=(0,n.Cl)((0,n.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),fs(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return r.createElement(rf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,chartType:qu.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:o,tickParams:a,legendBars:e,barwidth:this._barHeight,focusZoneDirection:vs.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return r.createElement(r.Fragment,null,r.createElement("g",null,t._bars))}}))},i.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark]},i.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._xMax);return Ie().domain(e).range(this._colors)},i.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor?n:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},i.prototype._createNumericBars=function(t,i,e,o){var a=this,u=this.props.useSingleColor,s=void 0!==u&&u,l=this._getScales(t,i,!0),c=l.xBarScale,f=l.yBarScale,h=(0,n.fX)([],this._points,!0);h.sort((function(t,n){var i="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof n.y?n.y:parseFloat(n.y))-i}));var d=h.map((function(t,n){var e,o,u,l=!0;return(a.state.isLegendHovered||a.state.isLegendSelected)&&(l=a.state.selectedLegendTitle===t.legend),a._classNames=bd(a.props.styles,{theme:a.props.theme,legendColor:a.state.color,shouldHighlight:l}),Math.max(f(t.y),0)<1?r.createElement(r.Fragment,{key:t.x}," "):(u=s?a.props.colors?a._createColors()(1):_c(1,0,null===(e=a.props.theme)||void 0===e?void 0:e.isInverted):a.props.colors?a._createColors()(t.x):_c(n,0,null===(o=a.props.theme)||void 0===o?void 0:o.isInverted),r.createElement("rect",{key:t.y,x:a._isRtl?c(t.x):a.margins.left,className:a._classNames.opacityChangeOnHover,y:f(t.y)-a._barHeight/2,"data-is-focusable":l,width:a._isRtl?i-a.margins.right-Math.max(c(t.x),0):Math.max(c(t.x),0)-a.margins.left,height:a._barHeight,ref:function(n){a._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:a._onBarHover.bind(a,t,u),"aria-label":a._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(a._calloutId),onMouseLeave:a._onBarLeave,onFocus:a._onBarFocus.bind(a,t,n,u),onBlur:a._onBarLeave,fill:t.color&&!s?t.color:u}))}));return d},i.prototype._tooltipOfYAxislabels=function(t){var n=this,i=t.tooltipCls,e=t.yAxis,r=t.id;if(null===e)return null;for(var o=Ou("body").append("div").attr("id",r).attr("class",i).style("opacity",0),a=e.selectAll("#BaseSpan")._groups[0],u=a&&Object.keys(a).length,s=[],l=0;l<u;l++){var c=a[l].dataset&&Object.values(a[l].dataset)[0];s.push(c)}var f=e.selectAll(".tick")._groups[0],h=f&&Object.keys(f).length,d=function(t){Ou(f[t]).on("mouseover",(function(i,e){n.state.tooltipElement||(o.style("opacity",.9),o.html(s[t]).style("left",i.pageX+"px").style("top",i.pageY-28+"px"))})).on("mouseout",(function(t){o.style("opacity",0)}))};for(l=0;l<h;l++)d(l)},i.prototype._createStringBars=function(t,n,i,e){var o=this,a=this._getScales(t,n,!1),u=a.xBarScale,s=a.yBarScale,l=this.props.useSingleColor,c=void 0!==l&&l,f=this._points.map((function(t,i){var e,a,l;return Math.max(s(t.y),0)<1?r.createElement(r.Fragment,{key:t.x}," "):(l=c?o.props.colors?o._createColors()(1):_c(1,0,null===(e=o.props.theme)||void 0===e?void 0:e.isInverted):o.props.colors?o._createColors()(t.x):_c(i,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),r.createElement("rect",{transform:"translate(0,".concat(.5*(s.bandwidth()-o._barHeight),")"),key:t.x,x:o._isRtl?u(t.x):o.margins.left,y:s(t.y),width:o._isRtl?n-o.margins.right-Math.max(u(t.x),0):Math.max(u(t.x),0)-o.margins.left,height:o._barHeight,"aria-labelledby":"toolTip".concat(o._calloutId),"aria-label":o._getAriaLabel(t),role:"img",ref:function(n){o._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:o._onBarHover.bind(o,t,l),onMouseLeave:o._onBarLeave,onBlur:o._onBarLeave,"data-is-focusable":!0,onFocus:o._onBarFocus.bind(o,t,i,l),fill:t.color&&!c?t.color:l}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var h=Ou(e).call(s);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(d)}return f},i.prototype._onLegendClick=function(t){this.state.isLegendSelected?this.state.selectedLegendTitle===t?this.setState({isLegendSelected:!1,selectedLegendTitle:t}):this.setState({selectedLegendTitle:t}):this.setState({isLegendSelected:!0,selectedLegendTitle:t})},i.prototype._onLegendHover=function(t){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:t})},i.prototype._onLegendLeave=function(t){(t||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this.state.isLegendSelected})},i}(r.Component),wd=(0,t.I)(xd,(function(t){var i=t.shouldHighlight,e=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1"},xAxisTicks:[],tooltip:(0,n.Cl)((0,n.Cl)({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));!function(t){t.Percentage="percentage",t.Fraction="fraction"}(vd||(vd={})),function(t){t.SingleSegment="single-segment",t.MultipleSegments="multiple-segments"}(pd||(pd={}));var Cd=[{minRadius:52,arcWidth:12,fontSize:20},{minRadius:70,arcWidth:16,fontSize:24},{minRadius:88,arcWidth:20,fontSize:32},{minRadius:106,arcWidth:24,fontSize:32},{minRadius:124,arcWidth:28,fontSize:40},{minRadius:142,arcWidth:32,fontSize:40}],Md=(0,o.Z)(),kd=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0===n&&e===pd.SingleSegment?"".concat(t.legend,", ").concat(t.size," out of ").concat(i," or ").concat((t.size/i*100).toFixed(),"%"):"".concat(t.legend,", ").concat(t.start," to ").concat(t.end):0===n&&e===pd.SingleSegment?"".concat(t.size," (").concat((t.size/i*100).toFixed(),"%)"):"".concat(t.start," - ").concat(t.end)},Ld=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0!==n?t.toString():e===vd.Fraction?"".concat((t/i*100).toFixed(),"%"):"".concat(t,"/").concat(i):"function"==typeof e?e([t-n,i-n]):0!==n?t.toString():e===vd.Fraction?"".concat(t,"/").concat(i):"".concat((t/i*100).toFixed(),"%")},Sd=function(t){function i(i){var e=t.call(this,i)||this;return e._getMargins=function(){var t=e.props,n=t.hideMinMax;return{left:16+(n?0:40),right:16+(n?0:40),top:16+(t.chartTitle?27:2),bottom:16+(t.sublabel?20:0)}},e._getStylesBasedOnBreakpoint=function(){for(var t=Cd.length-1;t>=0;t-=1)if(e._outerRadius>=Cd[t].minRadius)return{arcWidth:Cd[t].arcWidth,chartValueSize:Cd[t].fontSize};return{arcWidth:Cd[0].arcWidth,chartValueSize:Cd[0].fontSize}},e._processProps=function(){var t=e.props,n=t.minValue,i=void 0===n?0:n,r=t.maxValue,o=t.theme,a=i,u=e.props.segments.map((function(t,n){var i=Math.max(t.size,0);return a+=i,{legend:t.legend,size:i,color:void 0!==t.color?Ic(t.color,o.isInverted):_c(n,0,o.isInverted),accessibilityData:t.accessibilityData,start:a-i,end:a}}));void 0!==r&&a<r&&(u.push({legend:"Unknown",size:r-a,color:o.palette.neutralLight,start:a,end:r}),a=r);var s=Lc().padAngle(2/e._outerRadius).padRadius(e._outerRadius),l=e._isRTL?Array.from(u).reverse():u,c=-Math.PI/2,f=l.map((function(t,n){var r=c+t.size/(a-i)*Math.PI,o=s({innerRadius:e._innerRadius,outerRadius:e._outerRadius,startAngle:c,endAngle:r});return c=r,{d:o,segmentIndex:e._isRTL?u.length-1-n:n}}));return e._minValue=i,e._maxValue=a,e._segments=u,{arcs:f}},e._renderNeedle=function(){var t=function(t,n,i){var e=(t-n)/(i-n)*180;return e<0?e=0:e>180&&(e=180),e}(e.props.chartValue,e._minValue,e._maxValue),n=e._isRTL?180-t:t,i=e._outerRadius-e._innerRadius+4;return r.createElement("g",{transform:"rotate(".concat(n,", 0, 0)")},r.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-i,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-i,",").concat(2,"\n L 0,").concat(4,"\n A ").concat(4,",").concat(4,",0,0,0,0,").concat(-4,"\n "),strokeWidth:2,className:e._classNames.needle,transform:"translate(".concat(2-e._innerRadius,")"),"data-is-focusable":!0,onFocus:function(t){return e._handleFocus(t,"Needle")},onBlur:e._handleBlur,onMouseEnter:function(t){return e._handleMouseOver(t,"Needle")},onMouseMove:function(t){return e._handleMouseOver(t,"Needle")},role:"img","aria-label":"Current value: "+Ld(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat)}))},e._renderLegends=function(){if(e.props.hideLegend)return null;var t=e._segments.map((function(t){return{title:t.legend,color:t.color,action:function(){e.state.selectedLegend===t.legend?e.setState({selectedLegend:""}):e.setState({selectedLegend:t.legend})},hoverAction:function(){e.setState({hoveredLegend:t.legend})},onMouseOutAction:function(){e.setState({hoveredLegend:""})}}}));return r.createElement("div",{className:e._classNames.legendsContainer},r.createElement(Ul,(0,n.Cl)({legends:t,centerLegends:!0},e.props.legendProps)))},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.hoveredLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.hoveredLegend},e._handleFocus=function(t,n){e._showCallout(t.target,n,!0)},e._handleBlur=function(){e._hideCallout(!0)},e._handleMouseOver=function(t,n){e._showCallout(t.target,n,!1)},e._handleMouseOut=function(){e._hideCallout(!1)},e._handleCalloutDismiss=function(){e._hideCallout(!1)},e._showCallout=function(t,i,r){if(e._calloutAnchor!==i){e._calloutAnchor=i;var o="Current value is "+Ld(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat,!0),a=e._segments.map((function(t){return{legend:t.legend,y:kd(t,e._minValue,e._maxValue,e.props.variant),color:t.color}}));e.setState((0,n.Cl)({calloutTarget:t,isCalloutVisible:["Needle","Chart value"].includes(i)||""===e.state.selectedLegend||e.state.selectedLegend===i,hoverXValue:o,hoverYValues:a},r?{focusedElement:i}:{}))}},e._hideCallout=function(t){e._calloutAnchor="",e.setState((0,n.Cl)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},t?{focusedElement:""}:{}))},e._wrapContent=function(t,n,i){var e=Ou("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},e._multiValueCallout=function(t){var i=e._yValueHoverSubCountsExists(t.YValueHover);return r.createElement("div",{className:e._classNames.calloutContentRoot},r.createElement("div",{className:e._classNames.calloutDateTimeContainer,style:i?{marginBottom:"11px"}:{}},r.createElement("div",(0,n.Cl)({className:e._classNames.calloutContentX},fs(t.xAxisCalloutAccessibilityData,"text",!1)),(0,Zn.U)(t.hoverXValue,e.props.culture))),r.createElement("div",{className:e._classNames.calloutInfoContainer,style:i?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,o,a){var u=o+1===a.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return r.createElement("div",(0,n.Cl)({},fs(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(o),style:i?(0,n.Cl)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,n.Cl)({},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),e._getCalloutContent(t,o,i,u))})),!!t.descriptionMessage&&r.createElement("div",{className:e._classNames.descriptionMessage},t.descriptionMessage)))},e._getChartTitle=function(){var t=e.props.chartTitle;return(t?"".concat(t,". "):"")+"Gauge chart with ".concat(e._segments.length," segments. ")},e._margins=e._getMargins(),e._legendsHeight=i.hideLegend?0:24,e.state={hoveredLegend:"",selectedLegend:"",focusedElement:"",calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[],width:140+e._margins.left+e._margins.right,height:70+e._margins.top+e._margins.bottom+e._legendsHeight},e._isRTL=(0,a.jI)(i.theme),e._calloutAnchor="",e}return(0,n.C6)(i,t),i.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},i.prototype.render=function(){var t=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var i=this.props.width||this.state.width,e=this.props.height||this.state.height;this._outerRadius=Math.min((i-(this._margins.left+this._margins.right))/2,e-(this._margins.top+this._margins.bottom+this._legendsHeight));var o=this._getStylesBasedOnBreakpoint(),a=o.arcWidth,u=o.chartValueSize;this._innerRadius=this._outerRadius-a;var s=this._processProps().arcs;return this._classNames=Md(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:i,chartHeight:e-this._legendsHeight,chartValueSize:u}),r.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},r.createElement(Rs,{direction:vs.horizontal},r.createElement("svg",{className:this._classNames.chart,role:"region","aria-label":this._getChartTitle(),onMouseLeave:this._handleMouseOut},r.createElement("g",{transform:"translate(".concat(i/2,", ").concat(e-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&r.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle,"aria-hidden":!0},this.props.chartTitle),!this.props.hideMinMax&&r.createElement(r.Fragment,null,r.createElement("text",{x:(this._isRTL?1:-1)*(this._outerRadius+4),y:0,textAnchor:"end",className:this._classNames.limits,role:"img","aria-label":"Min value: ".concat(this._minValue)},ds(this._minValue)),r.createElement("text",{x:(this._isRTL?-1:1)*(this._outerRadius+4),y:0,textAnchor:"start",className:this._classNames.limits,role:"img","aria-label":"Max value: ".concat(this._maxValue)},ds(this._maxValue))),s.map((function(i,e){var o=t._segments[i.segmentIndex];return r.createElement("path",(0,n.Cl)({key:e,d:i.d,fill:o.color,fillOpacity:t._legendHighlighted(o.legend)||t._noLegendHighlighted()?1:.1,strokeWidth:t.state.focusedElement===o.legend?2:0,className:t._classNames.segment},fs((0,n.Cl)({ariaLabel:kd(o,t._minValue,t._maxValue,t.props.variant,!0)},o.accessibilityData),"img",!0),{onFocus:function(n){return t._handleFocus(n,o.legend)},onBlur:t._handleBlur,onMouseEnter:function(n){return t._handleMouseOver(n,o.legend)},onMouseMove:function(n){return t._handleMouseOver(n,o.legend)},"data-is-focusable":t._legendHighlighted(o.legend)||t._noLegendHighlighted()}))})),this._renderNeedle(),r.createElement("g",{onMouseEnter:function(n){return t._handleMouseOver(n,"Chart value")},onMouseMove:function(n){return t._handleMouseOver(n,"Chart value")}},r.createElement(Jc,{content:Ld(this.props.chartValue,this._minValue,this._maxValue,this.props.chartValueFormat),textProps:{x:0,y:0,textAnchor:"middle",className:this._classNames.chartValue,"aria-hidden":"true"},maxWidth:2*this._innerRadius-24,wrapContent:this._wrapContent})),this.props.sublabel&&r.createElement(Jc,{content:this.props.sublabel,textProps:{x:0,y:4,textAnchor:"middle",dominantBaseline:"hanging",className:this._classNames.sublabel},maxWidth:2*this._innerRadius,wrapContent:this._wrapContent})))),this._renderLegends(),!this.props.hideTooltip&&this.state.isCalloutVisible&&r.createElement(Gn,(0,n.Cl)({target:this.state.calloutTarget,directionalHint:y.topAutoEdge,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},i.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},i.prototype._getCalloutContent=function(t,n,i,e){var o=e?{}:{marginRight:"16px"},a=void 0!==t.index&&-1!==t.index,u=Md(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:a}),s=this.props.culture,l=(0,Zn.U)(t.y,s);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var c=t.yAxisCalloutData;return r.createElement("div",{style:o},r.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),Object.keys(c).map((function(t){return r.createElement("div",{key:t,className:u.calloutBlockContainer},r.createElement("div",{className:u.calloutlegendText}," ",(0,Zn.U)(t,s)),r.createElement("div",{className:u.calloutContentY},(0,Zn.U)(c[t],s)))})))}return r.createElement("div",{style:i?o:{}},i&&r.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),r.createElement("div",{id:"".concat(n,"_").concat(t.y),className:u.calloutBlockContainer},a&&r.createElement(Xl,{svgProps:{className:u.shapeStyles},pathProps:{fill:t.color},shape:us[t.index%Object.keys(cs).length]}),r.createElement("div",null,r.createElement("div",{className:u.calloutlegendText}," ",t.legend),r.createElement("div",{className:u.calloutContentY},(0,Zn.U)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,s)))))},i}(r.Component),Vd=(0,t.I)(Sd,(function(t){var i,e,r,o,a=t.theme,u=t.chartValueSize,s=t.chartWidth,l=t.chartHeight,c=t.className,f=t.lineColor,h=t.toDrawShape;return{root:[a.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},c],chart:{display:"block",width:s,height:l},limits:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:a.palette.neutralPrimary},chartValue:{fontSize:u,fontWeight:jt.BO.semibold,fill:a.palette.neutralPrimary},sublabel:{fontSize:jt.s.small,fontWeight:jt.BO.semibold,fill:a.palette.neutralPrimary},needle:{fill:a.palette.black,stroke:a.semanticColors.bodyBackground},chartTitle:{fontSize:jt.s.small,fill:a.palette.neutralPrimary},segment:{outline:"none",stroke:a.semanticColors.focusBorder},legendsContainer:{width:s},calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:a.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,n.Cl)((0,n.Cl)({},a.fonts.small),{lineHeight:"16px",opacity:"0.85",color:a.semanticColors.bodySubtext})],calloutBlockContainer:[a.fonts.mediumPlus,{marginTop:"13px",color:a.semanticColors.bodyText},!h&&{selectors:(i={},i[jt.up]={forcedColorAdjust:"none"},i),borderLeft:"4px solid ".concat(f),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,n.Cl)((0,n.Cl)({},a.fonts.small),{lineHeight:"16px",selectors:(e={},e[jt.NK]={color:"rgb(255, 255, 255)"},e),color:a.semanticColors.bodySubtext}),calloutContentY:[(0,n.Cl)((0,n.Cl)({},a.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(r={},r[jt.NK]={color:"rgb(255, 255, 255)"},r)})],descriptionMessage:[a.fonts.small,{selectors:(o={},o[jt.NK]={color:"rgb(255, 255, 255)"},o),color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}}));(0,i(409).v)("@fluentui/react-charting","5.21.11")}(),FluentUIReactCharting=e}();
|