@fluentui/react-charting 5.21.22 → 5.21.23
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 +42 -1
- package/CHANGELOG.md +14 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +4 -4
- package/project.json +3 -2
|
@@ -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||!function(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)}(t))&&!0===t.__isShadowConfig__}},359:function(t,n,i){i.d(n,{Ae:function(){return V},bz:function(){return S},kG:function(){return A},GJ:function(){return L}});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("@")?M([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 M([e],n,x(i,t),r)})):M([e],n,x(i,t),r)}function M(t,n,i,e){void 0===n&&(n={__order:[]}),void 0===i&&(i="&");var r,o=n[i];o||(o={},n[i]=o,n.__order.push(i));for(var u=0,a=t;u<a.length;u++){var s=a[u];if("string"==typeof s){var l=e.argsFromClassName(s);l&&M(l,n,i,e)}else if(Array.isArray(s))M(s,n,i,e);else for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];if("selectors"===c){var h=s.selectors;for(var d in h)h.hasOwnProperty(d)&&w(i,n,d,h[d],e)}else"object"==typeof f||(r=c).indexOf(":global(")>=0||0===r.indexOf(":")?null!=f&&w(i,n,c,f,e):void 0!==f&&("margin"===c||"padding"===c?C(o,c,f):o[c]=f)}}return n}function C(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 S(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 L(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=M(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,S(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=L.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 St.s},BO:function(){return St.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 Ct},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),M=$(40),C=$(400),k=U(10),S=U(20),L=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)"}}),Y=a({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),j=a({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),X=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(M),h,s),slideLeftIn400:q("".concat(v,",").concat(C),h,s),slideUpIn10:q("".concat(v,",").concat(k),h,s),slideUpIn20:q("".concat(v,",").concat(S),h,s),slideDownIn10:q("".concat(v,",").concat(L),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(Y),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(j,"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,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 Mt(){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 Ct(t){return void 0===t&&(t=!1),!0===t&&(bt=(0,yt.a)({},t)),bt}Mt();var kt=i(823),St=i(703);(0,i(409).v)("@fluentui/style-utilities","8.10.17"),Mt()},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),M="language",C=(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}(M):"sessionStorage"===t?w.G(M):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 S(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 L(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");S(n,l.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),S(n,l.Dn.Arabic,"segoeui-arabic"),S(n,l.Dn.Cyrillic,"segoeui-cyrillic"),S(n,l.Dn.EastEuropean,"segoeui-easteuropean"),S(n,l.Dn.Greek,"segoeui-greek"),S(n,l.Dn.Hebrew,"segoeui-hebrew"),S(n,l.Dn.Vietnamese,"segoeui-vietnamese"),S(n,l.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),S(n,l.bi.Selawik,"selawik","selawik"),S(n,l.Dn.Armenian,"segoeui-armenian"),S(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,M=u.neutralTertiary,C=u.neutralTertiaryAlt,k=u.neutralLighterAlt,S=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),M&&(o.disabledBodyText=M,o.variantBorderHovered=(null==i?void 0:i.variantBorderHovered)||M,o.buttonTextDisabled=M,o.inputIconDisabled=M,o.disabledText=M),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),C&&(o.disabledBodySubtext=C,o.disabledBorder=C,o.buttonBackgroundChecked=C,o.menuDivider=C),S&&(o.accentButtonBackground=S),(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=L({},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]=L(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:C,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,M=w&&w.window?w.window:"__default__";n.has(M)||n.set(M,new Map);var C=n.get(M),k=b.theme,S=k&&void 0!==k.rtl?k.rtl:(0,l.jI)(),L=t.disableCaching;if(g!==d&&(g=d,n.set(M,new Map),C=n.get(M),i=0),t.disableCaching||(C=y(n.get(M),m),C=y(C,b)),!L&&C[p]||(C[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)?(M=(0,a.GJ)(f||{},{displayName:p},b))&&(v.push(M),l[p]=y.concat([M.className]).join(" ")):l[p]=y.join(" ")}for(var x=0,w=v;x<w.length;x++){var M;(M=w[x])&&(0,a.Ae)(M,null==n?void 0:n.specificityMultiplier,c)}return l}(["function"==typeof m?m(b):m],{shadowConfig:m.__shadowConfig__,rtl:!!S,specificityMultiplier:t.useStaticStyles?h:void 0}),L||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(M).clear(),i=0,t.disableCaching=!0}return C[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,M=(x.dir,(0,e.Tt)(x,["styles","dir"])),C=i?i(u):void 0,k=c().useStyled,S=b.current&&b.current.__cachedInputs__||[],L=u.styles;if(!b.current||w!==S[1]||L!==S[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,L)};V.__cachedInputs__=[n,w,L],V.__noStyleOverride__=!w&&!L,b.current=V}return b.current.__shadowConfig__=k(s),r.createElement(t,(0,e.Cl)({ref:a},M,C,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 zf},CartesianChart:function(){return uf},ChartHoverCard:function(){return bs.ChartHoverCard},DataVizPalette:function(){return Ec},DonutChart:function(){return jc},GaugeChart:function(){return Nd},GaugeChartVariant:function(){return md},GaugeValueFormat:function(){return gd},GroupedVerticalBarChart:function(){return gh},HeatMapChart:function(){return xh},HorizontalBarChart:function(){return el},HorizontalBarChartVariant:function(){return h},HorizontalBarChartWithAxis:function(){return Cd},Legends:function(){return Zl},LineChart:function(){return Sf},MultiStackedBarChart:function(){return rh},MultiStackedBarChartVariant:function(){return $f},NodesComposition:function(){return cd},PieChart:function(){return Kf},SankeyChart:function(){return Zh},Shape:function(){return $l},Sparkline:function(){return xd},StackedBarChart:function(){return th},Textbox:function(){return bf},TreeChart:function(){return pd},TreeTraverse:function(){return fd},VerticalBarChart:function(){return lh},VerticalStackedBarChart:function(){return hh},getChartHoverCardStyles:function(){return mh.J},getColorFromToken:function(){return Rc},getNextColor:function(){return Wc}});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 M=i(741),C="data-is-focusable",k="data-is-visible",S="data-focuszone-id",L="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(C):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(S))}function E(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(L))}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),Y=(I(z,["form"]),I(z,["height","loop","muted","preload","src","width"])),j=(I(Y,["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(j,["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(j,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),I(j,["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,M.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=Mt(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=Mt(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 Mt(t){return t===K.top||t===K.bottom?{positiveEdge:K.left,negativeEdge:K.right}:{positiveEdge:K.top,negativeEdge:K.bottom}}function Ct(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||Mt(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=Ct(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 St(t,n,i){var e=ct(n,t),r=ct(i,t),o=Mt(t),u=o.positiveEdge,a=o.negativeEdge;return e<=r?u:a}function Lt(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=St(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=Lt(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,C,k=t.bounds?(C=t.bounds,new et(C.left,C.right,C.top,C.bottom)):new et(0,c.innerWidth-function(t){if(void 0===Z){var n=(0,M.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),S=At(d,e,k,r,o,u),L=(v=S,p=function(t,n){var i=n.targetRectangle,e=Mt(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,S),g=k,m=-1*v.targetEdge,y=new et(0,v.elementRectangle.width,0,v.elementRectangle.height),b={},x=Ct(v.elementRectangle,v.alignmentEdge?v.alignmentEdge:Mt(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:St(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}}(S,i,k,t.coverTarget,s)),{beakPosition:L})}var Tt=["TEMPLATE","STYLE","SCRIPT"];function Ot(t){var n=(0,M.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,M.Y)().activeElement,t=n.current,(r=(i=(0,M.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,M.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,X),{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 Yt=i(286);function jt(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]=Yt.lw.slideUpIn10,Xt[K.bottom]=Yt.lw.slideDownIn10,Xt[K.left]=Yt.lw.slideLeftIn10,Xt[K.right]=Yt.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,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,M=t.hideOverflow,C=t.preferScrollResizePositioning,k=qt(),S=r.useRef();S.current!==s.current&&(S.current=s.current,l=s.current?null==k?void 0:k.getComputedStyle(s.current):void 0);var L=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,S=C&&!(M||"clip"===L||"hidden"===L),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,S,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,M,C,L,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,C=e.backgroundColor,k=e.calloutMaxHeight,S=e.onScroll,L=e.shouldRestoreFocus,A=void 0===L||L,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,M.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}),Y=z[0],j=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,Y,j),G=tn(e,P,B,Y,U,E),Z=Qt(e,U,Y,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=jt([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,Y,j),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]),!j)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:C,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,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:a,ariaLabelledBy:l,className:rt.calloutMain,onDismiss:e.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:e.onRestoreFocus,onScroll:S,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,Yt.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?Yt.nA.Layer:void 0,boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(n={},n[Yt.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},n)},(0,Yt.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}))})),Mn=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,M.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,X,["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))}));Mn.displayName="FabricBase";var Cn,kn={fontFamily:"inherit"},Sn={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ln=(0,t.I)(Mn,(function(t){var n=t.applyTheme,i=t.className,e=t.preventBlanketFontInheritance,r=t.theme;return{root:[(0,Yt.Km)(Sn,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=(0,o.Z)(),Bn=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,C=void 0===w?function(){}:w,k=t.onLayerMounted,S=void 0===k?function(){}:k,L=t.onLayerWillUnmount,V=t.styles,A=t.theme,N=Ht(l,null==y?void 0:y.ref,v),D=Fn(V,{theme:A,className:g,isNotHost:!b}),T=function(){null==L||L();var t=s.current;s.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},O=function(){var t,n,i,e,r=(0,M.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==S||S(),null==C||C(),d(!1))}),[h,S,C]),r.createElement("span",{className:"ms-layer",ref:a},s.current&&cn.createPortal(r.createElement(dn,{layerRoot:!0,providerRef:N},r.createElement(Ln,(0,n.Cl)({},!m&&(Cn||(Cn={},["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 Cn[t]=Hn}))),Cn),y,{className:$(D.content,null==y?void 0:y.className),ref:N}),p)),s.current))}));Bn.displayName="LayerBase";var Hn=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"},In=(0,t.I)(Bn,(function(t){var n=t.className,i=t.isNotHost,e=t.theme,r=(0,Yt.Km)(_n,e);return{root:[r.root,e.fonts.medium,i&&[r.rootNoHost,{position:"fixed",zIndex:Yt.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"]}),Wn=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(In,(0,n.Cl)({},e),a)}));Wn.displayName="Callout";var Rn=i(464),zn=Array.prototype.slice;function Yn(t){return t}var jn=1,Xn=2,qn=3,$n=4,Un=1e-6;function Gn(t){return"translate("+t+",0)"}function Zn(t){return"translate(0,"+t+")"}function Kn(t){return n=>+t(n)}function Jn(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),i=>+t(i)+n}function Qn(){return!this.__axis}function ti(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===jn||t===$n?-1:1,c=t===$n||t===Xn?"x":"y",f=t===jn||t===qn?Gn:Zn;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):Yn:r,p=Math.max(o,0)+a,g=n.range(),m=+g[0]+s,y=+g[g.length-1]+s,b=(n.bandwidth?Jn:Kn)(n.copy(),s),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),M=x.selectAll(".tick").data(d,n).order(),C=M.exit(),k=M.enter().append("g").attr("class","tick"),S=M.select("line"),L=M.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),M=M.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),L=L.merge(k.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",t===jn?"0em":t===qn?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),M=M.transition(h),S=S.transition(h),L=L.transition(h),C=C.transition(h).attr("opacity",Un).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),k.attr("opacity",Un).attr("transform",(function(t){var n=this.parentNode.__axis;return f((n&&isFinite(n=n(t))?n:b(t))+s)}))),C.remove(),w.attr("d",t===$n||t===Xn?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),M.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),S.attr(c+"2",l*o),L.attr(c,l*p).text(v),x.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Xn?"start":t===$n?"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=zn.call(arguments),h},h.tickArguments=function(t){return arguments.length?(i=null==t?[]:zn.call(t),h):i.slice()},h.tickValues=function(t){return arguments.length?(e=null==t?null:zn.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 ni(t){return ti(Xn,t)}function ii(t){return ti(qn,t)}function ei(t){return ti($n,t)}function ri(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 oi(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 ui=Math.sqrt(50),ai=Math.sqrt(10),si=Math.sqrt(2);function li(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>=ui?10:o>=ai?5:o>=si?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=ui?10:o>=ai?5:o>=si?2:1)}function ci(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function fi(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)=>ci(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 hi=fi(ci),di=hi.right;hi.left,fi((function(t){return null===t?NaN:+t})).center;var vi=di;function pi(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function gi(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function mi(){}var yi=.7,bi=1/yi,xi="\\s*([+-]?\\d+)\\s*",wi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ci=/^#([0-9a-f]{3,8})$/,ki=new RegExp("^rgb\\("+[xi,xi,xi]+"\\)$"),Si=new RegExp("^rgb\\("+[Mi,Mi,Mi]+"\\)$"),Li=new RegExp("^rgba\\("+[xi,xi,xi,wi]+"\\)$"),Vi=new RegExp("^rgba\\("+[Mi,Mi,Mi,wi]+"\\)$"),Ai=new RegExp("^hsl\\("+[wi,Mi,Mi]+"\\)$"),Ni=new RegExp("^hsla\\("+[wi,Mi,Mi,wi]+"\\)$"),Di={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 Ti(){return this.rgb().formatHex()}function Oi(){return this.rgb().formatRgb()}function Pi(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=Ci.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?Ei(n):3===i?new Hi(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===i?new Hi(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===i?new Hi(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=ki.exec(t))?new Hi(n[1],n[2],n[3],1):(n=Si.exec(t))?new Hi(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Li.exec(t))?Fi(n[1],n[2],n[3],n[4]):(n=Vi.exec(t))?Fi(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ai.exec(t))?Ri(n[1],n[2]/100,n[3]/100,1):(n=Ni.exec(t))?Ri(n[1],n[2]/100,n[3]/100,n[4]):Di.hasOwnProperty(t)?Ei(Di[t]):"transparent"===t?new Hi(NaN,NaN,NaN,0):null}function Ei(t){return new Hi(t>>16&255,t>>8&255,255&t,1)}function Fi(t,n,i,e){return e<=0&&(t=n=i=NaN),new Hi(t,n,i,e)}function Bi(t,n,i,e){return 1===arguments.length?((r=t)instanceof mi||(r=Pi(r)),r?new Hi((r=r.rgb()).r,r.g,r.b,r.opacity):new Hi):new Hi(t,n,i,null==e?1:e);var r}function Hi(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function _i(){return"#"+Wi(this.r)+Wi(this.g)+Wi(this.b)}function Ii(){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 Wi(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ri(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new Yi(t,n,i,e)}function zi(t){if(t instanceof Yi)return new Yi(t.h,t.s,t.l,t.opacity);if(t instanceof mi||(t=Pi(t)),!t)return new Yi;if(t instanceof Yi)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 Yi(u,a,s,t.opacity)}function Yi(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function ji(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 Xi(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 qi(t){return function(){return t}}function $i(t,n){var i=n-t;return i?function(t,n){return function(i){return t+i*n}}(t,i):qi(isNaN(t)?n:t)}pi(mi,Pi,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ti,formatHex:Ti,formatHsl:function(){return zi(this).formatHsl()},formatRgb:Oi,toString:Oi}),pi(Hi,Bi,gi(mi,{brighter:function(t){return t=null==t?bi:Math.pow(bi,t),new Hi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?yi:Math.pow(yi,t),new Hi(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:Ii,toString:Ii})),pi(Yi,(function(t,n,i,e){return 1===arguments.length?zi(t):new Yi(t,n,i,null==e?1:e)}),gi(mi,{brighter:function(t){return t=null==t?bi:Math.pow(bi,t),new Yi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?yi:Math.pow(yi,t),new Yi(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 Hi(ji(t>=240?t-240:t+120,r,e),ji(t,r,e),ji(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 Ui=function t(n){var i=function(t){return 1==(t=+t)?$i: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):qi(isNaN(n)?i:n)}}(n);function e(t,n){var e=i((t=Bi(t)).r,(n=Bi(n)).r),r=i(t.g,n.g),o=i(t.b,n.b),u=$i(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 Gi(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=Bi(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 Zi(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]=re(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 Ki(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function Ji(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function Qi(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]=re(t[i],n[i]):r[i]=n[i];return function(t){for(i in e)r[i]=e[i](t);return r}}Gi((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 Xi((i-e/n)*n,u,r,o,a)}})),Gi((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 Xi((i-e/n)*n,r,o,u,a)}}));var te=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ne=new RegExp(te.source,"g");function ie(t,n){var i,e,r,o=te.lastIndex=ne.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(i=te.exec(t))&&(e=ne.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:Ji(i,e)})),o=ne.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 ee(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 re(t,n){var i,e,r=typeof n;return null==n||"boolean"===r?qi(n):("number"===r?Ji:"string"===r?(i=Pi(n))?(n=i,Ui):ie:n instanceof Pi?Ui:n instanceof Date?Ki:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?Zi:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Qi:Ji:ee))(t,n)}function oe(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function ue(t){return+t}var ae=[0,1];function se(t){return t}function le(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:(i=isNaN(n)?NaN:.5,function(){return i});var i}function ce(t,n,i){var e=t[0],r=t[1],o=n[0],u=n[1];return r<e?(e=le(r,e),o=i(u,o)):(e=le(e,r),o=i(o,u)),function(t){return o(e(t))}}function fe(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]=le(t[u],t[u+1]),o[u]=i(n[u],n[u+1]);return function(n){var i=vi(t,n,1,e)-1;return o[i](r[i](n))}}function he(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function de(){return function(){var t,n,i,e,r,o,u=ae,a=ae,s=re,l=se;function c(){var t,n,i,s=Math.min(u.length,a.length);return l!==se&&(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?fe:ce,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),Ji)))(i)))},f.domain=function(t){return arguments.length?(u=Array.from(t,ue),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=oe,c()},f.clamp=function(t){return arguments.length?(l=!!t||se,c()):l!==se},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()}}()(se,se)}function ve(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var pe,ge=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function me(t){if(!(n=ge.exec(t)))throw new Error("invalid format: "+t);var n;return new ye({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 ye(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 be(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 xe(t){return(t=be(Math.abs(t)))?t[1]:NaN}function we(t,n){var i=be(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")}me.prototype=ye.prototype,ye.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 Me={"%":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 we(100*t,n)},r:we,s:function(t,n){var i=be(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(pe=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")+be(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 Ce(t){return t}var ke,Se,Le,Ve=Array.prototype.map,Ae=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ne(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=li(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>=ui?r*=10:o>=ai?r*=5:o>=si&&(r*=2),n<t?-r:r}(t,n,i);switch((e=me(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(xe(n)/3)))-xe(Math.abs(t)))}(o,u))||(e.precision=r),Le(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,xe(n)-xe(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,-xe(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return Se(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=li(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 De(){var t=de();return t.copy=function(){return he(t,De())},ve.apply(t,arguments),Ne(t)}ke=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?Ce:(n=Ve.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?Ce:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Ve.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=me(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"):Me[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=Me[y],M=/[defgprs%]/.test(y);function C(t){var r,o,s,h=b,C=x;if("c"===y)C=w(t)+C,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,C=("s"===y?Ae[8+pe/3]:"")+C+(k&&"("===f?")":""),M)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){C=(46===s?u+t.slice(r+1):t.slice(r))+C,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var S=h.length+t.length+C.length,L=S<v?new Array(v-S+1).join(n):"";switch(p&&d&&(t=e(L+t,L.length?v-C.length:1/0),L=""),i){case"<":t=h+t+C+L;break;case"=":t=h+L+t+C;break;case"^":t=L.slice(0,S=L.length>>1)+h+t+C+L.slice(S);break;default:t=L+h+t+C}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)),C.toString=function(){return t+""},C}return{format:f,formatPrefix:function(t,n){var i=f(((t=me(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(xe(n)/3))),r=Math.pow(10,-e),o=Ae[8+e/3];return function(t){return i(r*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Se=ke.format,Le=ke.formatPrefix;var Te=Math.sqrt(50),Oe=Math.sqrt(10),Pe=Math.sqrt(2);function Ee(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>=Te?r*=10:o>=Oe?r*=5:o>=Pe&&(r*=2),n<t?-r:r}const Fe=1e3,Be=6e4,He=36e5,_e=864e5,Ie=6048e5,We=31536e6;var Re=new Date,ze=new Date;function Ye(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 Ye((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 Re.setTime(+n),ze.setTime(+e),t(Re),t(ze),Math.floor(i(Re,ze))},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 je=Ye((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));je.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ye((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,i){n.setTime(+n+i*t)}),(function(n,i){return(i-n)/t})):je:null};var Xe=je,qe=(je.range,Ye((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Fe)}),(function(t,n){return(n-t)/Fe}),(function(t){return t.getUTCSeconds()}))),$e=qe,Ue=(qe.range,Ye((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fe)}),(function(t,n){t.setTime(+t+n*Be)}),(function(t,n){return(n-t)/Be}),(function(t){return t.getMinutes()}))),Ge=Ue,Ze=(Ue.range,Ye((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fe-t.getMinutes()*Be)}),(function(t,n){t.setTime(+t+n*He)}),(function(t,n){return(n-t)/He}),(function(t){return t.getHours()}))),Ke=Ze,Je=(Ze.range,Ye((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Be)/_e),(t=>t.getDate()-1))),Qe=Je;function tr(t){return Ye((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())*Be)/Ie}))}Je.range;var nr=tr(0),ir=tr(1),er=tr(2),rr=tr(3),or=tr(4),ur=tr(5),ar=tr(6),sr=(nr.range,ir.range,er.range,rr.range,or.range,ur.range,ar.range,Ye((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()}))),lr=sr,cr=(sr.range,Ye((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()})));cr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ye((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 fr=cr,hr=(cr.range,Ye((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Be)}),(function(t,n){return(n-t)/Be}),(function(t){return t.getUTCMinutes()}))),dr=hr,vr=(hr.range,Ye((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*He)}),(function(t,n){return(n-t)/He}),(function(t){return t.getUTCHours()}))),pr=vr,gr=(vr.range,Ye((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}))),mr=gr;function yr(t){return Ye((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)/Ie}))}gr.range;var br=yr(0),xr=yr(1),wr=yr(2),Mr=yr(3),Cr=yr(4),kr=yr(5),Sr=yr(6),Lr=(br.range,xr.range,wr.range,Mr.range,Cr.range,kr.range,Sr.range,Ye((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()}))),Vr=Lr,Ar=(Lr.range,Ye((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()})));Ar.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ye((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 Nr=Ar;function Dr(t,n,i,e,r,o){const u=[[$e,1,Fe],[$e,5,5e3],[$e,15,15e3],[$e,30,3e4],[o,1,Be],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,He],[r,3,108e5],[r,6,216e5],[r,12,432e5],[e,1,_e],[e,2,1728e5],[i,1,Ie],[n,1,2592e6],[n,3,7776e6],[t,1,We]];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(Ee(n/We,i/We,e));if(0===o)return Xe.every(Math.max(Ee(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]}Ar.range;const[Tr,Or]=Dr(Nr,Vr,br,mr,pr,dr),[Pr,Er]=Dr(fr,lr,nr,Qe,Ke,Ge);function Fr(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 Br(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 Hr(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=Ur(r),c=Gr(r),f=Ur(o),h=Gr(o),d=Ur(u),v=Gr(u),p=Ur(a),g=Gr(a),m=Ur(s),y=Gr(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:mo,e:mo,f:Mo,g:Po,G:Fo,H:yo,I:bo,j:xo,L:wo,m:Co,M:ko,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ru,s:ou,S:So,u:Lo,U:Vo,V:No,w:Do,W:To,x:null,X:null,y:Oo,Y:Eo,Z:Bo,"%":eu},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:Ho,e:Ho,f:zo,g:Qo,G:nu,H:_o,I:Io,j:Wo,L:Ro,m:Yo,M:jo,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ru,s:ou,S:Xo,u:qo,U:$o,V:Go,w:Zo,W:Ko,x:null,X:null,y:Jo,Y:tu,Z:iu,"%":eu},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:uo,e:uo,f:ho,g:io,G:no,H:so,I:so,j:ao,L:fo,m:oo,M:lo,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:ro,Q:po,s:go,S:co,u:Kr,U:Jr,V:Qr,w:Zr,W:to,x:function(t,n,e){return k(t,i,n,e)},X:function(t,n,i){return k(t,e,n,i)},y:io,Y:no,Z:eo,"%":vo};function M(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=zr[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 C(t,n){return function(i){var e,r,o=Hr(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=Br(Hr(o.y,0,1))).getUTCDay(),e=r>4||0===r?xr.ceil(e):xr(e),e=mr.offset(e,7*(o.V-1)),o.y=e.getUTCFullYear(),o.m=e.getUTCMonth(),o.d=e.getUTCDate()+(o.w+6)%7):(r=(e=Fr(Hr(o.y,0,1))).getDay(),e=r>4||0===r?ir.ceil(e):ir(e),e=Qe.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?Br(Hr(o.y,0,1)).getUTCDay():Fr(Hr(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,Br(o)):Fr(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 zr?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=M(i,b),b.X=M(e,b),b.c=M(n,b),x.x=M(i,x),x.X=M(e,x),x.c=M(n,x),{format:function(t){var n=M(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=C(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=M(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=C(t+="",!0);return n.toString=function(){return t},n}}}var Ir,Wr,Rr,zr={"-":"",_:" ",0:"0"},Yr=/^\s*\d+/,jr=/^%/,Xr=/[\\^$*+?|[\]().{}]/g;function qr(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 $r(t){return t.replace(Xr,"\\$&")}function Ur(t){return new RegExp("^(?:"+t.map($r).join("|")+")","i")}function Gr(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function Zr(t,n,i){var e=Yr.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function Kr(t,n,i){var e=Yr.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function Jr(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function Qr(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function to(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function no(t,n,i){var e=Yr.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function io(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function eo(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 ro(t,n,i){var e=Yr.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function oo(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function uo(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function ao(t,n,i){var e=Yr.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function so(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function lo(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function co(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function fo(t,n,i){var e=Yr.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function ho(t,n,i){var e=Yr.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function vo(t,n,i){var e=jr.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function po(t,n,i){var e=Yr.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function go(t,n,i){var e=Yr.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function mo(t,n){return qr(t.getDate(),n,2)}function yo(t,n){return qr(t.getHours(),n,2)}function bo(t,n){return qr(t.getHours()%12||12,n,2)}function xo(t,n){return qr(1+Qe.count(fr(t),t),n,3)}function wo(t,n){return qr(t.getMilliseconds(),n,3)}function Mo(t,n){return wo(t,n)+"000"}function Co(t,n){return qr(t.getMonth()+1,n,2)}function ko(t,n){return qr(t.getMinutes(),n,2)}function So(t,n){return qr(t.getSeconds(),n,2)}function Lo(t){var n=t.getDay();return 0===n?7:n}function Vo(t,n){return qr(nr.count(fr(t)-1,t),n,2)}function Ao(t){var n=t.getDay();return n>=4||0===n?or(t):or.ceil(t)}function No(t,n){return t=Ao(t),qr(or.count(fr(t),t)+(4===fr(t).getDay()),n,2)}function Do(t){return t.getDay()}function To(t,n){return qr(ir.count(fr(t)-1,t),n,2)}function Oo(t,n){return qr(t.getFullYear()%100,n,2)}function Po(t,n){return qr((t=Ao(t)).getFullYear()%100,n,2)}function Eo(t,n){return qr(t.getFullYear()%1e4,n,4)}function Fo(t,n){var i=t.getDay();return qr((t=i>=4||0===i?or(t):or.ceil(t)).getFullYear()%1e4,n,4)}function Bo(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+qr(n/60|0,"0",2)+qr(n%60,"0",2)}function Ho(t,n){return qr(t.getUTCDate(),n,2)}function _o(t,n){return qr(t.getUTCHours(),n,2)}function Io(t,n){return qr(t.getUTCHours()%12||12,n,2)}function Wo(t,n){return qr(1+mr.count(Nr(t),t),n,3)}function Ro(t,n){return qr(t.getUTCMilliseconds(),n,3)}function zo(t,n){return Ro(t,n)+"000"}function Yo(t,n){return qr(t.getUTCMonth()+1,n,2)}function jo(t,n){return qr(t.getUTCMinutes(),n,2)}function Xo(t,n){return qr(t.getUTCSeconds(),n,2)}function qo(t){var n=t.getUTCDay();return 0===n?7:n}function $o(t,n){return qr(br.count(Nr(t)-1,t),n,2)}function Uo(t){var n=t.getUTCDay();return n>=4||0===n?Cr(t):Cr.ceil(t)}function Go(t,n){return t=Uo(t),qr(Cr.count(Nr(t),t)+(4===Nr(t).getUTCDay()),n,2)}function Zo(t){return t.getUTCDay()}function Ko(t,n){return qr(xr.count(Nr(t)-1,t),n,2)}function Jo(t,n){return qr(t.getUTCFullYear()%100,n,2)}function Qo(t,n){return qr((t=Uo(t)).getUTCFullYear()%100,n,2)}function tu(t,n){return qr(t.getUTCFullYear()%1e4,n,4)}function nu(t,n){var i=t.getUTCDay();return qr((t=i>=4||0===i?Cr(t):Cr.ceil(t)).getUTCFullYear()%1e4,n,4)}function iu(){return"+0000"}function eu(){return"%"}function ru(t){return+t}function ou(t){return Math.floor(+t/1e3)}function uu(t){return new Date(t)}function au(t){return t instanceof Date?+t:+new Date(+t)}function su(t,n,i,e,r,o,u,a,s,l){var c=de(),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,au)):h().map(uu)},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 he(c,su(t,n,i,e,r,o,u,a,s,l))},c}function lu(){return ve.apply(su(Pr,Er,fr,lr,nr,Qe,Ke,Ge,$e,Wr).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function cu(){return ve.apply(su(Tr,Or,Nr,Vr,br,mr,pr,dr,$e,Rr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}Ir=_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"]}),Wr=Ir.format,Ir.parse,Rr=Ir.utcFormat,Ir.utcParse;class fu extends Map{constructor(t,n=du){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(hu(this,t))}has(t){return super.has(hu(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 hu({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function du(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const vu=Symbol("implicit");function pu(){var t=new fu,n=[],i=[],e=vu;function r(r){let o=t.get(r);if(void 0===o){if(e!==vu)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 fu;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 pu(n,i).unknown(e)},ve.apply(r,arguments),r}function gu(){var t,n,i=pu().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 gu(e(),[o,u]).round(a).paddingInner(s).paddingOuter(l).align(c)},ve.apply(f(),arguments)}function mu(){}function yu(t){return null==t?mu:function(){return this.querySelector(t)}}function bu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function xu(){return[]}function wu(t){return function(n){return n.matches(t)}}var Mu=Array.prototype.find;function Cu(){return this.firstElementChild}var ku=Array.prototype.filter;function Su(){return this.children}function Lu(t){return new Array(t.length)}function Vu(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Au(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 Vu(t,o[a]);for(;a<s;++a)(u=n[a])&&(r[a]=u)}function Nu(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 Vu(t,o[a]);for(a=0;a<f;++a)(s=n[a])&&c.get(d[a])===s&&(r[a]=s)}function Du(t){return t.__data__}function Tu(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Vu.prototype={constructor:Vu,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 Ou="http://www.w3.org/1999/xhtml",Pu={svg:"http://www.w3.org/2000/svg",xhtml:Ou,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Eu(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),Pu.hasOwnProperty(n)?{space:Pu[n],local:t}:t}function Fu(t){return function(){this.removeAttribute(t)}}function Bu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Hu(t,n){return function(){this.setAttribute(t,n)}}function _u(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Iu(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function Wu(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 Ru(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function zu(t){return function(){this.style.removeProperty(t)}}function Yu(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 Xu(t){return function(){delete this[t]}}function qu(t,n){return function(){this[t]=n}}function $u(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function Uu(t){return t.trim().split(/^|\s+/)}function Gu(t){return t.classList||new Zu(t)}function Zu(t){this._node=t,this._names=Uu(t.getAttribute("class")||"")}function Ku(t,n){for(var i=Gu(t),e=-1,r=n.length;++e<r;)i.add(n[e])}function Ju(t,n){for(var i=Gu(t),e=-1,r=n.length;++e<r;)i.remove(n[e])}function Qu(t){return function(){Ku(this,t)}}function ta(t){return function(){Ju(this,t)}}function na(t,n){return function(){(n.apply(this,arguments)?Ku:Ju)(this,t)}}function ia(){this.textContent=""}function ea(t){return function(){this.textContent=t}}function ra(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function oa(){this.innerHTML=""}function ua(t){return function(){this.innerHTML=t}}function aa(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function sa(){this.nextSibling&&this.parentNode.appendChild(this)}function la(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ca(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Ou&&n.documentElement.namespaceURI===Ou?n.createElement(t):n.createElementNS(i,t)}}function fa(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ha(t){var n=Eu(t);return(n.local?fa:ca)(n)}function da(){return null}function va(){var t=this.parentNode;t&&t.removeChild(this)}function pa(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ga(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ma(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 ya(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 ba(t,n,i){var e=Ru(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 xa(t,n){return function(){return ba(this,t,n)}}function wa(t,n){return function(){return ba(this,t,n.apply(this,arguments))}}Zu.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 Ma=[null];function Ca(t,n){this._groups=t,this._parents=n}function ka(t){return"string"==typeof t?new Ca([[document.querySelector(t)]],[document.documentElement]):new Ca([[t]],Ma)}function Sa(t){return"string"==typeof t?new Ca([document.querySelectorAll(t)],[document.documentElement]):new Ca([null==t?[]:bu(t)],Ma)}function La(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)]}Ca.prototype=function(){return new Ca([[document.documentElement]],Ma)}.prototype={constructor:Ca,select:function(t){"function"!=typeof t&&(t=yu(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 Ca(e,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);return null==n?[]:bu(n)}}(t):function(t){return null==t?xu: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 Ca(e,r)},selectChild:function(t){return this.select(null==t?Cu:function(t){return function(){return Mu.call(this.children,t)}}("function"==typeof t?t:wu(t)))},selectChildren:function(t){return this.selectAll(null==t?Su:function(t){return function(){return ku.call(this.children,t)}}("function"==typeof t?t:wu(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 Ca(e,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,Du);var i,e=n?Nu:Au,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=bu(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 Ca(a,r))._enter=s,a._exit=l,a},enter:function(){return new Ca(this._enter||this._groups.map(Lu),this._parents)},exit:function(){return new Ca(this._exit||this._groups.map(Lu),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 Ca))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 Ca(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=Tu);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 Ca(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=Eu(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?Bu:Fu:"function"==typeof n?i.local?Wu:Iu:i.local?_u:Hu)(i,n))},style:function(t,n,i){return arguments.length>1?this.each((null==n?zu:"function"==typeof n?ju:Yu)(t,n,null==i?"":i)):function(t,n){return t.style.getPropertyValue(n)||Ru(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Xu:"function"==typeof n?$u:qu)(t,n)):this.node()[t]},classed:function(t,n){var i=Uu(t+"");if(arguments.length<2){for(var e=Gu(this.node()),r=-1,o=i.length;++r<o;)if(!e.contains(i[r]))return!1;return!0}return this.each(("function"==typeof n?na:n?Qu:ta)(i,n))},text:function(t){return arguments.length?this.each(null==t?ia:("function"==typeof t?ra:ea)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?oa:("function"==typeof t?aa:ua)(t)):this.node().innerHTML},raise:function(){return this.each(sa)},lower:function(){return this.each(la)},append:function(t){var n="function"==typeof t?t:ha(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var i="function"==typeof t?t:ha(t),e=null==n?da:"function"==typeof n?n:yu(n);return this.select((function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)}))},remove:function(){return this.each(va)},clone:function(t){return this.select(t?ga:pa)},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?ya:ma,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?wa:xa)(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 Va,Aa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Na(t){if(!(n=Aa.exec(t)))throw new Error("invalid format: "+t);var n;return new Da({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 Da(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 Ta(t,n){var i=La(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")}Na.prototype=Da.prototype,Da.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 Oa={"%":(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)=>Ta(100*t,n),r:Ta,s:function(t,n){var i=La(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(Va=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")+La(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Pa(t){return t}var Ea,Fa,Ba,Ha,_a,Ia,Wa,Ra=Array.prototype.map,za=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ya(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=De().domain([e.dStartValue,e.dEndValue]).range([e.rStartValue,e.rEndValue]);o&&d.nice();var v=ii(d).tickSize(a).tickPadding(l).ticks(f).tickFormat((function(t,n){var e="number"==typeof t?t:t.valueOf();return hs(e,i)}));n===_a.HorizontalBarChartWithAxis&&v.tickSizeInner(-(t.containerHeight-t.margins.top)),h&&ka(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,i){var e=n?i?n.utcFormat:n.format:i?Rr:Wr,r=e(".%L"),o=e(":%S"),u=e("%I:%M"),a=e("%I %p"),s=e("%a %d"),l=e("%b %d"),c=e("%B"),f=e("%Y"),h=i?dr:Ge,d=i?pr:Ke,v=i?mr:Qe,p=i?Vr:lr,g=i?br:nr,m=i?Nr:fr;return($e(t)<t?r:h(t)<t?o:d(t)<t?u:v(t)<t?a:p(t)<t?g(t)<t?s:l:m(t)<t?c:f)(t)}function Xa(t,n){var i=t.yMinMaxValues,e=void 0===i?{startValue:0,endValue:0}:i,r=t.yAxisElement,o=void 0===r?null:r,u=t.yMaxValue,a=void 0===u?0:u,s=t.yMinValue,l=void 0===s?0:s,c=t.containerHeight,f=t.margins,h=t.tickPadding,d=void 0===h?12:h,v=t.maxOfYVal,p=void 0===v?0:v,g=t.yAxisTickFormat,m=t.yAxisTickCount,y=void 0===m?4:m,b=p||e.endValue,x=b>a?b:a,w=e.startValue<l?0:l,M=De().domain([w,x]).range([c-f.bottom,f.top]),C=(n?ni(M):ei(M)).tickPadding(d).ticks(y);return g?C.tickFormat(g):C.tickFormat(Fa(".2~s")),o&&ka(o).call(C).selectAll("text").attr("aria-hidden","true"),M}function qa(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,M=void 0===w?4:w,C=t.eventAnnotationProps,k=t.eventLabelHeight,S=b||u.endValue,L=S>c?S: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}(L,V,M,e),N=De().domain([V,A[A.length-1]]).range([d-p.bottom,p.top+(C?k:0)]),D=(!n&&r||n&&!r?ni(N):ei(N)).tickPadding(m).tickValues(A).tickSizeInner(-(v-p.left-p.right));return x?D.tickFormat(x):D.tickFormat(Fa(".2~s")),s&&ka(s).call(D).selectAll("text").attr("aria-hidden","true"),i.yAxisDomainValues=A,N}Ea=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?Pa:(n=Ra.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?Pa:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Ra.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=Na(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"):Oa[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=Oa[y],M=/[defgprs%]/.test(y);function C(t){var r,o,s,h=b,C=x;if("c"===y)C=w(t)+C,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,C=("s"===y?za[8+Va/3]:"")+C+(k&&"("===f?")":""),M)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){C=(46===s?u+t.slice(r+1):t.slice(r))+C,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var S=h.length+t.length+C.length,L=S<v?new Array(v-S+1).join(n):"";switch(p&&d&&(t=e(L+t,L.length?v-C.length:1/0),L=""),i){case"<":t=h+t+C+L;break;case"=":t=h+L+t+C;break;case"^":t=L.slice(0,S=L.length>>1)+h+t+C+L.slice(S);break;default:t=L+h+t+C}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)),C.toString=function(){return t+""},C}return{format:f,formatPrefix:function(t,n){var i,e=f(((t=Na(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((i=n,((i=La(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:["$",""]}),Fa=Ea.format,Ba=Ea.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"}(_a||(_a={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Ia||(Ia={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Wa||(Wa={}));var $a=function(t,n,i,e){var r=t.containerHeight,o=t.tickPadding,u=void 0===o?12:o,a=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=gu().domain(n).range([r-a.bottom-e/2,a.top+e/2]),f=(i?ni(c):ei(c)).tickPadding(u).ticks(n);return s&&f.tickFormat(s),l&&ka(l).call(f).selectAll("text"),c},Ua=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=gu().domain(n).range([e-u.bottom,u.top]).padding(c),h=(i?ni(f):ei(f)).tickPadding(o).tickValues(n).tickSize(0);return a&&h.tickFormat(a),s&&ka(s).call(h).selectAll("text"),f};function Ga(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 Za=function(t,n,i){var e=ka("#".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},Ka=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 Ja(t){var n=t.tooltipCls,i=t.xAxis,e=t.id;if(null===i)return null;for(var r=ka("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){ka(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 Qa(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 ts(t,n,i,e){var r=ri(t,(function(t){return ri(t.data,(function(t){return t.x}))})),o=oi(t,(function(t){return oi(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}}function ns(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}}function is(t,i,e,r,o,u,a){var s,l;void 0===o&&(o=[]),u===_a.AreaChart||u===_a.LineChart?(s=ri(t,(function(t){return ri(t.data,(function(t){return t.x}))})),l=oi(t,(function(t){return oi(t.data,(function(t){return t.x}))})),s=ri((0,n.fX)((0,n.fX)([],o,!0),[s],!1)),l=oi((0,n.fX)((0,n.fX)([],o,!0),[l],!1))):(s=ri(t,(function(t){return t.x})),l=oi(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}}function es(t){var n=oi(t,(function(t){return oi(t.data,(function(t){return t.y}))}));return{startValue:ri(t,(function(t){return ri(t.data,(function(t){return t.y}))})),endValue:n}}function rs(t){var n=oi(t,(function(t){return t.y}));return{startValue:ri(t,(function(t){return t.y})),endValue:n}}function os(t){var n=oi(t,(function(t){return void 0!==t.lineData?t.y>t.lineData.y?t.y:t.lineData.y:t.y}));return{startValue:ri(t,(function(t){return void 0!==t.lineData?t.y<t.lineData.y?t.y:t.lineData.y:t.y})),endValue:n}}function us(t,n){if(void 0!==n&&n===Wa.NumericAxis){var i=oi(t,(function(t){return t.y}));return{startValue:ri(t,(function(t){return t.y})),endValue:i}}return{startValue:0,endValue:0}}var as,ss,ls=function(t,n){if(n)switch(typeof t){case"string":return Ia.StringAxis;case"number":return Ia.NumericAxis;default:return Ia.DateAxis}else switch(typeof t){case"string":return Wa.StringAxis;case"number":return Wa.NumericAxis;default:return Wa.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=((Ha={})[as.circle]={widthRatio:1},Ha[as.square]={widthRatio:1},Ha[as.triangle]={widthRatio:1},Ha[as.diamond]={widthRatio:1},Ha[as.pyramid]={widthRatio:1},Ha[as.hexagon]={widthRatio:2},Ha[as.pentagon]={widthRatio:1.168},Ha[as.octagon]={widthRatio:2.414},Ha),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 Ba(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=function(t,n){return(n?Rr:Wr)("%-e %b %Y, %H:%M")(t)+(n?" GMT":"")},bs=i(395);function xs(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 ws(t){!function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=xs(t,t[i],n[i]))}(t,{componentDidMount:Ms,componentDidUpdate:Cs,componentWillUnmount:ks})}function Ms(){Ss(this.props.componentRef,this)}function Cs(t){t.componentRef!==this.props.componentRef&&(Ss(t.componentRef,null),Ss(this.props.componentRef,this))}function ks(){Ss(this.props.componentRef,null)}function Ss(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 Vs,As=r.createContext(void 0),Ns="data-is-focusable",Ds="data-focuszone-id",Ts="tabindex",Os="data-no-vertical-wrap",Ps="data-no-horizontal-wrap",Es=999999999,Fs=-999999999;function Bs(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 Hs,_s={},Is=new Set,Ws=["text","number","password","email","tel","url","search","textarea"],Rs=!1,zs=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,Rs)}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,Rs);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,Ps)?((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,Os)?Es:Fs},ws(c),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 Is.size},i._onKeyDownCapture=function(t){9===t.which&&Is.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),_s[this._id]=this,n){for(var e=b(n,Rs);e&&e!==this._getDocument().body&&1===e.nodeType;){if(P(e)){this._isInnerZone=!0;break}e=b(e,Rs)}this._isInnerZone||(Is.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,Rs)||this._defaultFocusElement&&!w(this._root.current,this._defaultFocusElement,Rs))&&(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 _s[this._id],this._isInnerZone||(Is.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,Yt.O4)();return r.createElement(f,(0,n.Cl)({"aria-labelledby":s,"aria-describedby":a},c,u,{className:$((Vs||(Vs=(0,Q.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Vs),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(Ns)&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var e=_s[i.getAttribute(Ds)];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(Ns)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return Bs(i,n),!0;i=b(i,Rs)}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 _s[t.getAttribute(Ds)];for(var n=t.firstElementChild;n;){if(P(n))return _s[n.getAttribute(Ds)];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,Os)?Es:Fs:((-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,Os)?Es:Fs:((-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,Ps);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=Fs),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},i.prototype._moveFocusRight=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,Ps);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=Fs),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,Rs);n&&n!==this._root.current&&n!==this._getDocument().body;){if(P(n))return n;n=b(n,Rs)}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(Ns)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(Ts)&&e.setAttribute(Ts,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(Ts)&&e.setAttribute(Ts,"0"))):(e.getAttribute&&"false"===e.getAttribute(Ns)&&e.setAttribute(Ts,"-1"),O(e,void 0,this._inShadowRoot)?this.props.disabled?e.setAttribute(Ts,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(Ts)&&e.setAttribute(Ts,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(Ts)&&e.setAttribute(Ts,"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&&Ws.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,M.Y)())}(t,n)},i.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&Ls(t,this._root.current)},i.prototype._getDocument=function(){return(0,M.Y)(this._root.current)},i.contextType=As,i.defaultProps={isCircularNavigation:!1,direction:vs.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},i}(r.Component);function Ys(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"}(Hs||(Hs={}));var js,Xs=(0,o.Z)(),qs=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(Wn,(0,n.Cl)({target:h,directionalHint:o,directionalHintForRTL:u},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),$s=(0,t.I)(qs,(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,Yt.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 Us,Gs,Zs=(0,o.Z)(),Ks=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 Hs.Parent:return e._tooltipHost.current.parentElement;case Hs.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&&!Ys(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}},ws(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=Zs(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,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($s,(0,n.Cl)({},m)),r.createElement("div",{hidden:!0,id:g,style:Yt.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),Js={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Qs=(0,t.I)(Ks,(function(t){var n=t.className,i=t.theme;return{root:[(0,Yt.Km)(Js,i).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"}),tl=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&&Ys(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(Qs,{overflowMode:Hs.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),nl=(0,o.Z)(),il=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=nl(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=nl(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(zs,{direction:vs.horizontal},r.createElement("div",{className:t._classNames.chartTitle},n.chartTitle&&r.createElement(tl,{className:t._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),e)),n.chartData[0].data&&t._createBenchmark(n),r.createElement(zs,{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(Wn,(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(bs.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,Rn.U)(u,i));case"fraction":return r.createElement("div",(0,n.Cl)({},s),r.createElement("span",{className:this._classNames.chartTitleRight},(0,Rn.U)(u,i)),r.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,Rn.U)(a,i)));case"percentage":var l="".concat((0,Rn.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),el=(0,t.I)(il,(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:Yt.s.medium,fontWeight:Yt.BO.semibold,color:e.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Yt.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:Yt.BO.semibold,fill:e.palette.neutralPrimary}),chartWrapper:{paddingRight:a!==h.AbsoluteScale||s?0:40}}})),rl={host:"ms-HoverCard-host"},ol=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,M.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"}(Us||(Us={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Gs||(Gs={}));var ul,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"}(ul||(ul={}));var sl=function(t){for(var n=t.activeElement;null==n?void 0:n.shadowRoot;)n=n.shadowRoot.activeElement;return n},ll=function(t){var n=t.target;return n&&n.shadowRoot&&(n=t.composedPath()[0]),n};function cl(t){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=t})),n.current}function fl(t,n){var i=r.useRef(n);return i.current||(i.current=v(t)),i.current}function hl(t){var n=r.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return En((function(){n.current=t}),[t]),jt((function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.current.apply(void 0,t)}}))}var dl={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},vl=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(As),v=null===(e=cl(!1))||void 0===e||e,p=_(dl,t),g=jt({hasFocus:!1,focusStackId:fl("ftz-",p.id)}),m=p.children,y=p.componentRef,b=p.disabled,x=p.disableFirstFocus,M=p.forceFocusInsideTrap,C=p.focusPreviouslyFocusedInnerElement,k=p.firstFocusableSelector,S=p.firstFocusableTarget,L=p.disableRestoreFocus,V=void 0===L?p.ignoreExternalFocusing:L,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=hl((function(){if(a.current){var t=g.previouslyFocusedElementInTrapZone;if(C&&t&&w(a.current,t))P(t);else{var n=null;if("string"==typeof S)n=a.current.querySelector(S);else if(S)n=S(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=hl((function(t){if(vl.focusStack=vl.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=hl((function(t){if(!b&&g.focusStackId===vl.focusStack.slice(-1)[0]){var n=ll(t);n&&!w(a.current,n)&&(f&&sl(f)===f.body?setTimeout((function(){f&&sl(f)===f.body&&(E(),g.hasFocus=!0)}),0):(E(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return r.useEffect((function(){var t=[];return M&&t.push(H(h,"focus",W,!0)),D||t.push(H(h,"click",W,!0)),function(){t.forEach((function(t){return t()}))}}),[M,D,h]),r.useEffect((function(){if(!b&&(v||M)&&a.current){vl.focusStack.push(g.focusStackId);var t=p.elementToFocusOnDismiss||sl(f);return x||w(a.current,t)||E(),function(){return I(t)}}}),[M,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,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=ll(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=sl(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})))}));vl.displayName="FocusTrapZone",vl.focusStack=[];var pl,gl=function(t){return r.createElement(Wn,(0,n.Cl)({},t),r.createElement(vl,(0,n.Cl)({disabled:t.hidden},t.focusTrapProps),t.children))},ml=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,X)),{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(gl,(0,n.Cl)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),v):r.createElement(Wn,(0,n.Cl)({},g),v))},yl=(0,o.Z)(),bl=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),ws(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=yl(i,{theme:u,compactCardHeight:e,className:s,expandedCardHeight:o,needsScroll:c,expandedCardFirstFrameRendered:a===ul.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(ml,(0,n.Cl)({},this.props,{content:d,finalHeight:h,className:this._classNames.root}))},i.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},i}(r.Component),xl=(0,t.I)(bl,(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,Yt.Km)(al,i);return{root:[l.root,{width:320,pointerEvents:"none",selectors:(n={},n[Yt.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"}),wl={root:"ms-PlainCard-root"},Ml=(0,o.Z)(),Cl=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)},ws(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=Ml(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(ml,(0,n.Cl)({},this.props,{content:u,className:this._classNames.root}))},i}(r.Component),kl=(0,t.I)(Cl,(function(t){var n,i=t.theme,e=t.className;return{root:[(0,Yt.Km)(wl,i).root,{pointerEvents:"auto",selectors:(n={},n[Yt.up]={border:"1px solid WindowText"},n)},e]}}),void 0,{scope:"PlainCard"}),Sl=(0,o.Z)(),Ll=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:ul.compact,openMode:"keydown"===t.type?Us.hotKey:Us.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:ul.compact,openMode:Us.hover})},i._instantOpenAsExpanded=function(t){i._async.clearTimeout(i._dismissTimerId),i.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:ul.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)))},ws(i),i._async=new Et(i),i._events=new ol(i),i._nativeDismissEvent=i._cardDismiss.bind(i,!0),i._childDismissEvent=i._cardDismiss.bind(i,!1),i.state={isHoverCardVisible:!1,mode:ul.compact,openMode:Us.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:ul.expanded},(function(){i.props.onCardExpand&&i.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:ul.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=Sl(s,{theme:l,className:c});var w=(0,n.Cl)((0,n.Cl)({},q(this.props,X)),{id:x,trapFocus:!!d,firstFocus:p||b===Us.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),M=(0,n.Cl)((0,n.Cl)((0,n.Cl)({},i),w),{mode:y}),C=(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===Gs.expanding?r.createElement(xl,(0,n.Cl)({},M)):r.createElement(kl,(0,n.Cl)({},C))))},i.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,M.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:Gs.expanding},i}(r.Component),Vl=(0,t.I)(Ll,(function(t){var n=t.className,i=t.theme;return{host:[(0,Yt.Km)(rl,i).host,n]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(pl||(pl={}));var Al=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}}}},Nl=r.createContext({isMeasured:!1}),Dl={position:"fixed",visibility:"hidden"},Tl={position:"relative"};function Ol(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 Pl={isMeasured:!0},El=r.forwardRef((function(t,i){var e=r.useRef(null),o=Ht(e,i),u=function(t,i){var e=jt(Al),o=r.useRef(null),u=r.useRef(null),a=r.useRef(!1),s=Ft(),l=function(t,i,e){var o=jt((function(){return i.getInitialResizeGroupState(t.data)})),u=r.useReducer(Ol,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===pl.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===pl.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]);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:Tl},h&&!d&&r.createElement("div",{style:Dl,ref:f},r.createElement(Nl.Provider,{value:Pl},p(a))),r.createElement("div",{ref:c,style:d?Dl:void 0,"data-automation-id":"visibleContent"},d?p(a):s&&p(s))))}));El.displayName="ResizeGroupBase";var Fl,Bl=El;!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"}(Fl||(Fl={}));var Hl=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?Fl.PERSISTED_KEYTIP_ADDED:Fl.KEYTIP_ADDED;ol.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||ol.raise(this,Fl.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?Fl.PERSISTED_KEYTIP_REMOVED:Fl.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||ol.raise(this,e,{keytip:t,uniqueID:n})},t.prototype.enterKeytipMode=function(){ol.raise(this,Fl.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){ol.raise(this,Fl.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){ol.raise(this,Fl.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}(),_l=function(t,n,i){for(var e=0,r=t;e<r.length;e++){var o=r[e];i[n.register(o,!0)]=o}},Il=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]}},Wl=function(t){var i=Hl.getInstance(),e=t.className,o=t.overflowItems,u=t.keytipSequences,a=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=jt({}),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=cl(t);r.useEffect((function(){e&&(Il(i,e),_l(n,i,t))})),r.useEffect((function(){return _l(n,i,t),function(){Il(i,t)}}),[])}(l,f.keytipsToRegister,i),r.createElement("div",{className:e},s(h))},Rl=(0,o.Z)(),zl=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=Rl(l,{className:s,vertical:c}),g=!!a&&a.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(Wl,(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(Wl,(0,n.Cl)({},t,{className:p.overflowButton})))}));zl.displayName="OverflowSet";var Yl,jl={flexShrink:0,display:"inherit"},Xl=(0,t.I)(zl,(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",jl],overflowButton:["ms-OverflowSet-overflowButton",jl]}}),void 0,{scope:"OverflowSet"}),ql=((Yl={})["".concat(as[as.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Yl["".concat(as[as.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Yl["".concat(as[as.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Yl["".concat(as[as.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Yl["".concat(as[as.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Yl["".concat(as[as.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Yl["".concat(as[as.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Yl["".concat(as[as.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Yl["".concat(ss[ss.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",Yl),$l=function(t){var i=t.svgProps,e=t.pathProps,o=t.shape,u=t.classNameForNonSvg;return-1===Object.keys(ql).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:ql[o]},e)))},Ul=(0,o.Z)(),Gl=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(zs,(0,n.Cl)({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":l}),r.createElement(Xl,(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=Ul(s,{theme:l,className:a});return t.renderData.forEach((function(t,n){var i=u._renderButton(t,n,!0);h.push(i)})),r.createElement(zs,(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=Ul(f,{theme:l,className:c}),v={onRenderPlainCard:u._onRenderCompactCard,renderData:a},p=h||"more";return r.createElement(Vl,{type:Gs.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=Ul(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=Ul(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(Bl,{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,j,["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($l,{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),Zl=(0,t.I)(Gl,(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,Yt.gm)(o,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(i={},i[Yt.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[Yt.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,Yt.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,Yt.gm)(o,f)]}}}}));function Kl(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Jl(t){return function(){return t}}function Ql(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function tc(t){return t}Array.prototype.slice;const nc=Math.abs,ic=Math.atan2,ec=Math.cos,rc=Math.max,oc=Math.min,uc=Math.sin,ac=Math.sqrt,sc=1e-12,lc=Math.PI,cc=lc/2,fc=2*lc;function hc(t){return t>=1?cc:t<=-1?-cc:Math.asin(t)}function dc(){var t=tc,n=Ql,i=null,e=Jl(0),r=Jl(fc),o=Jl(0);function u(u){var a,s,l,c,f,h=(u=Kl(u)).length,d=0,v=new Array(h),p=new Array(h),g=+e.apply(this,arguments),m=Math.min(fc,Math.max(-fc,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:Jl(+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:Jl(+t),u):e},u.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Jl(+t),u):r},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Jl(+t),u):o},u}const vc=Math.PI,pc=2*vc,gc=1e-6,mc=pc-gc;function yc(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class bc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?yc:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return yc;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>gc)if(Math.abs(c*a-s*l)>gc&&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((vc-Math.acos((v+f-p)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>gc&&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)>gc||Math.abs(this._y1-l)>gc)&&this._append`L${s},${l}`,i&&(f<0&&(f=f%pc+pc),f>mc?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>gc&&this._append`A${i},${i},0,${+(f>=vc)},${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 xc(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 bc(n)}function wc(t){return t.innerRadius}function Mc(t){return t.outerRadius}function Cc(t){return t.startAngle}function kc(t){return t.endAngle}function Sc(t){return t&&t.padAngle}function Lc(t,n,i,e,r,o,u){var a=t-i,s=n-e,l=(u?o:-o)/ac(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,M=h*p-v*d,C=(b<0?-1:1)*ac(rc(0,w*w*x-M*M)),k=(M*b-y*C)/x,S=(-M*y-b*C)/x,L=(M*b+y*C)/x,V=(-M*y+b*C)/x,A=k-g,N=S-m,D=L-g,T=V-m;return A*A+N*N>D*D+T*T&&(k=L,S=V),{cx:k,cy:S,x01:-c,y01:-f,x11:k*(r/w-1),y11:S*(r/w-1)}}function Vc(){var t=wc,n=Mc,i=Jl(0),e=null,r=Cc,o=kc,u=Sc,a=null,s=xc(l);function l(){var l,c,f,h=+t.apply(this,arguments),d=+n.apply(this,arguments),v=r.apply(this,arguments)-cc,p=o.apply(this,arguments)-cc,g=nc(p-v),m=p>v;if(a||(a=l=s()),d<h&&(c=d,d=h,h=c),d>sc)if(g>fc-sc)a.moveTo(d*ec(v),d*uc(v)),a.arc(0,0,d,v,p,!m),h>sc&&(a.moveTo(h*ec(p),h*uc(p)),a.arc(0,0,h,p,v,m));else{var y,b,x=v,w=p,M=v,C=p,k=g,S=g,L=u.apply(this,arguments)/2,V=L>sc&&(e?+e.apply(this,arguments):ac(h*h+d*d)),A=oc(nc(d-h)/2,+i.apply(this,arguments)),N=A,D=A;if(V>sc){var T=hc(V/h*uc(L)),O=hc(V/d*uc(L));(k-=2*T)>sc?(M+=T*=m?1:-1,C-=T):(k=0,M=C=(v+p)/2),(S-=2*O)>sc?(x+=O*=m?1:-1,w-=O):(S=0,x=w=(v+p)/2)}var P=d*ec(x),E=d*uc(x),F=h*ec(C),B=h*uc(C);if(A>sc){var H,_=d*ec(w),I=d*uc(w),W=h*ec(M),R=h*uc(M);if(g<lc)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<sc))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],Y=E-H[1],j=_-H[0],X=I-H[1],q=1/uc(((f=(z*j+Y*X)/(ac(z*z+Y*Y)*ac(j*j+X*X)))>1?0:f<-1?lc:Math.acos(f))/2),$=ac(H[0]*H[0]+H[1]*H[1]);N=oc(A,(h-$)/(q-1)),D=oc(A,(d-$)/(q+1))}else N=D=0}S>sc?D>sc?(y=Lc(W,R,P,E,d,D,m),b=Lc(_,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,ic(y.y01,y.x01),ic(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,D,ic(y.y01,y.x01),ic(y.y11,y.x11),!m),a.arc(0,0,d,ic(y.cy+y.y11,y.cx+y.x11),ic(b.cy+b.y11,b.cx+b.x11),!m),a.arc(b.cx,b.cy,D,ic(b.y11,b.x11),ic(b.y01,b.x01),!m))):(a.moveTo(P,E),a.arc(0,0,d,x,w,!m)):a.moveTo(P,E),h>sc&&k>sc?N>sc?(y=Lc(F,B,_,I,h,-N,m),b=Lc(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,ic(y.y01,y.x01),ic(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,N,ic(y.y01,y.x01),ic(y.y11,y.x11),!m),a.arc(0,0,h,ic(y.cy+y.y11,y.cx+y.x11),ic(b.cy+b.y11,b.cx+b.x11),m),a.arc(b.cx,b.cy,N,ic(b.y11,b.x11),ic(b.y01,b.x01),!m))):a.arc(0,0,h,C,M,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-lc/2;return[ec(e)*i,uc(e)*i]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Jl(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Jl(+t),l):n},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Jl(+t),l):i},l.padRadius=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Jl(+t),l):e},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Jl(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Jl(+t),l):o},l.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:Jl(+t),l):u},l.context=function(t){return arguments.length?(a=null==t?null:t,l):a},l}bc.prototype;var Ac=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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:e.palette.neutralPrimary}}},Nc=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?Fa(".0%")(0===l?0:y/l):ds(y))},n}return(0,n.C6)(i,t),i.getDerivedStateFromProps=function(t){return Dc(t),null},i.prototype.updateChart=function(t){Dc(t)},i.prototype.render=function(){var t,n=this.props,i=n.arc,e=n.href,u=n.focusedArcId,a=(0,o.Z)()(Ac,{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:Vc()},i}(r.Component);function Dc(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Tc=function(t){var n,i=t.theme;return{root:{},insideDonutString:{fontSize:Yt.s.xLargePlus,fontWeight:Yt.BO.semibold,fill:i.semanticColors.bodyText,selectors:(n={},n[Yt.NK]={fill:"rgb(179, 179, 179)"},n)}}},Oc=(0,o.Z)(),Pc=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(Nc,{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=dc().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=Oc(Tc,{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=Oc(Tc,{theme:this.props.theme}).insideDonutString,n=2*this.props.innerRadius-5,i=0,Sa(".".concat(t)).each((function(){for(var t=ka(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:dc().sort(null).value((function(t){return t.data})).padAngle(.02)},i}(r.Component),Ec={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"},Fc={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"]},Bc={qualitative:Fc,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},Hc=Object.values(Fc),_c=Object.values(Ec),Ic=function(t,n){if(0===t.length)return"";var i=Number(n);return i<t.length?t[i]:t[0]},Wc=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Hc[(t+n)%Hc.length];return Ic(e,i)},Rc=function(t,n){if(void 0===n&&(n=!1),_c.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=Bc[e][r];return Ic(o,n)}return t},zc=(0,o.Z)(),Yc=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?Wc(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted):Rc(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=zc(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(zs,{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(Pc,{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(Wn,(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(bs.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(Zl,(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,Rn.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),jc=(0,t.I)(Yc,(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 Xc(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 qc(t){this._context=t}function $c(t){return new qc(t)}function Uc(t){return t[0]}function Gc(t){return t[1]}function Zc(t,n){var i=Jl(!0),e=null,r=$c,o=null,u=xc(a);function a(a){var s,l,c,f=(a=Kl(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?Uc:Jl(t),n="function"==typeof n?n:void 0===n?Gc:Jl(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:Jl(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:Jl(+t),a):n},a.defined=function(t){return arguments.length?(i="function"==typeof t?t:Jl(!!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}qc.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 Kc,Jc,Qc,tf=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($s,(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),nf=(0,o.Z)(),ef=(0,r.lazy)((function(){return Promise.resolve().then(i.bind(i,395)).then((function(t){return{default:t.ChartHoverCard}}))})),rf=function(t){function i(i){var e,o,a,s,l,c,f,h,d,p,g,m,y,b,x,w,M,C,k,S,L,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,Rn.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===Ia.StringAxis){var n=Ka(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=Ka(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=Ka(e,".".concat(O._classNames.xAxis," text")),t+=Math.max(Math.ceil(n),10)}else n=Ka(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[_a.GroupedVerticalBarChart,_a.VerticalBarChart,_a.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||Wa.NumericAxis)+(O.props.secondaryYScaleOptions?O._getAxisTitle("secondary Y",O.props.secondaryYAxistitle,Wa.NumericAxis):"")},O._getAxisTitle=function(t,n,i){return"The ".concat(t," axis displays ")+(n||(i===Ia.StringAxis||i===Wa.StringAxis?"categories":i===Ia.DateAxis||i===Wa.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===(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!==(C=null===(M=O.props.margins)||void 0===M?void 0:M.right)&&void 0!==C?C:null===(k=O.props)||void 0===k?void 0:k.secondaryYAxistitle)?60:40:null!==(L=null===(S=O.props.margins)||void 0===S?void 0:S.left)&&void 0!==L?L: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===_a.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var t=Ka(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===Ia.StringAxis){var n=function(t){var n=t.node,i=t.xAxis;if(null!==n&&null!==i){var e=0,r=[];ka(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 ka(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===_a.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var i=Ka(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,M=d.timeFormatLocale,C=d.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var k=(0,n.Cl)({},this.margins);this.props.chartType===_a.HorizontalBarChartWithAxis&&(this._isRtl?k.right+=this.state.startFromX:k.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(k);var S,L,V,A,N,D=null,T=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var O={domainNRangeValues:this.props.getDomainNRangeValues(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:this.props.getMinMaxOfYAxis(p,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},E=void 0,F=void 0;switch(this.props.xAxisType){case Ia.NumericAxis:E=(t=Ya(O,this.props.chartType,x)).xScale,F=t.tickValues;break;case Ia.DateAxis:i=function(t,n,i,e,r,o,u){var a,s=t.domainNRangeValues,l=t.xAxisElement,c=t.tickPadding,f=void 0===c?6:c,h=t.xAxistickSize,d=void 0===h?6:h,v=t.xAxisCount,p=void 0===v?6:v,g=u?cu():lu();g.domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]);var m=ii(g).tickSize(d).tickPadding(f).ticks(p);if(o)m.tickFormat((function(t,n){return o(t)}));else if(i&&e)m.tickFormat((function(t,n){return t.toLocaleString(i,e)}));else if(r){var y=_r(r);m.tickFormat((function(t,n){return ja(t,y,u)}))}n.tickValues&&m.tickValues(n.tickValues),void 0===i&&n.tickFormat&&m.tickFormat(u?Rr(n.tickFormat):Wr(n.tickFormat)),l&&ka(l).call(m).selectAll("text").attr("aria-hidden","true");var b=(null!==(a=n.tickValues)&&void 0!==a?a:g.ticks(p)).map((function(t,n){var i=m.tickFormat();return i?i(t,n):ja(t,void 0,u)}));return{xScale:g,tickValues:b}}(O,this.props.tickParams,x,w,M,C,this.props.useUTC),E=i.xScale,F=i.tickValues;break;case Ia.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=gu().domain(i).range([r.rStartValue,r.rEndValue]).paddingInner(void 0!==d?d:h).paddingOuter(void 0!==v?v:h),g=ii(p).tickSize(s).tickPadding(c).ticks(u).tickFormat((function(t,n){return hs(i[n],e)}));return t.xAxisElement&&ka(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=Ya(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=ka(n).call(i),u=0,a=[];return o.selectAll(".tick text").each((function(){var t=ka(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:[]};if(this.props.yAxisType&&this.props.yAxisType===Wa.StringAxis)_=this.props.createStringYAxis(P,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.barwidth);else{if(null===(u=this.props)||void 0===u?void 0:u.secondaryYScaleOptions){var R={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:this.props.getMinMaxOfYAxis(p,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding};I=this.props.createYAxis(R,this._isRtl,W,this.isIntegralDataset)}_=this.props.createYAxis(P,this._isRtl,W,this.isIntegralDataset)}this.props.chartType===_a.HorizontalBarChartWithAxis&&_&&(S=this.yAxisElement,L=_,V=this.props.noOfCharsToTruncate||4,A=this.props.showYAxisLablesTooltip||!1,N=this._isRtl,null!==S&&ka(S).call(L).selectAll(".tick text").each((function(){var t=ka(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=nf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var z,Y={width:this.state.containerWidth,height:this.state.containerHeight};z=this.props.focusZoneDirection===vs.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:vs.horizontal;var j=Y.width-this.margins.left-this.margins.right-this.state.startFromX,X=Y.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(zs,(0,n.Cl)({direction:z,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},y),this._isFirstRender&&r.createElement("div",{id:this.idForDefaultTabbableElement}),r.createElement("svg",(0,n.Cl)({width:Y.width,height:Y.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(Y.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&r.createElement(tf,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+j/2,y:Y.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle","aria-hidden":!0},maxWidth:j,wrapContent:Za}),r.createElement("g",{ref:function(t){h.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?Y.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:Y.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&r.createElement(tf,{content:this.props.secondaryYAxistitle,textProps:{x:(X-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:Y.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(Y.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:X,wrapContent:Za})),T,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&r.createElement(tf,{content:this.props.yAxisTitle,textProps:{x:(X-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?Y.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(Y.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:X,wrapContent:Za}))),!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(Wn,(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(ef,(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=nf(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,Rn.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,Rn.U)(t,l)),r.createElement("div",{className:s.calloutContentY},(0,Rn.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($l,{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,Rn.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"}(Kc||(Kc={})),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"}(Jc||(Jc={})),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"}(Qc||(Qc={}));var of=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}(),uf=(0,t.I)(rf,(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:Yt.BO.semibold,fontStyle:"normal",lineHeight:Yt.s.medium,color:Jc.gray160,fill:f.semanticColors.bodyText}],xAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(i={},i[Yt.NK]={fill:"rgb(179, 179, 179)"},i)}],line:{opacity:.2,stroke:f.semanticColors.bodyText,width:"1px",selectors:(e={},e[Yt.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[Yt.NK]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:f.semanticColors.bodyText,selectors:(o={},o[Yt.NK]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!of&&{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[Yt.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[Yt.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[Yt.NK]={color:"rgb(255, 255, 255)"},s)})],descriptionMessage:[f.fonts.small,{selectors:(l={},l[Yt.NK]={color:"rgb(255, 255, 255)"},l),color:f.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(f.semanticColors.menuDivider)}]}})),af=(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 sf(t,n){return af(t)(n)}var lf=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)},cf=function(t,n){"scrollTop"in t?t.scrollTop=n:"scrollY"in t&&t.scrollTo(t.scrollX,n)},ff="spacer-",hf={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},df=function(t){return t.getBoundingClientRect()},vf=df,pf=df,gf=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,M=null!==(o=null==w?void 0:w(b,y,e.props.ignoreScrollingState?void 0:e.state.isScrolling))&&void 0!==o?o:null;s&&!M||g.push(r.createElement("div",{role:p,className:"ms-List-cell",key:x,"data-list-index":y,"data-automationid":"ListCell"},M))}return r.createElement("div",(0,n.Cl)({},v),g)},ws(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=pf(this._scrollElement),h=lf(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 cf(this._scrollElement,u);case 2:return void cf(this._scrollElement,g-f.height);case 3:return void cf(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&&cf(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 ol(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,X),f=0,h=s;f<h.length;f++){var d=h[f];l.push(this._renderPage(d))}var v=o?sf(o,this._onRenderSurface):this._onRenderSurface;return(u?sf(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)({},hf),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,M,C=c+u-1,k=g(i.pages,(function(t){return!!t.items&&t.startIndex===n}))>-1,S=!m||C>=m.top&&c<=m.bottom,L=!b._requiredRect||C>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!p&&(L||S&&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=C>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(A),L&&b._allowedRect&&(w=a,M={top:c,bottom:C,height:u,left:m.left,right:m.right,width:m.width},w.top=M.top<w.top||-1===w.top?M.top:w.top,w.left=M.left<w.left||-1===w.left?M.left:w.left,w.bottom=M.bottom>w.bottom||-1===w.bottom?M.bottom:w.bottom,w.right=M.right>w.right||-1===w.right?M.right:w.right,w.width=w.right-w.left+1,w.height=w.bottom-w.top+1)}else f||(f=b._createPage(ff+n,void 0,n,0,void 0,y,!0)),f.height=(f.height||0)+(C-c)+1,f.itemCount+=l;if(c+=C-c+1,p&&v)return"break"},b=this,x=o;x<d&&"break"!==y(x);x+=l);return f&&(f.key=ff+"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)({},hf),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=lf(this._scrollElement);this._surface.current&&(e||!u||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>.3333333333333333*this._estimatedPageHeight)&&(s=this._surfaceRect=vf(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=mf(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=mf(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 mf(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 yf,bf=function(t){var i=r.useRef(null);r.useEffect((function(){if(i.current){var n=ka(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))},xf=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(Wn,{target:o.current,onDismiss:function(){return s(!1)},setInitialFocus:!0,role:"dialog"},r.createElement(zs,{isCircularNavigation:!0,direction:vs.vertical},r.createElement(gf,{items:c,role:"alert","aria-roledescription":" ",onRenderCell:function(t){return r.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var f=t.textColor?Rc(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(bf,{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)},wf=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?Rc(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(xf,(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)},Mf=(0,o.Z)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(yf||(yf={}));var Cf=fi((function(t){return t.x})).left,kf=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._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===Ia.NumericAxis?ts(t,n,i,r):o===Ia.DateAxis?is(t,n,i,r,a,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},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?Wc(i,0,null===(o=e.props.theme)||void 0===o?void 0:o.isInverted):Rc(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?yf.hoverSize:1===n||i?2.5*s:yf.invisibleSize:l===t?yf.hoverSize:yf.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=es(e._points),u=0;u<e._colorFillBars.length;u++){var a=e._colorFillBars[u],s=v(a.legend.replace(/\W/g,"")),l=Rc(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(Xc(i)[0],document.getElementById(e._rectId)),u=Cf(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 Ia.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 Ia.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?ys(l,e.props.useUTC):l,b=l instanceof Date?l.getTime():l,x=m(e._calloutPoints,(function(t){return t.x===b})),w=r[t].data[c],M=null===e.state.nearestCircleToHighlight||null!==e.state.nearestCircleToHighlight&&null!==w&&(e.state.nearestCircleToHighlight.x!==w.x||e.state.nearestCircleToHighlight.y!==w.y);x&&M&&(e._uniqueCallOutID="#".concat(e._staticHighlightCircle,"_").concat(t),ka("#".concat(e._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(e._xAxisScale(w.x))).attr("cy","".concat(e._yAxisScale(w.y))).attr("visibility","visibility"),ka("#".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?ys(n,e.props.useUTC):n,a=n instanceof Date?n.getTime():n,s=m(e._calloutPoints,(function(t){return t.x===a}));if(s){var l=e;ka("#".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?ys(t,e.props.useUTC):t,l=t instanceof Date?t.getTime():t,c=e,f=m(e._calloutPoints,(function(t){return t.x===l}));f?(ka("#".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(){ka("#".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?ys(o.x,e.props.useUTC):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._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=Ga(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=Ga(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=Qa(this._points),c=this._points;a&&a.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=Ga(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:c,chartType:_a.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:d,legendBars:f,createYAxis:qa,getmargins:this._getMargins,getMinMaxOfYAxis:es,getGraphData:this._initializeLineChartData,xAxisType:l?Ia.DateAxis:Ia.NumericAxis,customizedCallout:this._getCustomizedCallout(),getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:Ua,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(wf,(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=Rc(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(Zl,(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,M,C,k,S,L,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,Y=I.xAxisCalloutAccessibilityData,j="".concat(T._circleId,"_").concat(t),X=T._legendHighlighted(E)||T._noLegendHighlighted()||T.state.isSelectedLegend;P.push(r.createElement("circle",(0,n.Cl)({id:j,key:j,r:B===j?5.5:3.5,cx:T._xAxisScale(W),cy:T._yAxisScale(R),fill:B===j?H.semanticColors.bodyBackground:F,opacity:X?1:.1,onMouseOver:T._handleHover.bind(T,W,R,_,z,j,Y),onMouseMove:T._handleHover.bind(T,W,R,_,z,j,Y),onMouseOut:T._handleMouseOut,strokeWidth:B===j?4:0,stroke:B===j?F:"",role:"img","aria-label":T._getAriaLabel(t,0),"data-is-focusable":X,ref:function(t){A._refCallback(t,j)},onFocus:function(){return A._handleFocus(j,W,z,j,Y)},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=Zc().x((function(t){return A._xAxisScale(t[0])})).y((function(t){return A._yAxisScale(t[1])})).curve($c),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=(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===(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})))}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 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,Y=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&&!Y?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 j="".concat(s).concat(i,"L"),X="".concat(s).concat(i,"D"),U=T._points[t].hideNonActiveDots&&B!==j;W=T._getPath(T._xAxisScale(N),T._yAxisScale(I),j,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(j,"_container")},r.createElement("path",(0,n.Cl)({id:j,key:j,d:W,"data-is-focusable":z,onMouseOver:T._handleHover.bind(T,N,I,_,Z,j,K),onMouseMove:T._handleHover.bind(T,N,I,_,Z,j,K),onMouseOut:T._handleMouseOut,onFocus:function(){return A._handleFocus(u,N,Z,j,K)},onBlur:T._handleMouseOut},T._getClickHandler(T._points[t].data[i].onDataPointClick),{opacity:z&&!U?1:.01,fill:T._getPointFill(F,j,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,j,K),onMouseMove:T._handleHover.bind(T,N,I,_,Z,j,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===(M=T._points[t].lineOptions)||void 0===M?void 0:M.strokeDasharray,strokeDashoffset:null===(C=T._points[t].lineOptions)||void 0===C?void 0:C.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!==(S=null===(k=T._points[t].lineOptions)||void 0===k?void 0:k.strokeLinecap)&&void 0!==S?S:"round",strokeDasharray:null===(L=T._points[t].lineOptions)||void 0===L?void 0:L.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=Mf(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=ka(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&&Ja(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,useUTC:!0},i}(r.Component),Sf=(0,t.I)(kf,(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 Lf(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 Vf(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function Af(t,n){return t[n]}function Nf(t){const n=[];return n.key=t,n}function Df(t,n,i){var e=null,r=Jl(!0),o=null,u=$c,a=null,s=xc(l);function l(l){var c,f,h,d,v,p=(l=Kl(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 Zc().defined(r).curve(u).context(o)}return t="function"==typeof t?t:void 0===t?Uc:Jl(+t),n="function"==typeof n?n:Jl(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?Gc:Jl(+i),l.x=function(n){return arguments.length?(t="function"==typeof n?n:Jl(+n),e=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:Jl(+n),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Jl(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Jl(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Jl(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Jl(+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:Jl(!!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 Tf(t){return t<0?-1:1}function Of(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(Tf(o)+Tf(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function Pf(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function Ef(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 Ff(t){this._context=t}function Bf(t){this._context=t}function Hf(t){return new Ff(t)}Ff.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:Ef(this,this._t0,Pf(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,Ef(this,Pf(this,i=Of(this,t,n)),i);break;default:Ef(this,this._t0,i=Of(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 Bf(t)}.prototype=Object.create(Ff.prototype)).point=function(t,n){Ff.prototype.point.call(this,n,t)},Bf.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 _f,If=(0,o.Z)(),Wf=fi((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(_f||(_f={}));var Rf=function(t){function i(i){var e=t.call(this,i)||this;return e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a){return o===Ia.NumericAxis?ts(t,n,i,r):o===Ia.DateAxis?is(t,n,i,r,a,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},e._getMargins=function(t){e.margins=t},e._onRectMouseMove=function(t){t.persist();var n=e.props.data.lineChartData,i=e._xAxisRectScale.invert(Xc(t)[0],document.getElementById(e._rectId)),r=Wf(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 Ia.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 Ia.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?ys(a,e.props.useUTC):a,y=a instanceof Date?a.getTime():a,b=m(e._calloutPoints,(function(t){return t.x===y})),x=l===Ia.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:_f.show,isCircleClicked:!1,stackCalloutProps:b,YValueHover:b.values,dataPointCalloutProps:b,hoverXValue:v||g,xAxisCalloutAccessibilityData:p,activePoint:""}),b||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,displayOfLine:_f.hide,isCircleClicked:!1})},e._onRectMouseOut=function(){},e._handleChartMouseLeave=function(){e.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:_f.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},e._getStackedData=function(t,n){var i=function(){var t=Jl([]),n=Vf,i=Lf,e=Af;function r(r){var o,u,a=Array.from(t.apply(this,arguments),Nf),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=Kl(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:Jl(Array.from(n)),r):t},r.value=function(t){return arguments.length?(e="function"==typeof t?t:Jl(+t),r):e},r.order=function(t){return arguments.length?(n=null==t?Vf:"function"==typeof t?t:Jl(Array.from(t)),r):n},r.offset=function(t){return arguments.length?(i=null==t?Lf:t,r):i},r}().keys(t)(n),r=oi(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=Ga(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=Ga(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(Zl,(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=Df().x((function(t){return i(t.xVal)})).y0((function(t){return o(t.values[0])})).y1((function(t){return o(t.values[1])})).curve(Hf),d=Zc().x((function(t){return i(t.xVal)})).y((function(t){return o(t.values[1])})).curve(Hf),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)",role:"region","aria-label":"".concat(s[u].legend,", series ").concat(u+1," of ").concat(s.length," with ").concat(s[u].data.length," data points.")},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=If(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=ka(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&&Ja(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?Wc(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted):Rc(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?ys(o,e.props.useUTC):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._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:_f.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},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),u=o.colors,a=o.opacity,s=o.stackedInfo,l=o.calloutPoints;this._calloutPoints=l;var c=Qa(e);this._colors=u,this._opacity=a,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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:e,chartType:_a.AreaChart,calloutProps:d,legendBars:f,createYAxis:qa,isCalloutForStack:!0,xAxisType:c?Ia.DateAxis:Ia.NumericAxis,tickParams:h,maxOfYVal:s.maxOfYVal,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:Ua,getmargins:this._getMargins,getMinMaxOfYAxis:es,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?ys(r.x,this.props.useUTC):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.defaultProps={useUTC:!0},i}(r.Component),zf=(0,t.I)(Rf,(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"})}})),Yf=function(t,n){var i=t.color;return{arcRoot:{fill:i},arcRootFocussed:{fill:i,stroke:(null==n?void 0:n.palette.black)||Yt.bp.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==n?void 0:n.palette.black)||Yt.bp.black,outline:"none"}}},jf=function(t){function i(n){var i=t.call(this,n)||this;return i.updateChart=function(t){qf(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 qf(t),null},i.prototype.render=function(){var t,i=this,e=this.props.arc,u=(0,o.Z)()((function(t){return Yf(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:Vc()},i}(r.Component),Xf=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=Vc().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 Yf(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,Rn.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(tf,{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,Rn.U)(null==a?void 0:a.data.y,s)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:Za}))},i}(jf);function qf(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var $f,Uf=function(t){function i(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n){return r.createElement(Xf,{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(Wc(c,0,null==s?void 0:s.isInverted));var f=this.props.colors,h=void 0===f?l:f;this.colors=pu().range(h.map((function(t){return Rc(t)})));var d=i(e),v="translate(".concat(o/2,", ").concat(u/2,")");return r.createElement(zs,{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:dc().padAngle(.01).sort(null).value((function(t){return t.y}))},i}(r.Component),Gf=(0,o.Z)(),Zf=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=Gf(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(Uf,{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),Kf=(0,t.I)(Zf,(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)]}})),Jf=(0,o.Z)(),Qf=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=Jf(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,Rn.U)(i.chartData[0].data?i.chartData[0].data:0,s)};return r.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},r.createElement(zs,{direction:vs.horizontal},r.createElement("div",{className:this._classNames.chartTitle},i.chartTitle&&r.createElement(tl,{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,Rn.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(zs,{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(Wn,(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(bs.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=Jf(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=Jf(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(Zl,(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),th=(0,t.I)(Qf,(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:Yt.s.medium,fontWeight:Yt.BO.semibold,color:s.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.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[Yt.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[Yt.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"}($f||($f={}));var nh,ih=(0,o.Z)(),eh=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=ih(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(Zl,(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,", "):t.placeHolder?"Remaining, ":"")+"".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=ih(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(Wn,(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(bs.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===$f.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===$f.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,M=0,C=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&&(M+=C),(C=u/y*100?u/y*100:0)<1&&0!==C?C=1/w:C>99&&100!==C?C=99/w:C/=w,g.push(M);var l=f.props.styles,c=!(!f._legendHighlighted(t.legend)&&!f._noLegendHighlighted()),h=t.placeHolder?f.props.theme.semanticColors.bodyText:o;return f._classNames=ih(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,h,t),onBlur:f._onBarLeave,role:"img","aria-label":f._getAriaLabel(t),onMouseOver:f._onBarHover.bind(f,u,h,t),onMouseMove:f._onBarHover.bind(f,u,h,t),onMouseLeave: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]-C-f.state.barSpacingInPercent*n:g[n]+f.state.barSpacingInPercent*n,"%"),y:0,width:C+"%",height:i,fill:o}))}));if(this.props.variant!==$f.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 S=!1,L=0;this._noLegendHighlighted()?(S=!0,L=m):null===(c=t.chartData)||void 0===c||c.forEach((function(t){f._legendHighlighted(t.legend)&&(S=!0,L+=t.data?t.data:0)})),S&&k.push(r.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(g[g.length-1]||0)-C-d:(g[g.length-1]||0)+C+d,"%"),textAnchor:"start",y:i/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(L),role:"img"},ds(L)))}var V=void 0!==o&&o,A=this.props.variant!==$f.AbsoluteScale&&!V&&2===t.chartData.length,N=this.props.variant!==$f.AbsoluteScale&&!V&&1===t.chartData.length,D=function(){return(0,Rn.U)(t.chartData[0].data?t.chartData[0].data:0,v)};return r.createElement("div",{className:this._classNames.singleChartRoot},r.createElement(zs,{direction:vs.horizontal},r.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&r.createElement(tl,{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,Rn.U)(m,v))),N&&r.createElement("div",(0,n.Cl)({className:this._classNames.ratioNumerator},fs(t.chartDataAccessibilityData,"text",!1)),D()))),r.createElement(zs,{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),rh=(0,t.I)(eh,(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===$f.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:e||"100%",display:"flex",flexDirection:"column",marginBottom:s===$f.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:a?"pointer":"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Yt.s.medium,fontWeight:Yt.BO.semibold,color:u.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:u.palette.neutralPrimary},chartWrapper:{paddingRight:s!==$f.AbsoluteScale||l?0:40}}})),oh=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"}(nh||(nh={}));var uh,ah=(0,o.Z)(),sh=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,u.jI)(),e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===Ia.NumericAxis?function(t,n,i,e,r){var o=oi(t,(function(t){return t.x})),u=ri(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,n,i,r):o===Ia.DateAxis?is(t,n,i,r,a,e):ns(n,i,r)},e._createLine=function(t,n,i,o,u){var a;void 0===i&&(i=0),void 0===o&&(o=0);var s=e._xAxisType===Ia.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=Zc().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()),M=(null===(a=e.props.lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0;M>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*M,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 C=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,C)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state,r=i.selectedLegend,o=i.activeXdataPoint;return""!==r?t===o&&r===n?{visibility:nh.show,radius:8}:r===n?{visibility:nh.show,radius:.3}:{visibility:nh.hide,radius:0}:{visibility:o===t?nh.show:nh.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(bs.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(bs.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===Ia.NumericAxis?e._createNumericBars(i,r,o):e._xAxisType===Ia.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?ys(t.x,e.props.useUTC):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?ys(t.x,e.props.useUTC):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?ys(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.lineData.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x})},e._getScales=function(t,n){var i,r=De().domain([0,e._yMax]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ia.NumericAxis){var o=oi(e._points,(function(t){return t.x})),u=ri(e._points,(function(t){return t.x}));i=De().domain(e._isRtl?[o,u]:[u,o]).nice().range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else if(e._xAxisType===Ia.DateAxis){var a=ri(e._points,(function(t){return t.x})),s=oi(e._points,(function(t){return t.x}));(i=e.props.useUTC?cu():lu()).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=gu().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(Zl,(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?ys(t.x,e.props.useUTC):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===Ia.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,oh(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._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):Ia.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(oi(this._points,(function(t){return t.y})),this.props.yMaxValue||0);var i=this._getLegendData(this._points,this.props.theme.palette);this._classNames=ah(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,chartType:_a.VerticalBarChart,xAxisType:this._xAxisType,createYAxis:qa,calloutProps:e,tickParams:o},this._isHavingLine&&this._noLegendHighlighted()&&{isCalloutForStack:!0},{legendBars:i,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:vs.horizontal,customizedCallout:this._getCustomizedCallout(),createStringYAxis:Ua,getmargins:this._getMargins,getMinMaxOfYAxis:os,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ia.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 De().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?ys(t.x,this.props.useUTC):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=ah(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=ka(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&&Ja(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=ka(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&&Ja(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=ah(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=ka(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&&Ja(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||oi(this._points,(function(t){return t.y}))<=0&&!this._isHavingLine},i.defaultProps={maxBarWidth:24,useUTC:!0},i}(r.Component),lh=(0,t.I)(sh,(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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:e.palette.neutralPrimary}}})),ch=(0,o.Z)();!function(t){t.show="visibility",t.hide="hidden"}(uh||(uh={}));var fh=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._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===Ia.NumericAxis?function(t,n,i,e,r){var o=ri(t,(function(t){return t.x})),u=oi(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,n,i,r):o===Ia.DateAxis?is(t,n,i,r,a,e):ns(n,i,r)},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!==Ia.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:uh.show,radius:8}:r===n?{visibility:uh.show,radius:.3}:{visibility:uh.hide,radius:0}:{visibility:o===t?uh.show:uh.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===Ia.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===Ia.NumericAxis||(e._xAxisType,Ia.DateAxis),u.xAxisPoint)),h=e._xAxisType!==Ia.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=ch(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"},M=!1,C=0;return e.props.hideLabels||(e._noLegendHighlighted()?(M=!0,C=v):p.forEach((function(t){e._legendHighlighted(t.legend)&&(M=!0,C+=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&&M&&r.createElement("text",{x:c+e._barWidth/2,y:s-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-label":"Total: ".concat(C),role:"img",transform:"translate(".concat(h,", 0)")},ds(C)))}}}));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=ka(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&&Ja(g)}return v.filter((function(t){return!!t}))},e._getScales=function(t,n){var i=e._yMax,r=De().domain([0,i]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ia.NumericAxis){var o=oi(e._dataset,(function(t){return t.x})),u=ri(e._dataset,(function(t){return t.x}));return{xBarScale:De().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===Ia.DateAxis){var a=ri(e._dataset,(function(t){return t.x})),s=oi(e._dataset,(function(t){return t.x})),l=e.props.useUTC?cu():lu();return l.domain(e._isRtl?[s,a]:[a,s]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),{xBarScale:l,yBarScale:r}}return{xBarScale:gu().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 instanceof Date?ys(t.xAxisPoint):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 instanceof Date?ys(t.xAxisPoint):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===Ia.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,oh(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._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:""},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,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=ch(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._dataset,chartType:_a.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,createYAxis:qa,tickParams:l,legendBars:a,getMinMaxOfYAxis:rs,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:e,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:Ua,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===Ia.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(bs.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(Zl,(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?ys(t.xAxisPoint,this.props.useUTC):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,useUTC:!0},i}(r.Component),hh=(0,t.I)(fh,(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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:r.palette.neutralPrimary}}})),dh=(0,o.Z)(),vh=.1/.9,ph=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,u.jI)(),e._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===Ia.NumericAxis||o===Ia.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:ns(n,i,r)},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)*vh)),e._groupWidth=(e._keys.length+(e._keys.length-1)*vh)*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=De().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=ka(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&&Ja(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 gu().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 gu().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(Zl,(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===Ia.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)*vh)*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._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:""},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,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=oi(this._dataset,(function(n){return oi(t._keys,(function(t){return n[t]}))}));this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=dh(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._datasetForBars,chartType:_a.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._xAxisType,createYAxis:qa,datasetForXAxisDomain:this._xAxisLabels,tickParams:f,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,createStringYAxis:Ua,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===Ia.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)*vh)),this._xAxisOuterPadding=gs(this.props.xAxisOuterPadding)},i.defaultProps={maxBarWidth:24},i}(r.Component),gh=(0,t.I)(ph,(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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:i.palette.neutralPrimary}}})),mh=i(714),yh=(0,o.Z)(),bh=function(t){function i(i){var e=t.call(this,i)||this;return e._rectRefArray={},e._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===Ia.NumericAxis||o===Ia.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:ns(n,i,r)},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,Rn.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(Zl,(0,n.Cl)({},o,{legends:u}))},e._getColorScale=function(){var t=e.props,n=t.domainValuesForColorScale,i=t.rangeValuesForColorScale;return De().domain(n).range(i)},e._getXIndex=function(t){return e._xAxisType===Ia.DateAxis?"".concat(t.getTime()):e._xAxisType===Ia.StringAxis?t:e._xAxisType===Ia.NumericAxis?"".concat(t):""},e._getYIndex=function(t){return e._yAxisType===Wa.DateAxis?"".concat(t.getTime()):e._yAxisType===Wa.StringAxis?t:e._yAxisType===Wa.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===Ia.StringAxis?t.x.toLowerCase()>n.x.toLowerCase()?1:-1:e._xAxisType===Ia.DateAxis?t.x.getTime()-n.x.getTime():e._xAxisType===Ia.NumericAxis?+t.x>+n.x?1:-1:t.x>n.x?1:-1})).forEach((function(t){e._xAxisType===Ia.DateAxis&&(t.x=e._getStringFormattedDate(t.x,i)),e._xAxisType===Ia.NumericAxis&&(t.x=e._getStringFormattedNumber(t.x,r)),e._xAxisType===Ia.StringAxis&&(t.x=e._getFormattedLabelForXAxisDataPoint(t.x)),e._yAxisType===Wa.DateAxis&&(t.y=e._getStringFormattedDate(t.y,o)),e._yAxisType===Wa.NumericAxis&&(t.y=e._getStringFormattedNumber(t.y,u)),e._yAxisType===Wa.StringAxis&&(t.y=e._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(s).forEach((function(t){e._yAxisType===Wa.DateAxis?s[e._getStringFormattedDate(t,o)]=s[t]:e._yAxisType===Wa.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===Ia.DateAxis||e._xAxisType===Ia.NumericAxis?+t-+n:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return e._xAxisType===Ia.DateAxis?e._getStringFormattedDate(t,e.props.xAxisDateFormatString):e._xAxisType===Ia.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===Wa.DateAxis||e._yAxisType===Wa.NumericAxis?+t-+n:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return e._yAxisType===Wa.DateAxis?e._getStringFormattedDate(t,e.props.yAxisDateFormatString):e._yAxisType===Wa.NumericAxis?e._getStringFormattedNumber(t,e.props.yAxisNumberFormatString):e._getFormattedLabelForYAxisDataPoint(t)}))},e._getStringFormattedDate=function(t,n){var i=new Date;return i.setTime(+t),Wr(n||"%b/%d")(i)},e._getStringFormattedNumber=function(t,n){return Fa(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._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 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=yh(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:a,chartType:_a.HeatMapChart,xAxisType:Ia.StringAxis,yAxisType:Wa.StringAxis,calloutProps:g,createYAxis:qa,chartHoverProps:m,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,createStringYAxis:Ua,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,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),xh=(0,t.I)(bh,(function(t){var n=t.theme;return{root:{},text:[n.fonts.medium,{pointerEvents:"none",fill:n.palette.white,fontWeight:Yt.BO.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}})),wh=/[\{\}]/g,Mh=/\{\d+\}/g;function Ch(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=n;return t.replace(Mh,(function(t){var n=e[t.replace(wh,"")];return null==n&&(n=""),n}))}function kh(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 Sh(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 Lh(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 Vh(t,n){return n-1-t.height}function Ah(t,n){return t.sourceLinks.length?t.depth:n-1}function Nh(t){return function(){return t}}function Dh(t,n){return Oh(t.source,n.source)||t.index-n.index}function Th(t,n){return Oh(t.target,n.target)||t.index-n.index}function Oh(t,n){return t.y0-n.y0}function Ph(t){return t.value}function Eh(t){return t.index}function Fh(t){return t.nodes}function Bh(t){return t.links}function Hh(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function _h({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 Ih(){let t,n,i,e=0,r=0,o=1,u=1,a=24,s=8,l=Eh,c=Ah,f=Fh,h=Bh,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=Hh(e,n)),"object"!=typeof r&&(r=i.target=Hh(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(Sh(n.sourceLinks,Ph),Sh(n.targetLinks,Ph)):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=Lh(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)/(Lh(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)/Sh(n,Ph)));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),_h(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+=M(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(Oh),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+=C(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(Oh),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(Th);for(const{target:{targetLinks:n}}of t)n.sort(Dh)}}function w(t){if(void 0===i)for(const{sourceLinks:n,targetLinks:i}of t)n.sort(Th),i.sort(Dh)}function M(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 C(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 _h(t),t},v.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:Nh(t),v):l},v.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:Nh(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:Nh(t),v):f},v.links=function(t){return arguments.length?(h="function"==typeof t?t:Nh(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 Wh{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 Rh=(0,o.Z)(),zh="#757575",Yh=[{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 jh(t){return"number"==typeof t?t:t.nodeId}function Xh(t,n){return t[jh(n.source)][jh(n.target)]}var qh="...";function $h(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 Uh=Df().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve((function(t){return new Wh(t,!0)})),Gh=function(t){function i(n){var i=t.call(this,n)||this;return i._isRtl=(0,u.jI)(),i._numColumns=0,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._calculateChartMinWidth=function(){return i._margins.left+i._margins.right+124*i._numColumns+62*(i._numColumns-1)},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 Rh(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 Ch(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 Ch(n,t.source.name,t.target.name,t.unnormalizedValue?i._formatNumber(t.unnormalizedValue):t.unnormalizedValue)},nodeAriaLabel:function(t,n){return Ch(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=jh(t.source),o=e[r];o||(o={},e[r]=o),o[jh(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=[];v.sort((function(t,n){return t.x0!==n.x0?t.x0-n.x0:t.y0-n.y0})),v.forEach((function(t,n){b.push({layer:t.layer,type:"node",index:n})})),p.sort((function(t,n){var i=t.source.x0,e=n.source.x0;return i!==e?i-e:t.y0-n.y0})),p.forEach((function(t,n){b.push({layer:t.source.layer,type:"link",index:n})})),b.sort((function(t,n){return t.layer!==n.layer?t.layer-n.layer:t.type>n.type?-1:t.type<n.type?1:0}));var x=this._fetchTooltip(h),w=this._nodeAttributes(v,this._accessibility.nodeAriaLabel),M=this._fetchNodes(h,v,w,x),C=this._linkAttributes(p,this._strings.linkFrom,this._accessibility.linkAriaLabel),k=this._fetchLinks(p,C),S={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(zs,{direction:vs.vertical,className:h.chartWrapper},r.createElement("svg",{width:g,height:m,id:this._chartId},b.map((function(t){return"node"===t.type?r.createElement("g",{key:v[t.index].nodeId,className:h.nodes},M[t.index]):r.createElement("g",{key:"".concat(p[t.index].source.nodeId,"-").concat(p[t.index].target.nodeId),className:h.links,strokeOpacity:1},k[t.index])})),S.isCalloutVisible&&r.createElement(Wn,(0,n.Cl)({},S),r.createElement(bs.ChartHoverCard,{XValue:S.XValue,YValue:S.YValue,color:S.color,descriptionMessage:S.descriptionMessage?S.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=ka(".nodeName").append("text").attr("class","tempText").append("tspan").text(null),o=ka(".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=$h(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=$h(t,n);return void 0!==e&&e<=i}(t,n,r))return n;for(var o=function(t){var n=$h(t,qh);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+=qh;break}}return t.text(null),u}(o,t.name,116,a),h=f.slice(-3)===qh;e[t.nodeId]={reactId:v("nodeBar"),gElementId:v("nodeGElement"),name:f,aria:n(t,l),trimmed:h,height:u,weightOffset:s}})),Sa(".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:Ih().nodeWidth(124).extent([[r,u],[s-1,l-6]]).nodeAlign(e?Vh:Ah),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=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);this._numColumns=Object.keys(f).length;var h,d,v=(h=c.nodes,d={},h.forEach((function(t){d[t.nodeId]=t.value})),d),p=function(t){var n={};return t.forEach((function(t){var i=jh(t.source),e=n[i];e||(e={},n[i]=e),e[jh(t.target)]=t.value})),n}(c.links);return function(t,n,i){Object.values(t).map((function(t){return kh(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=Xh(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)}))}))}(f,v,p),function(t,n,i){var e=t.nodePadding(),r=.3*n;Object.values(i).forEach((function(t){var i=n-kh(t,(function(t){return t.y1-t.y0}));r<i&&(e=Math.min(e,r/(t.length-1)))})),t.nodePadding(e)}(a,s-6,f),a(c),function(t,n,i){t.links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=Xh(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=Yh.map((function(t){return t.fillColor})),r=Yh.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=ka("#".concat(this._labelTooltipId));return n.empty()&&(n=ka("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=Xh(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:Uh(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,M=n.y0,C=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:M,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:M,dy:"1.2em",dx:"0.4em",textAnchor:a,fontWeight:"regular","aria-hidden":"true",fill:C,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:M,dy:m?"2em":"1em",dx:m?"0.4em":"0em",textAnchor:a,fontWeight:"bold","aria-hidden":"true",fill:C,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 zh}return zh},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&&(t.props.enableReflow?Math.max(n.getBoundingClientRect().width,t._calculateChartMinWidth()):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.defaultProps={enableReflow:!0},i}(r.Component),Zh=(0,t.I)(Gh,(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[Yt.NK]={fill:"#000000"},i)},nodes:{fill:"#F5F5F5",selectors:(e={},e[Yt.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[Yt.NK]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:s.elevation4},chartWrapper:{overflow:"auto"}}}));function Kh(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 Jh(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=td)):void 0===n&&(n=Qh);for(var i,e,r,o,u,a=new ed(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 ed(r[o])),e.parent=i,e.depth=i.depth+1;return a.eachBefore(id)}function Qh(t){return t.children}function td(t){return Array.isArray(t)?t[1]:null}function nd(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function id(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function ed(t){this.data=t,this.depth=this.height=0,this.parent=null}function rd(t,n){return t.parent===n.parent?1:2}function od(t){var n=t.children;return n?n[0]:t.t}function ud(t){var n=t.children;return n?n[n.length-1]:t.t}function ad(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 sd(t,n,i){return t.a.parent===n.parent?t.a:i}function ld(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}ed.prototype=Jh.prototype={constructor:ed,count:function(){return this.eachAfter(Kh)},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 Jh(this).eachBefore(nd)},[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)}},ld.prototype=Object.create(ed.prototype);var cd,fd,hd=(0,o.Z)(),dd=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=Jh(this.treeData,(function(t){return t.children})),c=(null==l?void 0:l.height)+1;(function(){var t=rd,n=1,i=1,e=null;function r(r){var s=function(t){for(var n,i,e,r,o,u=new ld(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 ld(e[r],r)),i.parent=n;return(u.parent=new ld(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=ud(a),o=od(o),a&&o;)s=od(s),(u=ud(u)).a=n,(r=a.z+f-o.z-l+t(a._,o._))>0&&(ad(sd(a,n,e),n,r),l+=r,c+=r),f+=a.m,l+=o.m,h+=s.m,c+=u.m;a&&!ud(u)&&(u.t=a,u.m+=f-c),o&&!od(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 M=(v-g)/2,C=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,S=(null===(e=f[x.parentID])||void 0===e?void 0:e.x)-M/2-10,L=(null===(r=f[x.parentID])||void 0===r?void 0:r.x)+M/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:S:L,A,D.data.fill,1===k.length?v:M,p,D.id,w),N%2==1&&(A+=C+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+=C+g):k.length>2?(this.N(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,N%2==0?S:L,A,D.data.fill,1===k.length?v:M,p,D.id,w),N%2==1&&(A+=C+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+=C+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=ri(k=null===(a=f[x.id])||void 0===a?void 0:a.children,(function(t){return t.x})),O=oi(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=ka(".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),Sa(".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}()),vd=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=hd(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=Sa("text"),i=Sa("rect"),e=Sa("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 dd(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(zs,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),pd=(0,t.I)(vd,(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"}(cd||(cd={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(fd||(fd={}));var gd,md,yd=(0,o.Z)(),bd=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=Df().x((function(n){return t.x(n.x)})).y0(this.state._height).y1((function(n){return t.y(n.y)})).curve($c);this.area=n;var i=Zc().x((function(n){return t.x(n.x)})).y((function(n){return t.y(n.y)})).curve($c);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=De().domain([o,u]).range([this.margin.left,this.state._width-this.margin.right]),this.y=De().domain([0,oi(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=yd(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(zs,{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),xd=(0,t.I)(bd,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,n.Cl)((0,n.Cl)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText})}})),wd=(0,o.Z)(),Md=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,u.jI)(),e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){var l;return l=o===Ia.NumericAxis?function(t,n,i,e,r){var o=oi(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,n,i,r,s):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0},l},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):Wc(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):Wc(s,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted),r.createElement(r.Fragment,null,r.createElement(bs.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===Wa.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):Wc(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):Wc(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=oi(e._points,(function(t){return t.x})),o=oi(e._points,(function(t){return t.y}));return{xBarScale:De().domain(e._isRtl?[r,0]:[0,r]).nice().range([e.margins.left,n-e.margins.right]),yBarScale:u=De().domain([0,o]).range([t-e.margins.bottom,e.margins.top])}}r=oi(e._points,(function(t){return t.x}));var u=gu().domain(e._yAxisLabels).range([t-e.margins.bottom-e._barHeight/2,e.margins.top+e._barHeight/2]).padding(e.props.yAxisPadding||0);return{xBarScale:De().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):Wc(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(Zl,(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._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):Ia.NumericAxis,e._yAxisType=e.props.data&&e.props.data.length>0?ls(e.props.data[0].y,!1):Wa.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(oi(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var e=this._getLegendData(this._points,this.props.theme.palette);this._classNames=wd(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,chartType:_a.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:o,tickParams:u,legendBars:e,createYAxis:Xa,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:$a,getMinMaxOfYAxis:us,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 De().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=wd(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):Wc(1,0,null===(e=u.props.theme)||void 0===e?void 0:e.isInverted):u.props.colors?u._createColors()(t.x):Wc(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=ka("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){ka(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):Wc(1,0,null===(e=o.props.theme)||void 0===e?void 0:e.isInverted):o.props.colors?o._createColors()(t.x):Wc(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=ka(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),Cd=(0,t.I)(Md,(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"}(gd||(gd={})),function(t){t.SingleSegment="single-segment",t.MultipleSegments="multiple-segments"}(md||(md={}));var kd=[{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}],Sd=(0,o.Z)(),Ld=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0===n&&e===md.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===md.SingleSegment?"".concat(t.size," (").concat((t.size/i*100).toFixed(),"%)"):"".concat(t.start," - ").concat(t.end)},Vd=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0!==n?t.toString():e===gd.Fraction?"".concat((t/i*100).toFixed(),"%"):"".concat(t,"/").concat(i):"function"==typeof e?e([t-n,i-n]):0!==n?t.toString():e===gd.Fraction?"".concat(t,"/").concat(i):"".concat((t/i*100).toFixed(),"%")},Ad=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=kd.length-1;t>=0;t-=1)if(e._outerRadius>=kd[t].minRadius)return{arcWidth:kd[t].arcWidth,chartValueSize:kd[t].fontSize};return{arcWidth:kd[0].arcWidth,chartValueSize:kd[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?Rc(t.color,o.isInverted):Wc(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=Vc().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: "+Vd(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(Zl,(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 "+Vd(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat,!0),u=e._segments.map((function(t){return{legend:t.legend,y:Ld(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=ka("#".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,Rn.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=Sd(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(zs,{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:Ld(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(tf,{content:Vd(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(tf,{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(Wn,(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=Sd(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:u}),s=this.props.culture,l=(0,Rn.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,Rn.U)(t,s)),r.createElement("div",{className:a.calloutContentY},(0,Rn.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($l,{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,Rn.U)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,s)))))},i}(r.Component),Nd=(0,t.I)(Ad,(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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:u.palette.neutralPrimary},chartValue:{fontSize:a,fontWeight:Yt.BO.semibold,fill:u.palette.neutralPrimary},sublabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:u.palette.neutralPrimary},needle:{fill:u.palette.black,stroke:u.semanticColors.bodyBackground},chartTitle:{fontSize:Yt.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[Yt.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[Yt.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[Yt.NK]={color:"rgb(255, 255, 255)"},r)})],descriptionMessage:[u.fonts.small,{selectors:(o={},o[Yt.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.22")}(),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 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||!function(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)}(t))&&!0===t.__isShadowConfig__}},359:function(t,n,i){i.d(n,{Ae:function(){return V},bz:function(){return S},kG:function(){return A},GJ:function(){return L}});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("@")?M([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 M([e],n,x(i,t),r)})):M([e],n,x(i,t),r)}function M(t,n,i,e){void 0===n&&(n={__order:[]}),void 0===i&&(i="&");var r,o=n[i];o||(o={},n[i]=o,n.__order.push(i));for(var u=0,a=t;u<a.length;u++){var s=a[u];if("string"==typeof s){var l=e.argsFromClassName(s);l&&M(l,n,i,e)}else if(Array.isArray(s))M(s,n,i,e);else for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];if("selectors"===c){var h=s.selectors;for(var d in h)h.hasOwnProperty(d)&&w(i,n,d,h[d],e)}else"object"==typeof f||(r=c).indexOf(":global(")>=0||0===r.indexOf(":")?null!=f&&w(i,n,c,f,e):void 0!==f&&("margin"===c||"padding"===c?C(o,c,f):o[c]=f)}}return n}function C(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 S(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 L(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=M(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,S(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=L.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 St.s},BO:function(){return St.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 Ct},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),M=$(40),C=$(400),k=U(10),S=U(20),L=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)"}}),Y=a({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),j=a({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),X=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(M),h,s),slideLeftIn400:q("".concat(v,",").concat(C),h,s),slideUpIn10:q("".concat(v,",").concat(k),h,s),slideUpIn20:q("".concat(v,",").concat(S),h,s),slideDownIn10:q("".concat(v,",").concat(L),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(Y),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(j,"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,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 Mt(){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 Ct(t){return void 0===t&&(t=!1),!0===t&&(bt=(0,yt.a)({},t)),bt}Mt();var kt=i(823),St=i(703);(0,i(409).v)("@fluentui/style-utilities","8.10.18"),Mt()},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),M="language",C=(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}(M):"sessionStorage"===t?w.G(M):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 S(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 L(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");S(n,l.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),S(n,l.Dn.Arabic,"segoeui-arabic"),S(n,l.Dn.Cyrillic,"segoeui-cyrillic"),S(n,l.Dn.EastEuropean,"segoeui-easteuropean"),S(n,l.Dn.Greek,"segoeui-greek"),S(n,l.Dn.Hebrew,"segoeui-hebrew"),S(n,l.Dn.Vietnamese,"segoeui-vietnamese"),S(n,l.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),S(n,l.bi.Selawik,"selawik","selawik"),S(n,l.Dn.Armenian,"segoeui-armenian"),S(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,M=u.neutralTertiary,C=u.neutralTertiaryAlt,k=u.neutralLighterAlt,S=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),M&&(o.disabledBodyText=M,o.variantBorderHovered=(null==i?void 0:i.variantBorderHovered)||M,o.buttonTextDisabled=M,o.inputIconDisabled=M,o.disabledText=M),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),C&&(o.disabledBodySubtext=C,o.disabledBorder=C,o.buttonBackgroundChecked=C,o.menuDivider=C),S&&(o.accentButtonBackground=S),(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=L({},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]=L(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:C,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,M=w&&w.window?w.window:"__default__";n.has(M)||n.set(M,new Map);var C=n.get(M),k=b.theme,S=k&&void 0!==k.rtl?k.rtl:(0,l.jI)(),L=t.disableCaching;if(g!==d&&(g=d,n.set(M,new Map),C=n.get(M),i=0),t.disableCaching||(C=y(n.get(M),m),C=y(C,b)),!L&&C[p]||(C[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)?(M=(0,a.GJ)(f||{},{displayName:p},b))&&(v.push(M),l[p]=y.concat([M.className]).join(" ")):l[p]=y.join(" ")}for(var x=0,w=v;x<w.length;x++){var M;(M=w[x])&&(0,a.Ae)(M,null==n?void 0:n.specificityMultiplier,c)}return l}(["function"==typeof m?m(b):m],{shadowConfig:m.__shadowConfig__,rtl:!!S,specificityMultiplier:t.useStaticStyles?h:void 0}),L||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(M).clear(),i=0,t.disableCaching=!0}return C[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,M=(x.dir,(0,e.Tt)(x,["styles","dir"])),C=i?i(u):void 0,k=c().useStyled,S=b.current&&b.current.__cachedInputs__||[],L=u.styles;if(!b.current||w!==S[1]||L!==S[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,L)};V.__cachedInputs__=[n,w,L],V.__noStyleOverride__=!w&&!L,b.current=V}return b.current.__shadowConfig__=k(s),r.createElement(t,(0,e.Cl)({ref:a},M,C,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 zf},CartesianChart:function(){return uf},ChartHoverCard:function(){return bs.ChartHoverCard},DataVizPalette:function(){return Ec},DonutChart:function(){return jc},GaugeChart:function(){return Nd},GaugeChartVariant:function(){return md},GaugeValueFormat:function(){return gd},GroupedVerticalBarChart:function(){return gh},HeatMapChart:function(){return xh},HorizontalBarChart:function(){return el},HorizontalBarChartVariant:function(){return h},HorizontalBarChartWithAxis:function(){return Cd},Legends:function(){return Zl},LineChart:function(){return Sf},MultiStackedBarChart:function(){return rh},MultiStackedBarChartVariant:function(){return $f},NodesComposition:function(){return cd},PieChart:function(){return Kf},SankeyChart:function(){return Zh},Shape:function(){return $l},Sparkline:function(){return xd},StackedBarChart:function(){return th},Textbox:function(){return bf},TreeChart:function(){return pd},TreeTraverse:function(){return fd},VerticalBarChart:function(){return lh},VerticalStackedBarChart:function(){return hh},getChartHoverCardStyles:function(){return mh.J},getColorFromToken:function(){return Rc},getNextColor:function(){return Wc}});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 M=i(741),C="data-is-focusable",k="data-is-visible",S="data-focuszone-id",L="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(C):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(S))}function E(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(L))}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),Y=(I(z,["form"]),I(z,["height","loop","muted","preload","src","width"])),j=(I(Y,["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(j,["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(j,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),I(j,["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,M.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=Mt(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=Mt(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 Mt(t){return t===K.top||t===K.bottom?{positiveEdge:K.left,negativeEdge:K.right}:{positiveEdge:K.top,negativeEdge:K.bottom}}function Ct(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||Mt(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=Ct(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 St(t,n,i){var e=ct(n,t),r=ct(i,t),o=Mt(t),u=o.positiveEdge,a=o.negativeEdge;return e<=r?u:a}function Lt(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=St(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=Lt(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,C,k=t.bounds?(C=t.bounds,new et(C.left,C.right,C.top,C.bottom)):new et(0,c.innerWidth-function(t){if(void 0===Z){var n=(0,M.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),S=At(d,e,k,r,o,u),L=(v=S,p=function(t,n){var i=n.targetRectangle,e=Mt(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,S),g=k,m=-1*v.targetEdge,y=new et(0,v.elementRectangle.width,0,v.elementRectangle.height),b={},x=Ct(v.elementRectangle,v.alignmentEdge?v.alignmentEdge:Mt(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:St(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}}(S,i,k,t.coverTarget,s)),{beakPosition:L})}var Tt=["TEMPLATE","STYLE","SCRIPT"];function Ot(t){var n=(0,M.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,M.Y)().activeElement,t=n.current,(r=(i=(0,M.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,M.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,X),{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 Yt=i(286);function jt(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]=Yt.lw.slideUpIn10,Xt[K.bottom]=Yt.lw.slideDownIn10,Xt[K.left]=Yt.lw.slideLeftIn10,Xt[K.right]=Yt.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,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,M=t.hideOverflow,C=t.preferScrollResizePositioning,k=qt(),S=r.useRef();S.current!==s.current&&(S.current=s.current,l=s.current?null==k?void 0:k.getComputedStyle(s.current):void 0);var L=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,S=C&&!(M||"clip"===L||"hidden"===L),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,S,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,M,C,L,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,C=e.backgroundColor,k=e.calloutMaxHeight,S=e.onScroll,L=e.shouldRestoreFocus,A=void 0===L||L,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,M.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}),Y=z[0],j=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,Y,j),G=tn(e,P,B,Y,U,E),Z=Qt(e,U,Y,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=jt([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,Y,j),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]),!j)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:C,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,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:a,ariaLabelledBy:l,className:rt.calloutMain,onDismiss:e.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:e.onRestoreFocus,onScroll:S,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,Yt.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?Yt.nA.Layer:void 0,boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(n={},n[Yt.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},n)},(0,Yt.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}))})),Mn=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,M.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,X,["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))}));Mn.displayName="FabricBase";var Cn,kn={fontFamily:"inherit"},Sn={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ln=(0,t.I)(Mn,(function(t){var n=t.applyTheme,i=t.className,e=t.preventBlanketFontInheritance,r=t.theme;return{root:[(0,Yt.Km)(Sn,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=(0,o.Z)(),Bn=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,C=void 0===w?function(){}:w,k=t.onLayerMounted,S=void 0===k?function(){}:k,L=t.onLayerWillUnmount,V=t.styles,A=t.theme,N=Ht(l,null==y?void 0:y.ref,v),D=Fn(V,{theme:A,className:g,isNotHost:!b}),T=function(){null==L||L();var t=s.current;s.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},O=function(){var t,n,i,e,r=(0,M.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==S||S(),null==C||C(),d(!1))}),[h,S,C]),r.createElement("span",{className:"ms-layer",ref:a},s.current&&cn.createPortal(r.createElement(dn,{layerRoot:!0,providerRef:N},r.createElement(Ln,(0,n.Cl)({},!m&&(Cn||(Cn={},["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 Cn[t]=Hn}))),Cn),y,{className:$(D.content,null==y?void 0:y.className),ref:N}),p)),s.current))}));Bn.displayName="LayerBase";var Hn=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"},In=(0,t.I)(Bn,(function(t){var n=t.className,i=t.isNotHost,e=t.theme,r=(0,Yt.Km)(_n,e);return{root:[r.root,e.fonts.medium,i&&[r.rootNoHost,{position:"fixed",zIndex:Yt.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"]}),Wn=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(In,(0,n.Cl)({},e),a)}));Wn.displayName="Callout";var Rn=i(464),zn=Array.prototype.slice;function Yn(t){return t}var jn=1,Xn=2,qn=3,$n=4,Un=1e-6;function Gn(t){return"translate("+t+",0)"}function Zn(t){return"translate(0,"+t+")"}function Kn(t){return n=>+t(n)}function Jn(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),i=>+t(i)+n}function Qn(){return!this.__axis}function ti(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===jn||t===$n?-1:1,c=t===$n||t===Xn?"x":"y",f=t===jn||t===qn?Gn:Zn;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):Yn:r,p=Math.max(o,0)+a,g=n.range(),m=+g[0]+s,y=+g[g.length-1]+s,b=(n.bandwidth?Jn:Kn)(n.copy(),s),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),M=x.selectAll(".tick").data(d,n).order(),C=M.exit(),k=M.enter().append("g").attr("class","tick"),S=M.select("line"),L=M.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),M=M.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),L=L.merge(k.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",t===jn?"0em":t===qn?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),M=M.transition(h),S=S.transition(h),L=L.transition(h),C=C.transition(h).attr("opacity",Un).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),k.attr("opacity",Un).attr("transform",(function(t){var n=this.parentNode.__axis;return f((n&&isFinite(n=n(t))?n:b(t))+s)}))),C.remove(),w.attr("d",t===$n||t===Xn?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),M.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),S.attr(c+"2",l*o),L.attr(c,l*p).text(v),x.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Xn?"start":t===$n?"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=zn.call(arguments),h},h.tickArguments=function(t){return arguments.length?(i=null==t?[]:zn.call(t),h):i.slice()},h.tickValues=function(t){return arguments.length?(e=null==t?null:zn.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 ni(t){return ti(Xn,t)}function ii(t){return ti(qn,t)}function ei(t){return ti($n,t)}function ri(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 oi(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 ui=Math.sqrt(50),ai=Math.sqrt(10),si=Math.sqrt(2);function li(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>=ui?10:o>=ai?5:o>=si?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=ui?10:o>=ai?5:o>=si?2:1)}function ci(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function fi(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)=>ci(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 hi=fi(ci),di=hi.right;hi.left,fi((function(t){return null===t?NaN:+t})).center;var vi=di;function pi(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function gi(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function mi(){}var yi=.7,bi=1/yi,xi="\\s*([+-]?\\d+)\\s*",wi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ci=/^#([0-9a-f]{3,8})$/,ki=new RegExp("^rgb\\("+[xi,xi,xi]+"\\)$"),Si=new RegExp("^rgb\\("+[Mi,Mi,Mi]+"\\)$"),Li=new RegExp("^rgba\\("+[xi,xi,xi,wi]+"\\)$"),Vi=new RegExp("^rgba\\("+[Mi,Mi,Mi,wi]+"\\)$"),Ai=new RegExp("^hsl\\("+[wi,Mi,Mi]+"\\)$"),Ni=new RegExp("^hsla\\("+[wi,Mi,Mi,wi]+"\\)$"),Di={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 Ti(){return this.rgb().formatHex()}function Oi(){return this.rgb().formatRgb()}function Pi(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=Ci.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?Ei(n):3===i?new Hi(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===i?new Hi(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===i?new Hi(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=ki.exec(t))?new Hi(n[1],n[2],n[3],1):(n=Si.exec(t))?new Hi(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Li.exec(t))?Fi(n[1],n[2],n[3],n[4]):(n=Vi.exec(t))?Fi(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ai.exec(t))?Ri(n[1],n[2]/100,n[3]/100,1):(n=Ni.exec(t))?Ri(n[1],n[2]/100,n[3]/100,n[4]):Di.hasOwnProperty(t)?Ei(Di[t]):"transparent"===t?new Hi(NaN,NaN,NaN,0):null}function Ei(t){return new Hi(t>>16&255,t>>8&255,255&t,1)}function Fi(t,n,i,e){return e<=0&&(t=n=i=NaN),new Hi(t,n,i,e)}function Bi(t,n,i,e){return 1===arguments.length?((r=t)instanceof mi||(r=Pi(r)),r?new Hi((r=r.rgb()).r,r.g,r.b,r.opacity):new Hi):new Hi(t,n,i,null==e?1:e);var r}function Hi(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function _i(){return"#"+Wi(this.r)+Wi(this.g)+Wi(this.b)}function Ii(){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 Wi(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ri(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new Yi(t,n,i,e)}function zi(t){if(t instanceof Yi)return new Yi(t.h,t.s,t.l,t.opacity);if(t instanceof mi||(t=Pi(t)),!t)return new Yi;if(t instanceof Yi)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 Yi(u,a,s,t.opacity)}function Yi(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function ji(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 Xi(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 qi(t){return function(){return t}}function $i(t,n){var i=n-t;return i?function(t,n){return function(i){return t+i*n}}(t,i):qi(isNaN(t)?n:t)}pi(mi,Pi,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ti,formatHex:Ti,formatHsl:function(){return zi(this).formatHsl()},formatRgb:Oi,toString:Oi}),pi(Hi,Bi,gi(mi,{brighter:function(t){return t=null==t?bi:Math.pow(bi,t),new Hi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?yi:Math.pow(yi,t),new Hi(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:Ii,toString:Ii})),pi(Yi,(function(t,n,i,e){return 1===arguments.length?zi(t):new Yi(t,n,i,null==e?1:e)}),gi(mi,{brighter:function(t){return t=null==t?bi:Math.pow(bi,t),new Yi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?yi:Math.pow(yi,t),new Yi(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 Hi(ji(t>=240?t-240:t+120,r,e),ji(t,r,e),ji(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 Ui=function t(n){var i=function(t){return 1==(t=+t)?$i: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):qi(isNaN(n)?i:n)}}(n);function e(t,n){var e=i((t=Bi(t)).r,(n=Bi(n)).r),r=i(t.g,n.g),o=i(t.b,n.b),u=$i(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 Gi(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=Bi(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 Zi(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]=re(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 Ki(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function Ji(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function Qi(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]=re(t[i],n[i]):r[i]=n[i];return function(t){for(i in e)r[i]=e[i](t);return r}}Gi((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 Xi((i-e/n)*n,u,r,o,a)}})),Gi((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 Xi((i-e/n)*n,r,o,u,a)}}));var te=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ne=new RegExp(te.source,"g");function ie(t,n){var i,e,r,o=te.lastIndex=ne.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(i=te.exec(t))&&(e=ne.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:Ji(i,e)})),o=ne.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 ee(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 re(t,n){var i,e,r=typeof n;return null==n||"boolean"===r?qi(n):("number"===r?Ji:"string"===r?(i=Pi(n))?(n=i,Ui):ie:n instanceof Pi?Ui:n instanceof Date?Ki:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?Zi:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Qi:Ji:ee))(t,n)}function oe(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function ue(t){return+t}var ae=[0,1];function se(t){return t}function le(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:(i=isNaN(n)?NaN:.5,function(){return i});var i}function ce(t,n,i){var e=t[0],r=t[1],o=n[0],u=n[1];return r<e?(e=le(r,e),o=i(u,o)):(e=le(e,r),o=i(o,u)),function(t){return o(e(t))}}function fe(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]=le(t[u],t[u+1]),o[u]=i(n[u],n[u+1]);return function(n){var i=vi(t,n,1,e)-1;return o[i](r[i](n))}}function he(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function de(){return function(){var t,n,i,e,r,o,u=ae,a=ae,s=re,l=se;function c(){var t,n,i,s=Math.min(u.length,a.length);return l!==se&&(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?fe:ce,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),Ji)))(i)))},f.domain=function(t){return arguments.length?(u=Array.from(t,ue),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=oe,c()},f.clamp=function(t){return arguments.length?(l=!!t||se,c()):l!==se},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()}}()(se,se)}function ve(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var pe,ge=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function me(t){if(!(n=ge.exec(t)))throw new Error("invalid format: "+t);var n;return new ye({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 ye(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 be(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 xe(t){return(t=be(Math.abs(t)))?t[1]:NaN}function we(t,n){var i=be(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")}me.prototype=ye.prototype,ye.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 Me={"%":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 we(100*t,n)},r:we,s:function(t,n){var i=be(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(pe=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")+be(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 Ce(t){return t}var ke,Se,Le,Ve=Array.prototype.map,Ae=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ne(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=li(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>=ui?r*=10:o>=ai?r*=5:o>=si&&(r*=2),n<t?-r:r}(t,n,i);switch((e=me(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(xe(n)/3)))-xe(Math.abs(t)))}(o,u))||(e.precision=r),Le(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,xe(n)-xe(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,-xe(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return Se(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=li(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 De(){var t=de();return t.copy=function(){return he(t,De())},ve.apply(t,arguments),Ne(t)}ke=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?Ce:(n=Ve.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?Ce:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Ve.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=me(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"):Me[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=Me[y],M=/[defgprs%]/.test(y);function C(t){var r,o,s,h=b,C=x;if("c"===y)C=w(t)+C,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,C=("s"===y?Ae[8+pe/3]:"")+C+(k&&"("===f?")":""),M)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){C=(46===s?u+t.slice(r+1):t.slice(r))+C,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var S=h.length+t.length+C.length,L=S<v?new Array(v-S+1).join(n):"";switch(p&&d&&(t=e(L+t,L.length?v-C.length:1/0),L=""),i){case"<":t=h+t+C+L;break;case"=":t=h+L+t+C;break;case"^":t=L.slice(0,S=L.length>>1)+h+t+C+L.slice(S);break;default:t=L+h+t+C}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)),C.toString=function(){return t+""},C}return{format:f,formatPrefix:function(t,n){var i=f(((t=me(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(xe(n)/3))),r=Math.pow(10,-e),o=Ae[8+e/3];return function(t){return i(r*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Se=ke.format,Le=ke.formatPrefix;var Te=Math.sqrt(50),Oe=Math.sqrt(10),Pe=Math.sqrt(2);function Ee(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>=Te?r*=10:o>=Oe?r*=5:o>=Pe&&(r*=2),n<t?-r:r}const Fe=1e3,Be=6e4,He=36e5,_e=864e5,Ie=6048e5,We=31536e6;var Re=new Date,ze=new Date;function Ye(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 Ye((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 Re.setTime(+n),ze.setTime(+e),t(Re),t(ze),Math.floor(i(Re,ze))},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 je=Ye((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));je.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ye((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,i){n.setTime(+n+i*t)}),(function(n,i){return(i-n)/t})):je:null};var Xe=je,qe=(je.range,Ye((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Fe)}),(function(t,n){return(n-t)/Fe}),(function(t){return t.getUTCSeconds()}))),$e=qe,Ue=(qe.range,Ye((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fe)}),(function(t,n){t.setTime(+t+n*Be)}),(function(t,n){return(n-t)/Be}),(function(t){return t.getMinutes()}))),Ge=Ue,Ze=(Ue.range,Ye((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fe-t.getMinutes()*Be)}),(function(t,n){t.setTime(+t+n*He)}),(function(t,n){return(n-t)/He}),(function(t){return t.getHours()}))),Ke=Ze,Je=(Ze.range,Ye((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Be)/_e),(t=>t.getDate()-1))),Qe=Je;function tr(t){return Ye((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())*Be)/Ie}))}Je.range;var nr=tr(0),ir=tr(1),er=tr(2),rr=tr(3),or=tr(4),ur=tr(5),ar=tr(6),sr=(nr.range,ir.range,er.range,rr.range,or.range,ur.range,ar.range,Ye((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()}))),lr=sr,cr=(sr.range,Ye((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()})));cr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ye((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 fr=cr,hr=(cr.range,Ye((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Be)}),(function(t,n){return(n-t)/Be}),(function(t){return t.getUTCMinutes()}))),dr=hr,vr=(hr.range,Ye((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*He)}),(function(t,n){return(n-t)/He}),(function(t){return t.getUTCHours()}))),pr=vr,gr=(vr.range,Ye((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}))),mr=gr;function yr(t){return Ye((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)/Ie}))}gr.range;var br=yr(0),xr=yr(1),wr=yr(2),Mr=yr(3),Cr=yr(4),kr=yr(5),Sr=yr(6),Lr=(br.range,xr.range,wr.range,Mr.range,Cr.range,kr.range,Sr.range,Ye((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()}))),Vr=Lr,Ar=(Lr.range,Ye((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()})));Ar.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ye((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 Nr=Ar;function Dr(t,n,i,e,r,o){const u=[[$e,1,Fe],[$e,5,5e3],[$e,15,15e3],[$e,30,3e4],[o,1,Be],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,He],[r,3,108e5],[r,6,216e5],[r,12,432e5],[e,1,_e],[e,2,1728e5],[i,1,Ie],[n,1,2592e6],[n,3,7776e6],[t,1,We]];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(Ee(n/We,i/We,e));if(0===o)return Xe.every(Math.max(Ee(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]}Ar.range;const[Tr,Or]=Dr(Nr,Vr,br,mr,pr,dr),[Pr,Er]=Dr(fr,lr,nr,Qe,Ke,Ge);function Fr(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 Br(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 Hr(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=Ur(r),c=Gr(r),f=Ur(o),h=Gr(o),d=Ur(u),v=Gr(u),p=Ur(a),g=Gr(a),m=Ur(s),y=Gr(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:mo,e:mo,f:Mo,g:Po,G:Fo,H:yo,I:bo,j:xo,L:wo,m:Co,M:ko,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ru,s:ou,S:So,u:Lo,U:Vo,V:No,w:Do,W:To,x:null,X:null,y:Oo,Y:Eo,Z:Bo,"%":eu},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:Ho,e:Ho,f:zo,g:Qo,G:nu,H:_o,I:Io,j:Wo,L:Ro,m:Yo,M:jo,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ru,s:ou,S:Xo,u:qo,U:$o,V:Go,w:Zo,W:Ko,x:null,X:null,y:Jo,Y:tu,Z:iu,"%":eu},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:uo,e:uo,f:ho,g:io,G:no,H:so,I:so,j:ao,L:fo,m:oo,M:lo,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:ro,Q:po,s:go,S:co,u:Kr,U:Jr,V:Qr,w:Zr,W:to,x:function(t,n,e){return k(t,i,n,e)},X:function(t,n,i){return k(t,e,n,i)},y:io,Y:no,Z:eo,"%":vo};function M(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=zr[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 C(t,n){return function(i){var e,r,o=Hr(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=Br(Hr(o.y,0,1))).getUTCDay(),e=r>4||0===r?xr.ceil(e):xr(e),e=mr.offset(e,7*(o.V-1)),o.y=e.getUTCFullYear(),o.m=e.getUTCMonth(),o.d=e.getUTCDate()+(o.w+6)%7):(r=(e=Fr(Hr(o.y,0,1))).getDay(),e=r>4||0===r?ir.ceil(e):ir(e),e=Qe.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?Br(Hr(o.y,0,1)).getUTCDay():Fr(Hr(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,Br(o)):Fr(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 zr?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=M(i,b),b.X=M(e,b),b.c=M(n,b),x.x=M(i,x),x.X=M(e,x),x.c=M(n,x),{format:function(t){var n=M(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=C(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=M(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=C(t+="",!0);return n.toString=function(){return t},n}}}var Ir,Wr,Rr,zr={"-":"",_:" ",0:"0"},Yr=/^\s*\d+/,jr=/^%/,Xr=/[\\^$*+?|[\]().{}]/g;function qr(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 $r(t){return t.replace(Xr,"\\$&")}function Ur(t){return new RegExp("^(?:"+t.map($r).join("|")+")","i")}function Gr(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function Zr(t,n,i){var e=Yr.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function Kr(t,n,i){var e=Yr.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function Jr(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function Qr(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function to(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function no(t,n,i){var e=Yr.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function io(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function eo(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 ro(t,n,i){var e=Yr.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function oo(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function uo(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function ao(t,n,i){var e=Yr.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function so(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function lo(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function co(t,n,i){var e=Yr.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function fo(t,n,i){var e=Yr.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function ho(t,n,i){var e=Yr.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function vo(t,n,i){var e=jr.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function po(t,n,i){var e=Yr.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function go(t,n,i){var e=Yr.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function mo(t,n){return qr(t.getDate(),n,2)}function yo(t,n){return qr(t.getHours(),n,2)}function bo(t,n){return qr(t.getHours()%12||12,n,2)}function xo(t,n){return qr(1+Qe.count(fr(t),t),n,3)}function wo(t,n){return qr(t.getMilliseconds(),n,3)}function Mo(t,n){return wo(t,n)+"000"}function Co(t,n){return qr(t.getMonth()+1,n,2)}function ko(t,n){return qr(t.getMinutes(),n,2)}function So(t,n){return qr(t.getSeconds(),n,2)}function Lo(t){var n=t.getDay();return 0===n?7:n}function Vo(t,n){return qr(nr.count(fr(t)-1,t),n,2)}function Ao(t){var n=t.getDay();return n>=4||0===n?or(t):or.ceil(t)}function No(t,n){return t=Ao(t),qr(or.count(fr(t),t)+(4===fr(t).getDay()),n,2)}function Do(t){return t.getDay()}function To(t,n){return qr(ir.count(fr(t)-1,t),n,2)}function Oo(t,n){return qr(t.getFullYear()%100,n,2)}function Po(t,n){return qr((t=Ao(t)).getFullYear()%100,n,2)}function Eo(t,n){return qr(t.getFullYear()%1e4,n,4)}function Fo(t,n){var i=t.getDay();return qr((t=i>=4||0===i?or(t):or.ceil(t)).getFullYear()%1e4,n,4)}function Bo(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+qr(n/60|0,"0",2)+qr(n%60,"0",2)}function Ho(t,n){return qr(t.getUTCDate(),n,2)}function _o(t,n){return qr(t.getUTCHours(),n,2)}function Io(t,n){return qr(t.getUTCHours()%12||12,n,2)}function Wo(t,n){return qr(1+mr.count(Nr(t),t),n,3)}function Ro(t,n){return qr(t.getUTCMilliseconds(),n,3)}function zo(t,n){return Ro(t,n)+"000"}function Yo(t,n){return qr(t.getUTCMonth()+1,n,2)}function jo(t,n){return qr(t.getUTCMinutes(),n,2)}function Xo(t,n){return qr(t.getUTCSeconds(),n,2)}function qo(t){var n=t.getUTCDay();return 0===n?7:n}function $o(t,n){return qr(br.count(Nr(t)-1,t),n,2)}function Uo(t){var n=t.getUTCDay();return n>=4||0===n?Cr(t):Cr.ceil(t)}function Go(t,n){return t=Uo(t),qr(Cr.count(Nr(t),t)+(4===Nr(t).getUTCDay()),n,2)}function Zo(t){return t.getUTCDay()}function Ko(t,n){return qr(xr.count(Nr(t)-1,t),n,2)}function Jo(t,n){return qr(t.getUTCFullYear()%100,n,2)}function Qo(t,n){return qr((t=Uo(t)).getUTCFullYear()%100,n,2)}function tu(t,n){return qr(t.getUTCFullYear()%1e4,n,4)}function nu(t,n){var i=t.getUTCDay();return qr((t=i>=4||0===i?Cr(t):Cr.ceil(t)).getUTCFullYear()%1e4,n,4)}function iu(){return"+0000"}function eu(){return"%"}function ru(t){return+t}function ou(t){return Math.floor(+t/1e3)}function uu(t){return new Date(t)}function au(t){return t instanceof Date?+t:+new Date(+t)}function su(t,n,i,e,r,o,u,a,s,l){var c=de(),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,au)):h().map(uu)},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 he(c,su(t,n,i,e,r,o,u,a,s,l))},c}function lu(){return ve.apply(su(Pr,Er,fr,lr,nr,Qe,Ke,Ge,$e,Wr).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function cu(){return ve.apply(su(Tr,Or,Nr,Vr,br,mr,pr,dr,$e,Rr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}Ir=_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"]}),Wr=Ir.format,Ir.parse,Rr=Ir.utcFormat,Ir.utcParse;class fu extends Map{constructor(t,n=du){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(hu(this,t))}has(t){return super.has(hu(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 hu({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function du(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const vu=Symbol("implicit");function pu(){var t=new fu,n=[],i=[],e=vu;function r(r){let o=t.get(r);if(void 0===o){if(e!==vu)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 fu;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 pu(n,i).unknown(e)},ve.apply(r,arguments),r}function gu(){var t,n,i=pu().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 gu(e(),[o,u]).round(a).paddingInner(s).paddingOuter(l).align(c)},ve.apply(f(),arguments)}function mu(){}function yu(t){return null==t?mu:function(){return this.querySelector(t)}}function bu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function xu(){return[]}function wu(t){return function(n){return n.matches(t)}}var Mu=Array.prototype.find;function Cu(){return this.firstElementChild}var ku=Array.prototype.filter;function Su(){return this.children}function Lu(t){return new Array(t.length)}function Vu(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Au(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 Vu(t,o[a]);for(;a<s;++a)(u=n[a])&&(r[a]=u)}function Nu(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 Vu(t,o[a]);for(a=0;a<f;++a)(s=n[a])&&c.get(d[a])===s&&(r[a]=s)}function Du(t){return t.__data__}function Tu(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Vu.prototype={constructor:Vu,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 Ou="http://www.w3.org/1999/xhtml",Pu={svg:"http://www.w3.org/2000/svg",xhtml:Ou,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Eu(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),Pu.hasOwnProperty(n)?{space:Pu[n],local:t}:t}function Fu(t){return function(){this.removeAttribute(t)}}function Bu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Hu(t,n){return function(){this.setAttribute(t,n)}}function _u(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Iu(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function Wu(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 Ru(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function zu(t){return function(){this.style.removeProperty(t)}}function Yu(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 Xu(t){return function(){delete this[t]}}function qu(t,n){return function(){this[t]=n}}function $u(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function Uu(t){return t.trim().split(/^|\s+/)}function Gu(t){return t.classList||new Zu(t)}function Zu(t){this._node=t,this._names=Uu(t.getAttribute("class")||"")}function Ku(t,n){for(var i=Gu(t),e=-1,r=n.length;++e<r;)i.add(n[e])}function Ju(t,n){for(var i=Gu(t),e=-1,r=n.length;++e<r;)i.remove(n[e])}function Qu(t){return function(){Ku(this,t)}}function ta(t){return function(){Ju(this,t)}}function na(t,n){return function(){(n.apply(this,arguments)?Ku:Ju)(this,t)}}function ia(){this.textContent=""}function ea(t){return function(){this.textContent=t}}function ra(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function oa(){this.innerHTML=""}function ua(t){return function(){this.innerHTML=t}}function aa(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function sa(){this.nextSibling&&this.parentNode.appendChild(this)}function la(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ca(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Ou&&n.documentElement.namespaceURI===Ou?n.createElement(t):n.createElementNS(i,t)}}function fa(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ha(t){var n=Eu(t);return(n.local?fa:ca)(n)}function da(){return null}function va(){var t=this.parentNode;t&&t.removeChild(this)}function pa(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ga(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ma(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 ya(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 ba(t,n,i){var e=Ru(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 xa(t,n){return function(){return ba(this,t,n)}}function wa(t,n){return function(){return ba(this,t,n.apply(this,arguments))}}Zu.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 Ma=[null];function Ca(t,n){this._groups=t,this._parents=n}function ka(t){return"string"==typeof t?new Ca([[document.querySelector(t)]],[document.documentElement]):new Ca([[t]],Ma)}function Sa(t){return"string"==typeof t?new Ca([document.querySelectorAll(t)],[document.documentElement]):new Ca([null==t?[]:bu(t)],Ma)}function La(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)]}Ca.prototype=function(){return new Ca([[document.documentElement]],Ma)}.prototype={constructor:Ca,select:function(t){"function"!=typeof t&&(t=yu(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 Ca(e,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);return null==n?[]:bu(n)}}(t):function(t){return null==t?xu: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 Ca(e,r)},selectChild:function(t){return this.select(null==t?Cu:function(t){return function(){return Mu.call(this.children,t)}}("function"==typeof t?t:wu(t)))},selectChildren:function(t){return this.selectAll(null==t?Su:function(t){return function(){return ku.call(this.children,t)}}("function"==typeof t?t:wu(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 Ca(e,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,Du);var i,e=n?Nu:Au,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=bu(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 Ca(a,r))._enter=s,a._exit=l,a},enter:function(){return new Ca(this._enter||this._groups.map(Lu),this._parents)},exit:function(){return new Ca(this._exit||this._groups.map(Lu),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 Ca))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 Ca(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=Tu);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 Ca(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=Eu(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?Bu:Fu:"function"==typeof n?i.local?Wu:Iu:i.local?_u:Hu)(i,n))},style:function(t,n,i){return arguments.length>1?this.each((null==n?zu:"function"==typeof n?ju:Yu)(t,n,null==i?"":i)):function(t,n){return t.style.getPropertyValue(n)||Ru(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Xu:"function"==typeof n?$u:qu)(t,n)):this.node()[t]},classed:function(t,n){var i=Uu(t+"");if(arguments.length<2){for(var e=Gu(this.node()),r=-1,o=i.length;++r<o;)if(!e.contains(i[r]))return!1;return!0}return this.each(("function"==typeof n?na:n?Qu:ta)(i,n))},text:function(t){return arguments.length?this.each(null==t?ia:("function"==typeof t?ra:ea)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?oa:("function"==typeof t?aa:ua)(t)):this.node().innerHTML},raise:function(){return this.each(sa)},lower:function(){return this.each(la)},append:function(t){var n="function"==typeof t?t:ha(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var i="function"==typeof t?t:ha(t),e=null==n?da:"function"==typeof n?n:yu(n);return this.select((function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)}))},remove:function(){return this.each(va)},clone:function(t){return this.select(t?ga:pa)},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?ya:ma,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?wa:xa)(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 Va,Aa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Na(t){if(!(n=Aa.exec(t)))throw new Error("invalid format: "+t);var n;return new Da({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 Da(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 Ta(t,n){var i=La(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")}Na.prototype=Da.prototype,Da.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 Oa={"%":(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)=>Ta(100*t,n),r:Ta,s:function(t,n){var i=La(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(Va=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")+La(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Pa(t){return t}var Ea,Fa,Ba,Ha,_a,Ia,Wa,Ra=Array.prototype.map,za=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ya(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=De().domain([e.dStartValue,e.dEndValue]).range([e.rStartValue,e.rEndValue]);o&&d.nice();var v=ii(d).tickSize(a).tickPadding(l).ticks(f).tickFormat((function(t,n){var e="number"==typeof t?t:t.valueOf();return hs(e,i)}));n===_a.HorizontalBarChartWithAxis&&v.tickSizeInner(-(t.containerHeight-t.margins.top)),h&&ka(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,i){var e=n?i?n.utcFormat:n.format:i?Rr:Wr,r=e(".%L"),o=e(":%S"),u=e("%I:%M"),a=e("%I %p"),s=e("%a %d"),l=e("%b %d"),c=e("%B"),f=e("%Y"),h=i?dr:Ge,d=i?pr:Ke,v=i?mr:Qe,p=i?Vr:lr,g=i?br:nr,m=i?Nr:fr;return($e(t)<t?r:h(t)<t?o:d(t)<t?u:v(t)<t?a:p(t)<t?g(t)<t?s:l:m(t)<t?c:f)(t)}function Xa(t,n){var i=t.yMinMaxValues,e=void 0===i?{startValue:0,endValue:0}:i,r=t.yAxisElement,o=void 0===r?null:r,u=t.yMaxValue,a=void 0===u?0:u,s=t.yMinValue,l=void 0===s?0:s,c=t.containerHeight,f=t.margins,h=t.tickPadding,d=void 0===h?12:h,v=t.maxOfYVal,p=void 0===v?0:v,g=t.yAxisTickFormat,m=t.yAxisTickCount,y=void 0===m?4:m,b=p||e.endValue,x=b>a?b:a,w=e.startValue<l?0:l,M=De().domain([w,x]).range([c-f.bottom,f.top]),C=(n?ni(M):ei(M)).tickPadding(d).ticks(y);return g?C.tickFormat(g):C.tickFormat(Fa(".2~s")),o&&ka(o).call(C).selectAll("text").attr("aria-hidden","true"),M}function qa(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,M=void 0===w?4:w,C=t.eventAnnotationProps,k=t.eventLabelHeight,S=b||u.endValue,L=S>c?S: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}(L,V,M,e),N=De().domain([V,A[A.length-1]]).range([d-p.bottom,p.top+(C?k:0)]),D=(!n&&r||n&&!r?ni(N):ei(N)).tickPadding(m).tickValues(A).tickSizeInner(-(v-p.left-p.right));return x?D.tickFormat(x):D.tickFormat(Fa(".2~s")),s&&ka(s).call(D).selectAll("text").attr("aria-hidden","true"),i.yAxisDomainValues=A,N}Ea=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?Pa:(n=Ra.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?Pa:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Ra.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=Na(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"):Oa[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=Oa[y],M=/[defgprs%]/.test(y);function C(t){var r,o,s,h=b,C=x;if("c"===y)C=w(t)+C,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,C=("s"===y?za[8+Va/3]:"")+C+(k&&"("===f?")":""),M)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){C=(46===s?u+t.slice(r+1):t.slice(r))+C,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var S=h.length+t.length+C.length,L=S<v?new Array(v-S+1).join(n):"";switch(p&&d&&(t=e(L+t,L.length?v-C.length:1/0),L=""),i){case"<":t=h+t+C+L;break;case"=":t=h+L+t+C;break;case"^":t=L.slice(0,S=L.length>>1)+h+t+C+L.slice(S);break;default:t=L+h+t+C}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)),C.toString=function(){return t+""},C}return{format:f,formatPrefix:function(t,n){var i,e=f(((t=Na(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((i=n,((i=La(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:["$",""]}),Fa=Ea.format,Ba=Ea.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"}(_a||(_a={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Ia||(Ia={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Wa||(Wa={}));var $a=function(t,n,i,e){var r=t.containerHeight,o=t.tickPadding,u=void 0===o?12:o,a=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=gu().domain(n).range([r-a.bottom-e/2,a.top+e/2]),f=(i?ni(c):ei(c)).tickPadding(u).ticks(n);return s&&f.tickFormat(s),l&&ka(l).call(f).selectAll("text"),c},Ua=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=gu().domain(n).range([e-u.bottom,u.top]).padding(c),h=(i?ni(f):ei(f)).tickPadding(o).tickValues(n).tickSize(0);return a&&h.tickFormat(a),s&&ka(s).call(h).selectAll("text"),f};function Ga(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 Za=function(t,n,i){var e=ka("#".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},Ka=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 Ja(t){var n=t.tooltipCls,i=t.xAxis,e=t.id;if(null===i)return null;for(var r=ka("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){ka(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 Qa(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 ts(t,n,i,e){var r=ri(t,(function(t){return ri(t.data,(function(t){return t.x}))})),o=oi(t,(function(t){return oi(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}}function ns(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}}function is(t,i,e,r,o,u,a){var s,l;void 0===o&&(o=[]),u===_a.AreaChart||u===_a.LineChart?(s=ri(t,(function(t){return ri(t.data,(function(t){return t.x}))})),l=oi(t,(function(t){return oi(t.data,(function(t){return t.x}))})),s=ri((0,n.fX)((0,n.fX)([],o,!0),[s],!1)),l=oi((0,n.fX)((0,n.fX)([],o,!0),[l],!1))):(s=ri(t,(function(t){return t.x})),l=oi(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}}function es(t){var n=oi(t,(function(t){return oi(t.data,(function(t){return t.y}))}));return{startValue:ri(t,(function(t){return ri(t.data,(function(t){return t.y}))})),endValue:n}}function rs(t){var n=oi(t,(function(t){return t.y}));return{startValue:ri(t,(function(t){return t.y})),endValue:n}}function os(t){var n=oi(t,(function(t){return void 0!==t.lineData?t.y>t.lineData.y?t.y:t.lineData.y:t.y}));return{startValue:ri(t,(function(t){return void 0!==t.lineData?t.y<t.lineData.y?t.y:t.lineData.y:t.y})),endValue:n}}function us(t,n){if(void 0!==n&&n===Wa.NumericAxis){var i=oi(t,(function(t){return t.y}));return{startValue:ri(t,(function(t){return t.y})),endValue:i}}return{startValue:0,endValue:0}}var as,ss,ls=function(t,n){if(n)switch(typeof t){case"string":return Ia.StringAxis;case"number":return Ia.NumericAxis;default:return Ia.DateAxis}else switch(typeof t){case"string":return Wa.StringAxis;case"number":return Wa.NumericAxis;default:return Wa.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=((Ha={})[as.circle]={widthRatio:1},Ha[as.square]={widthRatio:1},Ha[as.triangle]={widthRatio:1},Ha[as.diamond]={widthRatio:1},Ha[as.pyramid]={widthRatio:1},Ha[as.hexagon]={widthRatio:2},Ha[as.pentagon]={widthRatio:1.168},Ha[as.octagon]={widthRatio:2.414},Ha),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 Ba(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=function(t,n){return(n?Rr:Wr)("%-e %b %Y, %H:%M")(t)+(n?" GMT":"")},bs=i(395);function xs(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 ws(t){!function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=xs(t,t[i],n[i]))}(t,{componentDidMount:Ms,componentDidUpdate:Cs,componentWillUnmount:ks})}function Ms(){Ss(this.props.componentRef,this)}function Cs(t){t.componentRef!==this.props.componentRef&&(Ss(t.componentRef,null),Ss(this.props.componentRef,this))}function ks(){Ss(this.props.componentRef,null)}function Ss(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 Vs,As=r.createContext(void 0),Ns="data-is-focusable",Ds="data-focuszone-id",Ts="tabindex",Os="data-no-vertical-wrap",Ps="data-no-horizontal-wrap",Es=999999999,Fs=-999999999;function Bs(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 Hs,_s={},Is=new Set,Ws=["text","number","password","email","tel","url","search","textarea"],Rs=!1,zs=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,Rs)}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,Rs);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,Ps)?((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,Os)?Es:Fs},ws(c),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 Is.size},i._onKeyDownCapture=function(t){9===t.which&&Is.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),_s[this._id]=this,n){for(var e=b(n,Rs);e&&e!==this._getDocument().body&&1===e.nodeType;){if(P(e)){this._isInnerZone=!0;break}e=b(e,Rs)}this._isInnerZone||(Is.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,Rs)||this._defaultFocusElement&&!w(this._root.current,this._defaultFocusElement,Rs))&&(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 _s[this._id],this._isInnerZone||(Is.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,Yt.O4)();return r.createElement(f,(0,n.Cl)({"aria-labelledby":s,"aria-describedby":a},c,u,{className:$((Vs||(Vs=(0,Q.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Vs),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(Ns)&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var e=_s[i.getAttribute(Ds)];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(Ns)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return Bs(i,n),!0;i=b(i,Rs)}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 _s[t.getAttribute(Ds)];for(var n=t.firstElementChild;n;){if(P(n))return _s[n.getAttribute(Ds)];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,Os)?Es:Fs:((-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,Os)?Es:Fs:((-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,Ps);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=Fs),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},i.prototype._moveFocusRight=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,Ps);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=Fs),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,Rs);n&&n!==this._root.current&&n!==this._getDocument().body;){if(P(n))return n;n=b(n,Rs)}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(Ns)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(Ts)&&e.setAttribute(Ts,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(Ts)&&e.setAttribute(Ts,"0"))):(e.getAttribute&&"false"===e.getAttribute(Ns)&&e.setAttribute(Ts,"-1"),O(e,void 0,this._inShadowRoot)?this.props.disabled?e.setAttribute(Ts,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(Ts)&&e.setAttribute(Ts,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(Ts)&&e.setAttribute(Ts,"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&&Ws.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,M.Y)())}(t,n)},i.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&Ls(t,this._root.current)},i.prototype._getDocument=function(){return(0,M.Y)(this._root.current)},i.contextType=As,i.defaultProps={isCircularNavigation:!1,direction:vs.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},i}(r.Component);function Ys(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"}(Hs||(Hs={}));var js,Xs=(0,o.Z)(),qs=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(Wn,(0,n.Cl)({target:h,directionalHint:o,directionalHintForRTL:u},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),$s=(0,t.I)(qs,(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,Yt.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 Us,Gs,Zs=(0,o.Z)(),Ks=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 Hs.Parent:return e._tooltipHost.current.parentElement;case Hs.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&&!Ys(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}},ws(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=Zs(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,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($s,(0,n.Cl)({},m)),r.createElement("div",{hidden:!0,id:g,style:Yt.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),Js={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Qs=(0,t.I)(Ks,(function(t){var n=t.className,i=t.theme;return{root:[(0,Yt.Km)(Js,i).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"}),tl=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&&Ys(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(Qs,{overflowMode:Hs.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),nl=(0,o.Z)(),il=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=nl(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=nl(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(zs,{direction:vs.horizontal},r.createElement("div",{className:t._classNames.chartTitle},n.chartTitle&&r.createElement(tl,{className:t._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),e)),n.chartData[0].data&&t._createBenchmark(n),r.createElement(zs,{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(Wn,(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(bs.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,Rn.U)(u,i));case"fraction":return r.createElement("div",(0,n.Cl)({},s),r.createElement("span",{className:this._classNames.chartTitleRight},(0,Rn.U)(u,i)),r.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,Rn.U)(a,i)));case"percentage":var l="".concat((0,Rn.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),el=(0,t.I)(il,(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:Yt.s.medium,fontWeight:Yt.BO.semibold,color:e.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Yt.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:Yt.BO.semibold,fill:e.palette.neutralPrimary}),chartWrapper:{paddingRight:a!==h.AbsoluteScale||s?0:40}}})),rl={host:"ms-HoverCard-host"},ol=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,M.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"}(Us||(Us={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Gs||(Gs={}));var ul,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"}(ul||(ul={}));var sl=function(t){for(var n=t.activeElement;null==n?void 0:n.shadowRoot;)n=n.shadowRoot.activeElement;return n},ll=function(t){var n=t.target;return n&&n.shadowRoot&&(n=t.composedPath()[0]),n};function cl(t){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=t})),n.current}function fl(t,n){var i=r.useRef(n);return i.current||(i.current=v(t)),i.current}function hl(t){var n=r.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return En((function(){n.current=t}),[t]),jt((function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.current.apply(void 0,t)}}))}var dl={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},vl=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(As),v=null===(e=cl(!1))||void 0===e||e,p=_(dl,t),g=jt({hasFocus:!1,focusStackId:fl("ftz-",p.id)}),m=p.children,y=p.componentRef,b=p.disabled,x=p.disableFirstFocus,M=p.forceFocusInsideTrap,C=p.focusPreviouslyFocusedInnerElement,k=p.firstFocusableSelector,S=p.firstFocusableTarget,L=p.disableRestoreFocus,V=void 0===L?p.ignoreExternalFocusing:L,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=hl((function(){if(a.current){var t=g.previouslyFocusedElementInTrapZone;if(C&&t&&w(a.current,t))P(t);else{var n=null;if("string"==typeof S)n=a.current.querySelector(S);else if(S)n=S(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=hl((function(t){if(vl.focusStack=vl.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=hl((function(t){if(!b&&g.focusStackId===vl.focusStack.slice(-1)[0]){var n=ll(t);n&&!w(a.current,n)&&(f&&sl(f)===f.body?setTimeout((function(){f&&sl(f)===f.body&&(E(),g.hasFocus=!0)}),0):(E(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return r.useEffect((function(){var t=[];return M&&t.push(H(h,"focus",W,!0)),D||t.push(H(h,"click",W,!0)),function(){t.forEach((function(t){return t()}))}}),[M,D,h]),r.useEffect((function(){if(!b&&(v||M)&&a.current){vl.focusStack.push(g.focusStackId);var t=p.elementToFocusOnDismiss||sl(f);return x||w(a.current,t)||E(),function(){return I(t)}}}),[M,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,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=ll(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=sl(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})))}));vl.displayName="FocusTrapZone",vl.focusStack=[];var pl,gl=function(t){return r.createElement(Wn,(0,n.Cl)({},t),r.createElement(vl,(0,n.Cl)({disabled:t.hidden},t.focusTrapProps),t.children))},ml=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,X)),{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(gl,(0,n.Cl)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),v):r.createElement(Wn,(0,n.Cl)({},g),v))},yl=(0,o.Z)(),bl=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),ws(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=yl(i,{theme:u,compactCardHeight:e,className:s,expandedCardHeight:o,needsScroll:c,expandedCardFirstFrameRendered:a===ul.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(ml,(0,n.Cl)({},this.props,{content:d,finalHeight:h,className:this._classNames.root}))},i.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},i}(r.Component),xl=(0,t.I)(bl,(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,Yt.Km)(al,i);return{root:[l.root,{width:320,pointerEvents:"none",selectors:(n={},n[Yt.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"}),wl={root:"ms-PlainCard-root"},Ml=(0,o.Z)(),Cl=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)},ws(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=Ml(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(ml,(0,n.Cl)({},this.props,{content:u,className:this._classNames.root}))},i}(r.Component),kl=(0,t.I)(Cl,(function(t){var n,i=t.theme,e=t.className;return{root:[(0,Yt.Km)(wl,i).root,{pointerEvents:"auto",selectors:(n={},n[Yt.up]={border:"1px solid WindowText"},n)},e]}}),void 0,{scope:"PlainCard"}),Sl=(0,o.Z)(),Ll=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:ul.compact,openMode:"keydown"===t.type?Us.hotKey:Us.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:ul.compact,openMode:Us.hover})},i._instantOpenAsExpanded=function(t){i._async.clearTimeout(i._dismissTimerId),i.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:ul.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)))},ws(i),i._async=new Et(i),i._events=new ol(i),i._nativeDismissEvent=i._cardDismiss.bind(i,!0),i._childDismissEvent=i._cardDismiss.bind(i,!1),i.state={isHoverCardVisible:!1,mode:ul.compact,openMode:Us.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:ul.expanded},(function(){i.props.onCardExpand&&i.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:ul.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=Sl(s,{theme:l,className:c});var w=(0,n.Cl)((0,n.Cl)({},q(this.props,X)),{id:x,trapFocus:!!d,firstFocus:p||b===Us.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),M=(0,n.Cl)((0,n.Cl)((0,n.Cl)({},i),w),{mode:y}),C=(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===Gs.expanding?r.createElement(xl,(0,n.Cl)({},M)):r.createElement(kl,(0,n.Cl)({},C))))},i.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,M.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:Gs.expanding},i}(r.Component),Vl=(0,t.I)(Ll,(function(t){var n=t.className,i=t.theme;return{host:[(0,Yt.Km)(rl,i).host,n]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(pl||(pl={}));var Al=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}}}},Nl=r.createContext({isMeasured:!1}),Dl={position:"fixed",visibility:"hidden"},Tl={position:"relative"};function Ol(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 Pl={isMeasured:!0},El=r.forwardRef((function(t,i){var e=r.useRef(null),o=Ht(e,i),u=function(t,i){var e=jt(Al),o=r.useRef(null),u=r.useRef(null),a=r.useRef(!1),s=Ft(),l=function(t,i,e){var o=jt((function(){return i.getInitialResizeGroupState(t.data)})),u=r.useReducer(Ol,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===pl.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===pl.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]);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:Tl},h&&!d&&r.createElement("div",{style:Dl,ref:f},r.createElement(Nl.Provider,{value:Pl},p(a))),r.createElement("div",{ref:c,style:d?Dl:void 0,"data-automation-id":"visibleContent"},d?p(a):s&&p(s))))}));El.displayName="ResizeGroupBase";var Fl,Bl=El;!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"}(Fl||(Fl={}));var Hl=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?Fl.PERSISTED_KEYTIP_ADDED:Fl.KEYTIP_ADDED;ol.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||ol.raise(this,Fl.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?Fl.PERSISTED_KEYTIP_REMOVED:Fl.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||ol.raise(this,e,{keytip:t,uniqueID:n})},t.prototype.enterKeytipMode=function(){ol.raise(this,Fl.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){ol.raise(this,Fl.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){ol.raise(this,Fl.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}(),_l=function(t,n,i){for(var e=0,r=t;e<r.length;e++){var o=r[e];i[n.register(o,!0)]=o}},Il=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]}},Wl=function(t){var i=Hl.getInstance(),e=t.className,o=t.overflowItems,u=t.keytipSequences,a=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=jt({}),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=cl(t);r.useEffect((function(){e&&(Il(i,e),_l(n,i,t))})),r.useEffect((function(){return _l(n,i,t),function(){Il(i,t)}}),[])}(l,f.keytipsToRegister,i),r.createElement("div",{className:e},s(h))},Rl=(0,o.Z)(),zl=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=Rl(l,{className:s,vertical:c}),g=!!a&&a.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(Wl,(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(Wl,(0,n.Cl)({},t,{className:p.overflowButton})))}));zl.displayName="OverflowSet";var Yl,jl={flexShrink:0,display:"inherit"},Xl=(0,t.I)(zl,(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",jl],overflowButton:["ms-OverflowSet-overflowButton",jl]}}),void 0,{scope:"OverflowSet"}),ql=((Yl={})["".concat(as[as.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Yl["".concat(as[as.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Yl["".concat(as[as.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Yl["".concat(as[as.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Yl["".concat(as[as.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Yl["".concat(as[as.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Yl["".concat(as[as.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Yl["".concat(as[as.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Yl["".concat(ss[ss.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",Yl),$l=function(t){var i=t.svgProps,e=t.pathProps,o=t.shape,u=t.classNameForNonSvg;return-1===Object.keys(ql).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:ql[o]},e)))},Ul=(0,o.Z)(),Gl=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(zs,(0,n.Cl)({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":l}),r.createElement(Xl,(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=Ul(s,{theme:l,className:a});return t.renderData.forEach((function(t,n){var i=u._renderButton(t,n,!0);h.push(i)})),r.createElement(zs,(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=Ul(f,{theme:l,className:c}),v={onRenderPlainCard:u._onRenderCompactCard,renderData:a},p=h||"more";return r.createElement(Vl,{type:Gs.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=Ul(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=Ul(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(Bl,{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,j,["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($l,{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),Zl=(0,t.I)(Gl,(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,Yt.gm)(o,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(i={},i[Yt.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[Yt.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,Yt.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,Yt.gm)(o,f)]}}}}));function Kl(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Jl(t){return function(){return t}}function Ql(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function tc(t){return t}Array.prototype.slice;const nc=Math.abs,ic=Math.atan2,ec=Math.cos,rc=Math.max,oc=Math.min,uc=Math.sin,ac=Math.sqrt,sc=1e-12,lc=Math.PI,cc=lc/2,fc=2*lc;function hc(t){return t>=1?cc:t<=-1?-cc:Math.asin(t)}function dc(){var t=tc,n=Ql,i=null,e=Jl(0),r=Jl(fc),o=Jl(0);function u(u){var a,s,l,c,f,h=(u=Kl(u)).length,d=0,v=new Array(h),p=new Array(h),g=+e.apply(this,arguments),m=Math.min(fc,Math.max(-fc,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:Jl(+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:Jl(+t),u):e},u.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Jl(+t),u):r},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Jl(+t),u):o},u}const vc=Math.PI,pc=2*vc,gc=1e-6,mc=pc-gc;function yc(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class bc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?yc:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return yc;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>gc)if(Math.abs(c*a-s*l)>gc&&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((vc-Math.acos((v+f-p)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>gc&&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)>gc||Math.abs(this._y1-l)>gc)&&this._append`L${s},${l}`,i&&(f<0&&(f=f%pc+pc),f>mc?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>gc&&this._append`A${i},${i},0,${+(f>=vc)},${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 xc(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 bc(n)}function wc(t){return t.innerRadius}function Mc(t){return t.outerRadius}function Cc(t){return t.startAngle}function kc(t){return t.endAngle}function Sc(t){return t&&t.padAngle}function Lc(t,n,i,e,r,o,u){var a=t-i,s=n-e,l=(u?o:-o)/ac(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,M=h*p-v*d,C=(b<0?-1:1)*ac(rc(0,w*w*x-M*M)),k=(M*b-y*C)/x,S=(-M*y-b*C)/x,L=(M*b+y*C)/x,V=(-M*y+b*C)/x,A=k-g,N=S-m,D=L-g,T=V-m;return A*A+N*N>D*D+T*T&&(k=L,S=V),{cx:k,cy:S,x01:-c,y01:-f,x11:k*(r/w-1),y11:S*(r/w-1)}}function Vc(){var t=wc,n=Mc,i=Jl(0),e=null,r=Cc,o=kc,u=Sc,a=null,s=xc(l);function l(){var l,c,f,h=+t.apply(this,arguments),d=+n.apply(this,arguments),v=r.apply(this,arguments)-cc,p=o.apply(this,arguments)-cc,g=nc(p-v),m=p>v;if(a||(a=l=s()),d<h&&(c=d,d=h,h=c),d>sc)if(g>fc-sc)a.moveTo(d*ec(v),d*uc(v)),a.arc(0,0,d,v,p,!m),h>sc&&(a.moveTo(h*ec(p),h*uc(p)),a.arc(0,0,h,p,v,m));else{var y,b,x=v,w=p,M=v,C=p,k=g,S=g,L=u.apply(this,arguments)/2,V=L>sc&&(e?+e.apply(this,arguments):ac(h*h+d*d)),A=oc(nc(d-h)/2,+i.apply(this,arguments)),N=A,D=A;if(V>sc){var T=hc(V/h*uc(L)),O=hc(V/d*uc(L));(k-=2*T)>sc?(M+=T*=m?1:-1,C-=T):(k=0,M=C=(v+p)/2),(S-=2*O)>sc?(x+=O*=m?1:-1,w-=O):(S=0,x=w=(v+p)/2)}var P=d*ec(x),E=d*uc(x),F=h*ec(C),B=h*uc(C);if(A>sc){var H,_=d*ec(w),I=d*uc(w),W=h*ec(M),R=h*uc(M);if(g<lc)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<sc))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],Y=E-H[1],j=_-H[0],X=I-H[1],q=1/uc(((f=(z*j+Y*X)/(ac(z*z+Y*Y)*ac(j*j+X*X)))>1?0:f<-1?lc:Math.acos(f))/2),$=ac(H[0]*H[0]+H[1]*H[1]);N=oc(A,(h-$)/(q-1)),D=oc(A,(d-$)/(q+1))}else N=D=0}S>sc?D>sc?(y=Lc(W,R,P,E,d,D,m),b=Lc(_,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,ic(y.y01,y.x01),ic(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,D,ic(y.y01,y.x01),ic(y.y11,y.x11),!m),a.arc(0,0,d,ic(y.cy+y.y11,y.cx+y.x11),ic(b.cy+b.y11,b.cx+b.x11),!m),a.arc(b.cx,b.cy,D,ic(b.y11,b.x11),ic(b.y01,b.x01),!m))):(a.moveTo(P,E),a.arc(0,0,d,x,w,!m)):a.moveTo(P,E),h>sc&&k>sc?N>sc?(y=Lc(F,B,_,I,h,-N,m),b=Lc(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,ic(y.y01,y.x01),ic(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,N,ic(y.y01,y.x01),ic(y.y11,y.x11),!m),a.arc(0,0,h,ic(y.cy+y.y11,y.cx+y.x11),ic(b.cy+b.y11,b.cx+b.x11),m),a.arc(b.cx,b.cy,N,ic(b.y11,b.x11),ic(b.y01,b.x01),!m))):a.arc(0,0,h,C,M,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-lc/2;return[ec(e)*i,uc(e)*i]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Jl(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Jl(+t),l):n},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Jl(+t),l):i},l.padRadius=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Jl(+t),l):e},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Jl(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Jl(+t),l):o},l.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:Jl(+t),l):u},l.context=function(t){return arguments.length?(a=null==t?null:t,l):a},l}bc.prototype;var Ac=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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:e.palette.neutralPrimary}}},Nc=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?Fa(".0%")(0===l?0:y/l):ds(y))},n}return(0,n.C6)(i,t),i.getDerivedStateFromProps=function(t){return Dc(t),null},i.prototype.updateChart=function(t){Dc(t)},i.prototype.render=function(){var t,n=this.props,i=n.arc,e=n.href,u=n.focusedArcId,a=(0,o.Z)()(Ac,{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:Vc()},i}(r.Component);function Dc(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Tc=function(t){var n,i=t.theme;return{root:{},insideDonutString:{fontSize:Yt.s.xLargePlus,fontWeight:Yt.BO.semibold,fill:i.semanticColors.bodyText,selectors:(n={},n[Yt.NK]={fill:"rgb(179, 179, 179)"},n)}}},Oc=(0,o.Z)(),Pc=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(Nc,{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=dc().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=Oc(Tc,{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=Oc(Tc,{theme:this.props.theme}).insideDonutString,n=2*this.props.innerRadius-5,i=0,Sa(".".concat(t)).each((function(){for(var t=ka(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:dc().sort(null).value((function(t){return t.data})).padAngle(.02)},i}(r.Component),Ec={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"},Fc={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"]},Bc={qualitative:Fc,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},Hc=Object.values(Fc),_c=Object.values(Ec),Ic=function(t,n){if(0===t.length)return"";var i=Number(n);return i<t.length?t[i]:t[0]},Wc=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Hc[(t+n)%Hc.length];return Ic(e,i)},Rc=function(t,n){if(void 0===n&&(n=!1),_c.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=Bc[e][r];return Ic(o,n)}return t},zc=(0,o.Z)(),Yc=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?Wc(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted):Rc(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=zc(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(zs,{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(Pc,{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(Wn,(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(bs.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(Zl,(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,Rn.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),jc=(0,t.I)(Yc,(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 Xc(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 qc(t){this._context=t}function $c(t){return new qc(t)}function Uc(t){return t[0]}function Gc(t){return t[1]}function Zc(t,n){var i=Jl(!0),e=null,r=$c,o=null,u=xc(a);function a(a){var s,l,c,f=(a=Kl(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?Uc:Jl(t),n="function"==typeof n?n:void 0===n?Gc:Jl(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:Jl(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:Jl(+t),a):n},a.defined=function(t){return arguments.length?(i="function"==typeof t?t:Jl(!!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}qc.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 Kc,Jc,Qc,tf=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($s,(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),nf=(0,o.Z)(),ef=(0,r.lazy)((function(){return Promise.resolve().then(i.bind(i,395)).then((function(t){return{default:t.ChartHoverCard}}))})),rf=function(t){function i(i){var e,o,a,s,l,c,f,h,d,p,g,m,y,b,x,w,M,C,k,S,L,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,Rn.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===Ia.StringAxis){var n=Ka(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=Ka(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=Ka(e,".".concat(O._classNames.xAxis," text")),t+=Math.max(Math.ceil(n),10)}else n=Ka(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[_a.GroupedVerticalBarChart,_a.VerticalBarChart,_a.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||Wa.NumericAxis)+(O.props.secondaryYScaleOptions?O._getAxisTitle("secondary Y",O.props.secondaryYAxistitle,Wa.NumericAxis):"")},O._getAxisTitle=function(t,n,i){return"The ".concat(t," axis displays ")+(n||(i===Ia.StringAxis||i===Wa.StringAxis?"categories":i===Ia.DateAxis||i===Wa.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===(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!==(C=null===(M=O.props.margins)||void 0===M?void 0:M.right)&&void 0!==C?C:null===(k=O.props)||void 0===k?void 0:k.secondaryYAxistitle)?60:40:null!==(L=null===(S=O.props.margins)||void 0===S?void 0:S.left)&&void 0!==L?L: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===_a.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var t=Ka(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===Ia.StringAxis){var n=function(t){var n=t.node,i=t.xAxis;if(null!==n&&null!==i){var e=0,r=[];ka(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 ka(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===_a.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var i=Ka(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,M=d.timeFormatLocale,C=d.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var k=(0,n.Cl)({},this.margins);this.props.chartType===_a.HorizontalBarChartWithAxis&&(this._isRtl?k.right+=this.state.startFromX:k.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(k);var S,L,V,A,N,D=null,T=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var O={domainNRangeValues:this.props.getDomainNRangeValues(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:this.props.getMinMaxOfYAxis(p,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},E=void 0,F=void 0;switch(this.props.xAxisType){case Ia.NumericAxis:E=(t=Ya(O,this.props.chartType,x)).xScale,F=t.tickValues;break;case Ia.DateAxis:i=function(t,n,i,e,r,o,u){var a,s=t.domainNRangeValues,l=t.xAxisElement,c=t.tickPadding,f=void 0===c?6:c,h=t.xAxistickSize,d=void 0===h?6:h,v=t.xAxisCount,p=void 0===v?6:v,g=u?cu():lu();g.domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]);var m=ii(g).tickSize(d).tickPadding(f).ticks(p);if(o)m.tickFormat((function(t,n){return o(t)}));else if(i&&e)m.tickFormat((function(t,n){return t.toLocaleString(i,e)}));else if(r){var y=_r(r);m.tickFormat((function(t,n){return ja(t,y,u)}))}n.tickValues&&m.tickValues(n.tickValues),void 0===i&&n.tickFormat&&m.tickFormat(u?Rr(n.tickFormat):Wr(n.tickFormat)),l&&ka(l).call(m).selectAll("text").attr("aria-hidden","true");var b=(null!==(a=n.tickValues)&&void 0!==a?a:g.ticks(p)).map((function(t,n){var i=m.tickFormat();return i?i(t,n):ja(t,void 0,u)}));return{xScale:g,tickValues:b}}(O,this.props.tickParams,x,w,M,C,this.props.useUTC),E=i.xScale,F=i.tickValues;break;case Ia.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=gu().domain(i).range([r.rStartValue,r.rEndValue]).paddingInner(void 0!==d?d:h).paddingOuter(void 0!==v?v:h),g=ii(p).tickSize(s).tickPadding(c).ticks(u).tickFormat((function(t,n){return hs(i[n],e)}));return t.xAxisElement&&ka(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=Ya(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=ka(n).call(i),u=0,a=[];return o.selectAll(".tick text").each((function(){var t=ka(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:[]};if(this.props.yAxisType&&this.props.yAxisType===Wa.StringAxis)_=this.props.createStringYAxis(P,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.barwidth);else{if(null===(u=this.props)||void 0===u?void 0:u.secondaryYScaleOptions){var R={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:this.props.getMinMaxOfYAxis(p,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding};I=this.props.createYAxis(R,this._isRtl,W,this.isIntegralDataset)}_=this.props.createYAxis(P,this._isRtl,W,this.isIntegralDataset)}this.props.chartType===_a.HorizontalBarChartWithAxis&&_&&(S=this.yAxisElement,L=_,V=this.props.noOfCharsToTruncate||4,A=this.props.showYAxisLablesTooltip||!1,N=this._isRtl,null!==S&&ka(S).call(L).selectAll(".tick text").each((function(){var t=ka(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=nf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var z,Y={width:this.state.containerWidth,height:this.state.containerHeight};z=this.props.focusZoneDirection===vs.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:vs.horizontal;var j=Y.width-this.margins.left-this.margins.right-this.state.startFromX,X=Y.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(zs,(0,n.Cl)({direction:z,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},y),this._isFirstRender&&r.createElement("div",{id:this.idForDefaultTabbableElement}),r.createElement("svg",(0,n.Cl)({width:Y.width,height:Y.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(Y.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&r.createElement(tf,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+j/2,y:Y.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle","aria-hidden":!0},maxWidth:j,wrapContent:Za}),r.createElement("g",{ref:function(t){h.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?Y.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:Y.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&r.createElement(tf,{content:this.props.secondaryYAxistitle,textProps:{x:(X-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:Y.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(Y.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:X,wrapContent:Za})),T,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&r.createElement(tf,{content:this.props.yAxisTitle,textProps:{x:(X-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?Y.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(Y.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:X,wrapContent:Za}))),!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(Wn,(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(ef,(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=nf(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,Rn.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,Rn.U)(t,l)),r.createElement("div",{className:s.calloutContentY},(0,Rn.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($l,{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,Rn.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"}(Kc||(Kc={})),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"}(Jc||(Jc={})),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"}(Qc||(Qc={}));var of=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}(),uf=(0,t.I)(rf,(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:Yt.BO.semibold,fontStyle:"normal",lineHeight:Yt.s.medium,color:Jc.gray160,fill:f.semanticColors.bodyText}],xAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(i={},i[Yt.NK]={fill:"rgb(179, 179, 179)"},i)}],line:{opacity:.2,stroke:f.semanticColors.bodyText,width:"1px",selectors:(e={},e[Yt.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[Yt.NK]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:f.semanticColors.bodyText,selectors:(o={},o[Yt.NK]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!of&&{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[Yt.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[Yt.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[Yt.NK]={color:"rgb(255, 255, 255)"},s)})],descriptionMessage:[f.fonts.small,{selectors:(l={},l[Yt.NK]={color:"rgb(255, 255, 255)"},l),color:f.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(f.semanticColors.menuDivider)}]}})),af=(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 sf(t,n){return af(t)(n)}var lf=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)},cf=function(t,n){"scrollTop"in t?t.scrollTop=n:"scrollY"in t&&t.scrollTo(t.scrollX,n)},ff="spacer-",hf={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},df=function(t){return t.getBoundingClientRect()},vf=df,pf=df,gf=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,M=null!==(o=null==w?void 0:w(b,y,e.props.ignoreScrollingState?void 0:e.state.isScrolling))&&void 0!==o?o:null;s&&!M||g.push(r.createElement("div",{role:p,className:"ms-List-cell",key:x,"data-list-index":y,"data-automationid":"ListCell"},M))}return r.createElement("div",(0,n.Cl)({},v),g)},ws(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=pf(this._scrollElement),h=lf(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 cf(this._scrollElement,u);case 2:return void cf(this._scrollElement,g-f.height);case 3:return void cf(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&&cf(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 ol(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,X),f=0,h=s;f<h.length;f++){var d=h[f];l.push(this._renderPage(d))}var v=o?sf(o,this._onRenderSurface):this._onRenderSurface;return(u?sf(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)({},hf),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,M,C=c+u-1,k=g(i.pages,(function(t){return!!t.items&&t.startIndex===n}))>-1,S=!m||C>=m.top&&c<=m.bottom,L=!b._requiredRect||C>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!p&&(L||S&&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=C>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(A),L&&b._allowedRect&&(w=a,M={top:c,bottom:C,height:u,left:m.left,right:m.right,width:m.width},w.top=M.top<w.top||-1===w.top?M.top:w.top,w.left=M.left<w.left||-1===w.left?M.left:w.left,w.bottom=M.bottom>w.bottom||-1===w.bottom?M.bottom:w.bottom,w.right=M.right>w.right||-1===w.right?M.right:w.right,w.width=w.right-w.left+1,w.height=w.bottom-w.top+1)}else f||(f=b._createPage(ff+n,void 0,n,0,void 0,y,!0)),f.height=(f.height||0)+(C-c)+1,f.itemCount+=l;if(c+=C-c+1,p&&v)return"break"},b=this,x=o;x<d&&"break"!==y(x);x+=l);return f&&(f.key=ff+"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)({},hf),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=lf(this._scrollElement);this._surface.current&&(e||!u||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>.3333333333333333*this._estimatedPageHeight)&&(s=this._surfaceRect=vf(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=mf(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=mf(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 mf(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 yf,bf=function(t){var i=r.useRef(null);r.useEffect((function(){if(i.current){var n=ka(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))},xf=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(Wn,{target:o.current,onDismiss:function(){return s(!1)},setInitialFocus:!0,role:"dialog"},r.createElement(zs,{isCircularNavigation:!0,direction:vs.vertical},r.createElement(gf,{items:c,role:"alert","aria-roledescription":" ",onRenderCell:function(t){return r.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var f=t.textColor?Rc(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(bf,{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)},wf=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?Rc(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(xf,(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)},Mf=(0,o.Z)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(yf||(yf={}));var Cf=fi((function(t){return t.x})).left,kf=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._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===Ia.NumericAxis?ts(t,n,i,r):o===Ia.DateAxis?is(t,n,i,r,a,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},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?Wc(i,0,null===(o=e.props.theme)||void 0===o?void 0:o.isInverted):Rc(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?yf.hoverSize:1===n||i?2.5*s:yf.invisibleSize:l===t?yf.hoverSize:yf.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=es(e._points),u=0;u<e._colorFillBars.length;u++){var a=e._colorFillBars[u],s=v(a.legend.replace(/\W/g,"")),l=Rc(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(Xc(i)[0],document.getElementById(e._rectId)),u=Cf(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 Ia.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 Ia.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?ys(l,e.props.useUTC):l,b=l instanceof Date?l.getTime():l,x=m(e._calloutPoints,(function(t){return t.x===b})),w=r[t].data[c],M=null===e.state.nearestCircleToHighlight||null!==e.state.nearestCircleToHighlight&&null!==w&&(e.state.nearestCircleToHighlight.x!==w.x||e.state.nearestCircleToHighlight.y!==w.y);x&&M&&(e._uniqueCallOutID="#".concat(e._staticHighlightCircle,"_").concat(t),ka("#".concat(e._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(e._xAxisScale(w.x))).attr("cy","".concat(e._yAxisScale(w.y))).attr("visibility","visibility"),ka("#".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?ys(n,e.props.useUTC):n,a=n instanceof Date?n.getTime():n,s=m(e._calloutPoints,(function(t){return t.x===a}));if(s){var l=e;ka("#".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?ys(t,e.props.useUTC):t,l=t instanceof Date?t.getTime():t,c=e,f=m(e._calloutPoints,(function(t){return t.x===l}));f?(ka("#".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(){ka("#".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?ys(o.x,e.props.useUTC):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._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=Ga(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=Ga(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=Qa(this._points),c=this._points;a&&a.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=Ga(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:c,chartType:_a.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:d,legendBars:f,createYAxis:qa,getmargins:this._getMargins,getMinMaxOfYAxis:es,getGraphData:this._initializeLineChartData,xAxisType:l?Ia.DateAxis:Ia.NumericAxis,customizedCallout:this._getCustomizedCallout(),getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:Ua,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(wf,(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=Rc(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(Zl,(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,M,C,k,S,L,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,Y=I.xAxisCalloutAccessibilityData,j="".concat(T._circleId,"_").concat(t),X=T._legendHighlighted(E)||T._noLegendHighlighted()||T.state.isSelectedLegend;P.push(r.createElement("circle",(0,n.Cl)({id:j,key:j,r:B===j?5.5:3.5,cx:T._xAxisScale(W),cy:T._yAxisScale(R),fill:B===j?H.semanticColors.bodyBackground:F,opacity:X?1:.1,onMouseOver:T._handleHover.bind(T,W,R,_,z,j,Y),onMouseMove:T._handleHover.bind(T,W,R,_,z,j,Y),onMouseOut:T._handleMouseOut,strokeWidth:B===j?4:0,stroke:B===j?F:"",role:"img","aria-label":T._getAriaLabel(t,0),"data-is-focusable":X,ref:function(t){A._refCallback(t,j)},onFocus:function(){return A._handleFocus(j,W,z,j,Y)},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=Zc().x((function(t){return A._xAxisScale(t[0])})).y((function(t){return A._yAxisScale(t[1])})).curve($c),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=(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===(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})))}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 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,Y=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&&!Y?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 j="".concat(s).concat(i,"L"),X="".concat(s).concat(i,"D"),U=T._points[t].hideNonActiveDots&&B!==j;W=T._getPath(T._xAxisScale(N),T._yAxisScale(I),j,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(j,"_container")},r.createElement("path",(0,n.Cl)({id:j,key:j,d:W,"data-is-focusable":z,onMouseOver:T._handleHover.bind(T,N,I,_,Z,j,K),onMouseMove:T._handleHover.bind(T,N,I,_,Z,j,K),onMouseOut:T._handleMouseOut,onFocus:function(){return A._handleFocus(u,N,Z,j,K)},onBlur:T._handleMouseOut},T._getClickHandler(T._points[t].data[i].onDataPointClick),{opacity:z&&!U?1:.01,fill:T._getPointFill(F,j,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,j,K),onMouseMove:T._handleHover.bind(T,N,I,_,Z,j,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===(M=T._points[t].lineOptions)||void 0===M?void 0:M.strokeDasharray,strokeDashoffset:null===(C=T._points[t].lineOptions)||void 0===C?void 0:C.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!==(S=null===(k=T._points[t].lineOptions)||void 0===k?void 0:k.strokeLinecap)&&void 0!==S?S:"round",strokeDasharray:null===(L=T._points[t].lineOptions)||void 0===L?void 0:L.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=Mf(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=ka(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&&Ja(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,useUTC:!0},i}(r.Component),Sf=(0,t.I)(kf,(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 Lf(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 Vf(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function Af(t,n){return t[n]}function Nf(t){const n=[];return n.key=t,n}function Df(t,n,i){var e=null,r=Jl(!0),o=null,u=$c,a=null,s=xc(l);function l(l){var c,f,h,d,v,p=(l=Kl(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 Zc().defined(r).curve(u).context(o)}return t="function"==typeof t?t:void 0===t?Uc:Jl(+t),n="function"==typeof n?n:Jl(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?Gc:Jl(+i),l.x=function(n){return arguments.length?(t="function"==typeof n?n:Jl(+n),e=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:Jl(+n),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Jl(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Jl(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Jl(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Jl(+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:Jl(!!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 Tf(t){return t<0?-1:1}function Of(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(Tf(o)+Tf(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function Pf(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function Ef(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 Ff(t){this._context=t}function Bf(t){this._context=t}function Hf(t){return new Ff(t)}Ff.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:Ef(this,this._t0,Pf(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,Ef(this,Pf(this,i=Of(this,t,n)),i);break;default:Ef(this,this._t0,i=Of(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 Bf(t)}.prototype=Object.create(Ff.prototype)).point=function(t,n){Ff.prototype.point.call(this,n,t)},Bf.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 _f,If=(0,o.Z)(),Wf=fi((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(_f||(_f={}));var Rf=function(t){function i(i){var e=t.call(this,i)||this;return e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a){return o===Ia.NumericAxis?ts(t,n,i,r):o===Ia.DateAxis?is(t,n,i,r,a,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},e._getMargins=function(t){e.margins=t},e._onRectMouseMove=function(t){t.persist();var n=e.props.data.lineChartData,i=e._xAxisRectScale.invert(Xc(t)[0],document.getElementById(e._rectId)),r=Wf(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 Ia.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 Ia.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?ys(a,e.props.useUTC):a,y=a instanceof Date?a.getTime():a,b=m(e._calloutPoints,(function(t){return t.x===y})),x=l===Ia.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:_f.show,isCircleClicked:!1,stackCalloutProps:b,YValueHover:b.values,dataPointCalloutProps:b,hoverXValue:v||g,xAxisCalloutAccessibilityData:p,activePoint:""}),b||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,displayOfLine:_f.hide,isCircleClicked:!1})},e._onRectMouseOut=function(){},e._handleChartMouseLeave=function(){e.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:_f.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},e._getStackedData=function(t,n){var i=function(){var t=Jl([]),n=Vf,i=Lf,e=Af;function r(r){var o,u,a=Array.from(t.apply(this,arguments),Nf),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=Kl(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:Jl(Array.from(n)),r):t},r.value=function(t){return arguments.length?(e="function"==typeof t?t:Jl(+t),r):e},r.order=function(t){return arguments.length?(n=null==t?Vf:"function"==typeof t?t:Jl(Array.from(t)),r):n},r.offset=function(t){return arguments.length?(i=null==t?Lf:t,r):i},r}().keys(t)(n),r=oi(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=Ga(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=Ga(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(Zl,(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=Df().x((function(t){return i(t.xVal)})).y0((function(t){return o(t.values[0])})).y1((function(t){return o(t.values[1])})).curve(Hf),d=Zc().x((function(t){return i(t.xVal)})).y((function(t){return o(t.values[1])})).curve(Hf),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)",role:"region","aria-label":"".concat(s[u].legend,", series ").concat(u+1," of ").concat(s.length," with ").concat(s[u].data.length," data points.")},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=If(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=ka(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&&Ja(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?Wc(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted):Rc(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?ys(o,e.props.useUTC):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._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:_f.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},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),u=o.colors,a=o.opacity,s=o.stackedInfo,l=o.calloutPoints;this._calloutPoints=l;var c=Qa(e);this._colors=u,this._opacity=a,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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:e,chartType:_a.AreaChart,calloutProps:d,legendBars:f,createYAxis:qa,isCalloutForStack:!0,xAxisType:c?Ia.DateAxis:Ia.NumericAxis,tickParams:h,maxOfYVal:s.maxOfYVal,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:Ua,getmargins:this._getMargins,getMinMaxOfYAxis:es,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?ys(r.x,this.props.useUTC):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.defaultProps={useUTC:!0},i}(r.Component),zf=(0,t.I)(Rf,(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"})}})),Yf=function(t,n){var i=t.color;return{arcRoot:{fill:i},arcRootFocussed:{fill:i,stroke:(null==n?void 0:n.palette.black)||Yt.bp.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==n?void 0:n.palette.black)||Yt.bp.black,outline:"none"}}},jf=function(t){function i(n){var i=t.call(this,n)||this;return i.updateChart=function(t){qf(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 qf(t),null},i.prototype.render=function(){var t,i=this,e=this.props.arc,u=(0,o.Z)()((function(t){return Yf(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:Vc()},i}(r.Component),Xf=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=Vc().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 Yf(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,Rn.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(tf,{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,Rn.U)(null==a?void 0:a.data.y,s)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:Za}))},i}(jf);function qf(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var $f,Uf=function(t){function i(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n){return r.createElement(Xf,{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(Wc(c,0,null==s?void 0:s.isInverted));var f=this.props.colors,h=void 0===f?l:f;this.colors=pu().range(h.map((function(t){return Rc(t)})));var d=i(e),v="translate(".concat(o/2,", ").concat(u/2,")");return r.createElement(zs,{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:dc().padAngle(.01).sort(null).value((function(t){return t.y}))},i}(r.Component),Gf=(0,o.Z)(),Zf=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=Gf(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(Uf,{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),Kf=(0,t.I)(Zf,(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)]}})),Jf=(0,o.Z)(),Qf=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=Jf(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,Rn.U)(i.chartData[0].data?i.chartData[0].data:0,s)};return r.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},r.createElement(zs,{direction:vs.horizontal},r.createElement("div",{className:this._classNames.chartTitle},i.chartTitle&&r.createElement(tl,{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,Rn.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(zs,{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(Wn,(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(bs.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=Jf(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=Jf(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(Zl,(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),th=(0,t.I)(Qf,(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:Yt.s.medium,fontWeight:Yt.BO.semibold,color:s.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.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[Yt.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[Yt.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"}($f||($f={}));var nh,ih=(0,o.Z)(),eh=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=ih(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(Zl,(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,", "):t.placeHolder?"Remaining, ":"")+"".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=ih(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(Wn,(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(bs.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===$f.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===$f.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,M=0,C=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&&(M+=C),(C=u/y*100?u/y*100:0)<1&&0!==C?C=1/w:C>99&&100!==C?C=99/w:C/=w,g.push(M);var l=f.props.styles,c=!(!f._legendHighlighted(t.legend)&&!f._noLegendHighlighted()),h=t.placeHolder?f.props.theme.semanticColors.bodyText:o;return f._classNames=ih(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,h,t),onBlur:f._onBarLeave,role:"img","aria-label":f._getAriaLabel(t),onMouseOver:f._onBarHover.bind(f,u,h,t),onMouseMove:f._onBarHover.bind(f,u,h,t),onMouseLeave: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]-C-f.state.barSpacingInPercent*n:g[n]+f.state.barSpacingInPercent*n,"%"),y:0,width:C+"%",height:i,fill:o}))}));if(this.props.variant!==$f.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 S=!1,L=0;this._noLegendHighlighted()?(S=!0,L=m):null===(c=t.chartData)||void 0===c||c.forEach((function(t){f._legendHighlighted(t.legend)&&(S=!0,L+=t.data?t.data:0)})),S&&k.push(r.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(g[g.length-1]||0)-C-d:(g[g.length-1]||0)+C+d,"%"),textAnchor:"start",y:i/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(L),role:"img"},ds(L)))}var V=void 0!==o&&o,A=this.props.variant!==$f.AbsoluteScale&&!V&&2===t.chartData.length,N=this.props.variant!==$f.AbsoluteScale&&!V&&1===t.chartData.length,D=function(){return(0,Rn.U)(t.chartData[0].data?t.chartData[0].data:0,v)};return r.createElement("div",{className:this._classNames.singleChartRoot},r.createElement(zs,{direction:vs.horizontal},r.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&r.createElement(tl,{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,Rn.U)(m,v))),N&&r.createElement("div",(0,n.Cl)({className:this._classNames.ratioNumerator},fs(t.chartDataAccessibilityData,"text",!1)),D()))),r.createElement(zs,{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),rh=(0,t.I)(eh,(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===$f.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:e||"100%",display:"flex",flexDirection:"column",marginBottom:s===$f.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:a?"pointer":"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Yt.s.medium,fontWeight:Yt.BO.semibold,color:u.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:u.palette.neutralPrimary},chartWrapper:{paddingRight:s!==$f.AbsoluteScale||l?0:40}}})),oh=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"}(nh||(nh={}));var uh,ah=(0,o.Z)(),sh=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,u.jI)(),e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===Ia.NumericAxis?function(t,n,i,e,r){var o=oi(t,(function(t){return t.x})),u=ri(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,n,i,r):o===Ia.DateAxis?is(t,n,i,r,a,e):ns(n,i,r)},e._createLine=function(t,n,i,o,u){var a;void 0===i&&(i=0),void 0===o&&(o=0);var s=e._xAxisType===Ia.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=Zc().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()),M=(null===(a=e.props.lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0;M>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*M,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 C=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,C)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state,r=i.selectedLegend,o=i.activeXdataPoint;return""!==r?t===o&&r===n?{visibility:nh.show,radius:8}:r===n?{visibility:nh.show,radius:.3}:{visibility:nh.hide,radius:0}:{visibility:o===t?nh.show:nh.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(bs.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(bs.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===Ia.NumericAxis?e._createNumericBars(i,r,o):e._xAxisType===Ia.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?ys(t.x,e.props.useUTC):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?ys(t.x,e.props.useUTC):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?ys(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.lineData.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x})},e._getScales=function(t,n){var i,r=De().domain([0,e._yMax]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ia.NumericAxis){var o=oi(e._points,(function(t){return t.x})),u=ri(e._points,(function(t){return t.x}));i=De().domain(e._isRtl?[o,u]:[u,o]).nice().range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else if(e._xAxisType===Ia.DateAxis){var a=ri(e._points,(function(t){return t.x})),s=oi(e._points,(function(t){return t.x}));(i=e.props.useUTC?cu():lu()).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=gu().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(Zl,(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?ys(t.x,e.props.useUTC):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===Ia.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,oh(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._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):Ia.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(oi(this._points,(function(t){return t.y})),this.props.yMaxValue||0);var i=this._getLegendData(this._points,this.props.theme.palette);this._classNames=ah(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,chartType:_a.VerticalBarChart,xAxisType:this._xAxisType,createYAxis:qa,calloutProps:e,tickParams:o},this._isHavingLine&&this._noLegendHighlighted()&&{isCalloutForStack:!0},{legendBars:i,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:vs.horizontal,customizedCallout:this._getCustomizedCallout(),createStringYAxis:Ua,getmargins:this._getMargins,getMinMaxOfYAxis:os,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ia.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 De().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?ys(t.x,this.props.useUTC):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=ah(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=ka(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&&Ja(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=ka(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&&Ja(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=ah(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=ka(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&&Ja(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||oi(this._points,(function(t){return t.y}))<=0&&!this._isHavingLine},i.defaultProps={maxBarWidth:24,useUTC:!0},i}(r.Component),lh=(0,t.I)(sh,(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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:e.palette.neutralPrimary}}})),ch=(0,o.Z)();!function(t){t.show="visibility",t.hide="hidden"}(uh||(uh={}));var fh=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._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===Ia.NumericAxis?function(t,n,i,e,r){var o=ri(t,(function(t){return t.x})),u=oi(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,n,i,r):o===Ia.DateAxis?is(t,n,i,r,a,e):ns(n,i,r)},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!==Ia.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:uh.show,radius:8}:r===n?{visibility:uh.show,radius:.3}:{visibility:uh.hide,radius:0}:{visibility:o===t?uh.show:uh.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===Ia.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===Ia.NumericAxis||(e._xAxisType,Ia.DateAxis),u.xAxisPoint)),h=e._xAxisType!==Ia.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=ch(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"},M=!1,C=0;return e.props.hideLabels||(e._noLegendHighlighted()?(M=!0,C=v):p.forEach((function(t){e._legendHighlighted(t.legend)&&(M=!0,C+=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&&M&&r.createElement("text",{x:c+e._barWidth/2,y:s-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-label":"Total: ".concat(C),role:"img",transform:"translate(".concat(h,", 0)")},ds(C)))}}}));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=ka(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&&Ja(g)}return v.filter((function(t){return!!t}))},e._getScales=function(t,n){var i=e._yMax,r=De().domain([0,i]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ia.NumericAxis){var o=oi(e._dataset,(function(t){return t.x})),u=ri(e._dataset,(function(t){return t.x}));return{xBarScale:De().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===Ia.DateAxis){var a=ri(e._dataset,(function(t){return t.x})),s=oi(e._dataset,(function(t){return t.x})),l=e.props.useUTC?cu():lu();return l.domain(e._isRtl?[s,a]:[a,s]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),{xBarScale:l,yBarScale:r}}return{xBarScale:gu().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 instanceof Date?ys(t.xAxisPoint):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 instanceof Date?ys(t.xAxisPoint):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===Ia.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,oh(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._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:""},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,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=ch(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._dataset,chartType:_a.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,createYAxis:qa,tickParams:l,legendBars:a,getMinMaxOfYAxis:rs,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:e,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:Ua,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===Ia.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(bs.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(Zl,(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?ys(t.xAxisPoint,this.props.useUTC):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,useUTC:!0},i}(r.Component),hh=(0,t.I)(fh,(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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:r.palette.neutralPrimary}}})),dh=(0,o.Z)(),vh=.1/.9,ph=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,u.jI)(),e._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===Ia.NumericAxis||o===Ia.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:ns(n,i,r)},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)*vh)),e._groupWidth=(e._keys.length+(e._keys.length-1)*vh)*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=De().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=ka(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&&Ja(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 gu().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 gu().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(Zl,(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===Ia.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)*vh)*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._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:""},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,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=oi(this._dataset,(function(n){return oi(t._keys,(function(t){return n[t]}))}));this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=dh(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._datasetForBars,chartType:_a.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._xAxisType,createYAxis:qa,datasetForXAxisDomain:this._xAxisLabels,tickParams:f,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,createStringYAxis:Ua,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===Ia.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)*vh)),this._xAxisOuterPadding=gs(this.props.xAxisOuterPadding)},i.defaultProps={maxBarWidth:24},i}(r.Component),gh=(0,t.I)(ph,(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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:i.palette.neutralPrimary}}})),mh=i(714),yh=(0,o.Z)(),bh=function(t){function i(i){var e=t.call(this,i)||this;return e._rectRefArray={},e._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===Ia.NumericAxis||o===Ia.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:ns(n,i,r)},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,Rn.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(Zl,(0,n.Cl)({},o,{legends:u}))},e._getColorScale=function(){var t=e.props,n=t.domainValuesForColorScale,i=t.rangeValuesForColorScale;return De().domain(n).range(i)},e._getXIndex=function(t){return e._xAxisType===Ia.DateAxis?"".concat(t.getTime()):e._xAxisType===Ia.StringAxis?t:e._xAxisType===Ia.NumericAxis?"".concat(t):""},e._getYIndex=function(t){return e._yAxisType===Wa.DateAxis?"".concat(t.getTime()):e._yAxisType===Wa.StringAxis?t:e._yAxisType===Wa.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===Ia.StringAxis?t.x.toLowerCase()>n.x.toLowerCase()?1:-1:e._xAxisType===Ia.DateAxis?t.x.getTime()-n.x.getTime():e._xAxisType===Ia.NumericAxis?+t.x>+n.x?1:-1:t.x>n.x?1:-1})).forEach((function(t){e._xAxisType===Ia.DateAxis&&(t.x=e._getStringFormattedDate(t.x,i)),e._xAxisType===Ia.NumericAxis&&(t.x=e._getStringFormattedNumber(t.x,r)),e._xAxisType===Ia.StringAxis&&(t.x=e._getFormattedLabelForXAxisDataPoint(t.x)),e._yAxisType===Wa.DateAxis&&(t.y=e._getStringFormattedDate(t.y,o)),e._yAxisType===Wa.NumericAxis&&(t.y=e._getStringFormattedNumber(t.y,u)),e._yAxisType===Wa.StringAxis&&(t.y=e._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(s).forEach((function(t){e._yAxisType===Wa.DateAxis?s[e._getStringFormattedDate(t,o)]=s[t]:e._yAxisType===Wa.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===Ia.DateAxis||e._xAxisType===Ia.NumericAxis?+t-+n:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return e._xAxisType===Ia.DateAxis?e._getStringFormattedDate(t,e.props.xAxisDateFormatString):e._xAxisType===Ia.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===Wa.DateAxis||e._yAxisType===Wa.NumericAxis?+t-+n:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return e._yAxisType===Wa.DateAxis?e._getStringFormattedDate(t,e.props.yAxisDateFormatString):e._yAxisType===Wa.NumericAxis?e._getStringFormattedNumber(t,e.props.yAxisNumberFormatString):e._getFormattedLabelForYAxisDataPoint(t)}))},e._getStringFormattedDate=function(t,n){var i=new Date;return i.setTime(+t),Wr(n||"%b/%d")(i)},e._getStringFormattedNumber=function(t,n){return Fa(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._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 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=yh(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:a,chartType:_a.HeatMapChart,xAxisType:Ia.StringAxis,yAxisType:Wa.StringAxis,calloutProps:g,createYAxis:qa,chartHoverProps:m,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,createStringYAxis:Ua,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,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),xh=(0,t.I)(bh,(function(t){var n=t.theme;return{root:{},text:[n.fonts.medium,{pointerEvents:"none",fill:n.palette.white,fontWeight:Yt.BO.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}})),wh=/[\{\}]/g,Mh=/\{\d+\}/g;function Ch(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=n;return t.replace(Mh,(function(t){var n=e[t.replace(wh,"")];return null==n&&(n=""),n}))}function kh(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 Sh(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 Lh(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 Vh(t,n){return n-1-t.height}function Ah(t,n){return t.sourceLinks.length?t.depth:n-1}function Nh(t){return function(){return t}}function Dh(t,n){return Oh(t.source,n.source)||t.index-n.index}function Th(t,n){return Oh(t.target,n.target)||t.index-n.index}function Oh(t,n){return t.y0-n.y0}function Ph(t){return t.value}function Eh(t){return t.index}function Fh(t){return t.nodes}function Bh(t){return t.links}function Hh(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function _h({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 Ih(){let t,n,i,e=0,r=0,o=1,u=1,a=24,s=8,l=Eh,c=Ah,f=Fh,h=Bh,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=Hh(e,n)),"object"!=typeof r&&(r=i.target=Hh(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(Sh(n.sourceLinks,Ph),Sh(n.targetLinks,Ph)):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=Lh(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)/(Lh(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)/Sh(n,Ph)));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),_h(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+=M(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(Oh),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+=C(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(Oh),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(Th);for(const{target:{targetLinks:n}}of t)n.sort(Dh)}}function w(t){if(void 0===i)for(const{sourceLinks:n,targetLinks:i}of t)n.sort(Th),i.sort(Dh)}function M(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 C(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 _h(t),t},v.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:Nh(t),v):l},v.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:Nh(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:Nh(t),v):f},v.links=function(t){return arguments.length?(h="function"==typeof t?t:Nh(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 Wh{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 Rh=(0,o.Z)(),zh="#757575",Yh=[{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 jh(t){return"number"==typeof t?t:t.nodeId}function Xh(t,n){return t[jh(n.source)][jh(n.target)]}var qh="...";function $h(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 Uh=Df().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve((function(t){return new Wh(t,!0)})),Gh=function(t){function i(n){var i=t.call(this,n)||this;return i._isRtl=(0,u.jI)(),i._numColumns=0,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._calculateChartMinWidth=function(){return i._margins.left+i._margins.right+124*i._numColumns+62*(i._numColumns-1)},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 Rh(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 Ch(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 Ch(n,t.source.name,t.target.name,t.unnormalizedValue?i._formatNumber(t.unnormalizedValue):t.unnormalizedValue)},nodeAriaLabel:function(t,n){return Ch(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=jh(t.source),o=e[r];o||(o={},e[r]=o),o[jh(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=[];v.sort((function(t,n){return t.x0!==n.x0?t.x0-n.x0:t.y0-n.y0})),v.forEach((function(t,n){b.push({layer:t.layer,type:"node",index:n})})),p.sort((function(t,n){var i=t.source.x0,e=n.source.x0;return i!==e?i-e:t.y0-n.y0})),p.forEach((function(t,n){b.push({layer:t.source.layer,type:"link",index:n})})),b.sort((function(t,n){return t.layer!==n.layer?t.layer-n.layer:t.type>n.type?-1:t.type<n.type?1:0}));var x=this._fetchTooltip(h),w=this._nodeAttributes(v,this._accessibility.nodeAriaLabel),M=this._fetchNodes(h,v,w,x),C=this._linkAttributes(p,this._strings.linkFrom,this._accessibility.linkAriaLabel),k=this._fetchLinks(p,C),S={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(zs,{direction:vs.vertical,className:h.chartWrapper},r.createElement("svg",{width:g,height:m,id:this._chartId},b.map((function(t){return"node"===t.type?r.createElement("g",{key:v[t.index].nodeId,className:h.nodes},M[t.index]):r.createElement("g",{key:"".concat(p[t.index].source.nodeId,"-").concat(p[t.index].target.nodeId),className:h.links,strokeOpacity:1},k[t.index])})),S.isCalloutVisible&&r.createElement(Wn,(0,n.Cl)({},S),r.createElement(bs.ChartHoverCard,{XValue:S.XValue,YValue:S.YValue,color:S.color,descriptionMessage:S.descriptionMessage?S.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=ka(".nodeName").append("text").attr("class","tempText").append("tspan").text(null),o=ka(".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=$h(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=$h(t,n);return void 0!==e&&e<=i}(t,n,r))return n;for(var o=function(t){var n=$h(t,qh);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+=qh;break}}return t.text(null),u}(o,t.name,116,a),h=f.slice(-3)===qh;e[t.nodeId]={reactId:v("nodeBar"),gElementId:v("nodeGElement"),name:f,aria:n(t,l),trimmed:h,height:u,weightOffset:s}})),Sa(".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:Ih().nodeWidth(124).extent([[r,u],[s-1,l-6]]).nodeAlign(e?Vh:Ah),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=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);this._numColumns=Object.keys(f).length;var h,d,v=(h=c.nodes,d={},h.forEach((function(t){d[t.nodeId]=t.value})),d),p=function(t){var n={};return t.forEach((function(t){var i=jh(t.source),e=n[i];e||(e={},n[i]=e),e[jh(t.target)]=t.value})),n}(c.links);return function(t,n,i){Object.values(t).map((function(t){return kh(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=Xh(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)}))}))}(f,v,p),function(t,n,i){var e=t.nodePadding(),r=.3*n;Object.values(i).forEach((function(t){var i=n-kh(t,(function(t){return t.y1-t.y0}));r<i&&(e=Math.min(e,r/(t.length-1)))})),t.nodePadding(e)}(a,s-6,f),a(c),function(t,n,i){t.links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=Xh(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=Yh.map((function(t){return t.fillColor})),r=Yh.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=ka("#".concat(this._labelTooltipId));return n.empty()&&(n=ka("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=Xh(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:Uh(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,M=n.y0,C=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:M,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:M,dy:"1.2em",dx:"0.4em",textAnchor:a,fontWeight:"regular","aria-hidden":"true",fill:C,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:M,dy:m?"2em":"1em",dx:m?"0.4em":"0em",textAnchor:a,fontWeight:"bold","aria-hidden":"true",fill:C,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 zh}return zh},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&&(t.props.enableReflow?Math.max(n.getBoundingClientRect().width,t._calculateChartMinWidth()):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.defaultProps={enableReflow:!0},i}(r.Component),Zh=(0,t.I)(Gh,(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[Yt.NK]={fill:"#000000"},i)},nodes:{fill:"#F5F5F5",selectors:(e={},e[Yt.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[Yt.NK]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:s.elevation4},chartWrapper:{overflow:"auto"}}}));function Kh(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 Jh(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=td)):void 0===n&&(n=Qh);for(var i,e,r,o,u,a=new ed(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 ed(r[o])),e.parent=i,e.depth=i.depth+1;return a.eachBefore(id)}function Qh(t){return t.children}function td(t){return Array.isArray(t)?t[1]:null}function nd(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function id(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function ed(t){this.data=t,this.depth=this.height=0,this.parent=null}function rd(t,n){return t.parent===n.parent?1:2}function od(t){var n=t.children;return n?n[0]:t.t}function ud(t){var n=t.children;return n?n[n.length-1]:t.t}function ad(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 sd(t,n,i){return t.a.parent===n.parent?t.a:i}function ld(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}ed.prototype=Jh.prototype={constructor:ed,count:function(){return this.eachAfter(Kh)},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 Jh(this).eachBefore(nd)},[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)}},ld.prototype=Object.create(ed.prototype);var cd,fd,hd=(0,o.Z)(),dd=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=Jh(this.treeData,(function(t){return t.children})),c=(null==l?void 0:l.height)+1;(function(){var t=rd,n=1,i=1,e=null;function r(r){var s=function(t){for(var n,i,e,r,o,u=new ld(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 ld(e[r],r)),i.parent=n;return(u.parent=new ld(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=ud(a),o=od(o),a&&o;)s=od(s),(u=ud(u)).a=n,(r=a.z+f-o.z-l+t(a._,o._))>0&&(ad(sd(a,n,e),n,r),l+=r,c+=r),f+=a.m,l+=o.m,h+=s.m,c+=u.m;a&&!ud(u)&&(u.t=a,u.m+=f-c),o&&!od(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 M=(v-g)/2,C=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,S=(null===(e=f[x.parentID])||void 0===e?void 0:e.x)-M/2-10,L=(null===(r=f[x.parentID])||void 0===r?void 0:r.x)+M/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:S:L,A,D.data.fill,1===k.length?v:M,p,D.id,w),N%2==1&&(A+=C+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+=C+g):k.length>2?(this.N(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,N%2==0?S:L,A,D.data.fill,1===k.length?v:M,p,D.id,w),N%2==1&&(A+=C+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+=C+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=ri(k=null===(a=f[x.id])||void 0===a?void 0:a.children,(function(t){return t.x})),O=oi(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=ka(".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),Sa(".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}()),vd=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=hd(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=Sa("text"),i=Sa("rect"),e=Sa("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 dd(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(zs,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),pd=(0,t.I)(vd,(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"}(cd||(cd={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(fd||(fd={}));var gd,md,yd=(0,o.Z)(),bd=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=Df().x((function(n){return t.x(n.x)})).y0(this.state._height).y1((function(n){return t.y(n.y)})).curve($c);this.area=n;var i=Zc().x((function(n){return t.x(n.x)})).y((function(n){return t.y(n.y)})).curve($c);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=De().domain([o,u]).range([this.margin.left,this.state._width-this.margin.right]),this.y=De().domain([0,oi(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=yd(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(zs,{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),xd=(0,t.I)(bd,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,n.Cl)((0,n.Cl)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText})}})),wd=(0,o.Z)(),Md=function(t){function i(i){var e=t.call(this,i)||this;return e._isRtl=(0,u.jI)(),e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){var l;return l=o===Ia.NumericAxis?function(t,n,i,e,r){var o=oi(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,n,i,r,s):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0},l},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):Wc(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):Wc(s,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted),r.createElement(r.Fragment,null,r.createElement(bs.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===Wa.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):Wc(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):Wc(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=oi(e._points,(function(t){return t.x})),o=oi(e._points,(function(t){return t.y}));return{xBarScale:De().domain(e._isRtl?[r,0]:[0,r]).nice().range([e.margins.left,n-e.margins.right]),yBarScale:u=De().domain([0,o]).range([t-e.margins.bottom,e.margins.top])}}r=oi(e._points,(function(t){return t.x}));var u=gu().domain(e._yAxisLabels).range([t-e.margins.bottom-e._barHeight/2,e.margins.top+e._barHeight/2]).padding(e.props.yAxisPadding||0);return{xBarScale:De().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):Wc(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(Zl,(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._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):Ia.NumericAxis,e._yAxisType=e.props.data&&e.props.data.length>0?ls(e.props.data[0].y,!1):Wa.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(oi(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var e=this._getLegendData(this._points,this.props.theme.palette);this._classNames=wd(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(uf,(0,n.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,chartType:_a.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:o,tickParams:u,legendBars:e,createYAxis:Xa,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:$a,getMinMaxOfYAxis:us,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 De().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=wd(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):Wc(1,0,null===(e=u.props.theme)||void 0===e?void 0:e.isInverted):u.props.colors?u._createColors()(t.x):Wc(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=ka("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){ka(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):Wc(1,0,null===(e=o.props.theme)||void 0===e?void 0:e.isInverted):o.props.colors?o._createColors()(t.x):Wc(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=ka(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),Cd=(0,t.I)(Md,(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"}(gd||(gd={})),function(t){t.SingleSegment="single-segment",t.MultipleSegments="multiple-segments"}(md||(md={}));var kd=[{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}],Sd=(0,o.Z)(),Ld=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0===n&&e===md.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===md.SingleSegment?"".concat(t.size," (").concat((t.size/i*100).toFixed(),"%)"):"".concat(t.start," - ").concat(t.end)},Vd=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0!==n?t.toString():e===gd.Fraction?"".concat((t/i*100).toFixed(),"%"):"".concat(t,"/").concat(i):"function"==typeof e?e([t-n,i-n]):0!==n?t.toString():e===gd.Fraction?"".concat(t,"/").concat(i):"".concat((t/i*100).toFixed(),"%")},Ad=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=kd.length-1;t>=0;t-=1)if(e._outerRadius>=kd[t].minRadius)return{arcWidth:kd[t].arcWidth,chartValueSize:kd[t].fontSize};return{arcWidth:kd[0].arcWidth,chartValueSize:kd[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?Rc(t.color,o.isInverted):Wc(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=Vc().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: "+Vd(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(Zl,(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 "+Vd(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat,!0),u=e._segments.map((function(t){return{legend:t.legend,y:Ld(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=ka("#".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,Rn.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=Sd(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(zs,{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:Ld(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(tf,{content:Vd(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(tf,{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(Wn,(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=Sd(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:u}),s=this.props.culture,l=(0,Rn.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,Rn.U)(t,s)),r.createElement("div",{className:a.calloutContentY},(0,Rn.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($l,{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,Rn.U)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,s)))))},i}(r.Component),Nd=(0,t.I)(Ad,(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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:u.palette.neutralPrimary},chartValue:{fontSize:a,fontWeight:Yt.BO.semibold,fill:u.palette.neutralPrimary},sublabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:u.palette.neutralPrimary},needle:{fill:u.palette.black,stroke:u.semanticColors.bodyBackground},chartTitle:{fontSize:Yt.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[Yt.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[Yt.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[Yt.NK]={color:"rgb(255, 255, 255)"},r)})],descriptionMessage:[u.fonts.small,{selectors:(o={},o[Yt.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.23")}(),FluentUIReactCharting=e}();
|