@fluentui/react-charting 4.23.19 → 4.23.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-charting.js +1166 -589
- package/dist/react-charting.js.map +1 -1
- package/dist/react-charting.min.js +2 -2
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ReactCharting=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=31)}({0:function(e,t){e.exports=React},16:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i="undefined"==typeof window?e:window,o=i&&i.CSPSettings&&i.CSPSettings.nonce,a=function(){var e=i.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};e.runState||(e=r({},e,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}}));e.registeredThemableStyles||(e=r({},e,{registeredThemableStyles:[]}));return i.__themeState__=e,e}();function s(e,t){a.loadStyles?a.loadStyles(c(e).styleString,e):function(e){if("undefined"==typeof document)return;var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=c(e),i=r.styleString,s=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",o&&n.setAttribute("nonce",o);n.appendChild(document.createTextNode(i)),a.perf.count++,t.appendChild(n);var l=document.createEvent("HTMLEvents");l.initEvent("styleinsert",!0,!1),l.args={newStyle:n},document.dispatchEvent(l);var u={styleElement:n,themableStyle:e};s?a.registeredThemableStyles.push(u):a.registeredStyles.push(u)}(e)}function l(e){a.theme=e,function(){if(a.theme){for(var e=[],t=0,n=a.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(!function(e){void 0===e&&(e=3);3!==e&&2!==e||(u(a.registeredStyles),a.registeredStyles=[]);3!==e&&1!==e||(u(a.registeredThemableStyles),a.registeredThemableStyles=[])}(1),s([].concat.apply([],e)))}}()}function u(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function c(e){var t=a.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var i=t?t[r]:void 0,o=e.defaultValue||"inherit";return t&&!i&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+o+'".'),i||o}return e.rawString})).join(""),themable:n}}}).call(this,n(30))},17:function(e,t){e.exports=ReactDOM},30:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},31:function(e,t,n){"use strict";n.r(t),n.d(t,"HorizontalBarChart",(function(){return Dp})),n.d(t,"DonutChart",(function(){return jf})),n.d(t,"Legends",(function(){return zf})),n.d(t,"Shape",(function(){return Wf})),n.d(t,"LineChart",(function(){return
|
|
1
|
+
var ReactCharting=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=31)}({0:function(e,t){e.exports=React},16:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i="undefined"==typeof window?e:window,o=i&&i.CSPSettings&&i.CSPSettings.nonce,a=function(){var e=i.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};e.runState||(e=r({},e,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}}));e.registeredThemableStyles||(e=r({},e,{registeredThemableStyles:[]}));return i.__themeState__=e,e}();function s(e,t){a.loadStyles?a.loadStyles(c(e).styleString,e):function(e){if("undefined"==typeof document)return;var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=c(e),i=r.styleString,s=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",o&&n.setAttribute("nonce",o);n.appendChild(document.createTextNode(i)),a.perf.count++,t.appendChild(n);var l=document.createEvent("HTMLEvents");l.initEvent("styleinsert",!0,!1),l.args={newStyle:n},document.dispatchEvent(l);var u={styleElement:n,themableStyle:e};s?a.registeredThemableStyles.push(u):a.registeredStyles.push(u)}(e)}function l(e){a.theme=e,function(){if(a.theme){for(var e=[],t=0,n=a.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(!function(e){void 0===e&&(e=3);3!==e&&2!==e||(u(a.registeredStyles),a.registeredStyles=[]);3!==e&&1!==e||(u(a.registeredThemableStyles),a.registeredThemableStyles=[])}(1),s([].concat.apply([],e)))}}()}function u(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function c(e){var t=a.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var i=t?t[r]:void 0,o=e.defaultValue||"inherit";return t&&!i&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+o+'".'),i||o}return e.rawString})).join(""),themable:n}}}).call(this,n(30))},17:function(e,t){e.exports=ReactDOM},30:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},31:function(e,t,n){"use strict";n.r(t),n.d(t,"HorizontalBarChart",(function(){return Dp})),n.d(t,"DonutChart",(function(){return jf})),n.d(t,"Legends",(function(){return zf})),n.d(t,"Shape",(function(){return Wf})),n.d(t,"LineChart",(function(){return gg})),n.d(t,"Textbox",(function(){return cg})),n.d(t,"AreaChart",(function(){return Ig})),n.d(t,"PieChart",(function(){return zg})),n.d(t,"StackedBarChart",(function(){return jg})),n.d(t,"MultiStackedBarChart",(function(){return Xg})),n.d(t,"VerticalBarChart",(function(){return Gg})),n.d(t,"VerticalStackedBarChart",(function(){return Qg})),n.d(t,"GroupedVerticalBarChart",(function(){return em})),n.d(t,"CartesianChart",(function(){return Zf})),n.d(t,"ChartHoverCard",(function(){return cp})),n.d(t,"getChartHoverCardStyles",(function(){return up})),n.d(t,"HeatMapChart",(function(){return nm})),n.d(t,"TreeChart",(function(){return bm})),n.d(t,"NodesComposition",(function(){return mm})),n.d(t,"TreeTraverse",(function(){return vm}));var r=n(8);Object(r.a)("@fluentui/react-charting","0.0.0");
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -13,5 +13,5 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
13
13
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
14
|
and limitations under the License.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function l(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var u=n(0);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},i=0,o=e;i<o.length;i++){var a=o[i];if(a)for(var s in a)if(a.hasOwnProperty(s)){if("subComponentStyles"===s&&void 0!==a.subComponentStyles){var u=a.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(u[d]):r[d]=[u[d]]);continue}var h=n[s],p=a[s];n[s]=void 0===h?p:l(Array.isArray(h)?h:[h],Array.isArray(p)?p:[p])}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(r.hasOwnProperty(e)){var t=r[e];f[e]=function(e){return c.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in r)g(d)}return n}var d=!1;var h=void 0;try{h=window}catch(e){}function p(e){if(!d&&void 0!==h){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:h}}var f=0,g=function(){function e(){}return e.getValue=function(e,t){var n=m();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=m(),r=n.__callbacks__,i=n[e];if(t!==i){n[e]=t;var o={oldValue:i,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](o)}return t},e.addChangeListener=function(e){var t=e.__id__,n=v();t||(t=e.__id__=String(f++)),n[t]=e},e.removeChangeListener=function(e){delete v()[e.__id__]},e}();function m(){var e,t=p()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function v(){return m().__callbacks__}var _={settings:{},scopedSettings:{},inCustomizerContext:!1},y=g.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),x=[],b=function(){function e(){}return e.reset=function(){y.settings={},y.scopedSettings={}},e.applySettings=function(t){y.settings=a(a({},y.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){y.scopedSettings[t]=a(a({},y.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=_);for(var r={},i=t&&n.scopedSettings[t]||{},o=t&&y.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=i[l]||n.settings[l]||o[l]||y.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){x.push(e)},e.unobserve=function(e){x=x.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||x.forEach((function(e){return e()}))},e}(),C=u.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function S(e,t){var n,r=(n=u.useState(0)[1],function(){return n((function(e){return++e}))}),i=u.useContext(C).customizations,o=i.inCustomizerContext;return u.useEffect((function(){return o||b.observe(r),function(){o||b.unobserve(r)}}),[o]),b.getSettings(e,t,i)}var E=["theme","styles"];function A(e,t,n,r,i){var o=(r=r||{scope:"",fields:void 0}).scope,l=r.fields,d=void 0===l?E:l,h=u.forwardRef((function(r,i){var l=u.useRef(),h=S(d,o),p=h.styles,f=(h.dir,s(h,["styles","dir"])),g=n?n(r):void 0,m=l.current&&l.current.__cachedInputs__||[];if(!l.current||p!==m[1]||r.styles!==m[2]){var v=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var a=o[i];a&&r.push("function"==typeof a?a(e):a)}return 1===r.length?r[0]:r.length?c.apply(void 0,r):{}}(e,t,p,r.styles)};v.__cachedInputs__=[t,p,r.styles],v.__noStyleOverride__=!p&&!r.styles,l.current=v}return u.createElement(e,a({ref:i},f,g,r,{styles:l.current}))}));h.displayName="Styled"+(e.displayName||e.name);var p=i?u.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var L,w=0,D=1,k=2,T="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),M={};try{M=window}catch(Nr){}var P,F=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=a({injectionMode:D,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._keyToClassName=this._config.classNameCache||{}}return e.getInstance=function(){var t;if(!(L=M.__stylesheet__)||L._lastStyleElement&&L._lastStyleElement.ownerDocument!==document){var n=(null===(t=M)||void 0===t?void 0:t.FabricConfig)||{};L=M.__stylesheet__=new e(n.mergeStyles)}return L},e.prototype.setConfig=function(e){this._config=a(a({},this._config),e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==w?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case D:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case k:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),T||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();n=i?i.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function N(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],i=F.getInstance();function o(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)o(s.split(" "));else{var l=i.argsFromClassName(s);l?o(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?o(s):"object"==typeof s&&r.push(s)}}return o(e),{classes:n,objects:r}}function H(e){P!==e&&(P=e)}function I(){return void 0===P&&(P="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),P}function O(){return{rtl:I()}}P=I();var B,V={};var R={"user-select":1};function W(e,t){var n=function(){var e,t;if(!B){var n="undefined"!=typeof document?document:void 0,r="undefined"!=typeof navigator?navigator:void 0,i=null===(t=null===(e=r)||void 0===e?void 0:e.userAgent)||void 0===t?void 0:t.toLowerCase();B=n?{isWebkit:!(!n||!("WebkitAppearance"in n.documentElement.style)),isMoz:!!(i&&i.indexOf("firefox")>-1),isOpera:!!(i&&i.indexOf("opera")>-1),isMs:!(!r||!/rv:11.0/i.test(r.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return B}(),r=e[t];if(R[r]){var i=e[t+1];R[r]&&(n.isWebkit&&e.push("-webkit-"+r,i),n.isMoz&&e.push("-moz-"+r,i),n.isMs&&e.push("-ms-"+r,i),n.isOpera&&e.push("-o-"+r,i))}}var U,z=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Y(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var i=z.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]=""+r+a}}var j="left",q="right",X=((U={})[j]=q,U[q]=j,U),K={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Z(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if("string"==typeof i&&i.indexOf("@noflip")>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(j)>=0)t[n]=r.replace(j,q);else if(r.indexOf(q)>=0)t[n]=r.replace(q,j);else if(String(i).indexOf(j)>=0)t[n+1]=i.replace(j,q);else if(String(i).indexOf(q)>=0)t[n+1]=i.replace(q,j);else if(X[r])t[n]=X[r];else if(K[i])t[n+1]=K[i];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(i);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(i,0)}}}function G(e){var t=e&&e["&"];return t?t.displayName:void 0}var $=/\:global\((.+?)\)/g;function Q(e,t){return e.indexOf(":global(")>=0?e.replace($,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function J(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?ee([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!$.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],i=t[2];return e.slice(0,n)+i+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return ee([r],t,Q(n,e))})):ee([r],t,Q(n,e))}function ee(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=F.getInstance(),i=t[n];i||(i={},t[n]=i,t.__order.push(n));for(var o=0,a=e;o<a.length;o++){var s=a[o];if("string"==typeof s){var l=r.argsFromClassName(s);l&&ee(l,t,n)}else if(Array.isArray(s))ee(s,t,n);else for(var u in s)if(s.hasOwnProperty(u)){var c=s[u];if("selectors"===u){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&J(n,t,h,d[h])}else"object"==typeof c?null!==c&&J(n,t,u,c):void 0!==c&&("margin"===u||"padding"===u?te(i,u,c):i[u]=c)}}return t}function te(e,t,n){var r="string"==typeof n?n.split(" "):[n];e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function ne(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,i=0,o=t.__order;i<o.length;i++){var a=o[i];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function re(e,t){return t<=0?"":1===t?e:e+re(e,t-1)}function ie(e,t){if(!t)return"";var n,r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&"displayName"!==a&&void 0!==t[a]&&o.push(a,t[a]);for(var s=0;s<o.length;s+=2)i=void 0,"-"!==(i=(n=o)[r=s]).charAt(0)&&(n[r]=V[i]=V[i]||i.replace(/([A-Z])/g,"-$1").toLowerCase()),Y(o,s),Z(e,o,s),W(o,s);for(s=1;s<o.length;s+=4)o.splice(s,1,":",o[s],";");return o.join("")}function oe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ee(t),i=ne(e,r);if(i){var o=F.getInstance(),a={className:o.classNameFromKey(i),key:i,args:t};if(!a.className){a.className=o.getClassName(G(r));for(var s=[],l=0,u=r.__order;l<u.length;l++){var c=u[l];s.push(c,ie(e,r[c]))}a.rulesToInsert=s}return a}}function ae(e,t){void 0===t&&(t=1);var n=F.getInstance(),r=e.className,i=e.key,o=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var u=a[s],c=(u=u.replace(/&/g,re("."+e.className,t)))+"{"+l+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(c)}}n.cacheClassName(r,i,o,a)}}function se(e,t){var n,r,i={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var o=c.apply(void 0,e),a=[];for(var s in o)if(o.hasOwnProperty(s)){if("subComponentStyles"===s){i.subComponentStyles=o.subComponentStyles||{};continue}var l=N(o[s]),u=l.classes,d=l.objects;if(null===(n=d)||void 0===n?void 0:n.length)(f=oe(t||{},{displayName:s},d))&&(a.push(f),i[s]=u.concat([f.className]).join(" "));else i[s]=u.join(" ")}for(var h=0,p=a;h<p.length;h++){var f;(f=p[h])&&ae(f,null===(r=t)||void 0===r?void 0:r.specificityMultiplier)}return i}var le=9,ue=13,ce=27,de=32,he=33,pe=34,fe=35,ge=36,me=37,ve=38,_e=39,ye=40,xe=67;function be(e){if(!d&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function Ce(e){var t=null;try{var n=p();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function Se(e,t){var n;try{null===(n=p())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}var Ee;function Ae(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===Ee){var t=Ce("isRTL");null!==t&&function(e,t){void 0===t&&(t=!1);var n=be();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&Se("isRTL",e?"1":"0");H(Ee=e)}(Ee="1"===t);var n=be();void 0===Ee&&n&&H(Ee="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!Ee}var Le=0,we=F.getInstance();we&&we.onReset&&we.onReset((function(){return Le++}));function De(e){void 0===e&&(e={});var t=new Map,n=0,r=0,i=Le;return function(o,a){var s,l;if(void 0===a&&(a={}),e.useStaticStyles&&"function"==typeof o&&o.__noStyleOverride__)return o(a);r++;var u=t,c=a.theme,d=c&&void 0!==c.rtl?c.rtl:Ae(),h=e.disableCaching;(i!==Le&&(i=Le,t=new Map,n=0),e.disableCaching||(u=Te(t,o),u=Te(u,a)),!h&&u.__retval__||(u.__retval__=void 0===o?{}:se(["function"==typeof o?o(a):o],{rtl:!!d,specificityMultiplier:e.useStaticStyles?5:void 0}),h||n++),n>(e.cacheSize||50))&&((null===(l=null===(s=p())||void 0===s?void 0:s.FabricConfig)||void 0===l?void 0:l.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0);return u.__retval__}}function ke(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function Te(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++){e=ke(e,r[n])}else e=ke(e,t);else if("object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e=ke(e,t[i]));return e}var Me=p()||{};void 0===Me.__currentId__&&(Me.__currentId__=0);var Pe=!1;function Fe(e){if(!Pe){var t=F.getInstance();t&&t.onReset&&t.onReset(Ne),Pe=!0}return(void 0===e?"id__":e)+Me.__currentId__++}function Ne(e){void 0===e&&(e=0),Me.__currentId__=e}function He(e,t,n){void 0===n&&(n=0);for(var r=-1,i=n;e&&i<e.length;i++)if(t(e[i],i)){r=i;break}return r}function Ie(e,t){var n=He(e,t);if(!(n<0))return e[n]}function Oe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Be=0,Ve=1,Re=2,We=3,Ue=4,ze=5,Ye=6,je=7,qe=8,Xe=9,Ke=10,Ze=11,Ge=12,$e=13;function Qe(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,n;return e&&((n=e)&&n._virtual)&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function Je(e,t){return e&&e!==document.body?t(e)?e:Je(Qe(e),t):null}function et(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var i=Qe(t);if(i===e){r=!0;break}t=i}else e.contains&&(r=e.contains(t));return r}function tt(e){var t=rt(e,e,!0,!1,!1,!0);return!!t&&(ct(t),!0)}function nt(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=it(t);if(i&&l&&(o||!at(t)&&!st(t))){var u=nt(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&ot(u,!0)||!s)return u;var c=nt(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var h=nt(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(h)return h;d=d.parentElement}}}if(n&&l&&ot(t,s))return t;var p=nt(e,t.previousElementSibling,!0,!0,!0,o,a,s);return p||(r?null:nt(e,t.parentElement,!0,!1,!1,o,a,s))}function rt(e,t,n,r,i,o,a,s){if(!t||t===e&&i&&!a)return null;var l=it(t);if(n&&l&&ot(t,s))return t;if(!i&&l&&(o||!at(t)&&!st(t))){var u=rt(e,t.firstElementChild,!0,!0,!1,o,a,s);if(u)return u}if(t===e)return null;var c=rt(e,t.nextElementSibling,!0,!0,!1,o,a,s);return c||(r?null:rt(e,t.parentElement,!1,!1,!0,o,a,s))}function it(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function ot(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var i=e.getAttribute?e.getAttribute("data-is-focusable"):null,o=null!==r&&n>=0,a=!!e&&"false"!==i&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===i||o);return t?-1!==n&&a:a}function at(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function st(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function lt(e,t){return"true"!==function(e,t){var n=Je(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var ut=void 0;function ct(e){if(e){if(ut)return void(ut=e);ut=e;var t=p(e);t&&t.requestAnimationFrame((function(){var e=ut;ut=void 0,e&&(e.getAttribute&&"true"===e.getAttribute("data-is-focusable")&&(e.getAttribute("tabindex")||e.setAttribute("tabindex","0")),e.focus())}))}}var dt=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._onErrorHandler&&n._onErrorHandler(e)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,i=p(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[r]=!0}return r},e.prototype.clearImmediate=function(e,t){var n=p(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var i,o,a=t||0,s=!0,l=!0,u=0,c=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=Date.now(),h=n-u,p=s?a-h:a;return h>=a&&(!t||s)?(u=n,c&&(r.clearTimeout(c),c=null),i=e.apply(r._parent,o)):null===c&&l&&(c=r.setTimeout(d,p)),i};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,a,s=t||0,l=!1,u=!0,c=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(u=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(c=n.maxWait);var f=function(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),o=e.apply(r._parent,a)},m=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var i=t-d,a=s-i,f=t-h,v=!1;return null!==c&&(f>=c&&p?v=!0:a=Math.min(a,c-f)),i>=s||v||n?g(t):null!==p&&e||!u||(p=r.setTimeout(m,a)),o},v=function(){return!!p},_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),o},_.pending=v,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,i=p(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=i.requestAnimationFrame?i.requestAnimationFrame(o):i.setTimeout(o,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=p(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function ht(e,t){for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}function pt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var i=0,o=n;i<o.length;i++){var a=o[i];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}var ft,gt,mt,vt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,i=e;r<i.length;r++)for(var o=i[r],a=Array.isArray(o)?o:Object.keys(o),s=0,l=a;s<l.length;s++){var u=l[s];n[u]=1}return n},_t=vt(["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"]),yt=vt(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),xt=vt(yt,_t),bt=(vt(xt,["form"]),vt(xt,["height","loop","muted","preload","src","width"])),Ct=(vt(bt,["poster"]),vt(xt,["start"]),vt(xt,["value"]),vt(xt,["download","href","hrefLang","media","rel","target","type"]),vt(xt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),St=(vt(Ct,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),vt(Ct,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),vt(Ct,["form","multiple","required"]),vt(xt,["selected","value"]),vt(xt,["cellPadding","cellSpacing"]),vt(xt,["rowSpan","scope"]),vt(xt,["colSpan","headers","rowSpan","scope"]),vt(xt,["span"]),vt(xt,["span"]),vt(xt,["acceptCharset","action","encType","encType","method","noValidate","target"]),vt(xt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),vt(xt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),xt);function Et(e,t,n){for(var r,i=Array.isArray(t),o={},a=0,s=Object.keys(e);a<s.length;a++){var l=s[a];!(!i&&t[l]||i&&t.indexOf(l)>=0||0===l.indexOf("data-")||0===l.indexOf("aria-"))||n&&-1!==(null===(r=n)||void 0===r?void 0:r.indexOf(l))||(o[l]=e[l])}return o}function At(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];if(o)if("string"==typeof o)n.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)n.push(o.toString());else for(var a in o)o[a]&&n.push(a)}return n.join(" ")}function Lt(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dt(e,O())}function Dt(e,t){var n=N(e instanceof Array?e:[e]),r=n.classes,i=n.objects;return i.length&&r.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=oe.apply(void 0,l([e],t));return r?(ae(r,e.specificityMultiplier),r.className):""}(t||{},i)),r.join(" ")}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(ft||(ft={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(gt||(gt={}));wt({overflow:"hidden !important"});function kt(){if(void 0===mt){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),mt=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return mt}function Tt(e){for(var t=e,n=be(e);t&&t!==n.body;){if("true"===t.getAttribute("data-is-scrollable"))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute("data-is-scrollable")){var r=getComputedStyle(t),i=r?r.getPropertyValue("overflow-y"):"";if(i&&("scroll"===i||"auto"===i))return t}t=t.parentElement}return t&&t!==n.body||(t=p(e)),t}var Mt,Pt=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function Ft(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var Nt=((Mt={})[Be]=Ft(ft.top,ft.left),Mt[Ve]=Ft(ft.top),Mt[Re]=Ft(ft.top,ft.right),Mt[We]=Ft(ft.top,void 0,!0),Mt[Ue]=Ft(ft.bottom,ft.left),Mt[ze]=Ft(ft.bottom),Mt[Ye]=Ft(ft.bottom,ft.right),Mt[je]=Ft(ft.bottom,void 0,!0),Mt[qe]=Ft(ft.left,ft.top),Mt[Xe]=Ft(ft.left),Mt[Ke]=Ft(ft.left,ft.bottom),Mt[Ze]=Ft(ft.right,ft.top),Mt[Ge]=Ft(ft.right),Mt[$e]=Ft(ft.right,ft.bottom),Mt);function Ht(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function It(e,t){var n=[];return e.top<t.top&&n.push(ft.top),e.bottom>t.bottom&&n.push(ft.bottom),e.left<t.left&&n.push(ft.left),e.right>t.right&&n.push(ft.right),n}function Ot(e,t){return e[ft[t]]}function Bt(e,t,n){return e[ft[t]]=n,e}function Vt(e,t){var n=Gt(t);return(Ot(e,n.positiveEdge)+Ot(e,n.negativeEdge))/2}function Rt(e,t){return e>0?t:-1*t}function Wt(e,t){return Rt(e,Ot(t,e))}function Ut(e,t,n){return Rt(n,Ot(e,n)-Ot(t,n))}function zt(e,t,n){var r=Ot(e,t)-n;return e=Bt(e,t,n),e=Bt(e,-1*t,Ot(e,-1*t)-r)}function Yt(e,t,n,r){return void 0===r&&(r=0),zt(e,n,Ot(t,n)+Rt(n,r))}function jt(e,t,n){return Wt(n,e)>Wt(n,t)}function qt(e,t,n,r,i,o,a){void 0===i&&(i=0);var s=r.alignmentEdge,l=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};o||a||(u=function(e,t,n,r,i){void 0===i&&(i=0);var o=[ft.left,ft.right,ft.bottom,ft.top];Ae()&&(o[0]*=-1,o[1]*=-1);for(var a=e,s=r.targetEdge,l=r.alignmentEdge,u=0;u<4;u++){if(jt(a,n,s))return{elementRectangle:a,targetEdge:s,alignmentEdge:l};o.splice(o.indexOf(s),1),o.length>0&&(o.indexOf(-1*s)>-1?s*=-1:(l=s,s=o.slice(-1)[0]),a=Zt(e,t,{targetEdge:s,alignmentEdge:l},i))}return{elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}}(e,t,n,r,i));var c=It(e,n);if(l){if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var d=function(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=-1*i;return{elementRectangle:Zt(e.elementRectangle,t,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(u,t,i,a);if(Ht(d.elementRectangle,n))return d;u=Xt(It(d.elementRectangle,n),u,n)}}else u=Xt(c,u,n);return u}function Xt(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];t.elementRectangle=Yt(t.elementRectangle,n,o)}return t}function Kt(e,t,n){var r=Gt(t).positiveEdge;return zt(e,r,n-(Vt(e,t)-Ot(e,r)))}function Zt(e,t,n,r,i){var o;void 0===r&&(r=0);var a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;(o=i?Yt(e,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var i=Rt(-1*n,r);return zt(e,-1*n,Ot(t,n)+i)}(e,t,s,r),a)?o=Yt(o,t,a):o=Kt(o,l,Vt(t,s));return o}function Gt(e){return e===ft.top||e===ft.bottom?{positiveEdge:ft.left,negativeEdge:ft.right}:{positiveEdge:ft.top,negativeEdge:ft.bottom}}function $t(e,t,n){return n&&Math.abs(Ut(e,n,t))>Math.abs(Ut(e,n,-1*t))?-1*t:t}function Qt(e){return Math.sqrt(e*e*2)}function Jt(e,t,n){if(void 0===e&&(e=je),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=a({},Nt[e]);return Ae()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?Nt[t]:r):r}function en(e,t,n){var r=Vt(t,e),i=Vt(n,e),o=Gt(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function tn(e,t,n,r,i,o,a){var s=Zt(e,t,r,i,a);return Ht(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:qt(e,t,n,r,i,o,a)}function nn(e,t,n){var r=-1*e.targetEdge,i=new Pt(0,e.elementRectangle.width,0,e.elementRectangle.height),o={},s=$t(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Gt(r).positiveEdge,n);return o[ft[r]]=Ot(t,r),o[ft[s]]=Ut(t,i,s),{elementPosition:a({},o),closestEdge:en(e.targetEdge,t,i),targetEdge:r}}function rn(e,t){var n=t.targetRectangle,r=Gt(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=Vt(n,t.targetEdge),s=new Pt(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new Pt(0,e,0,e);return jt(l=Kt(l=zt(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-Wt(i,t.elementRectangle)),s,i)?jt(l,s,o)||(l=Yt(l,s,o)):l=Yt(l,s,i),l}function on(e){var t=e.getBoundingClientRect();return new Pt(t.left,t.right,t.top,t.bottom)}function an(e){return new Pt(e.left,e.right,e.top,e.bottom)}function sn(e,t,n,r,i){var o=0,a=Nt[t],s=i?-1*a.targetEdge:a.targetEdge;return(o=s===ft.top?Ot(e,a.targetEdge)-r.top-n:s===ft.bottom?r.bottom-Ot(e,a.targetEdge)-n:r.bottom-e.top-n)>0?o:r.height}function ln(e,t,n,r){var i=e.gapSpace?e.gapSpace:0,o=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new Pt(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=on(t);else{var i=t,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new Pt(o,s,a,l)}if(!Ht(n,e))for(var u=0,c=It(n,e);u<c.length;u++){var d=c[u];n[ft[d]]=e[ft[d]]}}else n=new Pt(0,0,0,0);return n}(n,e.target),s=function(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=en(e.targetEdge,t,n)),e.alignTargetEdge=i,e}(Jt(e.directionalHint,e.directionalHintForRTL,r),o,n,e.coverTarget,e.alignTargetEdge),l=tn(on(t),o,n,s,i,e.directionalHintFixed,e.coverTarget);return a(a({},l),{targetRectangle:o})}function un(e,t,n,r,i){return{elementPosition:function(e,t,n,r,i,o,a){var s={},l=on(t),u=o?n:-1*n,c=ft[u],d=i||Gt(n).positiveEdge;return a||(d=$t(e,d,r)),s[c]=Ut(e,l,u),s[ft[d]]=Ut(e,l,d),s}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,i),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function cn(e,t,n,r,i){var o=e.isBeakVisible&&e.beakWidth||0,s=Qt(o)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var u=e.bounds?an(e.bounds):new Pt(0,window.innerWidth-kt(),0,window.innerHeight),c=ln(l,n,u,r),d=nn(c,rn(o,c),u);return a(a({},un(c,t,u,e.coverTarget,i)),{beakPosition:d})}function dn(e,t,n,r){return function(e,t,n,r){return cn(e,t,n,r,!0)}(e,t,n,r)}var hn=function(e){function t(t){var n=e.call(this,t)||this;return n._root=u.createRef(),n._disposables=[],n._onKeyDown=function(e){switch(e.which){case ce:n.props.onDismiss&&(n.props.onDismiss(e),e.preventDefault(),e.stopPropagation())}},n._onFocus=function(){n._containsFocus=!0},n._onBlur=function(e){n._root.current&&e.relatedTarget&&!et(n._root.current,e.relatedTarget)&&(n._containsFocus=!1)},n._async=new dt(n),n.state={needsVerticalScrollBar:!1},n}return o(t,e),t.prototype.UNSAFE_componentWillMount=function(){this._originalFocusedElement=be().activeElement},t.prototype.componentDidMount=function(){if(this._root.current){this._disposables.push(Lt(this._root.current,"focus",this._onFocus,!0),Lt(this._root.current,"blur",this._onBlur,!0));var e=p(this._root.current);e&&this._disposables.push(Lt(e,"keydown",this._onKeyDown)),function(e){var t=be(e),n=t&&t.activeElement;return!(!n||!et(e,n))}(this._root.current)&&(this._containsFocus=!0)}this._updateScrollBarAsync()},t.prototype.componentDidUpdate=function(){this._updateScrollBarAsync(),this._async.dispose()},t.prototype.componentWillUnmount=function(){var e;if(this._disposables.forEach((function(e){return e()})),this.props.shouldRestoreFocus){var t=this.props.onRestoreFocus;(void 0===t?pn:t)({originalElement:this._originalFocusedElement,containsFocus:this._containsFocus,documentContainsFocus:(null===(e=be())||void 0===e?void 0:e.hasFocus())||!1})}delete this._originalFocusedElement},t.prototype.render=function(){var e=this.props,t=e.role,n=e.className,r=e.ariaLabel,i=e.ariaLabelledBy,o=e.ariaDescribedBy,s=e.style;return u.createElement("div",a({ref:this._root},Et(this.props,St),{className:n,role:t,"aria-label":r,"aria-labelledby":i,"aria-describedby":o,onKeyDown:this._onKeyDown,style:a({overflowY:this.state.needsVerticalScrollBar?"scroll":void 0,outline:"none"},s)}),this.props.children)},t.prototype._updateScrollBarAsync=function(){var e=this;this._async.requestAnimationFrame((function(){e._getScrollBar()}))},t.prototype._getScrollBar=function(){if(!this.props.style||!this.props.style.overflowY){var e=!1;if(this._root&&this._root.current&&this._root.current.firstElementChild){var t=this._root.current.clientHeight,n=this._root.current.firstElementChild.clientHeight;t>0&&n>t&&(e=n-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(u.Component);function pn(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==window&&t.focus&&t.focus()}function fn(e){var t=F.getInstance(),n=t.getClassName(),r=[];for(var i in e)e.hasOwnProperty(i)&&r.push(i,"{",ie(O(),e[i]),"}");var o=r.join("");return t.insertRule("@keyframes "+n+"{"+o+"}",!0),t.cacheClassName(n,o,[],["keyframes",o]),n}var gn="cubic-bezier(.1,.9,.2,1)",mn="cubic-bezier(.1,.25,.75,.9)",vn=fn({from:{opacity:0},to:{opacity:1}}),_n=fn({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),yn=Gn(-10),xn=Gn(-20),bn=Gn(-40),Cn=Gn(-400),Sn=Gn(10),En=Gn(20),An=Gn(40),Ln=Gn(400),wn=$n(10),Dn=$n(20),kn=$n(-10),Tn=$n(-20),Mn=Qn(10),Pn=Qn(20),Fn=Qn(40),Nn=Qn(400),Hn=Qn(-10),In=Qn(-20),On=Qn(-40),Bn=Qn(-400),Vn=Jn(-10),Rn=Jn(-20),Wn=Jn(10),Un=Jn(20),zn=fn({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),Yn=fn({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),jn=fn({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),qn=fn({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Xn=fn({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Kn=fn({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function Zn(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function Gn(e){return fn({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function $n(e){return fn({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Qn(e){return fn({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function Jn(e){return fn({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var er,tr,nr,rr,ir,or=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=wt(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}({slideRightIn10:Zn(vn+","+yn,"0.367s",gn),slideRightIn20:Zn(vn+","+xn,"0.367s",gn),slideRightIn40:Zn(vn+","+bn,"0.367s",gn),slideRightIn400:Zn(vn+","+Cn,"0.367s",gn),slideLeftIn10:Zn(vn+","+Sn,"0.367s",gn),slideLeftIn20:Zn(vn+","+En,"0.367s",gn),slideLeftIn40:Zn(vn+","+An,"0.367s",gn),slideLeftIn400:Zn(vn+","+Ln,"0.367s",gn),slideUpIn10:Zn(vn+","+wn,"0.367s",gn),slideUpIn20:Zn(vn+","+Dn,"0.367s",gn),slideDownIn10:Zn(vn+","+kn,"0.367s",gn),slideDownIn20:Zn(vn+","+Tn,"0.367s",gn),slideRightOut10:Zn(_n+","+Mn,"0.367s",gn),slideRightOut20:Zn(_n+","+Pn,"0.367s",gn),slideRightOut40:Zn(_n+","+Fn,"0.367s",gn),slideRightOut400:Zn(_n+","+Nn,"0.367s",gn),slideLeftOut10:Zn(_n+","+Hn,"0.367s",gn),slideLeftOut20:Zn(_n+","+In,"0.367s",gn),slideLeftOut40:Zn(_n+","+On,"0.367s",gn),slideLeftOut400:Zn(_n+","+Bn,"0.367s",gn),slideUpOut10:Zn(_n+","+Vn,"0.367s",gn),slideUpOut20:Zn(_n+","+Rn,"0.367s",gn),slideDownOut10:Zn(_n+","+Wn,"0.367s",gn),slideDownOut20:Zn(_n+","+Un,"0.367s",gn),scaleUpIn100:Zn(vn+","+zn,"0.367s",gn),scaleDownIn100:Zn(vn+","+jn,"0.367s",gn),scaleUpOut103:Zn(_n+","+qn,"0.167s",mn),scaleDownOut98:Zn(_n+","+Yn,"0.167s",mn),fadeIn100:Zn(vn,"0.167s",mn),fadeIn200:Zn(vn,"0.267s",mn),fadeIn400:Zn(vn,"0.367s",mn),fadeIn500:Zn(vn,"0.467s",mn),fadeOut100:Zn(_n,"0.167s",mn),fadeOut200:Zn(_n,"0.267s",mn),fadeOut400:Zn(_n,"0.367s",mn),fadeOut500:Zn(_n,"0.467s",mn),rotate90deg:Zn(Xn,"0.1s",mn),rotateN90deg:Zn(Kn,"0.1s",mn)}),ar={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"};!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(er||(er={})),function(e){e.Arabic="'"+er.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+er.Cyrillic+"'",e.EastEuropean="'"+er.EastEuropean+"'",e.Greek="'"+er.Greek+"'",e.Hebrew="'"+er.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+er.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+er.Vietnamese+"'",e.WestEuropean="'"+er.WestEuropean+"'",e.Armenian="'"+er.Armenian+"'",e.Georgian="'"+er.Georgian+"'"}(tr||(tr={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(nr||(nr={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(rr||(rr={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(ir||(ir={}));var sr="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",lr="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)";var ur;function cr(e,t){var n=t?p(t):p();if(n){var r=n.document.body.classList;r.add(e?"ms-Fabric--isFocusVisible":"ms-Fabric--isFocusHidden"),r.remove(e?"ms-Fabric--isFocusHidden":"ms-Fabric--isFocusVisible")}}function dr(e,t,n,r,i,o,a){return hr(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:i,outlineColor:o,isFocusedOnly:a})}function hr(e,t){var n,r;void 0===t&&(t={});var i=t.inset,o=void 0===i?0:i,a=t.width,s=void 0===a?1:a,l=t.position,u=void 0===l?"relative":l,c=t.highContrastStyle,d=t.borderColor,h=void 0===d?e.palette.white:d,p=t.outlineColor,f=void 0===p?e.palette.neutralSecondary:p,g=t.isFocusedOnly;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".ms-Fabric--isFocusVisible &"+(void 0===g||g?":focus":"")+":after"]={content:'""',position:"absolute",left:o+1,top:o+1,bottom:o+1,right:o+1,border:s+"px solid "+h,outline:s+"px solid "+f,zIndex:ur.FocusStyle,selectors:(r={},r[sr]=c,r)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(ur||(ur={}));var pr=!1,fr=0,gr={empty:!0},mr={},vr="undefined"==typeof WeakMap?null:WeakMap;function _r(){fr++}function yr(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!vr)return e;if(!pr){var r=F.getInstance();r&&r.onReset&&F.getInstance().onReset(_r),pr=!0}var i,o=0,a=fr;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=i;(void 0===i||a!==fr||t>0&&o>t)&&(i=Cr(),o=0,a=fr),l=i;for(var u=0;u<r.length;u++){var c=br(r[u]);l.map.has(c)||l.map.set(c,Cr()),l=l.map.get(c)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),o++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function xr(e){if(!vr)return e;var t=new vr;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function br(e){return e?"object"==typeof e||"function"==typeof e?e:(mr[e]||(mr[e]={val:e}),mr[e]):gr}function Cr(){return{map:vr?new vr:null}}var Sr=yr((function(e,t){var n=F.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function Er(e,t,n){return Sr(e,void 0!==n?n:t.disableGlobalClassNames)}var Ar,Lr=n(16);!function(e){e.depth0="0 0 0 0 transparent",e.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)",e.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)",e.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)",e.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)"}(Ar||(Ar={}));var wr={elevation4:Ar.depth4,elevation8:Ar.depth8,elevation16:Ar.depth16,elevation64:Ar.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};var Dr,kr="'Segoe UI', '"+er.WestEuropean+"'",Tr={ar:tr.Arabic,bg:tr.Cyrillic,cs:tr.EastEuropean,el:tr.Greek,et:tr.EastEuropean,he:tr.Hebrew,hi:tr.Hindi,hr:tr.EastEuropean,hu:tr.EastEuropean,ja:tr.Japanese,kk:tr.EastEuropean,ko:tr.Korean,lt:tr.EastEuropean,lv:tr.EastEuropean,pl:tr.EastEuropean,ru:tr.Cyrillic,sk:tr.EastEuropean,"sr-latn":tr.EastEuropean,th:tr.Thai,tr:tr.EastEuropean,uk:tr.Cyrillic,vi:tr.Vietnamese,"zh-hans":tr.ChineseSimplified,"zh-hant":tr.ChineseTraditional,hy:tr.Armenian,ka:tr.Georgian};function Mr(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var Pr,Fr,Nr,Hr,Ir,Or=(Pr=function(e){if(void 0===e&&(e="localStorage"),void 0===Dr){var t=be(),n="localStorage"===e?function(e){var t=null;try{var n=p();t=n?n.localStorage.getItem(e):null}catch(e){}return t}("language"):"sessionStorage"===e?Ce("language"):void 0;n&&(Dr=n),void 0===Dr&&t&&(Dr=t.documentElement.getAttribute("lang")),void 0===Dr&&(Dr="en")}return Dr}("sessionStorage"),Fr=function(e){for(var t in Tr)if(Tr.hasOwnProperty(t)&&e&&0===t.indexOf(e))return Tr[t];return kr}(Pr)+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",{tiny:Mr(nr.mini,rr.regular,Fr),xSmall:Mr(nr.xSmall,rr.regular,Fr),small:Mr(nr.small,rr.regular,Fr),smallPlus:Mr(nr.smallPlus,rr.regular,Fr),medium:Mr(nr.medium,rr.regular,Fr),mediumPlus:Mr(nr.mediumPlus,rr.regular,Fr),large:Mr(nr.large,rr.regular,Fr),xLarge:Mr(nr.xLarge,rr.semibold,Fr),xLargePlus:Mr(nr.xLargePlus,rr.semibold,Fr),xxLarge:Mr(nr.xxLarge,rr.semibold,Fr),xxLargePlus:Mr(nr.xxLargePlus,rr.semibold,Fr),superLarge:Mr(nr.superLarge,rr.semibold,Fr),mega:Mr(nr.mega,rr.semibold,Fr)});function Br(e,t,n,r){var i;i={fontFamily:e="'"+e+"'",src:(void 0!==r?"local('"+r+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"},F.getInstance().insertRule("@font-face{"+ie(O(),i)+"}",!0)}function Vr(e,t,n,r,i){void 0===r&&(r="segoeui");var o=e+"/"+n+"/"+r;Br(t,o+"-light",rr.light,i&&i+" Light"),Br(t,o+"-semilight",rr.semilight,i&&i+" SemiLight"),Br(t,o+"-regular",rr.regular,i),Br(t,o+"-semibold",rr.semibold,i&&i+" SemiBold"),Br(t,o+"-bold",rr.bold,i&&i+" Bold")}function Rr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];Wr(e||{},o)}return e}function Wr(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=t[r];if("object"!=typeof i||null===i||Array.isArray(i))e[r]=i;else{var o=n.indexOf(i)>-1;e[r]=o?i:Wr(e[r]||{},i,n)}}return n.pop(),e}function Ur(e,t,n,r,i){return void 0===i&&(i=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(zr(e,t,a({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),i)}function zr(e,t,n,r,i){var o,s,l;void 0===i&&(i=!1);var u={},c=e||{},d=c.white,h=c.black,p=c.themePrimary,f=c.themeDark,g=c.themeDarker,m=c.themeDarkAlt,v=c.themeLighter,_=c.neutralLight,y=c.neutralLighter,x=c.neutralDark,b=c.neutralQuaternary,C=c.neutralQuaternaryAlt,S=c.neutralPrimary,E=c.neutralSecondary,A=c.neutralSecondaryAlt,L=c.neutralTertiary,w=c.neutralTertiaryAlt,D=c.neutralLighterAlt,k=c.accent;return d&&(u.bodyBackground=d,u.bodyFrameBackground=d,u.accentButtonText=d,u.buttonBackground=d,u.primaryButtonText=d,u.primaryButtonTextHovered=d,u.primaryButtonTextPressed=d,u.inputBackground=d,u.inputForegroundChecked=d,u.listBackground=d,u.menuBackground=d,u.cardStandoutBackground=d),h&&(u.bodyTextChecked=h,u.buttonTextCheckedHovered=h),p&&(u.link=p,u.primaryButtonBackground=p,u.inputBackgroundChecked=p,u.inputIcon=p,u.inputFocusBorderAlt=p,u.menuIcon=p,u.menuHeader=p,u.accentButtonBackground=p),f&&(u.primaryButtonBackgroundPressed=f,u.inputBackgroundCheckedHovered=f,u.inputIconHovered=f),g&&(u.linkHovered=g),m&&(u.primaryButtonBackgroundHovered=m),v&&(u.inputPlaceholderBackgroundChecked=v),_&&(u.bodyBackgroundChecked=_,u.bodyFrameDivider=_,u.bodyDivider=_,u.variantBorder=_,u.buttonBackgroundCheckedHovered=_,u.buttonBackgroundPressed=_,u.listItemBackgroundChecked=_,u.listHeaderBackgroundPressed=_,u.menuItemBackgroundPressed=_,u.menuItemBackgroundChecked=_),y&&(u.bodyBackgroundHovered=y,u.buttonBackgroundHovered=y,u.buttonBackgroundDisabled=y,u.buttonBorderDisabled=y,u.primaryButtonBackgroundDisabled=y,u.disabledBackground=y,u.listItemBackgroundHovered=y,u.listHeaderBackgroundHovered=y,u.menuItemBackgroundHovered=y),b&&(u.primaryButtonTextDisabled=b,u.disabledSubtext=b),C&&(u.listItemBackgroundCheckedHovered=C),L&&(u.disabledBodyText=L,u.variantBorderHovered=(null===(o=n)||void 0===o?void 0:o.variantBorderHovered)||L,u.buttonTextDisabled=L,u.inputIconDisabled=L,u.disabledText=L),S&&(u.bodyText=S,u.actionLink=S,u.buttonText=S,u.inputBorderHovered=S,u.inputText=S,u.listText=S,u.menuItemText=S),D&&(u.bodyStandoutBackground=D,u.defaultStateBackground=D),x&&(u.actionLinkHovered=x,u.buttonTextHovered=x,u.buttonTextChecked=x,u.buttonTextPressed=x,u.inputTextHovered=x,u.menuItemTextHovered=x),E&&(u.bodySubtext=E,u.focusBorder=E,u.inputBorder=E,u.smallInputBorder=E,u.inputPlaceholderText=E),A&&(u.buttonBorder=A),w&&(u.disabledBodySubtext=w,u.disabledBorder=w,u.buttonBackgroundChecked=w,u.menuDivider=w),k&&(u.accentButtonBackground=k),(null===(s=t)||void 0===s?void 0:s.elevation4)&&(u.cardShadow=t.elevation4),!r&&(null===(l=t)||void 0===l?void 0:l.elevation8)?u.cardShadowHovered=t.elevation8:u.variantBorderHovered&&(u.cardShadowHovered="0 0 1px "+u.variantBorderHovered),u=a(a({},u),n)}!function(e){if(e){var t=e+"/fonts";Vr(t,er.Thai,"leelawadeeui-thai","leelawadeeui"),Vr(t,er.Arabic,"segoeui-arabic"),Vr(t,er.Cyrillic,"segoeui-cyrillic"),Vr(t,er.EastEuropean,"segoeui-easteuropean"),Vr(t,er.Greek,"segoeui-greek"),Vr(t,er.Hebrew,"segoeui-hebrew"),Vr(t,er.Vietnamese,"segoeui-vietnamese"),Vr(t,er.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Vr(t,tr.Selawik,"selawik","selawik"),Vr(t,er.Armenian,"segoeui-armenian"),Vr(t,er.Georgian,"segoeui-georgian"),Br("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",rr.light),Br("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",rr.semibold)}}(null!=(Ir=null===(Hr=null===(Nr=p())||void 0===Nr?void 0:Nr.FabricConfig)||void 0===Hr?void 0:Hr.fontBaseUrl)?Ir:"https://static2.sharepointonline.com/files/fabric/assets");var Yr={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function jr(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,i,o;void 0===t&&(t={});var a=Rr({},e,t,{semanticColors:zr(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,l=Object.keys(a.fonts);s<l.length;s++){var u=l[s];a.fonts[u]=Rr(a.fonts[u],t.defaultFontStyle,null===(o=null===(i=t)||void 0===i?void 0:i.fonts)||void 0===o?void 0:o[u])}return t.stylesheets&&(a.stylesheets=(e.stylesheets||[]).concat(t.stylesheets)),a}({palette:ar,effects:wr,fonts:Or,spacing:Yr,isInverted:n,disableGlobalClassNames:!1,semanticColors:Ur(ar,wr,void 0,n,t),rtl:void 0},e)}var qr,Xr=jr({}),Kr=[];function Zr(){var e,t,n,r,i,o=p();(null===(n=null===(t=o)||void 0===t?void 0:t.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1);Xr=jr(e,t),Object(Lr.a)(a(a(a(a({},Xr.palette),Xr.semanticColors),Xr.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var i=r[n],o=e.fonts[i],a=0,s=Object.keys(o);a<s.length;a++){var l=s[a],u=i+l.charAt(0).toUpperCase()+l.slice(1),c=o[l];"fontSize"===l&&"number"==typeof c&&(c+="px"),t[u]=c}return t}(Xr))),b.applySettings(((n={}).theme=Xr,n)),Kr.forEach((function(e){try{e(Xr)}catch(e){}}))}(o.FabricConfig.legacyTheme):b.getSettings(["theme"]).theme||((null===(i=null===(r=o)||void 0===r?void 0:r.FabricConfig)||void 0===i?void 0:i.theme)&&(Xr=jr(o.FabricConfig.theme)),b.applySettings(((e={}).theme=Xr,e)))}Zr(),Object(r.a)("@uifabric/styling","7.25.1"),Zr();var Gr=((qr={})[ft.top]=or.slideUpIn10,qr[ft.bottom]=or.slideDownIn10,qr[ft.left]=or.slideLeftIn10,qr[ft.right]=or.slideRightIn10,qr),$r=De({disableCaching:!0}),Qr=0,Jr=0,ei={opacity:0,filter:"opacity(0)",pointerEvents:"none"},ti=["role","aria-roledescription"],ni=function(e){function t(t){var n=e.call(this,t)||this;return n._hostElement=u.createRef(),n._calloutElement=u.createRef(),n._hasListeners=!1,n._disposables=[],n.dismiss=function(e){var t=n.props.onDismiss;t&&t(e)},n._dismissOnScroll=function(e){var t=n.props,r=t.preventDismissOnEvent,i=t.preventDismissOnScroll;n.state.positions&&(r&&!r(e)||!r&&!i)&&n._dismissOnClickOrScroll(e)},n._dismissOnResize=function(e){var t=n.props,r=t.preventDismissOnEvent,i=t.preventDismissOnResize;(r&&!r(e)||!r&&!i)&&n.dismiss(e)},n._dismissOnLostFocus=function(e){var t=n.props,r=t.preventDismissOnEvent,i=t.preventDismissOnLostFocus;(r&&!r(e)||!r&&!i)&&n._dismissOnClickOrScroll(e)},n._setInitialFocus=function(){n.props.setInitialFocus&&!n._didSetInitialFocus&&n.state.positions&&n._calloutElement.current&&(n._didSetInitialFocus=!0,n._async.requestAnimationFrame((function(){return tt(n._calloutElement.current)}),n._calloutElement.current))},n._onComponentDidMount=function(){n._addListeners(),n.props.onLayerMounted&&n.props.onLayerMounted(),n._updateAsyncPosition(),n._setHeightOffsetEveryFrame()},n._dismissOnTargetWindowBlur=function(e){var t=n.props,r=t.preventDismissOnEvent,i=t.preventDismissOnLostFocus;t.shouldDismissOnWindowFocus&&((!r||r(e))&&(r||i)||n._targetWindow.document.hasFocus()||null!==e.relatedTarget||n.dismiss(e))},n._mouseDownOnPopup=function(){n._isMouseDownOnPopup=!0},n._mouseUpOnPopup=function(){n._isMouseDownOnPopup=!1},n._async=new dt(n),n._didSetInitialFocus=!1,n.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},n._positionAttempts=0,n}return o(t,e),t.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},t.prototype.shouldComponentUpdate=function(e,t){return!(!e.shouldUpdateWhenHidden&&this.props.hidden&&e.hidden)&&(!ht(this.props,e)||!ht(this.state,t))},t.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach((function(e){return e()}))},t.prototype.UNSAFE_componentWillUpdate=function(e){var t=this._getTarget(e);(t!==this._getTarget()||"string"==typeof t||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),e.gapSpace===this.props.gapSpace&&this.props.beakWidth===e.beakWidth||(this._maxHeight=void 0),e.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),this._didPositionPropsChange(e,this.props)&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},t.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},t.prototype.render=function(){if(!this._targetWindow)return null;var e=this.props.target,t=this.props,n=t.styles,r=t.style,i=t.ariaLabel,o=t.ariaDescribedBy,s=t.ariaLabelledBy,l=t.className,c=t.isBeakVisible,d=t.children,h=t.beakWidth,p=t.calloutWidth,f=t.calloutMaxWidth,g=t.calloutMinWidth,m=t.finalHeight,v=t.hideOverflow,_=void 0===v?!!m:v,y=t.backgroundColor,x=t.calloutMaxHeight,b=t.onScroll,C=t.shouldRestoreFocus,S=void 0===C||C,E=t.popupProps;e=this._getTarget();var A=this.state.positions,L=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,w=x&&L&&x<L?x:L,D=_,k=c&&!!e;this._classNames=$r(n,{theme:this.props.theme,className:l,overflowYHidden:D,calloutWidth:p,positions:A,beakWidth:h,backgroundColor:y,calloutMinWidth:g,calloutMaxWidth:f});var T=a(a(a({},r),{maxHeight:w}),D&&{overflowY:"hidden"}),M=this.props.hidden?{visibility:"hidden"}:void 0;return u.createElement("div",{ref:this._hostElement,className:this._classNames.container,style:M},u.createElement("div",a({},Et(this.props,St,ti),{className:At(this._classNames.root,A&&A.targetEdge&&Gr[A.targetEdge]),style:A?A.elementPosition:ei,tabIndex:-1,ref:this._calloutElement}),k&&u.createElement("div",{className:this._classNames.beak,style:this._getBeakPosition()}),k&&u.createElement("div",{className:this._classNames.beakCurtain}),u.createElement(hn,a({},Et(this.props,ti),{ariaLabel:i,onRestoreFocus:this.props.onRestoreFocus,ariaDescribedBy:o,ariaLabelledBy:s,className:this._classNames.calloutMain,onDismiss:this.dismiss,onScroll:b,shouldRestoreFocus:S,style:T,onMouseDown:this._mouseDownOnPopup,onMouseUp:this._mouseUpOnPopup},E),d)))},t.prototype._dismissOnClickOrScroll=function(e){var t=e.target,n=this._hostElement.current&&!et(this._hostElement.current,t);n&&this._isMouseDownOnPopup?this._isMouseDownOnPopup=!1:(!this._target&&n||e.target!==this._targetWindow&&n&&(this._target.stopPropagation||!this._target||this.props.dismissOnTargetClick||t!==this._target&&!et(this._target,t)))&&this.dismiss(e)},t.prototype._addListeners=function(){var e=this;this._async.setTimeout((function(){e._disposables.push(Lt(e._targetWindow,"scroll",e._dismissOnScroll,!0),Lt(e._targetWindow,"resize",e._dismissOnResize,!0),Lt(e._targetWindow.document.documentElement,"focus",e._dismissOnLostFocus,!0),Lt(e._targetWindow.document.documentElement,"click",e._dismissOnLostFocus,!0),Lt(e._targetWindow,"blur",e._dismissOnTargetWindowBlur,!0)),e._hasListeners=!0}),0)},t.prototype._removeListeners=function(){this._disposables.forEach((function(e){return e()})),this._disposables=[],this._hasListeners=!1},t.prototype._updateAsyncPosition=function(){var e=this;this._async.requestAnimationFrame((function(){return e._updatePosition()}),this._calloutElement.current)},t.prototype._getBeakPosition=function(){var e=this.state.positions,t=a({},e&&e.beakPosition?e.beakPosition.elementPosition:null);return t.top||t.bottom||t.left||t.right||(t.left=Jr,t.top=Qr),t},t.prototype._updatePosition=function(){this._setTargetWindowAndElement(this._getTarget());var e=this.state.positions,t=this._hostElement.current,n=this._calloutElement.current,r=!!this.props.target;if(t&&n&&(!r||this._target)){var i=a({},this.props);i.bounds=this._getBounds(),i.target=this._target;var o=this.props.finalHeight?dn(i,t,n,e):function(e,t,n,r){return cn(e,t,n,r)}(i,t,n,e);!e&&o||e&&o&&!this._arePositionsEqual(e,o)&&this._positionAttempts<5?(this._positionAttempts++,this.setState({positions:o})):this._positionAttempts>0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds,t="function"==typeof e?e(this.props.target,this._targetWindow):e;t||(n=this._target,r=this._targetWindow,t={top:(t=function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,i=0;if(null!==e&&e.getBoundingClientRect){var o=e.getBoundingClientRect();r=(o.left+o.right)/2,i=(o.top+o.bottom)/2}else null!==e&&(r=e.left||e.x,i=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var u=l[s];r&&u.left<=r&&u.right>=r&&i&&u.top<=i&&u.bottom>=i&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}(n,r)).top+this.props.minPagePadding,left:t.left+this.props.minPagePadding,right:t.right-this.props.minPagePadding,bottom:t.bottom-this.props.minPagePadding,width:t.width-2*this.props.minPagePadding,height:t.height-2*this.props.minPagePadding}),this._bounds=t}var n,r;return this._bounds},t.prototype._getMaxHeight=function(){var e=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,n=(this.props.gapSpace?this.props.gapSpace:0)+t;this._async.requestAnimationFrame((function(){e._target&&(e._maxHeight=function(e,t,n,r,i){void 0===n&&(n=0);var o=e,a=e,s=e,l=r?an(r):new Pt(0,window.innerWidth-kt(),0,window.innerHeight),u=s.left||s.x,c=s.top||s.y,d=s.right||u,h=s.bottom||c;return sn(o.stopPropagation?new Pt(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==u&&void 0!==c?new Pt(u,d,c,h):on(a),t,n,l,i)}(e._target,e.props.directionalHint,n,e._getBounds(),e.props.coverTarget),e._blockResetHeight=!0,e.forceUpdate())}),this._target)}else this._maxHeight=this._getBounds().height;return this._maxHeight},t.prototype._arePositionsEqual=function(e,t){return this._comparePositions(e.elementPosition,t.elementPosition)&&this._comparePositions(e.beakPosition.elementPosition,t.beakPosition.elementPosition)},t.prototype._comparePositions=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],i=t[n];if(void 0===r||void 0===i)return!1;if(r.toFixed(2)!==i.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){var t=this._calloutElement.current;if(e)if("string"==typeof e){var n=be(t);this._target=n?n.querySelector(e):null,this._targetWindow=p(t)}else if(e.stopPropagation)this._targetWindow=p(e.target),this._target=e;else if(e.getBoundingClientRect){var r=e;this._targetWindow=p(r),this._target=r}else void 0!==e.current?(this._target=e.current,this._targetWindow=p(this._target)):(this._targetWindow=p(t),this._target=e);else this._targetWindow=p(t)},t.prototype._setHeightOffsetEveryFrame=function(){var e=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame((function(){var t=e._calloutElement.current&&e._calloutElement.current.lastChild;if(t){var n=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+n}),t.offsetHeight<e.props.finalHeight?e._setHeightOffsetEveryFrame():e._async.cancelAnimationFrame(e._setHeightOffsetTimer,e._calloutElement.current)}}),this._calloutElement.current))},t.prototype._didPositionPropsChange=function(e,t){return!e.hidden&&e.hidden!==t.hidden||e.directionalHint!==t.directionalHint||e.target!==t.target},t.prototype._getTarget=function(e){return void 0===e&&(e=this.props),e.target},t.defaultProps={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:je},t}(u.Component);function ri(e){return{height:e,width:e}}var ii={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},oi=A(ni,(function(e){var t,n=e.theme,r=e.className,i=e.overflowYHidden,o=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=Er(ii,n),d=n.semanticColors,h=n.effects;return{container:[c.container,{position:"relative"}],root:[c.root,n.fonts.medium,{position:"absolute",boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[sr]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!o&&{width:o},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[c.beak,{position:"absolute",backgroundColor:d.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},ri(a),s&&{backgroundColor:s}],beakCurtain:[c.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:d.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[c.calloutMain,{backgroundColor:d.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",borderRadius:h.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),ai=n(17);function si(e,t){return void 0===e&&(e={}),(ui(t)?t:function(e){return function(t){return e?a(a({},t),e):t}}(t))(e)}function li(e,t){return void 0===e&&(e={}),(ui(t)?t:function(e){void 0===e&&(e={});return function(t){var n=a({},t);for(var r in e)e.hasOwnProperty(r)&&(n[r]=a(a({},t[r]),e[r]));return n}}(t))(e)}function ui(e){return"function"==typeof e}var ci,di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return o(t,e),t.prototype.componentDidMount=function(){b.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){b.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return u.createElement(C.Consumer,null,(function(n){var r=function(e,t){var n=(t||{}).customizations,r=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:si(r.settings,e.settings),scopedSettings:li(r.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),u.createElement(C.Provider,{value:r},e.props.children)}))},t}(u.Component),hi=((ci={})[ve]=1,ci[ye]=1,ci[me]=1,ci[_e]=1,ci[ge]=1,ci[fe]=1,ci[le]=1,ci[he]=1,ci[pe]=1,ci);var pi=new WeakMap;function fi(e,t){var n,r=pi.get(e);return n=r?r+t:1,pi.set(e,n),n}var gi=function(e){var t;return t=e.rootRef,u.useEffect((function(){var e,n,r=p(null===(e=t)||void 0===e?void 0:e.current);if(r&&!0!==(null===(n=r.FabricConfig)||void 0===n?void 0:n.disableFocusRects)){var i=fi(r,1);return i<=1&&(r.addEventListener("mousedown",mi,!0),r.addEventListener("pointerdown",vi,!0),r.addEventListener("keydown",_i,!0)),function(){var e;r&&!0!==(null===(e=r.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(i=fi(r,-1))&&(r.removeEventListener("mousedown",mi,!0),r.removeEventListener("pointerdown",vi,!0),r.removeEventListener("keydown",_i,!0))}}}),[t]),null};function mi(e){cr(!1,e.target)}function vi(e){"mouse"!==e.pointerType&&cr(!1,e.target)}function _i(e){var t;t=e.which,hi[t]&&cr(!0,e.target)}var yi=De(),xi=yr((function(e,t){return jr(a(a({},e),{rtl:t}))})),bi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._rootElement=u.createRef(),t._removeClassNameFromBody=void 0,t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"div":t,r=e.theme,i=e.dir,o=this._getClassNames(),s=Et(this.props,St,["dir"]),l=function(e,t){var n=Ae(e)?"rtl":"ltr",r=Ae()?"rtl":"ltr",i=t||n;return{rootDir:i!==n||i!==r?i:t,needsTheme:i!==n}}(r,i),c=l.rootDir,d=l.needsTheme,h=u.createElement(n,a({dir:c},s,{className:o.root,ref:this._rootElement}));return d&&(h=u.createElement(di,{settings:{theme:xi(r,"rtl"===i)}},h)),u.createElement(u.Fragment,null,h,u.createElement(gi,{rootRef:this._rootElement}))},t.prototype.componentDidMount=function(){this._addClassNameToBody()},t.prototype.componentWillUnmount=function(){this._removeClassNameFromBody&&this._removeClassNameFromBody()},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.theme,r=e.applyTheme,i=e.styles;return yi(i,{theme:n,applyTheme:r,className:t})},t.prototype._addClassNameToBody=function(){if(this.props.applyThemeToBody){var e=this._getClassNames(),t=be(this._rootElement.current);t&&(t.body.classList.add(e.bodyThemed),this._removeClassNameFromBody=function(){t.body.classList.remove(e.bodyThemed)})}},t}(u.Component),Ci={fontFamily:"inherit"},Si={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ei=A(bi,(function(e){var t=e.theme,n=e.className,r=e.applyTheme;return{root:[Er(Si,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":Ci,"& input":Ci,"& textarea":Ci}},r&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"});function Ai(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var i=n._virtual.parent;if(i&&i!==t){var o=i._virtual.children.indexOf(n);o>-1&&i._virtual.children.splice(o,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}var Li,wi={},Di={};var ki,Ti=De(),Mi=function(e){function t(t){var n=e.call(this,t)||this;return n._rootRef=u.createRef(),n._createLayerElement=function(){var e,t,r=n.props.hostId,i=be(n._rootRef.current),o=n._getHost();if(o){n._removeLayerElement();var a=null===(t=null!=(e=o.ownerDocument)?e:i)||void 0===t?void 0:t.createElement("div");if(a){var s=n._getClassNames();a.className=s.root,a.setAttribute("data-portal-element","true"),Ai(a,n._rootRef.current),n.props.insertFirst?o.insertBefore(a,o.firstChild):o.appendChild(a),n.setState({hostId:r,layerElement:a},(function(){var e=n.props,t=e.onLayerDidMount,r=e.onLayerMounted;r&&r(),t&&t()}))}}},n.state={},n}var n,r,i;return o(t,e),t.prototype.componentDidMount=function(){var e=this.props.hostId;this._createLayerElement(),e&&function(e,t){wi[e]||(wi[e]=[]),wi[e].push(t);var n=Di[e];if(n)for(var r=0,i=n;r<i.length;r++){i[r].notifyLayersChanged()}}(e,this._createLayerElement)},t.prototype.render=function(){var e=this.state.layerElement,t=this._getClassNames(),n=this.props.eventBubblingEnabled;return u.createElement("span",{className:"ms-layer",ref:this._rootRef},e&&ai.createPortal(u.createElement(Ei,a({},!n&&function(){ki||(ki={},["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(e){return ki[e]=Pi})));return ki}(),{className:t.content}),this.props.children),e))},t.prototype.componentDidUpdate=function(){this.props.hostId!==this.state.hostId&&this._createLayerElement()},t.prototype.componentWillUnmount=function(){var e=this.props.hostId;this._removeLayerElement(),e&&function(e,t){var n=wi[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete wi[e])}var i=Di[e];if(i)for(var o=0,a=i;o<a.length;o++){a[o].notifyLayersChanged()}}(e,this._createLayerElement)},t.prototype._removeLayerElement=function(){var e=this.props.onLayerWillUnmount,t=this.state.layerElement;if(t&&Ai(t,null),e&&e(),t&&t.parentNode){var n=t.parentNode;n&&n.removeChild(t)}},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return Ti(n,{theme:r,className:t,isNotHost:!this.props.hostId})},t.prototype._getHost=function(){var e,t,n,r,i,o,a=this.props.hostId,s=be(this._rootRef.current);if(a){var l=function(e){var t=Di[e];return t&&t[0]||void 0}(a);return l?null!=(e=l.rootRef.current)?e:null:null!=(n=null===(t=s)||void 0===t?void 0:t.getElementById(a))?n:null}var u=Li;return null!=(o=u?null===(r=s)||void 0===r?void 0:r.querySelector(u):null===(i=s)||void 0===i?void 0:i.body)?o:null},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},t=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([(n="Layer",r=["theme","hostId"],function(e){var t,s=((t=function(t){function s(e){var n=t.call(this,e)||this;return n._styleCache={},n._onSettingChanged=n._onSettingChanged.bind(n),n}return o(s,t),s.prototype.componentDidMount=function(){b.observe(this._onSettingChanged)},s.prototype.componentWillUnmount=function(){b.unobserve(this._onSettingChanged)},s.prototype.render=function(){var t=this;return u.createElement(C.Consumer,null,(function(o){var s=b.getSettings(r,n,o.customizations),l=t.props;if(s.styles&&"function"==typeof s.styles&&(s.styles=s.styles(a(a({},s),l))),i&&s.styles){if(t._styleCache.default!==s.styles||t._styleCache.component!==l.styles){var d=c(s.styles,l.styles);t._styleCache.default=s.styles,t._styleCache.component=l.styles,t._styleCache.merged=d}return u.createElement(e,a({},s,l,{styles:t._styleCache.merged}))}return u.createElement(e,a({},s,l))}))},s.prototype._onSettingChanged=function(){this.forceUpdate()},s}(u.Component)).displayName="Customized"+n,t);return function(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e,s)})],t)}(u.Component),Pi=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var Fi={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Ni=A(Mi,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,i=Er(Fi,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:ur.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[i.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,n=s(e,["layerProps"]),r=u.createElement(oi,a({},n));return this.props.doNotLayer?r:u.createElement(Ni,a({},t),r)},t}(u.Component),Ii=Array.prototype.slice,Oi=function(e){return e};function Bi(e){return"translate("+(e+.5)+",0)"}function Vi(e){return"translate(0,"+(e+.5)+")"}function Ri(e){return function(t){return+e(t)}}function Wi(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Ui(){return!this.__axis}function zi(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",c=1===e||3===e?Bi:Vi;function d(d){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):Oi:i,f=Math.max(o,0)+s,g=t.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,_=(t.bandwidth?Wi:Ri)(t.copy()),y=d.selection?d.selection():d,x=y.selectAll(".domain").data([null]),b=y.selectAll(".tick").data(h,t).order(),C=b.exit(),S=b.enter().append("g").attr("class","tick"),E=b.select("line"),A=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(S),E=E.merge(S.append("line").attr("stroke","#000").attr(u+"2",l*o)),A=A.merge(S.append("text").attr("fill","#000").attr(u,l*f).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),d!==y&&(x=x.transition(d),b=b.transition(d),E=E.transition(d),A=A.transition(d),C=C.transition(d).attr("opacity",1e-6).attr("transform",(function(e){return isFinite(e=_(e))?c(e):this.getAttribute("transform")})),S.attr("opacity",1e-6).attr("transform",(function(e){var t=this.parentNode.__axis;return c(t&&isFinite(t=t(e))?t:_(e))}))),C.remove(),x.attr("d",4===e||2==e?"M"+l*a+","+m+"H0.5V"+v+"H"+l*a:"M"+m+","+l*a+"V0.5H"+v+"V"+l*a),b.attr("opacity",1).attr("transform",(function(e){return c(_(e))})),E.attr(u+"2",l*o),A.attr(u,l*f).text(p),y.filter(Ui).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),y.each((function(){this.__axis=_}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Ii.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Ii.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Ii.call(e),d):r&&r.slice()},d.tickFormat=function(e){return arguments.length?(i=e,d):i},d.tickSize=function(e){return arguments.length?(o=a=+e,d):o},d.tickSizeInner=function(e){return arguments.length?(o=+e,d):o},d.tickSizeOuter=function(e){return arguments.length?(a=+e,d):a},d.tickPadding=function(e){return arguments.length?(s=+e,d):s},d}function Yi(e){return zi(2,e)}function ji(e){return zi(3,e)}function qi(e){return zi(4,e)}var Xi=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},Ki=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Xi(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var Zi=Ki(Xi);Zi.right,Zi.left;var Gi=Array.prototype;Gi.slice,Gi.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var $i=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r},Qi=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r};var Ji=Math.sqrt(50),eo=Math.sqrt(10),to=Math.sqrt(2);function no(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Ji?10:o>=eo?5:o>=to?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ji?10:o>=eo?5:o>=to?2:1)}function ro(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function io(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oo(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=ro,n=(t,n)=>ro(e(t),n),r=(t,n)=>e(t)-n):(t=e===ro||e===io?e:ao,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function ao(){return 0}const so=oo(ro),lo=so.right;so.left,oo((function(e){return null===e?NaN:+e})).center;var uo=lo,co=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function ho(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function po(){}var fo="\\s*([+-]?\\d+)\\s*",go="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vo=/^#([0-9a-f]{3,8})$/,_o=new RegExp(`^rgb\\(${fo},${fo},${fo}\\)$`),yo=new RegExp(`^rgb\\(${mo},${mo},${mo}\\)$`),xo=new RegExp(`^rgba\\(${fo},${fo},${fo},${go}\\)$`),bo=new RegExp(`^rgba\\(${mo},${mo},${mo},${go}\\)$`),Co=new RegExp(`^hsl\\(${go},${mo},${mo}\\)$`),So=new RegExp(`^hsla\\(${go},${mo},${mo},${go}\\)$`),Eo={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 Ao(){return this.rgb().formatHex()}function Lo(){return this.rgb().formatRgb()}function wo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=vo.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Do(t):3===n?new Po(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ko(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ko(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=_o.exec(e))?new Po(t[1],t[2],t[3],1):(t=yo.exec(e))?new Po(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xo.exec(e))?ko(t[1],t[2],t[3],t[4]):(t=bo.exec(e))?ko(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Co.exec(e))?Bo(t[1],t[2]/100,t[3]/100,1):(t=So.exec(e))?Bo(t[1],t[2]/100,t[3]/100,t[4]):Eo.hasOwnProperty(e)?Do(Eo[e]):"transparent"===e?new Po(NaN,NaN,NaN,0):null}function Do(e){return new Po(e>>16&255,e>>8&255,255&e,1)}function ko(e,t,n,r){return r<=0&&(e=t=n=NaN),new Po(e,t,n,r)}function To(e){return e instanceof po||(e=wo(e)),e?new Po((e=e.rgb()).r,e.g,e.b,e.opacity):new Po}function Mo(e,t,n,r){return 1===arguments.length?To(e):new Po(e,t,n,null==r?1:r)}function Po(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Fo(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}`}function No(){const e=Ho(this.opacity);return`${1===e?"rgb(":"rgba("}${Io(this.r)}, ${Io(this.g)}, ${Io(this.b)}${1===e?")":`, ${e})`}`}function Ho(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Io(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oo(e){return((e=Io(e))<16?"0":"")+e.toString(16)}function Bo(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ro(e,t,n,r)}function Vo(e){if(e instanceof Ro)return new Ro(e.h,e.s,e.l,e.opacity);if(e instanceof po||(e=wo(e)),!e)return new Ro;if(e instanceof Ro)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ro(a,s,l,e.opacity)}function Ro(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Wo(e){return(e=(e||0)%360)<0?e+360:e}function Uo(e){return Math.max(0,Math.min(1,e||0))}function zo(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Yo(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}co(po,wo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ao,formatHex:Ao,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Vo(this).formatHsl()},formatRgb:Lo,toString:Lo}),co(Po,Mo,ho(po,{brighter(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Po(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Po(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Po(Io(this.r),Io(this.g),Io(this.b),Ho(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fo,formatHex:Fo,formatHex8:function(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}${Oo(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:No,toString:No})),co(Ro,(function(e,t,n,r){return 1===arguments.length?Vo(e):new Ro(e,t,n,null==r?1:r)}),ho(po,{brighter(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ro(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ro(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Po(zo(e>=240?e-240:e+120,i,r),zo(e,i,r),zo(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ro(Wo(this.h),Uo(this.s),Uo(this.l),Ho(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ho(this.opacity);return`${1===e?"hsl(":"hsla("}${Wo(this.h)}, ${100*Uo(this.s)}%, ${100*Uo(this.l)}%${1===e?")":`, ${e})`}`}}));var jo=e=>()=>e;function qo(e,t){return function(n){return e+n*t}}function Xo(e){return 1==(e=+e)?Ko:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):jo(isNaN(t)?n:t)}}function Ko(e,t){var n=t-e;return n?qo(e,n):jo(isNaN(e)?t:e)}var Zo=function e(t){var n=Xo(t);function r(e,t){var r=n((e=Mo(e)).r,(t=Mo(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Ko(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Go(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Mo(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}Go((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Yo((n-r/t)*t,a,i,o,s)}})),Go((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Yo((n-r/t)*t,i,o,a,s)}}));var $o=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}};function Qo(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Jo(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=aa(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}var ea=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},ta=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},na=function(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=aa(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},ra=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ia=new RegExp(ra.source,"g");var oa=function(e,t){var n,r,i,o=ra.lastIndex=ia.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=ra.exec(e))&&(r=ia.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:ta(n,r)})),o=ia.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})},aa=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?jo(t):("number"===r?ta:"string"===r?(n=wo(t))?(t=n,Zo):oa:t instanceof wo?Zo:t instanceof Date?ea:Qo(t)?$o:Array.isArray(t)?Jo:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?na:ta)(e,t)},sa=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}};function la(e){return+e}var ua=[0,1];function ca(e){return e}function da(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function ha(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=da(i,r),o=n(a,o)):(r=da(r,i),o=n(o,a)),function(e){return o(r(e))}}function pa(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=da(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=uo(e,t,1,r)-1;return o[n](i[n](t))}}function fa(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ga(){var e,t,n,r,i,o,a=ua,s=ua,l=aa,u=ca;function c(){var e,t,n,l=Math.min(a.length,s.length);return u!==ca&&(e=a[0],t=a[l-1],e>t&&(n=e,e=t,t=n),u=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?pa:ha,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((o||(o=r(s,a.map(e),ta)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,la),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=sa,c()},d.clamp=function(e){return arguments.length?(u=!!e||ca,c()):u!==ca},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function ma(){return ga()(ca,ca)}function va(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var _a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ya(e){if(!(t=_a.exec(e)))throw new Error("invalid format: "+e);var t;return new xa({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function xa(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}ya.prototype=xa.prototype,xa.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};function ba(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var Ca,Sa,Ea,Aa,La=function(e){return(e=ba(Math.abs(e)))?e[1]:NaN},wa=function(e,t){var n=ba(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Da={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>wa(100*e,t),r:wa,s:function(e,t){var n=ba(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Ca=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ba(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)},ka=function(e){return e},Ta=Array.prototype.map,Ma=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Sa=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?ka:(t=Ta.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?ka:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Ta.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=ya(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,_=e.type;"n"===_?(g=!0,_="g"):Da[_]||(void 0===m&&(m=12),v=!0,_="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===h?o:/[%p]/.test(_)?l:"",b=Da[_],C=/[defgprs%]/.test(_);function S(e){var i,o,l,h=y,S=x;if("c"===_)S=b(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:b(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:u:"-"===d||"("===d?"":d)+h,S=("s"===_?Ma[8+Ca/3]:"")+S+(E&&"("===d?")":""),C)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){S=(46===l?a+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}g&&!p&&(e=r(e,1/0));var A=h.length+e.length+S.length,L=A<f?new Array(f-A+1).join(t):"";switch(g&&p&&(e=r(L+e,L.length?f-S.length:1/0),L=""),n){case"<":e=h+e+S+L;break;case"=":e=h+L+e+S;break;case"^":e=L.slice(0,A=L.length>>1)+h+e+S+L.slice(A);break;default:e=L+h+e+S}return s(e)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=ya(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(La(t)/3))),i=Math.pow(10,-r),o=Ma[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ea=Sa.format,Aa=Sa.formatPrefix;function Pa(e,t,n,r){var i,o=function(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ji?i*=10:o>=eo?i*=5:o>=to&&(i*=2),t<e?-i:i}(e,t,n);switch((r=ya(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(La(t)/3)))-La(Math.abs(e)))}(o,a))||(r.precision=i),Aa(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,La(t)-La(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-La(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return Ea(r)}function Fa(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=no(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Pa(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],u=o[s],c=10;for(u<l&&(i=l,l=u,u=i,i=a,a=s,s=i);c-- >0;){if((i=no(l,u,n))===r)return o[a]=l,o[s]=u,t(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i}r=i}return e},e}function Na(){var e=ma();return e.copy=function(){return fa(e,Na())},va.apply(e,arguments),Fa(e)}function Ha(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ia(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Oa(){return 0}var Ba=Math.sqrt(50),Va=Math.sqrt(10),Ra=Math.sqrt(2);function Wa(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ba?i*=10:o>=Va?i*=5:o>=Ra&&(i*=2),t<e?-i:i}var Ua=new Date,za=new Date;function Ya(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Ya((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Ua.setTime(+t),za.setTime(+r),e(Ua),e(za),Math.floor(n(Ua,za))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var ja=Ya((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));ja.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Ya((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ja:null};var qa=ja,Xa=(ja.range,Ya((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))),Ka=Xa,Za=(Xa.range,Ya((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),Ga=Za,$a=(Za.range,Ya((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),Qa=$a,Ja=($a.range,Ya(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5,e=>e.getDate()-1)),es=Ja;Ja.range;function ts(e){return Ya((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var ns=ts(0),rs=ts(1),is=ts(2),os=ts(3),as=ts(4),ss=ts(5),ls=ts(6),us=(ns.range,rs.range,is.range,os.range,as.range,ss.range,ls.range,Ya((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),cs=us,ds=(us.range,Ya((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));ds.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ya((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var hs=ds,ps=(ds.range,Ya((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}))),fs=ps,gs=(ps.range,Ya((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}))),ms=gs,vs=(gs.range,Ya((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),_s=vs;vs.range;function ys(e){return Ya((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var xs=ys(0),bs=ys(1),Cs=ys(2),Ss=ys(3),Es=ys(4),As=ys(5),Ls=ys(6),ws=(xs.range,bs.range,Cs.range,Ss.range,Es.range,As.range,Ls.range,Ya((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),Ds=ws,ks=(ws.range,Ya((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));ks.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ya((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Ts=ks;ks.range;function Ms(e,t,n,r,i,o){const a=[[Ka,1,1e3],[Ka,5,5e3],[Ka,15,15e3],[Ka,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){const i=Math.abs(n-t)/r,o=function(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=Ha,n=(t,n)=>Ha(e(t),n),r=(t,n)=>e(t)-n):(t=e===Ha||e===Ia?e:Oa,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}(([,,e])=>e).right(a,i);if(o===a.length)return e.every(Wa(t/31536e6,n/31536e6,r));if(0===o)return qa.every(Math.max(Wa(t,n,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}const[Ps,Fs]=Ms(Ts,Ds,xs,_s,ms,fs),[Ns,Hs]=Ms(hs,cs,ns,es,Qa,Ga);function Is(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Os(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Bs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Vs,Rs,Ws={"-":"",_:" ",0:"0"},Us=/^\s*\d+/,zs=/^%/,Ys=/[\\^$*+?|[\]().{}]/g;function js(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function qs(e){return e.replace(Ys,"\\$&")}function Xs(e){return new RegExp("^(?:"+e.map(qs).join("|")+")","i")}function Ks(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Zs(e,t,n){var r=Us.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Gs(e,t,n){var r=Us.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function $s(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Qs(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Js(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function el(e,t,n){var r=Us.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tl(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function nl(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function rl(e,t,n){var r=Us.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function il(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ol(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function al(e,t,n){var r=Us.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function sl(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ll(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ul(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cl(e,t,n){var r=Us.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function dl(e,t,n){var r=Us.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hl(e,t,n){var r=zs.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function pl(e,t,n){var r=Us.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function fl(e,t,n){var r=Us.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function gl(e,t){return js(e.getDate(),t,2)}function ml(e,t){return js(e.getHours(),t,2)}function vl(e,t){return js(e.getHours()%12||12,t,2)}function _l(e,t){return js(1+es.count(hs(e),e),t,3)}function yl(e,t){return js(e.getMilliseconds(),t,3)}function xl(e,t){return yl(e,t)+"000"}function bl(e,t){return js(e.getMonth()+1,t,2)}function Cl(e,t){return js(e.getMinutes(),t,2)}function Sl(e,t){return js(e.getSeconds(),t,2)}function El(e){var t=e.getDay();return 0===t?7:t}function Al(e,t){return js(ns.count(hs(e)-1,e),t,2)}function Ll(e){var t=e.getDay();return t>=4||0===t?as(e):as.ceil(e)}function wl(e,t){return e=Ll(e),js(as.count(hs(e),e)+(4===hs(e).getDay()),t,2)}function Dl(e){return e.getDay()}function kl(e,t){return js(rs.count(hs(e)-1,e),t,2)}function Tl(e,t){return js(e.getFullYear()%100,t,2)}function Ml(e,t){return js((e=Ll(e)).getFullYear()%100,t,2)}function Pl(e,t){return js(e.getFullYear()%1e4,t,4)}function Fl(e,t){var n=e.getDay();return js((e=n>=4||0===n?as(e):as.ceil(e)).getFullYear()%1e4,t,4)}function Nl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+js(t/60|0,"0",2)+js(t%60,"0",2)}function Hl(e,t){return js(e.getUTCDate(),t,2)}function Il(e,t){return js(e.getUTCHours(),t,2)}function Ol(e,t){return js(e.getUTCHours()%12||12,t,2)}function Bl(e,t){return js(1+_s.count(Ts(e),e),t,3)}function Vl(e,t){return js(e.getUTCMilliseconds(),t,3)}function Rl(e,t){return Vl(e,t)+"000"}function Wl(e,t){return js(e.getUTCMonth()+1,t,2)}function Ul(e,t){return js(e.getUTCMinutes(),t,2)}function zl(e,t){return js(e.getUTCSeconds(),t,2)}function Yl(e){var t=e.getUTCDay();return 0===t?7:t}function jl(e,t){return js(xs.count(Ts(e)-1,e),t,2)}function ql(e){var t=e.getUTCDay();return t>=4||0===t?Es(e):Es.ceil(e)}function Xl(e,t){return e=ql(e),js(Es.count(Ts(e),e)+(4===Ts(e).getUTCDay()),t,2)}function Kl(e){return e.getUTCDay()}function Zl(e,t){return js(bs.count(Ts(e)-1,e),t,2)}function Gl(e,t){return js(e.getUTCFullYear()%100,t,2)}function $l(e,t){return js((e=ql(e)).getUTCFullYear()%100,t,2)}function Ql(e,t){return js(e.getUTCFullYear()%1e4,t,4)}function Jl(e,t){var n=e.getUTCDay();return js((e=n>=4||0===n?Es(e):Es.ceil(e)).getUTCFullYear()%1e4,t,4)}function eu(){return"+0000"}function tu(){return"%"}function nu(e){return+e}function ru(e){return Math.floor(+e/1e3)}function iu(e){return new Date(e)}function ou(e){return e instanceof Date?+e:+new Date(+e)}function au(e,t,n,r,i,o,a,s,l,u){var c=ma(),d=c.invert,h=c.domain,p=u(".%L"),f=u(":%S"),g=u("%I:%M"),m=u("%I %p"),v=u("%a %d"),_=u("%b %d"),y=u("%B"),x=u("%Y");function b(e){return(l(e)<e?p:s(e)<e?f:a(e)<e?g:o(e)<e?m:r(e)<e?i(e)<e?v:_:n(e)<e?y:x)(e)}return c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?h(Array.from(e,ou)):h().map(iu)},c.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?b:u(t)},c.nice=function(e){var n=h();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):c},c.copy=function(){return fa(c,au(e,t,n,r,i,o,a,s,l,u))},c}function su(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}!function(e){Vs=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Xs(i),c=Ks(i),d=Xs(o),h=Ks(o),p=Xs(a),f=Ks(a),g=Xs(s),m=Ks(s),v=Xs(l),_=Ks(l),y={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:gl,e:gl,f:xl,g:Ml,G:Fl,H:ml,I:vl,j:_l,L:yl,m:bl,M:Cl,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:nu,s:ru,S:Sl,u:El,U:Al,V:wl,w:Dl,W:kl,x:null,X:null,y:Tl,Y:Pl,Z:Nl,"%":tu},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Hl,e:Hl,f:Rl,g:$l,G:Jl,H:Il,I:Ol,j:Bl,L:Vl,m:Wl,M:Ul,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:nu,s:ru,S:zl,u:Yl,U:jl,V:Xl,w:Kl,W:Zl,x:null,X:null,y:Gl,Y:Ql,Z:eu,"%":tu},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:ol,e:ol,f:dl,g:tl,G:el,H:sl,I:sl,j:al,L:cl,m:il,M:ll,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:rl,Q:pl,s:fl,S:ul,u:Gs,U:$s,V:Qs,w:Zs,W:Js,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:tl,Y:el,Z:nl,"%":hl};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Ws[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,i,o=Bs(1900,void 0,1);if(E(o,e,n+="",0)!=n.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(t&&!("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?(i=(r=Os(Bs(o.y,0,1))).getUTCDay(),r=i>4||0===i?bs.ceil(r):bs(r),r=_s.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Is(Bs(o.y,0,1))).getDay(),r=i>4||0===i?rs.ceil(r):rs(r),r=es.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.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),i="Z"in o?Os(Bs(o.y,0,1)).getUTCDay():Is(Bs(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Os(o)):Is(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=b[i in Ws?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),Rs=Vs.format,Vs.parse,Vs.utcFormat,Vs.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});class lu extends Map{constructor(e,t=hu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(uu(this,e))}has(e){return super.has(uu(this,e))}set(e,t){return super.set(cu(this,e),t)}delete(e){return super.delete(du(this,e))}}Set;function uu({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function cu({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function du({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function hu(e){return null!==e&&"object"==typeof e?e.valueOf():e}const pu=Symbol("implicit");function fu(){var e=new lu,t=[],n=[],r=pu;function i(i){let o=e.get(i);if(void 0===o){if(r!==pu)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new lu;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return fu(t,n).unknown(r)},va.apply(i,arguments),i}function gu(){var e,t,n=fu().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,u=0,c=.5;function d(){var n=r().length,d=a<o,h=d?a:o,p=d?o:a;e=(p-h)/Math.max(1,n-l+2*u),s&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*c,t=e*(1-l),s&&(h=Math.round(h),t=Math.round(t));var f=su(n).map((function(t){return h+e*t}));return i(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,d()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return gu(r(),[o,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},va.apply(d(),arguments)}var mu="http://www.w3.org/1999/xhtml",vu={svg:"http://www.w3.org/2000/svg",xhtml:mu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},_u=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),vu.hasOwnProperty(t)?{space:vu[t],local:e}:e};function yu(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===mu&&t.documentElement.namespaceURI===mu?t.createElement(e):t.createElementNS(n,e)}}function xu(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var bu=function(e){var t=_u(e);return(t.local?xu:yu)(t)};function Cu(){}var Su=function(e){return null==e?Cu:function(){return this.querySelector(e)}};function Eu(){return[]}var Au=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Lu=document.documentElement;if(!Lu.matches){var wu=Lu.webkitMatchesSelector||Lu.msMatchesSelector||Lu.mozMatchesSelector||Lu.oMatchesSelector;Au=function(e){return function(){return wu.call(this,e)}}}}var Du=Au,ku=function(e){return new Array(e.length)};function Tu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Tu.prototype={constructor:Tu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Mu(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Tu(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Pu(e,t,n,r,i,o,a){var s,l,u,c={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=u="$"+a.call(l,l.__data__,s,t),u in c?i[s]=l:c[u]=l);for(s=0;s<h;++s)(l=c[u="$"+a.call(e,o[s],s,o)])?(r[s]=l,l.__data__=o[s],c[u]=null):n[s]=new Tu(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&c[p[s]]===l&&(i[s]=l)}function Fu(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Nu(e){return function(){this.removeAttribute(e)}}function Hu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Iu(e,t){return function(){this.setAttribute(e,t)}}function Ou(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Bu(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Vu(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var Ru=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function Wu(e){return function(){this.style.removeProperty(e)}}function Uu(e,t,n){return function(){this.style.setProperty(e,t,n)}}function zu(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Yu(e,t){return e.style.getPropertyValue(t)||Ru(e).getComputedStyle(e,null).getPropertyValue(t)}function ju(e){return function(){delete this[e]}}function qu(e,t){return function(){this[e]=t}}function Xu(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Ku(e){return e.trim().split(/^|\s+/)}function Zu(e){return e.classList||new Gu(e)}function Gu(e){this._node=e,this._names=Ku(e.getAttribute("class")||"")}function $u(e,t){for(var n=Zu(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Qu(e,t){for(var n=Zu(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Ju(e){return function(){$u(this,e)}}function ec(e){return function(){Qu(this,e)}}function tc(e,t){return function(){(t.apply(this,arguments)?$u:Qu)(this,e)}}Gu.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function nc(){this.textContent=""}function rc(e){return function(){this.textContent=e}}function ic(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function oc(){this.innerHTML=""}function ac(e){return function(){this.innerHTML=e}}function sc(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function lc(){this.nextSibling&&this.parentNode.appendChild(this)}function uc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cc(){return null}function dc(){var e=this.parentNode;e&&e.removeChild(this)}function hc(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function pc(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var fc={},gc=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(fc={mouseenter:"mouseover",mouseleave:"mouseout"}));function mc(e,t,n){return e=vc(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function vc(e,t,n){return function(r){var i=gc;gc=r;try{e.call(this,this.__data__,t,n)}finally{gc=i}}}function _c(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function yc(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function xc(e,t,n){var r=fc.hasOwnProperty(e.type)?mc:vc;return function(i,o,a){var s,l=this.__on,u=r(t,o,a);if(l)for(var c=0,d=l.length;c<d;++c)if((s=l[c]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=u,s.capture=n),void(s.value=t);this.addEventListener(e.type,u,n),s={type:e.type,name:e.name,value:t,listener:u,capture:n},l?l.push(s):this.__on=[s]}}function bc(e,t,n){var r=Ru(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Cc(e,t){return function(){return bc(this,e,t)}}function Sc(e,t){return function(){return bc(this,e,t.apply(this,arguments))}}var Ec=[null];function Ac(e,t){this._groups=e,this._parents=t}function Lc(){return new Ac([[document.documentElement]],Ec)}Ac.prototype=Lc.prototype={constructor:Ac,select:function(e){"function"!=typeof e&&(e=Su(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,u=r[i]=new Array(l),c=0;c<l;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),u[c]=a);return new Ac(r,this._parents)},selectAll:function(e){var t;"function"!=typeof e&&(e=null==(t=e)?Eu:function(){return this.querySelectorAll(t)});for(var n=this._groups,r=n.length,i=[],o=[],a=0;a<r;++a)for(var s,l=n[a],u=l.length,c=0;c<u;++c)(s=l[c])&&(i.push(e.call(s,s.__data__,c,l)),o.push(s));return new Ac(i,o)},filter:function(e){"function"!=typeof e&&(e=Du(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new Ac(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),c=-1,this.each((function(e){f[++c]=e})),f;var n,r=t?Pu:Mu,i=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),c=0;c<a;++c){var d=i[c],h=o[c],p=h.length,f=e.call(d,d&&d.__data__,c,i),g=f.length,m=l[c]=new Array(g),v=s[c]=new Array(g);r(d,h,m,v,u[c]=new Array(p),f,t);for(var _,y,x=0,b=0;x<g;++x)if(_=m[x]){for(x>=b&&(b=x+1);!(y=v[b])&&++b<g;);_._next=y||null}}return(s=new Ac(s,i))._enter=l,s._exit=u,s},enter:function(){return new Ac(this._enter||this._groups.map(ku),this._parents)},exit:function(){return new Ac(this._exit||this._groups.map(ku),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=u[p]||c[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new Ac(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Fu);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=new Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new Ac(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=_u(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Hu:Nu:"function"==typeof t?n.local?Vu:Bu:n.local?Ou:Iu)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Wu:"function"==typeof t?zu:Uu)(e,t,null==n?"":n)):Yu(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?ju:"function"==typeof t?Xu:qu)(e,t)):this.node()[e]},classed:function(e,t){var n=Ku(e+"");if(arguments.length<2){for(var r=Zu(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?tc:t?Ju:ec)(n,t))},text:function(e){return arguments.length?this.each(null==e?nc:("function"==typeof e?ic:rc)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?oc:("function"==typeof e?sc:ac)(e)):this.node().innerHTML},raise:function(){return this.each(lc)},lower:function(){return this.each(uc)},append:function(e){var t="function"==typeof e?e:bu(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:bu(e),r=null==t?cc:"function"==typeof t?t:Su(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(dc)},clone:function(e){return this.select(e?pc:hc)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=_c(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?xc:yc,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Sc:Cc)(e,t))}};var wc=function(e){return"string"==typeof e?new Ac([[document.querySelector(e)]],[document.documentElement]):new Ac([[e]],Ec)},Dc=0;function kc(){this._="@"+(++Dc).toString(36)}kc.prototype=function(){return new kc}.prototype={constructor:kc,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var Tc=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]},Mc=function(e){return"string"==typeof e?new Ac([document.querySelectorAll(e)],[document.documentElement]):new Ac([null==e?[]:e],Ec)},Pc=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},Fc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Nc(e){if(!(t=Fc.exec(e)))throw new Error("invalid format: "+e);var t;return new Hc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Hc(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}Nc.prototype=Hc.prototype,Hc.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 Ic,Oc,Bc,Vc=function(e,t){var n=Pc(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Rc={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Vc(100*e,t)},r:Vc,s:function(e,t){var n=Pc(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Ic=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Pc(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Wc=function(e){return e},Uc=Array.prototype.map,zc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Yc=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Wc:(t=Uc.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Wc:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Uc.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Nc(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,_=e.type;"n"===_?(g=!0,_="g"):Rc[_]||(void 0===m&&(m=12),v=!0,_="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===h?o:/[%p]/.test(_)?l:"",b=Rc[_],C=/[defgprs%]/.test(_);function S(e){var i,o,l,h=y,S=x;if("c"===_)S=b(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:b(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:u:"-"===d||"("===d?"":d)+h,S=("s"===_?zc[8+Ic/3]:"")+S+(E&&"("===d?")":""),C)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){S=(46===l?a+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}g&&!p&&(e=r(e,1/0));var A=h.length+e.length+S.length,L=A<f?new Array(f-A+1).join(t):"";switch(g&&p&&(e=r(L+e,L.length?f-S.length:1/0),L=""),n){case"<":e=h+e+S+L;break;case"=":e=h+L+e+S;break;case"^":e=L.slice(0,A=L.length>>1)+h+e+S+L.slice(A);break;default:e=L+h+e+S}return s(e)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n,r=d(((e=Nc(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((n=t,((n=Pc(Math.abs(n)))?n[1]:NaN)/3)))),o=Math.pow(10,-i),a=zc[8+i/3];return function(e){return r(o*e)+a}}}};!function(e){Oc=Yc(e),Bc=Oc.format,Oc.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var jc=new Date,qc=new Date;function Xc(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Xc((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return jc.setTime(+t),qc.setTime(+r),e(jc),e(qc),Math.floor(n(jc,qc))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Kc=Xc((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Kc.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Xc((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Kc:null};Kc.range;var Zc=Xc((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()})),Gc=(Zc.range,Xc((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),$c=(Gc.range,Xc((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),Qc=($c.range,Xc((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),Jc=Qc;Qc.range;function ed(e){return Xc((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var td=ed(0),nd=ed(1),rd=ed(2),id=ed(3),od=ed(4),ad=ed(5),sd=ed(6),ld=(td.range,nd.range,rd.range,id.range,od.range,ad.range,sd.range,Xc((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),ud=(ld.range,Xc((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));ud.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xc((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var cd=ud,dd=(ud.range,Xc((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}))),hd=(dd.range,Xc((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}))),pd=(hd.range,Xc((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),fd=pd;pd.range;function gd(e){return Xc((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var md=gd(0),vd=gd(1),_d=gd(2),yd=gd(3),xd=gd(4),bd=gd(5),Cd=gd(6),Sd=(md.range,vd.range,_d.range,yd.range,xd.range,bd.range,Cd.range,Xc((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),Ed=(Sd.range,Xc((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Ed.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xc((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Ad=Ed;Ed.range;function Ld(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function wd(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Dd(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var kd,Td,Md,Pd,Fd={"-":"",_:" ",0:"0"},Nd=/^\s*\d+/,Hd=/^%/,Id=/[\\^$*+?|[\]().{}]/g;function Od(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Bd(e){return e.replace(Id,"\\$&")}function Vd(e){return new RegExp("^(?:"+e.map(Bd).join("|")+")","i")}function Rd(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Wd(e,t,n){var r=Nd.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ud(e,t,n){var r=Nd.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function zd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Yd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function jd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function qd(e,t,n){var r=Nd.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Xd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Kd(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Zd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Gd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function $d(e,t,n){var r=Nd.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Qd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Jd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function eh(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function th(e,t,n){var r=Nd.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function nh(e,t,n){var r=Nd.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rh(e,t,n){var r=Hd.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ih(e,t,n){var r=Nd.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function oh(e,t,n){var r=Nd.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function ah(e,t){return Od(e.getDate(),t,2)}function sh(e,t){return Od(e.getHours(),t,2)}function lh(e,t){return Od(e.getHours()%12||12,t,2)}function uh(e,t){return Od(1+Jc.count(cd(e),e),t,3)}function ch(e,t){return Od(e.getMilliseconds(),t,3)}function dh(e,t){return ch(e,t)+"000"}function hh(e,t){return Od(e.getMonth()+1,t,2)}function ph(e,t){return Od(e.getMinutes(),t,2)}function fh(e,t){return Od(e.getSeconds(),t,2)}function gh(e){var t=e.getDay();return 0===t?7:t}function mh(e,t){return Od(td.count(cd(e),e),t,2)}function vh(e,t){var n=e.getDay();return e=n>=4||0===n?od(e):od.ceil(e),Od(od.count(cd(e),e)+(4===cd(e).getDay()),t,2)}function _h(e){return e.getDay()}function yh(e,t){return Od(nd.count(cd(e),e),t,2)}function xh(e,t){return Od(e.getFullYear()%100,t,2)}function bh(e,t){return Od(e.getFullYear()%1e4,t,4)}function Ch(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Od(t/60|0,"0",2)+Od(t%60,"0",2)}function Sh(e,t){return Od(e.getUTCDate(),t,2)}function Eh(e,t){return Od(e.getUTCHours(),t,2)}function Ah(e,t){return Od(e.getUTCHours()%12||12,t,2)}function Lh(e,t){return Od(1+fd.count(Ad(e),e),t,3)}function wh(e,t){return Od(e.getUTCMilliseconds(),t,3)}function Dh(e,t){return wh(e,t)+"000"}function kh(e,t){return Od(e.getUTCMonth()+1,t,2)}function Th(e,t){return Od(e.getUTCMinutes(),t,2)}function Mh(e,t){return Od(e.getUTCSeconds(),t,2)}function Ph(e){var t=e.getUTCDay();return 0===t?7:t}function Fh(e,t){return Od(md.count(Ad(e),e),t,2)}function Nh(e,t){var n=e.getUTCDay();return e=n>=4||0===n?xd(e):xd.ceil(e),Od(xd.count(Ad(e),e)+(4===Ad(e).getUTCDay()),t,2)}function Hh(e){return e.getUTCDay()}function Ih(e,t){return Od(vd.count(Ad(e),e),t,2)}function Oh(e,t){return Od(e.getUTCFullYear()%100,t,2)}function Bh(e,t){return Od(e.getUTCFullYear()%1e4,t,4)}function Vh(){return"+0000"}function Rh(){return"%"}function Wh(e){return+e}function Uh(e){return Math.floor(+e/1e3)}!function(e){kd=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Vd(i),c=Rd(i),d=Vd(o),h=Rd(o),p=Vd(a),f=Rd(a),g=Vd(s),m=Rd(s),v=Vd(l),_=Rd(l),y={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:ah,e:ah,f:dh,H:sh,I:lh,j:uh,L:ch,m:hh,M:ph,p:function(e){return i[+(e.getHours()>=12)]},Q:Wh,s:Uh,S:fh,u:gh,U:mh,V:vh,w:_h,W:yh,x:null,X:null,y:xh,Y:bh,Z:Ch,"%":Rh},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Sh,e:Sh,f:Dh,H:Eh,I:Ah,j:Lh,L:wh,m:kh,M:Th,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Wh,s:Uh,S:Mh,u:Ph,U:Fh,V:Nh,w:Hh,W:Ih,x:null,X:null,y:Oh,Y:Bh,Z:Vh,"%":Rh},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:Gd,e:Gd,f:nh,H:Qd,I:Qd,j:$d,L:th,m:Zd,M:Jd,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:ih,s:oh,S:eh,u:Ud,U:zd,V:Yd,w:Wd,W:jd,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:Xd,Y:qd,Z:Kd,"%":rh};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Fd[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,i,o=Dd(1900);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=wd(Dd(o.y))).getUTCDay(),r=i>4||0===i?vd.ceil(r):vd(r),r=fd.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(Dd(o.y))).getDay(),r=i>4||0===i?nd.ceil(r):nd(r),r=Jc.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.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),i="Z"in o?wd(Dd(o.y)).getUTCDay():t(Dd(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,wd(o)):t(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=b[i in Fd?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",Ld);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e,wd);return t.toString=function(){return e},t}}}(e),Td=kd.format,kd.parse,Md=kd.utcFormat,Pd=kd.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Date.prototype.toISOString||Md("%Y-%m-%dT%H:%M:%S.%LZ");var zh,Yh,jh,qh;+new Date("2000-01-01T00:00:00.000Z")||Pd("%Y-%m-%dT%H:%M:%S.%LZ");function Xh(e,t){var n=e.domainNRangeValues,r=e.showRoundOffXTickValues,i=void 0!==r&&r,o=e.xAxistickSize,a=void 0===o?6:o,s=e.tickPadding,l=void 0===s?10:s,u=e.xAxisCount,c=void 0===u?6:u,d=e.xAxisElement,h=Na().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]);i&&h.nice();var p=ji(h).tickSize(a).tickPadding(l).ticks(c).tickSizeOuter(0).tickFormat((function(e,n){var r="number"==typeof e?e:e.valueOf();return ap(r,t)}));return d&&wc(d).call(p).selectAll("text").attr("aria-hidden","true"),h}function Kh(e,t){var n=e.domainNRangeValues,r=e.xAxisElement,i=e.tickPadding,o=void 0===i?6:i,a=e.xAxistickSize,s=void 0===a?6:a,l=e.xAxisCount,u=void 0===l?6:l,c=function(){return va.apply(au(Ns,Hs,hs,cs,ns,es,Qa,Ga,Ka,Rs).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]),d=ji(c).tickSize(s).tickPadding(o).ticks(u);return t.tickValues&&d.tickValues(t.tickValues),t.tickFormat&&d.tickFormat(Td(t.tickFormat)),r&&wc(r).call(d).selectAll("text").attr("aria-hidden","true"),c}function Zh(e,t,n){var r=e.yMinMaxValues,i=void 0===r?{startValue:0,endValue:0}:r,o=e.yAxisElement,a=void 0===o?null:o,s=e.yMaxValue,l=void 0===s?0:s,u=e.yMinValue,c=void 0===u?0:u,d=e.containerHeight,h=e.containerWidth,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,m=e.maxOfYVal,v=void 0===m?0:m,_=e.yAxisTickFormat,y=e.yAxisTickCount,x=void 0===y?4:y,b=e.eventAnnotationProps,C=e.eventLabelHeight,S=v||i.endValue,E=S>l?S:l,A=i.startValue<c?0:c,L=function(e,t,n){for(var r=Math.ceil((e-t)/n),i=[t,t+r];i[i.length-1]<e;)i.push(i[i.length-1]+r);return i}(E,A,x),w=Na().domain([A,L[L.length-1]]).range([d-p.bottom,p.top+(b?C:0)]),D=(t?Yi(w):qi(w)).tickPadding(g).tickValues(L).tickSizeInner(-(h-p.left-p.right));return _?D.tickFormat(_):D.tickFormat(Bc(".2~s")),a&&wc(a).call(D).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=L,w}!function(e){e[e.AreaChart=0]="AreaChart",e[e.LineChart=1]="LineChart",e[e.VerticalBarChart=2]="VerticalBarChart",e[e.VerticalStackedBarChart=3]="VerticalStackedBarChart",e[e.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",e[e.HeatMapChart=5]="HeatMapChart"}(Yh||(Yh={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(jh||(jh={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(qh||(qh={}));function Gh(e){var t=[];e.forEach((function(e){var n=e.data.filter((function(e){return!e.hideCallout})).map((function(t){return a(a({legend:e.legend},t),{color:e.color,index:e.index})}));t=t.concat(n)}));var n,r,i=[];return t.forEach((function(e,n){e.x=e.x instanceof Date?e.x.getTime():e.x;var r=[{legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}];t.slice(n+1).forEach((function(t){t.x=t.x instanceof Date?t.x.getTime():t.x,e.x===t.x&&r.push({legend:t.legend,y:t.y,color:t.color,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index})})),i.push({x:e.x,values:r})})),r="x",(n=i).map((function(e){return e[r]})).map((function(e,t,n){return n.indexOf(e)===t&&t})).filter((function(e){return n[e]})).map((function(e){return n[e]}))}function $h(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var i=wc("body").append("div").attr("id",r).attr("class",t).style("opacity",0),o=n.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,s=[],l=0;l<a;l++){var u=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(u)}var c=n.selectAll(".tick")._groups[0],d=c&&Object.keys(c).length,h=function(e){var t=c[e];wc(t).on("mouseover",(function(t){i.style("opacity",.9),i.html(s[e]).style("left",gc.pageX+"px").style("top",gc.pageY-28+"px")})).on("mouseout",(function(e){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function Qh(e){var t=!1;return e&&e.length>0&&e.forEach((function(e){e.data.length>0&&(t=e.data[0].x instanceof Date)})),t}function Jh(e,t,n,r,i,o,a,s){var u;if(o===jh.NumericAxis)switch(r){case Yh.AreaChart:case Yh.LineChart:u=function(e,t,n,r){var i=Qi(e,(function(e){return Qi(e.data,(function(e){return e.x}))})),o=$i(e,(function(e){return $i(e.data,(function(e){return e.x}))})),a=t.left,s=n-t.right;return r?{dStartValue:o,dEndValue:i,rStartValue:a,rEndValue:s}:{dStartValue:i,dEndValue:o,rStartValue:a,rEndValue:s}}(e,t,n,i);break;case Yh.VerticalStackedBarChart:u=function(e,t,n,r,i){var o=Qi(e,(function(e){return e.x})),a=$i(e,(function(e){return e.x})),s=t.left+i/2,l=n-t.right-i/2;return r?{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}:{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}}(e,t,n,i,a);break;case Yh.VerticalBarChart:u=function(e,t,n,r,i){var o=$i(e,(function(e){return e.x})),a=Qi(e,(function(e){return e.x})),s=t.left+i,l=n-t.right-i;return r?{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}}(e,t,n,i,a);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(o===jh.DateAxis)switch(r){case Yh.AreaChart:case Yh.LineChart:u=function(e,t,n,r,i){void 0===i&&(i=[]);var o=Qi(e,(function(e){return Qi(e.data,(function(e){return e.x}))})),a=$i(e,(function(e){return $i(e.data,(function(e){return e.x}))})),s=Qi(l(i,[o])),u=$i(l(i,[a])),c=t.left,d=n-t.right;return r?{dStartValue:u,dEndValue:s,rStartValue:c,rEndValue:d}:{dStartValue:s,dEndValue:u,rStartValue:c,rEndValue:d}}(e,t,n,i,s);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case Yh.VerticalStackedBarChart:case Yh.GroupedVerticalBarChart:case Yh.VerticalBarChart:case Yh.HeatMapChart:u=function(e,t,n){var r=e.left,i=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:i,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:i}}(t,n,i);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function ep(e,t){var n,r,i;switch(t){case Yh.AreaChart:case Yh.LineChart:n=function(e){var t=$i(e,(function(e){return $i(e.data,(function(e){return e.y}))}));return{startValue:Qi(e,(function(e){return Qi(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case Yh.VerticalStackedBarChart:i=$i(r=e,(function(e){return e.y})),n={startValue:Qi(r,(function(e){return e.y})),endValue:i};break;case Yh.VerticalBarChart:n=function(e){var t=$i(e,(function(e){return e.y}));return{startValue:Qi(e,(function(e){return e.y})),endValue:t}}(e);break;default:n={startValue:0,endValue:0}}return n}var tp,np,rp=function(e,t){if(t)switch(typeof e){case"string":return jh.StringAxis;case"number":return jh.NumericAxis;default:return jh.DateAxis}else switch(typeof e){case"string":return qh.StringAxis;case"number":return qh.NumericAxis;default:return qh.DateAxis}};!function(e){e[e.circle=0]="circle",e[e.square=1]="square",e[e.triangle=2]="triangle",e[e.diamond=3]="diamond",e[e.pyramid=4]="pyramid",e[e.hexagon=5]="hexagon",e[e.pentagon=6]="pentagon",e[e.octagon=7]="octagon"}(tp||(tp={})),function(e){e[e.dottedLine=0]="dottedLine"}(np||(np={}));var ip=((zh={})[tp.circle]={widthRatio:1},zh[tp.square]={widthRatio:1},zh[tp.triangle]={widthRatio:1},zh[tp.diamond]={widthRatio:1},zh[tp.pyramid]={widthRatio:1},zh[tp.hexagon]={widthRatio:2},zh[tp.pentagon]={widthRatio:1.168},zh[tp.octagon]={widthRatio:2.414},zh),op=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},ap=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e:Number(e).toLocaleString(t)):e},sp=De(),lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,i=e.YValue,o=e.styles,a=e.theme,s=e.ratio,l=e.descriptionMessage,c=e.culture;return this._classNames=sp(o,{theme:a,color:t,XValue:r,isRatioPresent:!!s}),u.createElement("div",{className:this._classNames.calloutContentRoot},u.createElement("div",{className:this._classNames.calloutDateTimeContainer},u.createElement("div",{className:this._classNames.calloutContentX},r," ")),u.createElement("div",{className:this._classNames.calloutInfoContainer},u.createElement("div",{className:this._classNames.calloutBlockContainer},u.createElement("div",{className:this._classNames.calloutlegendText},ap(n,c)),u.createElement("div",{className:this._classNames.calloutContentY},ap(i,c))),!!s&&u.createElement("div",{className:this._classNames.ratio},u.createElement(u.Fragment,null,u.createElement("span",{className:this._classNames.numerator},ap(s[0],c)),"/",u.createElement("span",{className:this._classNames.denominator},ap(s[1],c))))),!!l&&u.createElement("div",{className:this._classNames.descriptionMessage},l))},t}(u.Component),up=function(e){var t=e.color,n=e.XValue,r=e.theme,i=e.isRatioPresent,o=void 0!==i&&i;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:r.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[r.fonts.small,{lineHeight:"16px",opacity:"0.8",color:r.semanticColors.bodySubtext}],calloutBlockContainer:[r.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:r.semanticColors.bodyText,borderLeft:"4px solid "+t}],calloutlegendText:[r.fonts.small,{lineHeight:"16px",color:r.semanticColors.bodyText}],calloutContentY:[r.fonts.xxLarge,{color:t||r.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[o&&{display:"flex",alignItems:"flex-end"}],ratio:[r.fonts.small,{marginLeft:"6px",color:r.semanticColors.bodyText}],numerator:{fontWeight:rr.bold},denominator:{fontWeight:rr.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+r.semanticColors.menuDivider}]}},cp=A(lp,up),dp=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var i=r[n];"function"==typeof i?i(t):i&&(i.current=t)}}};function hp(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function pp(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=hp(e,e[n],t[n]))}(e,{componentDidMount:fp,componentDidUpdate:gp,componentWillUnmount:mp})}function fp(){vp(this.props.componentRef,this)}function gp(e){e.componentRef!==this.props.componentRef&&(vp(e.componentRef,null),vp(this.props.componentRef,this))}function mp(){vp(this.props.componentRef,null)}function vp(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}var _p,yp=1,xp=2;!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(_p||(_p={}));var bp;function Cp(e,t){var n,r,i,o,a,s,l;"function"==typeof MouseEvent?l=new MouseEvent("click",{ctrlKey:null===(n=t)||void 0===n?void 0:n.ctrlKey,metaKey:null===(r=t)||void 0===r?void 0:r.metaKey,shiftKey:null===(i=t)||void 0===i?void 0:i.shiftKey,altKey:null===(o=t)||void 0===o?void 0:o.altKey,bubbles:null===(a=t)||void 0===a?void 0:a.bubbles,cancelable:null===(s=t)||void 0===s?void 0:s.cancelable}):(l=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(l)}var Sp={},Ep=new Set,Ap=["text","number","password","email","tel","url","search"],Lp=function(e){function t(t){var n,r=e.call(this,t)||this;return r._root=u.createRef(),r._mergedRef=(n={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.resolver&&Oe(n.refs,e)||(n.resolver=dp(n)),n.refs=e,n.resolver}),r._onFocus=function(e){if(!r._portalContainsElement(e.target)){var t,n=r.props,i=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,a=n.stopFocusPropagation,s=n.onFocusNotification,l=n.onFocus,u=n.shouldFocusInnerElementWhenReceivedFocus,c=n.defaultTabbableElement,d=r._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==r._root.current;){if(ot(h)&&r._isImmediateDescendantOfZone(h)){t=h;break}h=Qe(h,!1)}if(u&&e.target===r._root.current){var p=c&&"function"==typeof c&&c(r._root.current);p&&ot(p)?(t=p,p.focus()):(r.focus(!0),r._activeElement&&(t=null))}var f=!r._activeElement;t&&t!==r._activeElement&&((d||f)&&r._setFocusAlignment(t,!0,!0),r._activeElement=t,f&&r._updateTabIndexes()),i&&i(r._activeElement,e),(a||o)&&e.stopPropagation(),l?l(e):s&&s()}},r._onBlur=function(){r._setParkedFocus(!1)},r._onMouseDown=function(e){if(!r._portalContainsElement(e.target)&&!r.props.disabled){for(var t=e.target,n=[];t&&t!==r._root.current;)n.push(t),t=Qe(t,!1);for(;n.length&&((t=n.pop())&&ot(t)&&r._setActiveElement(t,!0),!at(t)););}},r._onKeyDown=function(e,t){if(!r._portalContainsElement(e.target)){var n=r.props,i=n.direction,o=n.disabled,a=n.isInnerZoneKeystroke,s=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!(o||(r.props.onKeyDown&&r.props.onKeyDown(e),e.isDefaultPrevented()||r._getDocument().activeElement===r._root.current&&r._isInnerZone))){if((l&&l(e)||a&&a(e))&&r._isImmediateDescendantOfZone(e.target)){var u=r._getFirstInnerZone();if(u){if(!u.focus(!0))return}else{if(!st(e.target))return;if(!r.focusElement(rt(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case de:if(r._tryInvokeClickForFocusable(e.target,e))break;return;case me:if(i!==_p.vertical&&(r._preventDefaultWhenHandled(e),r._moveFocusLeft(t)))break;return;case _e:if(i!==_p.vertical&&(r._preventDefaultWhenHandled(e),r._moveFocusRight(t)))break;return;case ve:if(i!==_p.horizontal&&(r._preventDefaultWhenHandled(e),r._moveFocusUp()))break;return;case ye:if(i!==_p.horizontal&&(r._preventDefaultWhenHandled(e),r._moveFocusDown()))break;return;case pe:if(!s&&r._moveFocusPaging(!0))break;return;case he:if(!s&&r._moveFocusPaging(!1))break;return;case le:if(r.props.allowTabKey||r.props.handleTabKey===yp||r.props.handleTabKey===xp&&r._isElementInput(e.target)){var c=!1;if(r._processingTabKey=!0,i!==_p.vertical&&r._shouldWrapFocus(r._activeElement,"data-no-horizontal-wrap"))c=(Ae(t)?!e.shiftKey:e.shiftKey)?r._moveFocusLeft(t):r._moveFocusRight(t);else c=e.shiftKey?r._moveFocusUp():r._moveFocusDown();if(r._processingTabKey=!1,c)break;r.props.shouldResetActiveElementWhenTabFromZone&&(r._activeElement=null)}return;case ge:if(r._isContentEditableElement(e.target)||r._isElementInput(e.target)&&!r._shouldInputLoseFocus(e.target,!1))return!1;var d=r._root.current&&r._root.current.firstChild;if(r._root.current&&d&&r.focusElement(rt(r._root.current,d,!0)))break;return;case fe:if(r._isContentEditableElement(e.target)||r._isElementInput(e.target)&&!r._shouldInputLoseFocus(e.target,!0))return!1;var h=r._root.current&&r._root.current.lastChild;if(r._root.current&&r.focusElement(nt(r._root.current,h,!0,!0,!0)))break;return;case ue:if(r._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},r._getHorizontalDistanceFromCenter=function(e,t,n){var i=r._focusAlignment.left||r._focusAlignment.x||0,o=Math.floor(n.top),a=Math.floor(t.bottom),s=Math.floor(n.bottom),l=Math.floor(t.top);return e&&o>a||!e&&s<l?i>=n.left&&i<=n.left+n.width?0:Math.abs(n.left+n.width/2-i):r._shouldWrapFocus(r._activeElement,"data-no-vertical-wrap")?999999999:-999999999},pp(r),r._id=Fe("FocusZone"),r._focusAlignment={left:0,top:0},r._processingTabKey=!1,r}return o(t,e),t.getOuterZones=function(){return Ep.size},t._onKeyDownCapture=function(e){e.which===le&&Ep.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Sp[this._id]=this,e){this._windowElement=p(e);for(var n=Qe(e,!1);n&&n!==this._getDocument().body&&1===n.nodeType;){if(at(n)){this._isInnerZone=!0;break}n=Qe(n,!1)}this._isInnerZone||(Ep.add(this),this._windowElement&&1===Ep.size&&this._windowElement.addEventListener("keydown",t._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()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||!this.props.preventFocusRestoration&&t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r],a=n.children[Math.min(o,n.children.length-1)];if(!a)break;n=a}return n=ot(n)&&it(n)?n:rt(e,n,!0)||nt(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Sp[this._id],this._isInnerZone||(Ep.delete(this),this._windowElement&&0===Ep.size&&this._windowElement.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,i=t.rootProps,o=t.ariaDescribedBy,s=t.ariaLabelledBy,l=t.className,c=Et(this.props,xt),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(Xr=jr({},h)),Xr);return u.createElement(d,a({"aria-labelledby":s,"aria-describedby":o},c,i,{className:At((bp||(bp=wt({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),bp),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e){if(void 0===e&&(e=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute("data-is-focusable")&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var n=Sp[t.getAttribute("data-focuszone-id")];return!!n&&n.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&et(this._root.current,this._activeElement)&&ot(this._activeElement))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(rt(this._root.current,r,!0))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(nt(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,i=n.shouldReceiveFocus;return!(i&&!i(e)||r&&!r(e))&&(!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=et(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=Qe(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(at(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current||!this.props.shouldRaiseClicks)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute("data-is-focusable")&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Cp(n,t),!0;n=Qe(n,!1)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(at(e))return Sp[e.getAttribute("data-focuszone-id")];for(var t=e.firstElementChild;t;){if(at(t))return Sp[t.getAttribute("data-focuszone-id")];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var i=this._activeElement,o=-1,a=void 0,s=!1,l=this.props.direction===_p.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,e))return!1;var u=l?i.getBoundingClientRect():null;do{if(i=e?rt(this._root.current,i):nt(this._root.current,i),!l){a=i;break}if(i){var c=t(u,i.getBoundingClientRect());if(-1===c&&-1===o){a=i;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=i),o>=0&&c<0)break}}while(i);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(rt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(nt(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,i){var o=-1,a=Math.floor(i.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&a>=s||a===t)&&(t=a,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,i){var o=-1,a=Math.floor(i.bottom),s=Math.floor(i.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&a<=l||s===t)&&(t=s,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(Ae(e),(function(r,i){var o=-1;return(Ae(e)?parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&i.right<=r.right&&t.props.direction!==_p.vertical?o=r.right-i.right:n||(o=-999999999),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(!Ae(e),(function(r,i){var o=-1;return(Ae(e)?parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&i.left>=r.left&&t.props.direction!==_p.vertical?o=i.left-r.left:n||(o=-999999999),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=Tt(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,u=n.getBoundingClientRect();do{if(n=e?rt(this._root.current,n):nt(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),h=Math.floor(u.bottom),p=Math.floor(c.bottom),f=Math.floor(u.top),g=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>a?(a=d,i=g,o=n):!e&&p<s?(s=p,i=g,o=n):(-1===i||g<=i)&&(i=g,o=n))}}while(n);var m=!1;if(o&&o!==this._activeElement)m=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(rt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(nt(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===_p.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),i=r.left+r.width/2,o=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:i,top:o}),t&&(this._focusAlignment.left=i),n&&(this._focusAlignment.top=o)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=Qe(e,!1);t&&t!==this._root.current&&t!==this._getDocument().body;){if(at(t))return t;t=Qe(t,!1)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!et(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!ot(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];at(r)?"true"===r.getAttribute("data-is-focusable")&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","0"))):(r.getAttribute&&"false"===r.getAttribute("data-is-focusable")&&r.setAttribute("tabindex","-1"),ot(r)?this.props.disabled?r.setAttribute("tabindex","-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&Ap.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,i=e.value,o=e.readOnly;if(r||n>0&&!t&&!o||n!==i.length&&t&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||lt(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&(t=e,n=this._root.current,null!==(r=Je(t,(function(e){return n===e||e.hasAttribute("data-portal-element")})))&&r.hasAttribute("data-portal-element"));var t,n,r},t.prototype._getDocument=function(){return be(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:_p.bidirectional,shouldRaiseClicks:!0},t}(u.Component),wp=De(),Dp=A(function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||8,n._classNames=wp(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor})},n._getChartDataText=function(e){return n.props.barChartCustomData?u.createElement("div",{"data-is-focusable":!0,role:"text"},n.props.barChartCustomData(e)):n._getDefaultTextData(e)},n._getDefaultTextData=function(e){var t=n.props.culture,r=n.props.chartDataMode||"default",i=e.chartData[0],o=i.horizontalBarChartdata.x,s=i.horizontalBarChartdata.y,l=op(e.chartDataAccessibilityData);switch(r){case"default":return u.createElement("div",a({className:n._classNames.chartDataText},l),ap(o,t));case"fraction":return u.createElement("div",a({},l),u.createElement("span",{className:n._classNames.chartDataText},ap(o,t)),u.createElement("span",{className:n._classNames.chartDataTextDenominator},"/"+ap(s,t)));case"percentage":var c=ap(Math.round(o/s*100),t)+"%";return u.createElement("div",a({className:n._classNames.chartDataText},l),c)}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||(e.horizontalBarChartdata?e.horizontalBarChartdata.x+"/"+e.horizontalBarChartdata.y:0);return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:""},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=Fe("callout"),n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme;this._adjustProps();var i=r.palette,o=0;return u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},n.map((function(t,n){o=t.chartData&&t.chartData[0]&&t.chartData[0].horizontalBarChartdata.x?t.chartData[0].horizontalBarChartdata.x:0,t.chartData[1]={legend:"",horizontalBarChartdata:{x:t.chartData[0].horizontalBarChartdata.y-o,y:t.chartData[0].horizontalBarChartdata.y},color:i.neutralTertiaryAlt};var r=e._getChartDataText(t),s=e._createBars(t,i),l=e._uniqLineText+"_"+n,c=t.chartData[0].horizontalBarChartdata.x;return u.createElement("div",{key:n,className:e._classNames.items},u.createElement("div",{className:e._classNames.items},u.createElement(Lp,{direction:_p.horizontal},u.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&u.createElement("div",a({className:e._classNames.chartDataText},op(t.chartTitleAccessibilityData)),t.chartTitle),r)),t.chartData[0].data&&e._createBenchmark(t),u.createElement(Lp,{direction:_p.horizontal},u.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},u.createElement("g",{id:l,key:l,ref:function(n){e._refCallback(n,t.chartData[0].legend)},className:e._classNames.barWrapper,onMouseOver:e._hoverOn.bind(e,c,t.chartData[0]),onFocus:e._hoverOn.bind(e,c,t.chartData[0]),onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()},role:"img","aria-label":e._getAriaLabel(t.chartData[0]),"data-is-focusable":!0,onBlur:e._hoverOff,onMouseLeave:e._hoverOff},s)))))})),u.createElement(Hi,a({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Ze,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,op(this.state.callOutAccessibilityData)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerHorizonalBar?this.props.onRenderCalloutPerHorizonalBar(this.state.barCalloutProps):u.createElement(cp,{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}))))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=Ie(this._refArray,(function(e){return e.index===t.legend}));this._calloutAnchorPoint=t,this.setState({isCalloutVisible:!0,hoverValue:e,lineColor:t.color,legend:t.legend,refSelected:n.refElement,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,barCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},t.prototype._hoverOff=function(){},t.prototype._createBenchmark=function(e){var t=e.chartData[0].horizontalBarChartdata.y,n=e.chartData[0].data,r=Math.round((n||0)/t*100),i={marginLeft:"calc("+r+"% - 4px)",marginRight:"calc("+(100-r)+"% - 4px)"};return u.createElement("div",{className:this._classNames.triangle,style:i})},t.prototype._createBars=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[],o=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),a=0,s=0;return e.chartData.map((function(e,t){var l=e.color?e.color:r[Math.floor(4*Math.random()+1)],c=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return t>0&&(a+=s),(s=c/o*100)<0?s=0:s<1&&0!==s&&(s=1),i.push(a),s<1?u.createElement(u.Fragment,{key:t}," "):u.createElement("rect",{key:t,x:i[t]+"%",y:0,width:s+"%",height:n._barHeight,fill:l})}))},t}(u.Component),(function(e){var t=e.className,n=e.theme,r=e.width,i=n.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},t],items:{height:"32px",marginTop:"5px",position:"relative"},chart:{width:"100%",height:"8px",marginBottom:"11px"},barWrapper:{stroke:n.palette.white,strokeWidth:2},chartTitle:a(a({},n.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),chartDataText:{fontWeight:rr.bold},chartDataTextDenominator:{fontWeight:rr.semibold},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"8px solid",borderTopColor:i.blue,marginBottom:"4px",position:"absolute",top:"12px"}}})),kp=function(e){return function(){return e}},Tp=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},Mp=function(e){return e},Pp=Math.abs,Fp=Math.atan2,Np=Math.cos,Hp=Math.max,Ip=Math.min,Op=Math.sin,Bp=Math.sqrt,Vp=Math.PI,Rp=Vp/2,Wp=2*Vp;function Up(e){return e>1?0:e<-1?Vp:Math.acos(e)}function zp(e){return e>=1?Rp:e<=-1?-Rp:Math.asin(e)}var Yp=function(){var e=Mp,t=Tp,n=null,r=kp(0),i=kp(Wp),o=kp(0);function a(a){var s,l,u,c,d,h=a.length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(Wp,Math.max(-Wp,i.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,o.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+e(a[s],s,a))>0&&(p+=d);for(null!=t?f.sort((function(e,n){return t(g[e],g[n])})):null!=n&&f.sort((function(e,t){return n(a[e],a[t])})),s=0,u=p?(v-h*y)/p:0;s<h;++s,m=c)l=f[s],c=m+((d=g[l])>0?d*u:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:c,padAngle:_};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:kp(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:kp(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:kp(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:kp(+e),a):o},a},jp=Math.PI,qp=2*jp,Xp=qp-1e-6;function Kp(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Zp(){return new Kp}Kp.prototype=Zp.prototype={constructor:Kp,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,u=o-e,c=a-t,d=u*u+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6)if(Math.abs(c*s-l*u)>1e-6&&i){var h=n-o,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=i*Math.tan((jp-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>1e-6&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>u*p)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%qp+qp),d>Xp?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=jp)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Gp=Zp;function $p(e){return e.innerRadius}function Qp(e){return e.outerRadius}function Jp(e){return e.startAngle}function ef(e){return e.endAngle}function tf(e){return e&&e.padAngle}function nf(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,h=d*l-c*u;if(!(h*h<1e-12))return[e+(h=(c*(t-o)-d*(e-i))/h)*l,t+h*u]}function rf(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/Bp(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=i-o,C=h*g-f*p,S=(y<0?-1:1)*Bp(Hp(0,b*b*x-C*C)),E=(C*y-_*S)/x,A=(-C*_-y*S)/x,L=(C*y+_*S)/x,w=(-C*_+y*S)/x,D=E-m,k=A-v,T=L-m,M=w-v;return D*D+k*k>T*T+M*M&&(E=L,A=w),{cx:E,cy:A,x01:-c,y01:-d,x11:E*(i/b-1),y11:A*(i/b-1)}}var of=function(){var e=$p,t=Qp,n=kp(0),r=null,i=Jp,o=ef,a=tf,s=null;function l(){var l,u,c=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-Rp,p=o.apply(this,arguments)-Rp,f=Pp(p-h),g=p>h;if(s||(s=l=Gp()),d<c&&(u=d,d=c,c=u),d>1e-12)if(f>Wp-1e-12)s.moveTo(d*Np(h),d*Op(h)),s.arc(0,0,d,h,p,!g),c>1e-12&&(s.moveTo(c*Np(p),c*Op(p)),s.arc(0,0,c,p,h,g));else{var m,v,_=h,y=p,x=h,b=p,C=f,S=f,E=a.apply(this,arguments)/2,A=E>1e-12&&(r?+r.apply(this,arguments):Bp(c*c+d*d)),L=Ip(Pp(d-c)/2,+n.apply(this,arguments)),w=L,D=L;if(A>1e-12){var k=zp(A/c*Op(E)),T=zp(A/d*Op(E));(C-=2*k)>1e-12?(x+=k*=g?1:-1,b-=k):(C=0,x=b=(h+p)/2),(S-=2*T)>1e-12?(_+=T*=g?1:-1,y-=T):(S=0,_=y=(h+p)/2)}var M=d*Np(_),P=d*Op(_),F=c*Np(b),N=c*Op(b);if(L>1e-12){var H,I=d*Np(y),O=d*Op(y),B=c*Np(x),V=c*Op(x);if(f<Vp&&(H=nf(M,P,B,V,I,O,F,N))){var R=M-H[0],W=P-H[1],U=I-H[0],z=O-H[1],Y=1/Op(Up((R*U+W*z)/(Bp(R*R+W*W)*Bp(U*U+z*z)))/2),j=Bp(H[0]*H[0]+H[1]*H[1]);w=Ip(L,(c-j)/(Y-1)),D=Ip(L,(d-j)/(Y+1))}}S>1e-12?D>1e-12?(m=rf(B,V,M,P,d,D,g),v=rf(I,O,F,N,d,D,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),D<L?s.arc(m.cx,m.cy,D,Fp(m.y01,m.x01),Fp(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,D,Fp(m.y01,m.x01),Fp(m.y11,m.x11),!g),s.arc(0,0,d,Fp(m.cy+m.y11,m.cx+m.x11),Fp(v.cy+v.y11,v.cx+v.x11),!g),s.arc(v.cx,v.cy,D,Fp(v.y11,v.x11),Fp(v.y01,v.x01),!g))):(s.moveTo(M,P),s.arc(0,0,d,_,y,!g)):s.moveTo(M,P),c>1e-12&&C>1e-12?w>1e-12?(m=rf(F,N,I,O,c,-w,g),v=rf(M,P,B,V,c,-w,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),w<L?s.arc(m.cx,m.cy,w,Fp(m.y01,m.x01),Fp(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,w,Fp(m.y01,m.x01),Fp(m.y11,m.x11),!g),s.arc(0,0,c,Fp(m.cy+m.y11,m.cx+m.x11),Fp(v.cy+v.y11,v.cx+v.x11),g),s.arc(v.cx,v.cy,w,Fp(v.y11,v.x11),Fp(v.y01,v.x01),!g))):s.arc(0,0,c,b,x,g):s.lineTo(F,N)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Vp/2;return[Np(r)*n,Op(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:kp(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:kp(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:kp(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:kp(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:kp(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:kp(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:kp(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l},af=function(e){var t,n=e.color,r=e.href,i=e.theme;return{root:{fill:n,cursor:r?"pointer":"default",stroke:ar.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:i.semanticColors.focusBorder,strokeWidth:4},insideDonutString:{fontSize:nr.large,fill:i.semanticColors.bodyText,selectors:(t={},t[lr]={fill:"rgb(179, 179, 179)"},t)}}},sf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=u.createRef(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t._getAriaLabel=function(){var e,n=t.props.data.data,r=n.xAxisCalloutData||n.legend,i=n.yAxisCalloutData||n.data||0;return(null===(e=n.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(r?r+", ":"")+i+"."},t}return o(t,e),t.getDerivedStateFromProps=function(e){return lf(e),null},t.prototype.updateChart=function(e){lf(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,i=t.focusedArcId,o=De()(af,{color:this.props.color,href:r,theme:this.props.theme}),a=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,s=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return u.createElement("g",{ref:this.currentRef},!!i&&i===a&&u.createElement("path",{id:a+"focusRing",d:n(this.props.focusData),className:o.focusRing}),u.createElement("path",{id:a,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,a),className:o.root,"data-is-focusable":!0,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:s,onClick:r?this._redirectToUrl.bind(this,r):null===(e=this.props.data)||void 0===e?void 0:e.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),u.createElement("text",{textAnchor:"middle",className:o.insideDonutString,y:5},this.props.valueInsideDonut))},t.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},t.prototype._hoverOn=function(e,t){t.persist(),this.props.activeArc!==this.props.data.data.legend&&""!==this.props.activeArc||this.props.hoverOnCallback(e,t)},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={arc:of()},t}(u.Component);function lf(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var uf=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t,r,i){var o=e&&e.data&&e.data.color;return u.createElement(sf,{key:t,data:e,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:o,onFocusCallback:n._focusCallback,hoverOnCallback:n._hoverCallback,onBlurCallback:n.props.onBlurCallback,hoverLeaveCallback:n.props.hoverLeaveCallback,uniqText:n.props.uniqText,activeArc:n.props.activeArc,href:i,calloutId:n.props.calloutId,valueInsideDonut:n.props.valueInsideDonut,theme:n.props.theme,focusedArcId:n.props.focusedArcId})},n._focusCallback=function(e,t,r){n.props.onFocusCallback(e,t,r)},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=Yp().sort(null).value((function(e){return e.data})).padAngle(0),n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,i=this._pieForFocusRing(r),o=n(r),a="translate("+this.props.width/2+", "+this.props.height/2+")";return u.createElement("g",{transform:a},o.map((function(t,n){return e.arcGenerator(t,n,i[n],e.props.href)})))},t.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},t.defaultProps={pie:Yp().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(u.Component),cf={host:"ms-HoverCard-host"};var df,hf,pf=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,i){var o;if(e._isElement(t)){if("undefined"!=typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,i||!1,!0),function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];pt.apply(this,[null,e].concat(t))}(a,r),o=t.dispatchEvent(a)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==o;){var l=t.__events__,u=l?l[n]:null;if(u)for(var c in u)if(u.hasOwnProperty(c))for(var d=u[c],h=0;!1!==o&&h<d.length;h++){var p=d[h];p.objectCallback&&(o=p.objectCallback.call(p.parent,r))}t=i?t.parent:null}return o},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,i){var o=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,i);else{var l=this._parent,u={target:t,eventName:n,parent:l,callback:r,options:i};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(u),a[n].count++,e._isElement(t)){var c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var i=e[0];i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.cancelBubble=!0}}catch(i){}return n}};u.elementCallback=c,t.addEventListener?t.addEventListener(n,c,i):t.attachEvent&&t.attachEvent("on"+n,c)}else{u.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed)return r.apply(l,e)}}this._eventRecords.push(u)}},e.prototype.off=function(e,t,n,r){for(var i=0;i<this._eventRecords.length;i++){var o=this._eventRecords[i];if(!(e&&e!==o.target||t&&t!==o.eventName||n&&n!==o.callback||"boolean"==typeof r&&r!==o.options)){var a=o.target.__events__,s=a[o.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(o),1)):(s.count-=l.length,delete a[o.eventName][this._id]),s.count||delete a[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(i--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(df||(df={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(hf||(hf={}));var ff,gf={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function mf(e){for(var t,n=[],r=be(e)||document;e!==r.body;){for(var i=0,o=e.parentElement.children;i<o.length;i++){var a=o[i];a!==e&&"true"!==(null===(t=a.getAttribute("aria-hidden"))||void 0===t?void 0:t.toLowerCase())&&n.push(a)}if(!e.parentElement)break;e=e.parentElement}return n.forEach((function(e){e.setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){e.setAttribute("aria-hidden","false")}))}(n),n=[]}}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(ff||(ff={}));var vf=function(e){function t(n){var r=e.call(this,n)||this;return r._root=u.createRef(),r._firstBumper=u.createRef(),r._lastBumper=u.createRef(),r._hasFocus=!1,r._onRootFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r._hasFocus=!0},r._onRootBlur=function(e){r.props.onBlur&&r.props.onBlur(e);var t=e.relatedTarget;null===e.relatedTarget&&(t=r._getDocument().activeElement),et(r._root.current,t)||(r._hasFocus=!1)},r._onFirstBumperFocus=function(){r._onBumperFocus(!0)},r._onLastBumperFocus=function(){r._onBumperFocus(!1)},r._onBumperFocus=function(e){if(!r.props.disabled){var t,n,i=e===r._hasFocus?r._lastBumper.current:r._firstBumper.current;if(r._root.current){var o=e===r._hasFocus?(t=r._root.current,void 0===(n=!1)&&(n=!0),nt(t,i,n,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),rt(e,t,r,!1,!1,n,!1,!0)}(r._root.current,i,!0,!1);o&&(r._isBumper(o)?r.focus():o.focus())}}},r._onFocusCapture=function(e){r.props.onFocusCapture&&r.props.onFocusCapture(e),e.target===e.currentTarget||r._isBumper(e.target)||(r._previouslyFocusedElementInTrapZone=e.target)},r._forceFocusInTrap=function(e){if(!r.props.disabled&&t._focusStack.length&&r===t._focusStack[t._focusStack.length-1]){var n=r._getDocument().activeElement;if(!et(r._root.current,n)){var i=r._getDocument();i&&i.activeElement===i.body?setTimeout((function(){i&&i.activeElement===i.body&&(r.focus(),r._hasFocus=!0)}),0):(r.focus(),r._hasFocus=!0),e.preventDefault(),e.stopPropagation()}}},r._forceClickInTrap=function(e){if(!r.props.disabled&&t._focusStack.length&&r===t._focusStack[t._focusStack.length-1]){var n=e.target;n&&!et(r._root.current,n)&&(r.focus(),r._hasFocus=!0,e.preventDefault(),e.stopPropagation())}},pp(r),r}return o(t,e),t.prototype.componentDidMount=function(){this._bringFocusIntoZone(),this._updateEventHandlers(this.props),!this.props.disabled&&this._root.current&&this.props.enableAriaHiddenSiblings&&(this._unmodalize=mf(this._root.current))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.elementToFocusOnDismiss;t&&this._previouslyFocusedElementOutsideTrapZone!==t&&(this._previouslyFocusedElementOutsideTrapZone=t),this._updateEventHandlers(e)},t.prototype.componentDidUpdate=function(e){var t=void 0===e.forceFocusInsideTrap||e.forceFocusInsideTrap,n=void 0===this.props.forceFocusInsideTrap||this.props.forceFocusInsideTrap,r=void 0!==e.disabled&&e.disabled,i=void 0!==this.props.disabled&&this.props.disabled;!t&&n||r&&!i?(this._bringFocusIntoZone(),!this._unmodalize&&this._root.current&&this.props.enableAriaHiddenSiblings&&(this._unmodalize=mf(this._root.current))):(t&&!n||!r&&i)&&(this._returnFocusToInitiator(),this._unmodalize&&this._unmodalize())},t.prototype.componentWillUnmount=function(){this.props.disabled&&!this.props.forceFocusInsideTrap&&et(this._root.current,this._getDocument().activeElement)||this._returnFocusToInitiator(),this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0),this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),this._unmodalize&&this._unmodalize(),delete this._previouslyFocusedElementInTrapZone,delete this._previouslyFocusedElementOutsideTrapZone},t.prototype.render=function(){var e=this.props,t=e.className,n=e.disabled,r=void 0!==n&&n,i=e.ariaLabelledBy,o=Et(this.props,St),s={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:r?-1:0,"data-is-visible":!0};return u.createElement("div",a({},o,{className:t,ref:this._root,"aria-labelledby":i,onFocusCapture:this._onFocusCapture,onFocus:this._onRootFocus,onBlur:this._onRootBlur}),u.createElement("div",a({},s,{ref:this._firstBumper,onFocus:this._onFirstBumperFocus})),this.props.children,u.createElement("div",a({},s,{ref:this._lastBumper,onFocus:this._onLastBumperFocus})))},t.prototype.focus=function(){var e=this.props,t=e.focusPreviouslyFocusedInnerElement,n=e.firstFocusableSelector,r=e.firstFocusableTarget;if(t&&this._previouslyFocusedElementInTrapZone&&et(this._root.current,this._previouslyFocusedElementInTrapZone))this._focusAsync(this._previouslyFocusedElementInTrapZone);else{var i="string"==typeof n?n:n&&n(),o=null;this._root.current&&("string"==typeof r?o=this._root.current.querySelector(r):r?o=r(this._root.current):i&&(o=this._root.current.querySelector("."+i)),o||(o=rt(this._root.current,this._root.current.firstChild,!1,!1,!1,!0))),o&&this._focusAsync(o)}},t.prototype._focusAsync=function(e){this._isBumper(e)||ct(e)},t.prototype._bringFocusIntoZone=function(){var e=this.props,n=e.elementToFocusOnDismiss,r=e.disabled,i=void 0!==r&&r,o=e.disableFirstFocus,a=void 0!==o&&o;i||(t._focusStack.push(this),this._previouslyFocusedElementOutsideTrapZone=n||this._getDocument().activeElement,a||et(this._root.current,this._previouslyFocusedElementOutsideTrapZone)||this.focus())},t.prototype._returnFocusToInitiator=function(){var e=this,n=this.props.ignoreExternalFocusing;t._focusStack=t._focusStack.filter((function(t){return e!==t}));var r=this._getDocument(),i=r.activeElement;n||!this._previouslyFocusedElementOutsideTrapZone||"function"!=typeof this._previouslyFocusedElementOutsideTrapZone.focus||!et(this._root.current,i)&&i!==r.body||this._focusAsync(this._previouslyFocusedElementOutsideTrapZone)},t.prototype._updateEventHandlers=function(e){var t=e.isClickableOutsideFocusTrap,n=void 0!==t&&t,r=e.forceFocusInsideTrap,i=void 0===r||r;i&&!this._disposeFocusHandler?this._disposeFocusHandler=Lt(window,"focus",this._forceFocusInTrap,!0):!i&&this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),n||this._disposeClickHandler?n&&this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0):this._disposeClickHandler=Lt(window,"click",this._forceClickInTrap,!0)},t.prototype._isBumper=function(e){return e===this._firstBumper.current||e===this._lastBumper.current},t.prototype._getDocument=function(){return be(this._root.current)},t._focusStack=[],t}(u.Component),_f=function(e){return u.createElement(Hi,a({},e),u.createElement(vf,a({disabled:e.hidden},e.focusTrapProps),e.children))},yf=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,i=void 0===r?Ue:r,o=e.directionalHintFixed,s=e.targetElement,l=e.firstFocus,c=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,m=a(a(a({},Et(e,St)),{className:h,target:s,isBeakVisible:!1,directionalHint:i,directionalHintFixed:o,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:n}),g);return u.createElement(u.Fragment,null,c?u.createElement(_f,a({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),f):u.createElement(Hi,a({},m),f))},xf=De(),bf=A(function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=u.createRef(),n._onKeyDown=function(e){e.which===ce&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return u.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),u.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},u.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new dt(n),pp(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return o(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,i=e.theme,o=e.mode,s=e.className,l=this.state,c=l.needsScroll,d=l.firstFrameRendered,h=n+r;this._classNames=xf(t,{theme:i,compactCardHeight:n,className:s,expandedCardHeight:r,needsScroll:c,expandedCardFirstFrameRendered:o===ff.expanded&&d});var p=u.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return u.createElement(yf,a({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(u.Component),(function(e){var t,n=e.theme,r=e.needsScroll,i=e.expandedCardFirstFrameRendered,o=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,u=Er(gf,n);return{root:[u.root,{width:320,pointerEvents:"none",selectors:(t={},t[sr]={border:"1px solid WindowText"},t)},s],compactCard:[u.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[u.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:l.neutralLighter}}},i&&{height:a}],expandedCardScroll:[u.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Cf={root:"ms-PlainCard-root"};var Sf,Ef=De(),Af=A(function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===ce&&n.props.onLeave&&n.props.onLeave(e)},pp(n),n}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=Ef(t,{theme:n,className:r});var i=u.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return u.createElement(yf,a({},this.props,{content:i,className:this._classNames.root}))},t}(u.Component),(function(e){var t,n=e.theme,r=e.className;return{root:[Er(Cf,n).root,{pointerEvents:"auto",selectors:(t={},t[sr]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),Lf=De(),wf=A(function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=u.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:ff.compact,openMode:"keydown"===e.type?df.hotKey:df.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==ce)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==ce||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:ff.compact,openMode:df.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:ff.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,i=e.eventListenerTarget,o=i?n._getTargetElement(i):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;o&&(n._events.on(o,"mouseenter",n._cardOpen),n._events.on(o,"mouseleave",a),t?n._events.on(o,"keydown",n._cardOpen):(n._events.on(o,"focus",n._cardOpen),n._events.on(o,"blur",a)),r?n._events.on(o,"click",n._instantOpenAsExpanded):(n._events.on(o,"mousedown",a),n._events.on(o,"keydown",a)))},pp(n),n._async=new dt(n),n._events=new pf(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:ff.compact,openMode:df.hover},n}return o(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:ff.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:ff.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,i=e.setAriaDescribedBy,o=void 0===i||i,s=e.styles,l=e.theme,c=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,g=this.state,m=g.isHoverCardVisible,v=g.mode,_=g.openMode,y=r||Fe("hoverCard");this._classNames=Lf(s,{theme:l,className:c});var x=a(a({},Et(this.props,St)),{id:y,trapFocus:!!p,firstFocus:f||_===df.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),b=a(a(a({},t),x),{mode:v}),C=a(a({},h),x);return u.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":o&&m?y:void 0,"data-is-focusable":!this.props.target},n,m&&(d===hf.expanding?u.createElement(bf,a({},b)):u.createElement(Af,a({},C))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return be().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:xe,type:hf.expanding},t}(u.Component),(function(e){var t=e.className,n=e.theme;return{host:[Er(cf,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Sf||(Sf={}));var Df=function(e){var t;void 0===e&&(t={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&t.hasOwnProperty(e.cacheKey))return t[e.cacheKey]},addMeasurementToCache:function(e,n){e.cacheKey&&(t[e.cacheKey]=n)}});var n,r=e;function i(e,t){var n=r.getCachedMeasurement(e);if(void 0!==n)return n;var i=t();return r.addMeasurementToCache(e,i),i}function o(e,t,o){for(var a=e,s=i(e,o);s>n;){var l=t(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,t,s,l){if(void 0!==l||void 0!==t.dataToMeasure){if(l){if(n&&t.renderedData&&!t.dataToMeasure)return a(a({},t),function(e,t,r,i){var o;return o=e>n?i?{resizeDirection:"grow",dataToMeasure:i(r)}:{resizeDirection:"shrink",dataToMeasure:t}:{resizeDirection:"shrink",dataToMeasure:r},n=e,a(a({},o),{measureContainer:!1})}(l,e.data,t.renderedData,e.onGrowData));n=l}var u=a(a({},t),{measureContainer:!1});return t.dataToMeasure&&(u="grow"===t.resizeDirection&&e.onGrowData?a(a({},u),function(e,t,s,l){for(var u=e,c=i(e,s);c<n;){var d=t(u);if(void 0===d)return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=r.getCachedMeasurement(d)))return{dataToMeasure:d};u=d}return a({resizeDirection:"shrink"},o(u,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):a(a({},u),o(t.dataToMeasure,e.onReduceData,s))),u}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:a({},e),resizeDirection:"grow",measureContainer:!0}}}},kf=u.createContext({isMeasured:!1}),Tf={position:"fixed",visibility:"hidden"},Mf={position:"relative"},Pf=function(e){function t(t){var n=e.call(this,t)||this;return n._nextResizeGroupStateProvider=Df(),n._root=u.createRef(),n._initialHiddenDiv=u.createRef(),n._updateHiddenDiv=u.createRef(),n._hasRenderedContent=!1,n.state=n._nextResizeGroupStateProvider.getInitialResizeGroupState(n.props.data),pp(n),n._async=new dt(n),n._events=new pf(n),n}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.onRenderData,r=this.state,i=r.dataToMeasure,o=r.renderedData,s=Et(this.props,St,["data"]),l=this._nextResizeGroupStateProvider.shouldRenderDataForMeasurement(i),c=!this._hasRenderedContent&&l;return u.createElement("div",a({},s,{className:t,ref:this._root}),u.createElement("div",{style:Mf},l&&!c&&u.createElement("div",{style:Tf,ref:this._updateHiddenDiv},u.createElement(kf.Provider,{value:{isMeasured:!0}},n(i))),u.createElement("div",{ref:this._initialHiddenDiv,style:c?Tf:void 0,"data-automation-id":"visibleContent"},c?n(i):o&&n(o))))},t.prototype.componentDidMount=function(){this._afterComponentRendered(this.props.direction),this._events.on(window,"resize",this._async.debounce(this._onResize,16,{leading:!0}))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.setState({dataToMeasure:a({},e.data),resizeDirection:"grow",measureContainer:!0})},t.prototype.componentDidUpdate=function(e){this.state.renderedData&&(this._hasRenderedContent=!0,this.props.dataDidRender&&this.props.dataDidRender(this.state.renderedData)),this._afterComponentRendered(this.props.direction)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.remeasure=function(){this._root.current&&this.setState({measureContainer:!0})},t.prototype._afterComponentRendered=function(e){var t=this;this._async.requestAnimationFrame((function(){var n=void 0;if(t.state.measureContainer&&t._root.current){var r=t._root.current.getBoundingClientRect();n=e&&e===Sf.vertical?r.height:r.width}var i=t._nextResizeGroupStateProvider.getNextState(t.props,t.state,(function(){var n=t._hasRenderedContent?t._updateHiddenDiv:t._initialHiddenDiv;return n.current?e&&e===Sf.vertical?n.current.scrollHeight:n.current.scrollWidth:0}),n);i&&t.setState(i)}),this._root.current)},t.prototype._onResize=function(){this._root.current&&this.setState({measureContainer:!0})},t}(u.Component);var Ff;!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(Ff||(Ff={}));var Nf,Hf=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=t?Ff.PERSISTED_KEYTIP_ADDED:Ff.KEYTIP_ADDED;pf.raise(this,i,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),i=this.keytips[t];i&&(r.keytip.visible=i.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||pf.raise(this,Ff.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?Ff.PERSISTED_KEYTIP_REMOVED:Ff.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||pf.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){pf.raise(this,Ff.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){pf.raise(this,Ff.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=l(e.keySequences);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return a(a({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){pf.raise(this,Ff.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=Fe()),{keytip:a({},e),uniqueID:t}},e._instance=new e,e}(),If=De(),Of=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=u.createRef(),n._persistedKeytips={},n._keytipManager=Hf.getInstance(),n._divContainer=u.createRef(),n._onRenderItems=function(e){return e.map((function(e,t){return u.createElement("div",{key:e.key,className:n._classNames.item},n.props.onRenderItem(e))}))},n._onRenderOverflowButtonWrapper=function(e){var t={className:n._classNames.overflowButton},r=n.props.keytipSequences,i=[];return r?e.forEach((function(e){var t=e.keytipProps;if(t){var o={content:t.content,keySequences:t.keySequences,disabled:t.disabled||!(!e.disabled&&!e.isDisabled),hasDynamicChildren:t.hasDynamicChildren,hasMenu:t.hasMenu};t.hasDynamicChildren||n._getSubMenuForItem(e)?o.onExecute=n._keytipManager.menuExecute.bind(n._keytipManager,r,e.keytipProps.keySequences):o.onExecute=t.onExecute,n._persistedKeytips[o.content]=o;var s=a(a({},e),{keytipProps:a(a({},t),{overflowSetSequence:r})});i.push(s)}else i.push(e)})):i=e,u.createElement("div",a({},t),n.props.onRenderOverflowButton(i))},pp(n),n}return o(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.items,i=n.overflowItems,o=n.className,s=n.focusZoneProps,l=n.styles,c=n.vertical,d=n.doNotContainWithinFocusZone,h=n.role,p=n.overflowSide,f=void 0===p?"end":p;this._classNames=If(l,{className:o,vertical:c}),d?(e="div",t=a(a({},Et(this.props,St)),{ref:this._divContainer})):(e=Lp,t=a(a(a({},Et(this.props,St)),s),{componentRef:this._focusZone,direction:c?_p.vertical:_p.horizontal}));var g=i&&i.length>0;return u.createElement(e,a({role:h||"group","aria-orientation":"menubar"===h?!0===c?"vertical":"horizontal":void 0},t,{className:this._classNames.root}),"start"===f&&g&&this._onRenderOverflowButtonWrapper(i),r&&this._onRenderItems(r),"end"===f&&g&&this._onRenderOverflowButtonWrapper(i))},t.prototype.focus=function(e){var t=!1;return this.props.doNotContainWithinFocusZone?this._divContainer.current&&(t=tt(this._divContainer.current)):this._focusZone.current&&(t=this._focusZone.current.focus(e)),t},t.prototype.focusElement=function(e){var t=!1;return!!e&&(this.props.doNotContainWithinFocusZone?this._divContainer.current&&et(this._divContainer.current,e)&&(e.focus(),t=document.activeElement===e):this._focusZone.current&&(t=this._focusZone.current.focusElement(e)),t)},t.prototype.componentDidMount=function(){this._registerPersistedKeytips()},t.prototype.componentWillUnmount=function(){this._unregisterPersistedKeytips()},t.prototype.UNSAFE_componentWillUpdate=function(){this._unregisterPersistedKeytips()},t.prototype.componentDidUpdate=function(){this._registerPersistedKeytips()},t.prototype._registerPersistedKeytips=function(){var e=this;Object.keys(this._persistedKeytips).forEach((function(t){var n=e._persistedKeytips[t],r=e._keytipManager.register(n,!0);e._persistedKeytips[r]=n,delete e._persistedKeytips[t]}))},t.prototype._unregisterPersistedKeytips=function(){var e=this;Object.keys(this._persistedKeytips).forEach((function(t){e._keytipManager.unregister(e._persistedKeytips[t],t,!0)})),this._persistedKeytips={}},t.prototype._getSubMenuForItem=function(e){return this.props.itemSubMenuProvider?this.props.itemSubMenuProvider(e):e.subMenuProps?e.subMenuProps.items:void 0},t}(u.Component),Bf={flexShrink:0,display:"inherit"},Vf=A(Of,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",Bf],overflowButton:["ms-OverflowSet-overflowButton",Bf]}}),void 0,{scope:"OverflowSet"}),Rf=((Nf={})[""+tp[tp.circle]]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Nf[""+tp[tp.square]]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Nf[""+tp[tp.triangle]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nf[""+tp[tp.pyramid]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nf[""+tp[tp.diamond]]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Nf[""+tp[tp.hexagon]]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Nf[""+tp[tp.pentagon]]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Nf[""+tp[tp.octagon]]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Nf[""+np[np.dottedLine]]="M0 6 H3 M5 6 H8 M10 6 H13",Nf),Wf=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,i=e.classNameForNonSvg;return-1===Object.keys(Rf).indexOf(r)?u.createElement("div",{className:i}):u.createElement("svg",a({width:14,height:14,viewBox:"-1 -1 14 14"},t,{transform:"rotate("+(r===tp[tp.diamond]?45:r===tp[tp.triangle]?180:0)+", 0, 0)"}),u.createElement("path",a({d:Rf[r]},n)))},Uf=De(),zf=A(function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderData=function(e){var t,r=n.props,i=r.overflowProps,o=r.allowFocusOnLegends,s=void 0===o||o,l={root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return u.createElement(Lp,a({},s&&{role:"listbox","aria-label":"Legends"}),u.createElement(Vf,a({items:e.primary,overflowItems:e.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems},i,{styles:a(a({},l),null===(t=i)||void 0===t?void 0:t.styles)})))},n._onReduceData=function(e){if(0!==e.primary.length){var t=l(e.primary.slice(-1),e.overflow);return{primary:e.primary.slice(0,-1),overflow:t}}},n._onGrowData=function(e){if(0!==e.overflow.length){var t=e.overflow.slice(1);return{primary:l(e.primary,e.overflow.slice(0,1)),overflow:t}}},n._canSelectMultipleLegends=function(e){var t,r,i,o=(t=n.state.selectedLegends,r=e.title,-1===(i=t.indexOf(r))?l(t,[r]):t.slice(0,i).concat(t.slice(i+1)));n.setState({selectedLegends:o.length===n.props.legends.length?[]:o,selectedState:0!==o.length&&o.length!==n.props.legends.length,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none",selectedLegend:"none",hoverState:!1})},n._canSelectOnlySingleLegend=function(e){!0===n.state.selectedState&&n.state.selectedLegend===e.title?n.setState({selectedLegend:"none",selectedState:!1,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none"}):n.setState({hoverState:!0,selectedState:!0,selectedLegend:e.title,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none"})},n._onClick=function(e){if(e.action){var t=n.props.canSelectMultipleLegends;void 0!==t&&t?n._canSelectMultipleLegends(e):n._canSelectOnlySingleLegend(e),e.action()}},n._onRenderCompactCard=function(e){var t=n.props,r=t.allowFocusOnLegends,i=void 0===r||r,o=t.className,s=t.styles,l=t.theme,c=[],d=Uf(s,{theme:l,className:o});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);c.push(r)})),u.createElement(Lp,a({},i&&{role:"listbox"},{direction:_p.vertical},n.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),c)},n._renderOverflowItems=function(e){var t=n.props.allowFocusOnLegends,r=void 0===t||t,i=[];e.forEach((function(e,t){i.push({key:t.toString(),name:e.title,onClick:e.action})}));var o={renderData:e},s=n.props,l=s.theme,c=s.className,d=s.styles,h=s.overflowText,p=Uf(d,{theme:l,className:c}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:o},g=h||"more";return u.createElement(wf,{type:hf.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){var t=n.props.canSelectMultipleLegends,r=void 0!==t&&t,i=Ie(e,(function(e){return e.title===n.state.selecetedLegendInHoverCard||e.title===n.state.selectedLegend}));n.setState({isHoverCardVisible:!1,selecetedLegendInHoverCard:"none",selectedLegends:[]},(function(){i&&n.setState({selectedLegend:"none",selectedState:!1},(function(){i.action&&!r&&i.action(),n.props.onLegendHoverCardLeave&&r&&n.props.onLegendHoverCardLeave(),n.setState({hoverState:!1},(function(){i.onMouseOutAction&&i.onMouseOutAction(!0)}))}))}))},setInitialFocus:!0,trapFocus:!0,onCardVisible:n._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:n._hoverCardRef},u.createElement("div",a({className:p.overflowIndicationTextStyle,ref:function(e){return n._hoverCardRef=e}},r&&{role:"button","aria-expanded":n.state.isHoverCardVisible,"aria-label":i.length+" "+g},{"data-is-focusable":r}),i.length," ",g))},n._hoverCardVisible=function(){n.setState({isHoverCardVisible:!0})},n._onHoverOverLegend=function(e){n.state.selectedState||e.hoverAction&&(n.setState({hoverState:!0,selectedLegend:e.title}),e.hoverAction())},n._onLeave=function(e){n.state.selectedState||e.onMouseOutAction&&(n.setState({hoverState:!1,selectedLegend:"none"}),e.onMouseOutAction())},n._renderButton=function(e,t,r){var i=n.props.allowFocusOnLegends,o=void 0===i||i,s={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},l=n._getColor(s.title,s.color),c=n.props,d=c.theme,h=c.className,p=c.styles,f=Uf(p,{theme:d,className:h,colorOnSelectedState:l,borderColor:s.color,overflow:r,stripePattern:s.stripePattern,isLineLegendInBarChart:s.isLineLegendInBarChart,opacity:s.opacity}),g=function(){n._onHoverOverLegend(s)},m=function(){n._onLeave(s)},v=n._getShape(f,s,l);return u.createElement("button",a({},o&&{"aria-selected":n.state.selectedLegend===s.title,role:"option","aria-label":s.title+" selected","aria-setsize":e["aria-setsize"],"aria-posinset":e["aria-posinset"]},e.nativeButtonProps&&a({},e.nativeButtonProps),{key:t,className:f.legend,onClick:function(){n._onClick(s)},onMouseOver:g,onMouseOut:m,onFocus:g,onBlur:m,"data-is-focusable":o}),v,u.createElement("div",{className:f.text},s.title))},n.state={selectedLegend:"none",selectedState:!1,hoverState:!1,isHoverCardVisible:!1,selecetedLegendInHoverCard:"none",selectedLegends:[]},n}return o(t,e),t.prototype.componentDidUpdate=function(e){e.selectedLegend!==this.props.selectedLegend&&this.setState({selectedLegend:this.props.selectedLegend})},t.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Uf(r,{theme:t,className:n});var i=this._generateData();return u.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):u.createElement(Pf,{data:i,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},t.prototype._generateData=function(){var e=this,t=this.props.allowFocusOnLegends,n=void 0===t||t;return{primary:this.props.legends.map((function(t,r){return a(a({},n&&{nativeButtonProps:Et(t,Ct,["title"]),"aria-setsize":e.props.legends.length,"aria-posinset":r+1}),{title:t.title,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,color:t.color,shape:t.shape,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity,key:r})})),overflow:[]}},t.prototype._getShape=function(e,t,n){var r={className:e.shape},i={fill:n,strokeWidth:2,stroke:t.color};return u.createElement(Wf,{svgProps:r,pathProps:i,shape:t.shape,classNameForNonSvg:e.rect})},t.prototype._getColor=function(e,t){var n=this.props,r=n.theme,i=n.canSelectMultipleLegends,o=void 0!==i&&i,a=r.palette;return this.state.hoverState&&this.state.selectedLegend===e?t:this.state.hoverState&&"none"!==this.state.selectedLegend&&this.state.selectedLegend!==e?a.white:o&&this.state.selectedState&&this.state.selectedLegends.indexOf(e)>-1||!this.state.selectedState&&"none"===this.state.selectedLegend||this.state.selectedLegend===e||this.state.selectedLegends.length<=0?t:a.white},t}(u.Component),(function(e){var t,n,r,i,o,s=e.className,l=e.theme,u=e.isLineLegendInBarChart,c=void 0!==u&&u,d=l,h=d.palette,p=d.fonts,f={inset:void 0,position:void 0,highContrastStyle:{outlineColor:l.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},s],legend:[dr(l,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(t={},t[sr]={content:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")",opacity:e.colorOnSelectedState===h.white?"0.6":""},t),width:"12px",height:c?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null===(r=l)||void 0===r?void 0:r.semanticColors.buttonBorder,backgroundImage:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, "+e.colorOnSelectedState+" 1px, "+e.colorOnSelectedState+" 4px)":""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===h.white?"0.6":e.opacity?e.opacity:"",selectors:(n={},n[sr]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",content:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")"},n)},text:a(a({},p.small),{lineHeight:"16px",color:null===(i=l)||void 0===i?void 0:i.semanticColors.bodyText,opacity:e.colorOnSelectedState===h.white?"0.6":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:h.black},overflowIndicationTextStyle:[dr(l,f),a(a({cursor:"pointer",color:null===(o=l)||void 0===o?void 0:o.semanticColors.bodyText},p.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[dr(l,f)]}}}})),Yf=De(),jf=A(function(e){function t(t){var n=e.call(this,t)||this;return n._closeCallout=function(){n.setState({showHover:!1})},n._focusCallback=function(e,t,r){n._currentHoverElement=r,n.setState({showHover:!0,value:e.data.toString(),legend:e.legend,activeLegend:e.legend,color:e.color,selectedLegend:e.legend,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,focusedArcId:t,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._hoverCallback=function(e,t){n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n._currentHoverElement=t,n.setState({showHover:!0,value:e.data.toString(),selectedLegend:e.legend,legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,activeLegend:e.legend,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onBlur=function(){n.setState({showHover:!1,focusedArcId:"",activeLegend:"",selectedLegend:"none"})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",isLegendSelected:!1,xCalloutValue:"",yCalloutValue:"",selectedLegend:"none",focusedArcId:""},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=Fe("callout"),n._uniqText=Fe("_Pie_"),n}return o(t,e),t.getDerivedStateFromProps=function(e,t){if(e.height&&e.height!==t._height&&e.width!==t._width){var n=e.height/5;return{_width:e.width,_height:e.height-n}}return null},t.prototype.componentDidMount=function(){var e=this._rootElem&&this._rootElem.offsetHeight/5;this.setState({_width:this._rootElem&&this._rootElem.offsetWidth,_height:this._rootElem&&this._rootElem.offsetHeight-e})},t.prototype.render=function(){var e,t,n=this,r=this.props,i=r.data,o=r.hideLegend,s=void 0!==o&&o,l=this.props.theme.palette;this._classNames=Yf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var c=this._createLegends(i,l),d=Math.min(this.state._width,this.state._height)/2,h=i&&(null===(e=i.chartData)||void 0===e?void 0:e.filter((function(e){return e.data>0}))),p=this._valueInsideDonut(this.props.valueInsideDonut,h);return u.createElement("div",{className:this._classNames.root,ref:function(e){return n._rootElem=e},onMouseLeave:this._handleChartMouseLeave},u.createElement(Lp,{direction:_p.horizontal,isCircularNavigation:!0},u.createElement("div",null,u.createElement("svg",{className:this._classNames.chart,"aria-label":null===(t=i)||void 0===t?void 0:t.chartTitle,ref:function(e){return n._setViewBox(e)}},u.createElement(uf,{width:this.state._width,height:this.state._height,outerRadius:d,innerRadius:this.props.innerRadius,data:h,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this.state.activeLegend,focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(p),theme:this.props.theme})))),u.createElement(Hi,a({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:Ye,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,op(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(cp,{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})),!s&&u.createElement("div",{className:this._classNames.legendContainer},c))},t.prototype._setViewBox=function(e){var t,n;if(null!==e){var r="0 0 "+(e.parentElement?e.parentElement.clientWidth:this.state._width)+" "+(e.parentElement&&(null===(t=e.parentElement)||void 0===t?void 0:t.offsetHeight)>this.state._height?null===(n=e.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height);e.setAttribute("viewBox",r)}},t.prototype._createLegends=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=e&&e.chartData.map((function(e,t){var i=e.color?e.color:r[Math.floor(4*Math.random()+1)];return{title:e.legend,color:i,action:function(){n.state.isLegendSelected?n.state.activeLegend!==e.legend||""===n.state.activeLegend?n.setState({activeLegend:e.legend,isLegendSelected:!0}):n.setState({activeLegend:e.legend}):n.setState({activeLegend:e.legend,isLegendSelected:!0})},hoverAction:function(){n.state.activeLegend!==e.legend||n.state.activeLegend,n.setState({activeLegend:e.legend})},onMouseOutAction:function(){n.setState({showHover:!1,activeLegend:""})}}}));return u.createElement(zf,a({legends:i,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText,selectedLegend:this.state.selectedLegend},this.props.legendProps))},t.prototype._hoverLeave=function(){this.setState({activeLegend:"",selectedLegend:"none",focusedArcId:""})},t.prototype._valueInsideDonut=function(e,t){var n=this;if(void 0===e||""===this.state.activeLegend||this.state.showHover)return e;var r=e;return t.map((function(e,t){e.legend===n.state.activeLegend&&(r=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),r},t.prototype._toLocaleString=function(e){var t,n=ap(e,this.props.culture);return n?null===(t=n)||void 0===t?void 0:t.toString():e},t.defaultProps={innerRadius:0},t}(u.Component),(function(e){var t=e.className,n=e.width,r=e.height;return{root:[e.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},t],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center"},legendContainer:{paddingTop:"16px",width:n+"px"}}})),qf=De(),Xf=function(e){function t(t){var n,r,i,o,s,l,c,d,h,p,f,g,m=e.call(this,t)||this;return m.minLegendContainerHeight=32,m._isRtl=Ae(),m._multiValueCallout=function(e){var t=m._yValueHoverSubCountsExists(e.YValueHover);return u.createElement("div",{className:m._classNames.calloutContentRoot},u.createElement("div",{className:m._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},u.createElement("div",a({className:m._classNames.calloutContentX},op(e.xAxisCalloutAccessibilityData,"text",!1)),ap(e.hoverXValue,m.props.culture))),u.createElement("div",{className:m._classNames.calloutInfoContainer,style:t?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,n,r){var i=n+1===r.length,o=e.shouldDrawBorderBottom,s=void 0!==o&&o;return u.createElement("div",a({},op(e.callOutAccessibilityData,"text",!1),{key:"callout-content-"+n,style:a(t?{display:"inline-block"}:{},s&&{borderBottom:"1px solid "+m.props.theme.semanticColors.menuDivider,paddingBottom:"10px"})}),m._getCalloutContent(e,n,t,i))})),!!e.descriptionMessage&&u.createElement("div",{className:m._classNames.descriptionMessage},e.descriptionMessage)))},m._getData=function(e,t){m.props.getGraphData&&m.props.getGraphData(e,t,m.state.containerHeight-m.state._removalValueForTextTuncate,m.state.containerWidth,m.xAxisElement)},m.state={containerHeight:0,containerWidth:0,_width:m.props.width||600,_height:m.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0},m.idForGraph=Fe("chart_"),m.margins={top:(r=null===(n=m.props.margins)||void 0===n?void 0:n.top,null!=r?r:20),bottom:(o=null===(i=m.props.margins)||void 0===i?void 0:i.bottom,null!=o?o:35),right:m._isRtl?(l=null===(s=m.props.margins)||void 0===s?void 0:s.left,null!=l?l:40):(d=null===(c=m.props.margins)||void 0===c?void 0:c.right,null!=d?d:20),left:m._isRtl?(p=null===(h=m.props.margins)||void 0===h?void 0:h.right,null!=p?p:20):(g=null===(f=m.props.margins)||void 0===f?void 0:f.left,null!=g?g:40)},m}return o(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer()},t.prototype.render=function(){var e=this,t=this.props,n=t.calloutProps,r=t.points,i=t.chartType,o=t.chartHoverProps,s=t.svgFocusZoneProps,l=t.svgProps,c=t.culture;this.props.parentRef&&this._fitParentContainer(),this.props.getmargins&&this.props.getmargins(this.margins);var d,h,p={domainNRangeValues:Jh(r,this.margins,this.state.containerWidth,i,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues),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},f={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:ep(r,i),yAxisPadding:this.props.yAxisPadding};switch(this.props.xAxisType){case jh.NumericAxis:d=Xh(p,c);break;case jh.DateAxis:d=Kh(p,this.props.tickParams);break;case jh.StringAxis:d=function(e,t,n,r){var i=e.domainNRangeValues,o=e.xAxisCount,a=void 0===o?6:o,s=e.xAxistickSize,l=void 0===s?6:s,u=e.tickPadding,c=void 0===u?10:u,d=e.xAxisPadding,h=void 0===d?.1:d,p=gu().domain(n).range([i.rStartValue,i.rEndValue]).padding(h),f=ji(p).tickSize(l).tickPadding(c).ticks(a).tickFormat((function(e,t){return ap(n[t],r)}));return e.xAxisElement&&wc(e.xAxisElement).call(f).selectAll("text").attr("aria-hidden","true"),p}(p,this.props.tickParams,this.props.datasetForXAxisDomain,c);break;default:d=Xh(p,c)}if(this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var g={node:this.xAxisElement,xAxis:d,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},m=d&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,i=e.showXAxisLablesTooltip;if(null!==t){var o=wc(t).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var e=wc(this),t=e.text(),n=e.text().slice(0,r)+"...",l=e.text().length,u=e.text().split(/\s+/).reverse();s.push(u.length);var c="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(i&&l>r)g=e.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(i&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);else{for(;c=u.pop();)d.push(c),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[c],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(c));var m=Math.max.apply(Math,s),v=12;o.selectAll("text").each((function(){var e=document.getElementById("WordBreakId"),t=e&&e.getBoundingClientRect(),n=t&&t.height;n>v&&(v=n)}));var _=4;m<=2?_=1:m>2&&m<=6?_=2:m>6&&m<=9&&(_=3),a=(m-_)*v}})),a>0?a:0}}(g);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==m&&this.setState({_removalValueForTextTuncate:m,isRemoveValCalculated:!1})}var v={yAxisDomainValues:[]};h=this.props.yAxisType&&this.props.yAxisType===qh.StringAxis?function(e,t,n){var r=e.containerHeight,i=e.tickPadding,o=void 0===i?12:i,a=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,u=e.yAxisPadding,c=void 0===u?0:u,d=gu().domain(t).range([r-a.bottom,a.top]).padding(c),h=(n?Yi(d):qi(d)).tickPadding(o).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&wc(l).call(h).selectAll("text"),d}(f,this.props.stringDatasetForYAxisDomain,this._isRtl):Zh(f,this._isRtl,v),this.props.getAxisData&&this.props.getAxisData(v),this._getData(d,h),this._classNames=qf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var _,y={width:this.state.containerWidth,height:this.state.containerHeight},x=this.props.children(a(a({},this.state),{xScale:d,yScale:h}));return _=this.props.focusZoneDirection===_p.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:_p.horizontal,u.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this.props.onChartMouseLeave},u.createElement(Lp,a({direction:_},s),u.createElement("svg",a({width:y.width,height:y.height,"aria-label":this.props.chartTitle,style:{display:"block"}},l),u.createElement("g",{ref:function(t){e.xAxisElement=t},id:"xAxisGElement"+this.idForGraph,transform:"translate(0, "+(y.height-this.margins.bottom-this.state._removalValueForTextTuncate)+")",className:this._classNames.xAxis}),u.createElement("g",{ref:function(t){e.yAxisElement=t},id:"yAxisGElement"+this.idForGraph,transform:"translate("+(this._isRtl?y.width-this.margins.right:this.margins.left)+", 0)",className:this._classNames.yAxis}),x)),!this.props.hideLegend&&u.createElement("div",{ref:function(t){return e.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),!this.props.hideTooltip&&n.isCalloutVisible&&u.createElement(Hi,a({},n),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(n),!this.props.customizedCallout&&!this.props.isCalloutForStack&&u.createElement(cp,a({XValue:n.XValue,Legend:n.legend,YValue:n.YValue,color:n.color,culture:this.props.culture},o))))},t.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},t.prototype._getCalloutContent=function(e,t,n,r){var i=r?{}:{marginRight:"16px"},o=void 0!==e.index&&-1!==e.index,a=qf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:e.color,toDrawShape:o}),s=this.props.culture,l=ap(e.y,s);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var c=e.yAxisCalloutData;return u.createElement("div",{style:i},u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",l,")"),Object.keys(c).map((function(e){return u.createElement("div",{key:e,className:a.calloutBlockContainer},u.createElement("div",{className:a.calloutlegendText}," ",ap(e,s)),u.createElement("div",{className:a.calloutContentY},ap(c[e],s)))})))}return u.createElement("div",{style:n?i:{}},n&&u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",l,")"),u.createElement("div",{id:t+"_"+e.y,className:a.calloutBlockContainer},o&&u.createElement(Wf,{svgProps:{className:a.shapeStyles},pathProps:{fill:e.color},shape:tp[e.index%Object.keys(ip).length]}),u.createElement("div",null,u.createElement("div",{className:a.calloutlegendText}," ",e.legend),u.createElement("div",{className:a.calloutContentY},ap(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,s)))))},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t;if(e.props.hideLegend)t=0;else{var i=getComputedStyle(e.legendContainer);t=(e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(i.marginTop||"0")+parseFloat(i.marginBottom||"0")}var o=e.props.parentRef?e.props.parentRef:e.chartContainer,a=o.getBoundingClientRect().width,s=o.getBoundingClientRect().height>t?o.getBoundingClientRect().height:350;(n!==a||r!==s-t)&&e.setState({containerWidth:a,containerHeight:s-t})}))},t}(u.Component),Kf=function(){var e,t,n=p();return!!(null===(t=null===(e=n)||void 0===e?void 0:e.navigator)||void 0===t?void 0:t.userAgent)&&n.navigator.userAgent.indexOf("rv:11.0")>-1}(),Zf=A(Xf,(function(e){var t,n,r,i,o,s,l,u,c=e.className,d=e.theme,h=e.isRtl,p=e.shouldHighlight,f=e.href,g=e.lineColor,m=void 0===g?"transparent":g,v=e.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(t={},t[lr]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[lr]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[lr]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(i={},i[lr]={opacity:.1,stroke:"rgb(179, 179, 179)"},i)},g:[h&&!Kf&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[a(a({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(o={},o[sr]={forcedColorAdjust:"none"},o),borderLeft:"4px solid "+m,paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:a(a({},_.small),{lineHeight:"16px",selectors:(s={},s[lr]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[a(a({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[lr]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(u={},u[lr]={color:"rgb(255, 255, 255)"},u),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+d.semanticColors.menuDivider}]}})),Gf=0,$f=1,Qf=2,Jf=3;var eg=xr((function(e){return xr((function(t){var n=xr((function(e){return function(n){return t(n,e)}}));return function(r,i){return e(r,i?n(i):t)}}))}));function tg(e,t){return eg(e)(t)}var ng={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},rg=function(e){return e.getBoundingClientRect()},ig=rg,og=rg,ag=function(e){function t(t){var n=e.call(this,t)||this;return n._root=u.createRef(),n._surface=u.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return u.createElement("div",a({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return u.createElement("div",a({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r=n.props,i=r.onRenderCell,o=r.role,l=e.page,c=l.items,d=void 0===c?[]:c,h=l.startIndex,p=s(e,["page"]),f=void 0===o?"listitem":"presentation",g=[],m=0;m<d.length;m++){var v=h+m,_=d[m],y=n.props.getKey?n.props.getKey(_,v):_&&_.key;null==y&&(y=v),g.push(u.createElement("div",{role:f,className:"ms-List-cell",key:y,"data-list-index":v,"data-automationid":"ListCell"},i&&i(_,v,n.props.ignoreScrollingState?void 0:n.state.isScrolling)))}return u.createElement("div",a({},p),g)},pp(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps},n._async=new dt(n),n._events=new pf(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return o(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!0,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=Gf);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var u=this._getPageSpecification(l,o),c=u.height;if(s=u.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=og(this._scrollElement),h={top:this._scrollElement.scrollTop,bottom:this._scrollElement.scrollTop+d.height},p=e-l,f=0;f<p;++f)a+=t(l+f);var g=a+t(e);switch(n){case $f:return void(this._scrollElement.scrollTop=a);case Qf:return void(this._scrollElement.scrollTop=g-d.height);case Jf:return void(this._scrollElement.scrollTop=(a+g-d.height)/2)}if(a>=h.top&&g<=h.bottom)return;a<h.top||g>h.bottom&&(a=g-d.height)}return void(this._scrollElement.scrollTop=a)}a+=c}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var i=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/i)}for(var o=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){i=e(a);if(r.top+o<=this._scrollTop&&this._scrollTop<r.top+o+i)return a;o+=i}}}return 0},t.prototype.componentDidMount=function(){this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,this._scrollElement=Tt(this._root.current),this._events.on(window,"resize",this._onAsyncResize),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._onAsyncScroll))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;if(this.state.pagesVersion!==t.pagesVersion){if(n.getPageHeight)this._onAsyncIdle();else this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle();n.onPagesUpdated&&n.onPagesUpdated(r.pages)}},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,i=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.items===this.props.items&&n.length===r.length)for(var o=0;o<n.length;o++){var a=n[o],s=r[o];if(a.key!==s.key||a.itemCount!==s.itemCount){i=!0;break}}else i=!0;return i},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,i=e.onRenderSurface,o=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,u=[],c=Et(this.props,St),d=0,h=l;d<h.length;d++){var p=h[d];u.push(this._renderPage(p))}var f=i?tg(i,this._onRenderSurface):this._onRenderSurface;return(o?tg(o,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:u,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:a(a({},c),{className:At("ms-List",t),role:u.length>0?r:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var i=this._getPageStyle(e),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:i,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return a(a({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=Qe(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,i=this._requiredWindowsBehind,o=Math.min(t,r+1),a=Math.min(n,i+1);o===r&&a===i||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>o||n>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),a(a(a({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,i=n.onPageRemoved;if(r||i){for(var o={},a=0,s=e;a<s.length;a++){(c=s[a]).items&&(o[c.startIndex]=c)}for(var l=0,u=t;l<u.length;l++){var c;(c=u[l]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var d in o)o.hasOwnProperty(d)&&this._onPageRemoved(o[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var i={width:n.clientWidth,height:n.clientHeight};(i.height||i.width)&&(t=e.height!==i.height,e.height=i.height,this._cachedPageHeights[e.startIndex]={height:i.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+i.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,i=e.startIndex,o=e.getPageHeight;n=this._getRenderCount(e);for(var s=a({},ng),l=[],u=1,c=0,d=null,h=this._focusedIndex,p=i+n,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!o,m=this._allowedRect,v=function(e){var n=_._getPageSpecification(e,m),o=n.height,a=n.data,v=n.key;u=n.itemCount;var y,x,b=c+o-1,C=He(t.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,S=!m||b>=m.top&&c<=m.bottom,E=!_._requiredRect||b>=_._requiredRect.top&&c<=_._requiredRect.bottom;if(!g&&(E||S&&C)||!f||h>=e&&h<e+u||e===i){d&&(l.push(d),d=null);var A=Math.min(u,p-e),L=_._createPage(v,r.slice(e,e+A),e,void 0,void 0,a);L.top=c,L.height=o,_._visibleRect&&_._visibleRect.bottom&&(L.isVisible=b>=_._visibleRect.top&&c<=_._visibleRect.bottom),l.push(L),E&&_._allowedRect&&(y=s,x={top:c,bottom:b,height:o,left:m.left,right:m.right,width:m.width},y.top=x.top<y.top||-1===y.top?x.top:y.top,y.left=x.left<y.left||-1===y.left?x.left:y.left,y.bottom=x.bottom>y.bottom||-1===y.bottom?x.bottom:y.bottom,y.right=x.right>y.right||-1===y.right?x.right:y.right,y.width=y.right-y.left+1,y.height=y.bottom-y.top+1)}else d||(d=_._createPage("spacer-"+e,void 0,e,0,void 0,a,!0)),d.height=(d.height||0)+(b-c)+1,d.itemCount+=u;if(c+=b-c+1,g&&f)return"break"},_=this,y=i;y<p;y+=u){if("break"===v(y))break}return d&&(d.key="spacer-end",l.push(d)),this._materializedRect=s,a(a({},t),{pages:l,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t){var n=this.props.getPageSpecification;if(n){var r=n(e,t),i=r.itemCount,o=void 0===i?this._getItemCountForPage(e,t):i,a=r.height;return{itemCount:o,height:void 0===a?this._getPageHeight(e,t,o):a,data:r.data,key:r.key}}return{itemCount:o=this._getItemCountForPage(e,t),height:this._getPageHeight(e,t,o)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){var n=this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10;return n||10},t.prototype._createPage=function(e,t,n,r,i,o,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===i&&(i={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:i,top:0,height:0,data:o,isSpacer:a||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,i=t.renderCount;return void 0===i?n?n.length-r:0:i},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,i=e.renderedWindowsBehind,o=t.pages;if(this._shouldVirtualize(e)){var s=this._surfaceRect||a({},ng),l=this._scrollElement&&this._scrollElement.scrollHeight,u=this._scrollElement?this._scrollElement.scrollTop:0;this._surface.current&&(n||!o||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=ig(this._surface.current),this._scrollTop=u),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l;var c=Math.max(0,-s.top),d=p(this._root.current),h={top:c,left:s.left,bottom:c+d.innerHeight,right:s.right,width:s.width,height:d.innerHeight};this._requiredRect=sg(h,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=sg(h,i,r),this._visibleRect=h}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return u.createElement(u.Fragment,null,e&&e.name||"")},renderedWindowsAhead:2,renderedWindowsBehind:2},t}(u.Component);function sg(e,t,n){var r=e.top-t*e.height,i=e.height+(t+n)*e.height;return{top:r,bottom:r+i,height:i,left:e.left,right:e.right,width:e.width}}var lg=function(e){var t=u.useRef(null);u.useEffect((function(){if(t.current){var n=wc(t.current),r=e.text.split(/\s+/),i=[],o=n.append("tspan"),a=0;return r.forEach((function(t){i.push(t),o.text(i.join(" "));var r=o.node();r&&r.getComputedTextLength()>e.width&&i.length>1&&(a++,i.pop(),o.text(i.join(" ")),i=[t],o=n.append("tspan").text(t).attr("dy",e.lineHeight).attr("x",e.x))})),n.attr("dy",-a*e.lineHeight),function(){n.selectAll("tspan").remove()}}}));e.lineHeight;var n=s(e,["lineHeight"]);return u.createElement("text",a({ref:t},n))},ug=function(e){var t,n=u.useRef(null),r=u.useState(!1),i=r[0],o=r[1],a=null;if(i){var s=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));s.length>0&&(a=u.createElement(Hi,{target:n.current,onDismiss:function(){return o(!1)},setInitialFocus:!0,role:"dialog"},u.createElement(Lp,{isCircularNavigation:!0,direction:_p.vertical},u.createElement(ag,{items:s,onRenderCell:function(e){return u.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var l=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.textColor;return t=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),u.createElement(u.Fragment,null,u.createElement("g",{ref:n,onClick:function(){return o(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},u.createElement(lg,{text:t,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:l})),a)},cg=function(e){var t=e.labelWidth?e.labelWidth:105,n=e.chartYTop-20,r=n+7,i=e.scale.range(),o=e.events.map((function(t){return a(a({},t),{x:e.scale(t.date)})}));o.sort((function(e,t){return+e.date-+t.date}));var s=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.strokeColor,l=function(e,t){for(var n=[],r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=t(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(o,(function(e){return e.date.toString()})).map((function(t,n){return u.createElement("line",{key:n,x1:t.x,x2:t.x,y1:r,y2:e.chartYBottom,stroke:s,strokeDasharray:"8"})})),c=function(e,t,n,r){var i=function(r,i){if(i===e.length)return[];var a=e[i].x,s=a-t;return a<r?[]:i===e.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[i]}]:a+t<n?[{x:a,anchor:"start",aggregatedIdx:[i]}]:[]:o(i,r<s?"end":"start")},o=function(r,o){var a="end"===o?e[r].x:e[r].x+t,s=He(e,(function(e){return e.x>a&&(e.x-t>=a||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],u=r;u<s;u++)l.push(u);var c=i(a,s);return c.unshift({x:e[r].x,anchor:o,aggregatedIdx:l}),c};return i(r,0)}(o,t+5,i[1],i[0]).map((function(r,i){return u.createElement(ug,a({key:i},{lineDefs:o,labelDef:r,textY:n,textWidth:t,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return u.createElement(u.Fragment,null,l,c)};var dg,hg=De();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(dg||(dg={}));var pg=A(function(e){function t(t){var n=e.call(this,t)||this;return n._xAxisScale="",n._yAxisScale="",n.eventLabelHeight=36,n._injectIndexPropertyInLineChartData=function(e){var t=n.props.allowMultipleShapesForPoints,r=void 0!==t&&t;return e?e.map((function(e,t){return a(a({},e),{index:r?t:-1})})):[]},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getMargins=function(e){n.margins=e},n._initializeLineChartData=function(e,t,r,i,o){n._xAxisScale=e,n._yAxisScale=t,n._renderedColorFillBars=n.props.colorFillBars?n._createColorFillBars(r):[],n.lines=n._createLines(o,r)},n._handleSingleLegendSelectionAction=function(e){n.state.selectedLegend===e.legend?(n.setState({selectedLegend:"",activeLegend:e.legend}),n._handleLegendClick(e,null)):(n.setState({selectedLegend:e.legend,activeLegend:e.legend}),n._handleLegendClick(e,e.legend))},n._onHoverCardHide=function(){n.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getBoxWidthOfShape=function(e,t,r){var i=n.props,o=i.allowMultipleShapesForPoints,a=void 0!==o&&o,s=i.strokeWidth,l=void 0===s?4:s,u=n.state.activePoint;return a?u===e?dg.hoverSize:1===t||r?2.5*l:dg.invisibleSize:u===e?dg.hoverSize:dg.invisibleSize},n._getPath=function(e,t,r,i,o,a){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,u=n._getBoxWidthOfShape(r,i,o),c=l?a%Object.keys(ip).length:0,d=ip[c].widthRatio;return function(e,t,n,r){return["M"+(e-n/2)+" "+t+"\n A"+n/2+" "+n/2+" 0 1 0 "+(e+n/2)+" "+t+"\n M"+(e-n/2)+" "+t+"\n A "+n/2+" "+n/2+" 0 1 1 "+(e+n/2)+" "+t+"\n ","M"+(e-n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t+n/2)+"\n L"+(e-n/2)+" "+(t+n/2)+"\n Z","M"+(e-n/2)+" "+(t-.2886*n)+"\n H "+(e+n/2)+"\n L"+e+" "+(t+.5774*n)+" Z","M"+e+" "+(t-n/2)+"\n L"+(e+n/2)+" "+t+"\n L"+e+" "+(t+n/2)+"\n L"+(e-n/2)+" "+t+"\n Z","M"+e+" "+(t-.5774*n)+"\n L"+(e+n/2)+" "+(t+.2886*n)+"\n L"+(e-n/2)+" "+(t+.2886*n)+" Z","M"+(e-.5*n)+" "+(t-.866*n)+"\n L"+(e+.5*n)+" "+(t-.866*n)+"\n L"+(e+n)+" "+t+"\n L"+(e+.5*n)+" "+(t+.866*n)+"\n L"+(e-.5*n)+" "+(t+.866*n)+"\n L"+(e-n)+" "+t+"\n Z","M"+e+" "+(t-.851*n)+"\n L"+(e+.6884*n)+" "+(t-.2633*n)+"\n L"+(e+.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.6884*n)+" "+(t-.2633*n)+"\n Z","M"+(e-.5001*n)+" "+(t-1.207*n)+"\n L"+(e+.5001*n)+" "+(t-1.207*n)+"\n L"+(e+1.207*n)+" "+(t-.5001*n)+"\n L"+(e+1.207*n)+" "+(t+.5001*n)+"\n L"+(e+.5001*n)+" "+(t+1.207*n)+"\n L"+(e-.5001*n)+" "+(t+1.207*n)+"\n L"+(e-1.207*n)+" "+(t+.5001*n)+"\n L"+(e-1.207*n)+" "+(t-.5001*n)+"\n Z"][r]}(e,t,u=d>1?u/d:u,c)},n._getPointFill=function(e,t,r,i){var o=n.state.activePoint,a=n.props,s=a.theme;a.allowMultipleShapesForPoints;return o===t?s.palette.white:e},n._createColorFillBars=function(e){var t=[];n.state.isSelectedLegend?n._colorFillBars=n.state.selectedColorBarLegend:n._colorFillBars=n.props.colorFillBars;for(var r=ep(n._points,Yh.LineChart),i=0;i<n._colorFillBars.length;i++){var o=n._colorFillBars[i],a=Fe(o.legend.replace(/\W/g,""));o.applyPattern&&t.push(n._getStripePattern(o.color,i));for(var s=0;s<o.data.length;s++){var l=o.data[s].startX,c=o.data[s].endX,d=n.state.activeLegend===o.legend||""===n.state.activeLegend||n.state.isSelectedLegend?n._colorFillBarsOpacity:.1;t.push(u.createElement("rect",{fill:o.applyPattern?"url(#"+n._colorFillBarPatternId+i+")":o.color,fillOpacity:d,x:n._xAxisScale(l),y:n._yAxisScale(r.endValue)-3,width:Math.abs(n._xAxisScale(c)-n._xAxisScale(l)),height:n._yAxisScale(n.props.yMinValue||0)-n._yAxisScale(r.endValue)+3,key:""+a+s}))}}return t},n._getStripePattern=function(e,t){return u.createElement("pattern",{id:""+n._colorFillBarPatternId+t,width:16,height:16,key:""+n._colorFillBarPatternId+t,patternUnits:"userSpaceOnUse"},u.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},n._checkInGap=function(e,t,n){for(var r=n,i=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(i=!0),{isInGap:i,gapIndex:r}},n._handleFocus=function(e,t,r,i,o){n._uniqueCallOutID=i;var a=t instanceof Date?t.toLocaleDateString():t,s=t instanceof Date?t.getTime():t,l=Ie(n._calloutPoints,(function(e){return e.x===s}));if(l){var u=n;wc("#"+i).attr("aria-labelledby","toolTip"+n._uniqueCallOutID),wc("#"+n._verticalLine).attr("transform",(function(){return"translate("+u._xAxisScale(t)+", 0)"})).attr("visibility","visibility"),n._refArray.forEach((function(t){t.index===e&&n.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:r||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:i,xAxisCalloutAccessibilityData:o})}))}else n.setState({activePoint:i})},n._handleHover=function(e,t,r,i,o,a,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,u=e instanceof Date?e.getTime():e,c=n,d=Ie(n._calloutPoints,(function(e){return e.x===u}));d?(wc("#"+n._verticalLine).attr("transform",(function(){return"translate("+c._xAxisScale(e)+", "+c._yAxisScale(t)+")"})).attr("visibility","visibility").attr("y2",""+(r-c._yAxisScale(t))),n._uniqueCallOutID!==o&&(n._uniqueCallOutID=o,n.setState({isCalloutVisible:!0,refSelected:"#"+o,hoverXValue:i||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:o,xAxisCalloutAccessibilityData:a}))):n.setState({activePoint:o})},n._onLineClick=function(e){e&&e()},n._onDataPointClick=function(e){e&&e()},n._handleMouseOut=function(){wc("#"+n._verticalLine).attr("visibility","hidden")},n._handleChartMouseLeave=function(){n._uniqueCallOutID=null,n.setState({isCalloutVisible:!1,activePoint:""})},n._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},n._handleMultipleLineLegendSelectionAction=function(e){var t,r=n.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);t=-1===r?l(n.state.selectedLegendPoints,[e]):n.state.selectedLegendPoints.slice(0,r).concat(n.state.selectedLegendPoints.slice(r+1)),n.props.data&&t.length===n.props.data.lineChartData.length&&(n.props.colorFillBars&&n.props.colorFillBars.length===n.state.selectedColorBarLegend.length||!n.props.colorFillBars)?n._clearMultipleLegendSelections():t.length||n.state.selectedColorBarLegend.length?n.setState({selectedLegendPoints:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._handleMultipleColorFillBarLegendSelectionAction=function(e){var t,r=n.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(t=-1===r?l(n.state.selectedColorBarLegend,[e]):n.state.selectedColorBarLegend.slice(0,r).concat(n.state.selectedColorBarLegend.slice(r+1))).length===(n.props.colorFillBars&&n.props.colorFillBars.length)&&(n.props.data&&n.props.data.lineChartData.length===n.state.selectedLegendPoints.length||!n.props.data)?n._clearMultipleLegendSelections():t.length||n.state.selectedLegendPoints.length?n.setState({selectedColorBarLegend:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._clearMultipleLegendSelections=function(){n.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},n.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:""},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._colorFillBarsOpacity=.5,n._calloutPoints=Gh(n._points)||[],n._circleId=Fe("circle"),n._lineId=Fe("lineID"),n._borderId=Fe("borderID"),n._verticalLine=Fe("verticalLine"),n._colorFillBarPatternId=Fe("colorFillBarPattern"),n._tooltipId=Fe("LineChartTooltipId_"),t.eventAnnotationProps&&t.eventAnnotationProps.labelHeight&&(n.eventLabelHeight=t.eventAnnotationProps.labelHeight),n}return o(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=Gh(this._points)||[])},t.prototype.render=function(){var e=this,t=this.props,n=t.tickValues,r=t.tickFormat,i=t.eventAnnotationProps,o=t.legendProps,s=t.data;this._points=this._injectIndexPropertyInLineChartData(s.lineChartData);var l=Qh(this._points),c=this._points;o&&o.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=Gh(c));var d=this._createLegends(this._points),h=a({isCalloutVisible:this.state.isCalloutVisible,directionalHint:We,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+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),p={tickValues:n,tickFormat:r};return u.createElement(Zf,a({},this.props,{chartTitle:s.chartTitle,points:c,chartType:Yh.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:l?jh.DateAxis:jh.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,u.createElement(u.Fragment,null,u.createElement("g",null,u.createElement("line",{x1:0,y1:0,x2:0,y2:t.containerHeight,stroke:"#C8C8C8",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),u.createElement("g",null,e._renderedColorFillBars,e.lines),i&&u.createElement(cg,a({},i,{scale:t.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:t.containerHeight-35}))))}}))},t.prototype._createLegends=function(e){var t=this,n=this.props,r=n.legendProps,i=n.allowMultipleShapesForPoints,o=void 0!==i&&i,s=!(!r||!r.canSelectMultipleLegends),c=e.map((function(e){var n=e.color;return a(a({title:e.legend,color:n,action:function(){s?t._handleMultipleLineLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t.setState({activeLegend:e.legend})}},e.legendShape&&{shape:e.legendShape}),o&&{shape:tp[e.index%Object.keys(ip).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(e,n){var r=e.legend;return{title:r,color:e.color,action:function(){s?t._handleMultipleColorFillBarLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t.setState({activeLegend:r})},opacity:t._colorFillBarsOpacity,stripePattern:e.applyPattern}})):[];return u.createElement(zf,a({legends:l(c,d),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},s&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},t.prototype._createLines=function(e,t){var n,r,i,o,a,s,c,d,h,p,f,g,m,v,_=this,y=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var x=this._points.length-1;x>=0;x--){var b=[],C=[],S=[],E=this._points[x].legend,A=this._points[x].color,L=this.state.activePoint,w=this.props.theme,D=t-this.margins.bottom+6;if(1===this._points[x].data.length){var k=this._points[x].data[0],T=k.x,M=k.y,P=k.xAxisCalloutData,F=k.xAxisCalloutAccessibilityData,N=""+this._circleId+x;S.push(u.createElement("circle",{id:""+this._circleId+x,key:""+this._circleId+x,r:L===N?5.5:3.5,cx:this._xAxisScale(T),cy:this._yAxisScale(M),fill:L===N?w.palette.white:A,onMouseOver:this._handleHover.bind(this,T,M,D,P,N,F),onMouseMove:this._handleHover.bind(this,T,M,D,P,N,F),onMouseOut:this._handleMouseOut,strokeWidth:L===N?4:0,stroke:L===N?A:""}))}for(var H=0,I=null!=(r=null===(n=this._points[x].gaps)||void 0===n?void 0:n.sort((function(e,t){return e.startIndex-t.startIndex})))?r:[],O=function(e){var t=B._checkInGap(e,I,H),n=t.isInGap;H=t.gapIndex;var r=""+B._lineId+x+e,l=""+B._borderId+x+e,y=""+B._circleId+x+e,k=B._points[x].data[e-1],T=k.x,M=k.y,P=k.xAxisCalloutData,F=k.xAxisCalloutAccessibilityData,N=B._points[x].data[e],O=N.x,V=N.y,R=B._getPath(B._xAxisScale(T),B._yAxisScale(M),y,e,!1,B._points[x].index),W=(null===(q=B._points[x].lineOptions)||void 0===q?void 0:q.strokeWidth)||B.props.strokeWidth||4,U=B.state.activeLegend===E||""===B.state.activeLegend||B.state.isSelectedLegend,z=B._points[x].hideNonActiveDots&&L!==y;if(S.push(u.createElement("path",{id:y,key:y,d:R,"data-is-focusable":0===x,onMouseOver:B._handleHover.bind(B,T,M,D,P,y,F),onMouseMove:B._handleHover.bind(B,T,M,D,P,y,F),onMouseOut:B._handleMouseOut,onFocus:function(){return _._handleFocus(r,T,P,y,F)},onBlur:B._handleMouseOut,onClick:B._onDataPointClick.bind(B,B._points[x].data[e-1].onDataPointClick),opacity:U&&!z?1:.01,fill:B._getPointFill(A,y,e,!1),stroke:A,strokeWidth:W})),e+1===B._points[x].data.length){var Y=""+y+e+"L",j=B._points[x].hideNonActiveDots&&L!==Y;R=B._getPath(B._xAxisScale(O),B._yAxisScale(V),Y,e,!0,B._points[x].index);var q=B._points[x].data[e],X=q.xAxisCalloutData,K=q.xAxisCalloutAccessibilityData;S.push(u.createElement("path",{id:Y,key:Y,d:R,"data-is-focusable":0===x,onMouseOver:B._handleHover.bind(B,O,V,D,X,Y,K),onMouseMove:B._handleHover.bind(B,O,V,D,X,Y,K),onMouseOut:B._handleMouseOut,onFocus:function(){return _._handleFocus(r,O,X,Y,K)},onBlur:B._handleMouseOut,onClick:B._onDataPointClick.bind(B,B._points[x].data[e].onDataPointClick),opacity:U&&!j?1:.01,fill:B._getPointFill(A,Y,e,!0),stroke:A,strokeWidth:W}))}if(U){if(!n){var Z=(null===(i=B._points[x].lineOptions)||void 0===i?void 0:i.lineBorderWidth)?Number.parseFloat(B._points[x].lineOptions.lineBorderWidth.toString()):0;Z>0&&C.push(u.createElement("line",{id:l,key:l,x1:B._xAxisScale(T),y1:B._yAxisScale(M),x2:B._xAxisScale(O),y2:B._yAxisScale(V),strokeLinecap:(a=null===(o=B._points[x].lineOptions)||void 0===o?void 0:o.strokeLinecap,null!=a?a:"round"),strokeWidth:Number.parseFloat(W.toString())+Z,stroke:(null===(s=B._points[x].lineOptions)||void 0===s?void 0:s.lineBorderColor)||w.palette.white,opacity:1})),b.push(u.createElement("line",{id:r,key:r,x1:B._xAxisScale(T),y1:B._yAxisScale(M),x2:B._xAxisScale(O),y2:B._yAxisScale(V),strokeWidth:W,ref:function(e){_._refCallback(e,r)},onMouseOver:B._handleHover.bind(B,T,M,D,P,y,F),onMouseMove:B._handleHover.bind(B,T,M,D,P,y,F),onMouseOut:B._handleMouseOut,stroke:A,strokeLinecap:(d=null===(c=B._points[x].lineOptions)||void 0===c?void 0:c.strokeLinecap,null!=d?d:"round"),strokeDasharray:null===(h=B._points[x].lineOptions)||void 0===h?void 0:h.strokeDasharray,strokeDashoffset:null===(p=B._points[x].lineOptions)||void 0===p?void 0:p.strokeDashoffset,opacity:1,onClick:B._onLineClick.bind(B,B._points[x].onLineClick)}))}}else n||b.push(u.createElement("line",{id:r,key:r,x1:B._xAxisScale(T),y1:B._yAxisScale(M),x2:B._xAxisScale(O),y2:B._yAxisScale(V),strokeWidth:W,stroke:A,strokeLinecap:(g=null===(f=B._points[x].lineOptions)||void 0===f?void 0:f.strokeLinecap,null!=g?g:"round"),strokeDasharray:null===(m=B._points[x].lineOptions)||void 0===m?void 0:m.strokeDasharray,strokeDashoffset:null===(v=B._points[x].lineOptions)||void 0===v?void 0:v.strokeDashoffset,opacity:.1}))},B=this,V=1;V<this._points[x].data.length;V++)O(V);y.push.apply(y,l(C,b,S))}var R=hg(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var W=wc(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var U={tooltipCls:R.tooltip,id:this._tooltipId,xAxis:W};W&&$h(U)}return y},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(u.Component),(function(e){return{tooltip:a(a({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),fg=Array.prototype.slice,gg=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},mg=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function vg(e,t){return e[t]}function _g(e){this._context=e}_g.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var yg=function(e){return new _g(e)};function xg(e){return e[0]}function bg(e){return e[1]}var Cg=function(){var e=xg,t=bg,n=kp(!0),r=null,i=yg,o=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==r&&(o=i(u=Gp())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(l,s,a),+t(l,s,a));if(u)return o=null,u+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:kp(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:kp(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:kp(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a};function Sg(e){return e<0?-1:1}function Eg(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Sg(o)+Sg(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Ag(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Lg(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function wg(e){this._context=e}function Dg(e){this._context=new kg(e)}function kg(e){this._context=e}function Tg(e){return new wg(e)}wg.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:Lg(this,this._t0,Ag(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Lg(this,Ag(this,n=Eg(this,e,t)),n);break;default:Lg(this,this._t0,n=Eg(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Dg.prototype=Object.create(wg.prototype)).point=function(e,t){wg.prototype.point.call(this,t,e)},kg.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};var Mg,Pg=De(),Fg=Ki((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Mg||(Mg={}));var Ng=A(function(e){function t(t){var n=e.call(this,t)||this;return n._getMargins=function(e){n.margins=e},n._onRectMouseMove=function(e){e.persist();var t=n.props.data.lineChartData,r=n._xAxisRectScale.invert(Tc(document.getElementById(n._rectId),e)[0]),i=Fg(t[0].data,r),o=t[0].data[i-1],a=t[0].data[i],s=null,l=null,u=null;if(void 0===o&&void 0!==a)l=a.x,u=i;else if(void 0!==o&&void 0===a)l=o.x,u=i-1;else{var c=void 0,d=void 0,h=void 0;switch(s=rp(t[0].data[0].x,!0)){case jh.DateAxis:c=new Date(r).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1;break;case jh.NumericAxis:c=r,d=o.x,h=a.x,l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1}}var p=t[0].data[u],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleDateString():l,v=l instanceof Date?l.getTime():l,_=Ie(n._calloutPoints,(function(e){return e.x===v})),y=s===jh.DateAxis?l.getTime():l,x=n.state.nearestCircleToHighlight!==y;_&&x&&!n.state.isShowCalloutPending&&n.setState({nearestCircleToHighlight:y,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:n._xAxisRectScale(l),displayOfLine:Mg.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Mg.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Mg.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=kp([]),t=mg,n=gg,r=vg;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,u=s.length,c=new Array(u);for(o=0;o<u;++o){for(var d,h=s[o],p=c[o]=new Array(l),f=0;f<l;++f)p[f]=d=[0,+r(i[f],h,f,i)],d.data=i[f];p.key=h}for(o=0,a=t(c);o<u;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:kp(fg.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:kp(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?mg:"function"==typeof e?e:kp(fg.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?gg:e,i):n},i}().keys(e)(t),i=$i(r[r.length-1],(function(e){return e[1]})),o=[];return r.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),o.push(t)})),n._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:i}},n._createDataSet=function(e){var t=[],r=[],i=[],o=[],a=Gh(e);e&&e.length&&e.forEach((function(e){i.push(e.color),o.push(e.opacity||1),t.push.apply(t,e.data)}));for(var s=t,l=function(){var e=s[0].x instanceof Date?s[0].x.toLocaleDateString():s[0].x,t=s.filter((function(t){return(t.x instanceof Date?t.x.toLocaleDateString():t.x)===e})),n={};t.forEach((function(e,t){n.xVal=e.x,n["chart"+t]=e.y})),r.push(n);var i=s[0].x instanceof Date?s[0].x.toLocaleDateString():s[0].x;s=s.filter((function(e){return(e.x instanceof Date?e.x.toLocaleDateString():e.x)!==i}))};s.length;)l();for(var u=r&&Object.keys(r[0]).length,c=[],d=0;d<u-1;d++){var h="chart"+d;c.push(h)}var p=n._getStackedData(c,r);return{colors:i,opacity:o,keys:c,stackedInfo:p,calloutPoints:a}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getGraphData=function(e,t,r,i,o){n._chart=n._drawGraph(r,e,t,o)},n._getLegendData=function(e,t){var r=t,i=[e.blueLight,e.blue,e.blueMid,e.red,e.black],o=[];return r.forEach((function(e){var t=e.color?e.color:i[Math.floor(4*Math.random()+1)];if(!(o.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};o.push(r)}})),u.createElement(zf,a({legends:o,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._onDataPointClick=function(e){e&&e(),n.setState({isCircleClicked:!0})},n._getOpacity=function(e){if(n._isMultiStackChart){var t=.7;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.activeLegend===e?.7:.1),t}return.7},n._getLineOpacity=function(e){if(n._isMultiStackChart){var t=.3;return n.state.isCalloutVisible&&(t=1),(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.activeLegend===e?0:.1),t}return 1},n._updateCircleFillColor=function(e,t,r){var i=t;return n.state.nearestCircleToHighlight===e&&(n.state.isShowCalloutPending&&n.setState({refSelected:"#"+r,isCalloutVisible:!0,isShowCalloutPending:!1}),n.state.isCircleClicked||(i=n.props.theme.palette.white)),i},n._drawGraph=function(e,t,r,i){var o,s=n.props.data.lineChartData,l=n.props.data,c=l.pointOptions,d=l.pointLineOptions,h=function(){var e=xg,t=null,n=kp(0),r=bg,i=kp(!0),o=null,a=yg,s=null;function l(l){var u,c,d,h,p,f=l.length,g=!1,m=new Array(f),v=new Array(f);for(null==o&&(s=a(p=Gp())),u=0;u<=f;++u){if(!(u<f&&i(h=l[u],u,l))===g)if(g=!g)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=c;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[u]=+e(h,u,l),v[u]=+n(h,u,l),s.point(t?+t(h,u,l):m[u],r?+r(h,u,l):v[u]))}if(p)return s=null,p+""||null}function u(){return Cg().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:kp(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:kp(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:kp(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:kp(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:kp(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:kp(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:kp(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}().x((function(e){return t(e.xVal)})).y0((function(e){return r(e.values[0])})).y1((function(e){return r(e.values[1])})).curve(Tg),p=Cg().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Tg),f=[];n._stackedData.forEach((function(e,t){f.push(u.createElement(u.Fragment,{key:t+"-graph-"+n._uniqueIdForGraph},u.createElement("path",a({id:t+"-line-"+n._uniqueIdForGraph,d:p(e),fill:"transparent",strokeWidth:3,stroke:n._colors[t],opacity:n._getLineOpacity(s[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},s[t].lineOptions)),u.createElement("path",{id:t+"-graph-"+n._uniqueIdForGraph,d:h(e),fill:n._colors[t],opacity:n._opacity[t],fillOpacity:n._getOpacity(s[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove})))}));var g=c&&c.r?Number(c.r):8;n._stackedData.forEach((function(e,i){s.length!==i&&f.push(u.createElement("g",{key:i+"-dots-"+n._uniqueIdForGraph,d:h(e),clipPath:"url(#clip)"},e.map((function(e,l){var d=n._circleId+"_"+(i*n._stackedData[0].length+l),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return o=s[i].color,u.createElement("circle",a({key:d,id:d,"data-is-focusable":!0,cx:t(e.xVal),cy:r(e.values[1]),stroke:o,strokeWidth:3,visibility:n.state.nearestCircleToHighlight?"visibility":"hidden",fill:n._updateCircleFillColor(h,o,d),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,s[i].data[l].onDataPointClick)},c,{r:n._getCircleRadius(h,g)}))}))))})),f.push(u.createElement("line",a({id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:o,opacity:.5,visibility:n.state.displayOfLine},d)));var m=Pg(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var v=wc(i).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var _={tooltipCls:m.tooltip,id:n._tooltipId,xAxis:v};v&&$h(_)}return f},n._getCircleRadius=function(e,t){var r=n.state,i=r.isCircleClicked,o=r.nearestCircleToHighlight;return i&&o===e?1:o===e?t:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._createSet=yr((function(e){return n._createDataSet(e.lineChartData)})),n.state={activeLegend:"",hoverXValue:"",isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Mg.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1},n._uniqueIdForGraph=Fe("areaChart_"),n._verticalLineId=Fe("verticalLine_"),n._circleId=Fe("circle"),n._rectId=Fe("rectangle"),n._tooltipId=Fe("AreaChartTooltipID"),n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.data,n=t.lineChartData,r=t.chartTitle,i=this._createSet(this.props.data),o=i.colors,s=i.opacity,l=i.stackedInfo,c=i.calloutPoints;this._calloutPoints=c;var d=Qh(n);this._colors=o,this._opacity=s,this._stackedData=l.stackedData;var h=this._getLegendData(this.props.theme.palette,n),p={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},f=a({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Re,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+this._uniqueCallOutID,gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return u.createElement(Zf,a({},this.props,{chartTitle:r,points:n,chartType:Yh.AreaChart,calloutProps:f,legendBars:h,isCalloutForStack:!0,xAxisType:d?jh.DateAxis:jh.NumericAxis,tickParams:p,maxOfYVal:l.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){e._xAxisRectScale=t.xScale;var n=e._xAxisRectScale.ticks(),r=e._xAxisRectScale(n[n.length-1]),i=t.containerHeight-e.margins.top;return u.createElement(u.Fragment,null,u.createElement("g",null,u.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),u.createElement("g",null,e._chart))}}))},t.prototype._onLegendClick=function(e){this.state.isLegendSelected&&this.state.activeLegend===e?this.setState({isLegendSelected:!1,activeLegend:""}):this.setState({activeLegend:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({activeLegend:e,isLegendHovered:!0})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({activeLegend:"",isLegendHovered:!1,isLegendSelected:!e&&this.state.isLegendSelected})},t}(u.Component),(function(e){return{tooltip:a(a({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Hg=function(e){return{root:{fill:e.color,stroke:ar.white,strokeWidth:2}}},Ig=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var t=this.props,n=t.data,r=t.arc,i=t.culture,o=r.centroid(n),a="translate("+o[0]+", "+o[1]+")";return u.createElement("g",{className:"arc"},e.prototype.render.call(this),u.createElement("text",{transform:a,textAnchor:"middle"},n.data.x,"-",ap(n.data.y,i)))},t}(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){Og(e)},t}return o(t,e),t.getDerivedStateFromProps=function(e){return Og(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,i=De()(Hg,{color:n});return u.createElement("path",{d:r(this.props.data),className:i.root,onClick:null===(e=this.props.data)||void 0===e?void 0:e.data.onClick})},t.defaultProps={arc:of()},t}(u.Component));function Og(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Bg,Vg=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return u.createElement(Ig,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:""+n.colors(t)})},n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.colors,i=t.data,o=t.width,a=t.height,s=t.chartTitle;this.colors=fu().range(r);var l=n(i),c="translate("+o/2+", "+a/2+")";return u.createElement("svg",{width:o,height:a,"aria-label":s},u.createElement("g",{transform:c},l.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:Yp().sort(null).value((function(e){return e.y}))},t}(u.Component),Rg=De(),Wg=A(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,i=e.colors,o=e.chartTitle,a=this.props,s=a.theme,l=a.className,c=a.styles,d=a.culture;this._classNames=Rg(c,{theme:s,width:n,height:r,className:l});var h=Math.min(n,r)/2-10;return u.createElement("div",{className:this._classNames.root},this.props.chartTitle&&u.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),u.createElement(Vg,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:i,chartTitle:o}))},t.defaultProps={data:[],width:600,height:350},t}(u.Component),(function(e){var t=e.className,n=e.theme,r=e.width+30,i=e.height+10;return{root:[n.fonts.medium,"ms-PieChart",t,{width:r+40}],chart:[{padding:20,width:r,height:i,boxSizing:"content-box"}],chartTitle:[a({textAlign:"center"},n.fonts.mediumPlus)]}})),Ug=De(),zg=A(function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n.state={isCalloutVisible:!1,selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",isLegendHovered:!1,isLegendSelected:!1,xCalloutValue:"",yCalloutValue:""},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=Fe("callout"),n}return o(t,e),t.prototype.render=function(){var e;this._adjustProps();var t=this.props,n=t.data,r=t.benchmarkData,i=t.targetData,o=t.hideNumberDisplay,s=t.ignoreFixStyle,l=t.culture,c=this.props.theme.palette,d=s||n.chartData.length>2?this.props.barHeight:8;r&&(r.color=r.color||c.neutralTertiary),i&&(i.color=i.color||c.neutralSecondary);var h=this._createBarsAndLegends(n,d,c,r,i),p=!1===o&&!s&&2===n.chartData.length,f=!1===o&&!s&&1===n.chartData.length,g=n.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),m=0;r&&g&&(m=r.data/g*100);var v=0;i&&g&&(v=i.data/g*100);var _=!1===this.props.hideLegend&&(s||n.chartData.length>2);this._classNames=Ug(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:r?r.color:"",benchmarkRatio:m,targetColor:i?i.color:"",targetRatio:v});var y=function(){return ap(n.chartData[0].data?n.chartData[0].data:0,l)};return u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},u.createElement(Lp,{direction:_p.horizontal},u.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&u.createElement("div",a({},op(n.chartTitleAccessibilityData)),u.createElement("strong",null,n.chartTitle)),p&&u.createElement("div",a({},op(n.chartDataAccessibilityData)),u.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&u.createElement("span",null,"/",u.createElement("span",{className:this._classNames.ratioDenominator},ap(g,l)))),f&&u.createElement("div",a({},op(n.chartDataAccessibilityData)),u.createElement("strong",null,y()))),(r||i)&&u.createElement("div",{className:this._classNames.benchmarkContainer},r&&u.createElement("div",{className:this._classNames.benchmark,role:"text"}),i&&u.createElement("div",{className:this._classNames.target,role:"text"}))),u.createElement(Lp,{direction:_p.horizontal},u.createElement("div",null,u.createElement("svg",{className:this._classNames.chart,"aria-label":null===(e=n)||void 0===e?void 0:e.chartTitle},u.createElement("g",null,h[0]),u.createElement(Hi,a({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Re,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,op(this.state.callOutAccessibilityData,"text",!1)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(cp,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),_&&u.createElement("div",{className:this._classNames.legendContainer},h[1]))},t.prototype._adjustProps=function(){this._classNames=Ug(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},t.prototype._createBarsAndLegends=function(e,t,n,r,i){var o=this,s=[n.blueLight,n.blue,n.blueMid,n.red,n.black],l=[],c=[],d=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),h=0,p=0,f=e.chartData.map((function(e,n){var r=e.color?e.color:s[Math.floor(4*Math.random()+1)],i=e.data?e.data:0,a={title:e.legend,color:r,action:d>0?function(){o._onClick(e.legend)}:void 0,hoverAction:d>0?function(){o._onHover(e.legend)}:void 0,onMouseOutAction:d>0?function(e){o._onLeave(e)}:void 0};e.placeHolder||l.push(a),n>0&&(h+=p),(p=i/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),c.push(h);var f=o.props.styles,g=!0;return(o.state.isLegendHovered||o.state.isLegendSelected)&&(g=o.state.selectedLegendTitle===e.legend),o._classNames=Ug(f,{theme:o.props.theme,shouldHighlight:g,href:o.props.href}),p<1?u.createElement(u.Fragment,{key:n}," "):u.createElement("g",{key:n,className:o._classNames.opacityChangeOnHover,ref:function(e){o._refCallback(e,a.title)},"data-is-focusable":!o.props.hideTooltip,onFocus:o._onBarFocus.bind(o,i,r,e),onBlur:o._onBarLeave,"aria-label":o._getAriaLabel(e),role:"img",onMouseOver:o._onBarHover.bind(o,i,r,e),onMouseMove:o._onBarHover.bind(o,i,r,e),onMouseLeave:o._onBarLeave,pointerEvents:"all",onClick:o.props.href?o._redirectToUrl.bind(o,o.props.href):e.onClick},u.createElement("rect",{key:n,x:c[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(l,r),this._addLegend(l,i);var g=u.createElement(zf,a({legends:l,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(t,this.props.barBackgroundColor?this.props.barBackgroundColor:n.neutralTertiary)]:f,g]},t.prototype._onBarFocus=function(e,t,n){var r=this;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._refArray.forEach((function(i){i.index===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._addLegend=function(e,t){if(t){var n={title:t.legend,color:t.color,shape:"triangle"};e.push(n)}},t.prototype._generateEmptyBar=function(e,t){return u.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},u.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:e,fill:t}))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._onClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e,isLegendHovered:!0}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(u.Component),(function(e){var t,n,r=e.className,i=e.width,o=e.barHeight,s=e.shouldHighlight,l=e.theme,u=e.href,c=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:i||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:o||16,marginBottom:"12px"},chartTitle:a(a({},l.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:u?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:nr.small,fontWeight:rr.semibold,color:l.palette.black},ratioDenominator:{fontSize:nr.small,color:l.palette.black,opacity:"0.6"},benchmarkContainer:{position:"relative",height:"12px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4.5px)",width:"0",height:"0",borderLeft:"4.5px solid transparent",borderRight:"4.5px solid transparent",borderTop:"7.8px solid",borderTopColor:c,marginBottom:"4px",selectors:(t={},t[sr]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+c+", "+c+")"},t)},target:{position:"absolute",left:"calc("+p+"% - 4.5px)",width:"0",height:"0",borderLeft:"4.5px solid transparent",borderRight:"4.5px solid transparent",borderTop:"7.8px solid",borderTopColor:h,marginBottom:"4px",selectors:(n={},n[sr]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+h+", "+h+")"},n)}}})),Yg=De(),jg=A(function(e){function t(t){var n=e.call(this,t)||this;return n._adjustProps=function(){var e=n.props,t=e.theme,r=e.className,i=e.styles,o=e.width,a=e.barHeight;n._classNames=Yg(i,{legendColor:n.state.color,theme:t,width:o,className:r,barHeight:a})},n._getLegendData=function(e,t,r){var i=[r.blueLight,r.blue,r.blueMid,r.red,r.black],o=[];return e.forEach((function(e,r){var a=e.chartData.filter((function(e){return!e.placeHolder}));a.length<3?void 0!==t[r]&&t[r]&&a.forEach((function(e){var t=e.color?e.color:i[Math.floor(4*Math.random()+1)];if(!(o.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._onHover(e.legend)},onMouseOutAction:function(e){n._onLeave(e)}};o.push(r)}})):a.forEach((function(e){var t=e.color?e.color:i[Math.floor(4*Math.random()+1)];if(!(o.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._onHover(e.legend)},onMouseOutAction:function(e){n._onLeave(e)}};o.push(r)}}))})),u.createElement(zf,a({legends:o,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n.state={isCalloutVisible:!1,refArray:[],selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",isLegendHovered:!1,isLegendSelected:!1,xCalloutValue:"",yCalloutValue:""},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=Fe("callout"),n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme,i=t.culture;this._adjustProps();var o=r.palette,s=this._getLegendData(n,this.props.hideRatio,o),l=this.state.isCalloutVisible;this._classNames=Yg(this.props.styles,{legendColor:this.state.color,theme:r});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,h=n.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,o,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href);return u.createElement("div",{key:n},r)}));return u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&u.createElement("div",{className:this._classNames.legendContainer},s),u.createElement(Hi,a({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&l),directionalHint:Re,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,op(this.state.callOutAccessibilityData,"text",!1)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(cp,{Legend:c,YValue:d,color:this.state.color,culture:i}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,i,o){var s,l=this,c=this.props.culture,d=[n.blueLight,n.blue,n.blueMid,n.red,n.black],h=[],p=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),f=0,g=0,m=e.chartData.map((function(e,r){var i=e.color?e.color:e.placeHolder?n.neutralTertiaryAlt:d[Math.floor(4*Math.random()+1)],a=e.data?e.data:0;r>0&&(f+=g),g=a/p*100?a/p*100:0,h.push(f);var s=l.props.styles,c=!0;return(l.state.isLegendHovered||l.state.isLegendSelected)&&(c=l.state.selectedLegendTitle===e.legend),l._classNames=Yg(s,{theme:l.props.theme,shouldHighlight:c,href:o}),g<1?u.createElement(u.Fragment,{key:r}," "):u.createElement("g",{key:r,className:e.placeHolder?l._classNames.placeHolderOnHover:l._classNames.opacityChangeOnHover,ref:function(t){l._refCallback(t,e.legend)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,a,i,e),onBlur:l._onBarLeave,role:"img","aria-label":l._getAriaLabel(e),onMouseOver:e.placeHolder?void 0:l._onBarHover.bind(l,a,i,e),onMouseMove:e.placeHolder?void 0:l._onBarHover.bind(l,a,i,e),onMouseLeave:e.placeHolder?void 0:l._onBarLeave,onClick:o?e.placeHolder?void 0:l._redirectToUrl.bind(l,o):e.onClick},u.createElement("rect",{key:r,x:h[r]+"%",y:0,width:g+"%",height:t,fill:i}))}));0===e.chartData.length&&m.push(u.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,o)},u.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralTertiaryAlt}))),0===p&&m.push(u.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,o)},u.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralTertiaryAlt})));var v=void 0!==r&&r,_=!v&&2===e.chartData.length,y=!v&&1===e.chartData.length,x=function(){return ap(e.chartData[0].data?e.chartData[0].data:0,c)};return u.createElement("div",{className:this._classNames.singleChartRoot},u.createElement(Lp,{direction:_p.horizontal},u.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&u.createElement("div",a({},op(e.chartTitleAccessibilityData)),u.createElement("strong",null,e.chartTitle)),_&&u.createElement("div",a({},op(e.chartDataAccessibilityData)),u.createElement("strong",null,x()),!i&&u.createElement("span",null,"/",ap(p,c))),y&&u.createElement("div",a({},op(e.chartDataAccessibilityData)),u.createElement("strong",null,x())))),u.createElement(Lp,{direction:_p.horizontal},u.createElement("div",null,u.createElement("svg",{className:this._classNames.chart,"aria-label":null===(s=e)||void 0===s?void 0:s.chartTitle},m))))},t.prototype._onBarFocus=function(e,t,n){var r=this;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this.state.refArray.forEach((function(i){i.legendText===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._refCallback=function(e,t){this.state.refArray.push({legendText:t,refElement:e})},t.prototype._onHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideRatio:[],hideDenominator:[]},t}(u.Component),(function(e){var t=e.className,n=e.width,r=e.barHeight,i=e.shouldHighlight,o=e.theme,s=e.href;return{root:[o.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:n||"100%"},t],items:{marginBottom:"11px"},chart:{width:"100%",height:r||16},chartTitle:a(a({},o.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:"16px"},opacityChangeOnHover:{opacity:i?"":"0.1",cursor:s?"pointer":"default",stroke:o.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:o.palette.black,strokeWidth:"2px"}}},placeHolderOnHover:{opacity:i?"":"0.1",cursor:"default",stroke:o.palette.white,strokeWidth:"2",selectors:{"&:focus":{stroke:o.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"}}}));!function(e){e.show="visibility",e.hide="hidden"}(Bg||(Bg={}));var qg,Xg=De(),Kg=A(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Ae(),n._createLine=function(e,t,r,i){void 0===r&&(r=0),void 0===i&&(i=0);var o=n._xAxisType===jh.NumericAxis,a=n._getScales(r,i,o).xBarScale,s=n._createColors(),l=n.props.theme,c=n.props,d=c.data,h=c.lineLegendColor,p=void 0===h?l.palette.yellow:h,f=c.lineLegendText,g=[];d&&d.forEach((function(e,t){e.lineData&&e.lineData.y&&g.push({x:e.x,y:e.lineData.y,point:e,index:t})}));var m=Cg().x((function(t){return o?e(t.x):a(t.index)+.5*n._barWidth})).y((function(e){return t(e.y)})),v=!0;(n.state.isLegendHovered||n.state.isLegendSelected)&&(v=n.state.selectedLegendTitle===f);var _=u.createElement("path",{opacity:v?1:.4,d:m(g),fill:"none",strokeWidth:3,stroke:p}),y=g.map((function(r,i){var l;return u.createElement("circle",{key:i,cx:o?e(r.x):a(r.index)+.5*n._barWidth,cy:t(r.y),onMouseOver:n._onBarHover.bind(n,r.point,s(r.y)),onMouseOut:n._onBarLeave,r:8,stroke:p,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n.state.acitveXdataPoint===r.x?Bg.show:Bg.hide,onClick:null===(l=r.point.lineData)||void 0===l?void 0:l.onClick})}));return u.createElement(u.Fragment,null,_,y)},n._checkForLine=function(){return n.props.data.some((function(e){var t,n;return void 0!==(null===(n=null===(t=e)||void 0===t?void 0:t.lineData)||void 0===n?void 0:n.y)}))},n._getMargins=function(e){n.margins=e},n._renderContentForBothLineAndBars=function(e){var t=n._getCalloutContentForLineAndBar(e),r=t.YValueHover,i=t.hoverXValue,o=r.map((function(e,t){return u.createElement(cp,a({key:t,Legend:e.legend},0===t&&{XValue:""+(i||e.data)},{color:e.color,YValue:e.data||e.y,culture:n.props.culture}))}));return u.createElement(u.Fragment,null,o)},n._renderContentForOnlyBars=function(e){var t=n.props.useSingleColor,r=void 0!==t&&t;return u.createElement(u.Fragment,null,u.createElement(cp,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!r&&e.color?e.color:n._createColors()(e.y),culture:n.props.culture}))},n._renderCallout=function(e){return e?n._isHavingLine?n._renderContentForBothLineAndBars(e):n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===jh.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForLineAndBar=function(e){var t,r,i,o,a=[],s=n.props,l=s.theme,u=s.useSingleColor,c=void 0!==u&&u,d=n.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(t){return t.x===e.x}));return n._isHavingLine&&void 0!==(null===(t=m[0].lineData)||void 0===t?void 0:t.y)&&a.push({legend:p,color:g,y:null===(r=m[0].lineData)||void 0===r?void 0:r.y,data:null===(i=m[0].lineData)||void 0===i?void 0:i.yAxisCalloutData,yAxisCalloutData:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),a.push({legend:m[0].legend,y:m[0].y,color:c?n._createColors()(1):m[0].color?m[0].color:n._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData}),{YValueHover:a,hoverXValue:e.xAxisCalloutData||e.x.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,acitveXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){if(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.selectedLegendTitle===e.legend){var i=n._getCalloutContentForLineAndBar(e),o=i.YValueHover,a=i.hoverXValue;n._refArray.forEach((function(i,s){i.index===e.legend&&t===s&&n.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:e.legend,dataForHoverCard:e.y,color:e.color||r,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,acitveXdataPoint:e.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))}},n._getScales=function(e,t,r){if(r){var i=$i(n._points,(function(e){return e.x}));return{xBarScale:Na().domain(n._isRtl?[i,0]:[0,i]).nice().range([n.margins.left+n._barWidth/2,t-n.margins.right-n._barWidth-n._barWidth/2]),yBarScale:Na().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:gu().domain(n._xAxisLabels).range([n.margins.left,t-n.margins.right]).padding(n.props.xAxisPadding||.1),yBarScale:Na().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props,i=r.theme,o=r.useSingleColor,s=n.props,l=s.lineLegendText,c=s.lineLegendColor,d=void 0===c?i.palette.yellow:c,h=[];if(e.forEach((function(e,t){var r=o?n._createColors()(1):e.color,i={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};h.push(i)})),n._isHavingLine&&l&&d){var p={title:l,color:d,action:function(){n._onLegendClick(l)},hoverAction:function(){n._onLegendHover(l)},onMouseOutAction:function(e){n._onLegendLeave(e)},isLineLegendInBarChart:!0};h.unshift(p)}return u.createElement(zf,a({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._getAriaLabel=function(e){var t,r,i,o=e.xAxisCalloutData||e.x,a=e.legend,s=e.yAxisCalloutData||e.y,l=n.props.lineLegendText||"Line",u=(null===(t=e.lineData)||void 0===t?void 0:t.yAxisCalloutData)||(null===(r=e.lineData)||void 0===r?void 0:r.y);return(null===(i=e.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||o+". "+(a?a+", ":"")+s+"."+(void 0!==u?" "+l+", "+u+".":"")},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",acitveXdataPoint:null,YValueHover:[],hoverXValue:""},n._isHavingLine=n._checkForLine(),n._calloutId=Fe("callout"),n._tooltipId=Fe("VCTooltipID_"),n._refArray=[],n._xAxisType=rp(n.props.data[0].x,!0),n}return o(t,e),t.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max($i(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Xg(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=a(a(a(a({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Re,id:"toolTip"+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.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),op(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return u.createElement(Zf,a({},this.props,{points:this._points,chartType:Yh.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:_p.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return u.createElement(u.Fragment,null,u.createElement("g",null,e._bars),e._isHavingLine&&u.createElement("g",null,e._createLine(t.xScale,t.yScale,t.containerHeight,t.containerWidth)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||32;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark],this._isHavingLine=this._checkForLine()},t.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(t*i*this._yMax);return Na().domain(r).range(this._colors)},t.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForLineAndBar(e),i=r.YValueHover,o=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===e.legend)&&this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:e.y,selectedLegendTitle:e.legend,color:e.color||t,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,acitveXdataPoint:e.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n){var r=this,i=this.props.useSingleColor,o=void 0!==i&&i,a=this._getScales(e,t,!0),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),d=this._points.map((function(t,n){var i=!0;(r.state.isLegendHovered||r.state.isLegendSelected)&&(i=r.state.selectedLegendTitle===t.legend),r._classNames=Xg(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var a=Math.max(l(t.y),0);return a<1?u.createElement(u.Fragment,{key:t.x}," "):u.createElement("rect",{key:t.x,x:s(t.x),className:r._classNames.opacityChangeOnHover,y:e-r.margins.bottom-l(t.y),width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:a,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,c(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,c(t.y)),onBlur:r._onBarLeave,fill:t.color&&!o?t.color:c(t.y)})}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=wc(n).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&$h(p)}return d},t.prototype._createStringBars=function(e,t,n){var r=this,i=this._getScales(e,t,!1),o=i.xBarScale,a=i.yBarScale,s=this._createColors(),l=this._points.map((function(t,n){var i=Math.max(a(t.y),0);return i<1?u.createElement(u.Fragment,{key:t.x}," "):u.createElement("rect",{key:t.x,x:o(t.x),y:e-r.margins.bottom-a(t.y),width:r._barWidth,height:i,"aria-label":r._getAriaLabel(t),role:"img",ref:function(e){r._refCallback(e,t.legend)},onMouseOver:r._onBarHover.bind(r,t,s(t.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,onClick:t.onClick,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,t,n,s(t.y)),fill:t.color?t.color:s(t.y),transform:"translate("+.5*(o.bandwidth()-r._barWidth)+", 0)"})}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var c=wc(n).call(o);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:c,showTooltip:this.props.showXAxisLablesTooltip};c&&$h(d)}return l},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t}(u.Component),(function(e){var t=e.shouldHighlight,n=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:a(a({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Zg=De();!function(e){e.show="visibility",e.hide="hidden"}(qg||(qg={}));var Gg=A(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Ae(),n._toFocusWholeStack=function(e){var t=n.props.isCalloutForStack,r=void 0!==t&&t;return e?!n.state.isLegendSelected:r},n._getFormattedLineData=function(e){var t=[],n={};return e.forEach((function(e,n){e.lineData&&e.lineData.forEach((function(r){t.push(a(a({},r),{index:n,xItem:e}))}))})),t.forEach((function(e){n[e.legend]?n[e.legend].push(e):n[e.legend]=[e]})),n},n._getLineLegends=function(e){var t=n._lineObject,r=[];return Object.keys(t).forEach((function(e){r.push({title:e,color:t[e][0].color})})),r},n._createLines=function(e,t,r,i){var o=n.state,s=o.isLegendHovered,l=o.isLegendSelected,c=o.selectedLegendTitle,d=n._xAxisType===jh.NumericAxis,h=n._getScales(r,i,d).xBarScale,p=n._getFormattedLineData(n.props.data),f=[],g=[],m=d?0:h.bandwidth()/2;return Object.keys(p).forEach((function(r,i){var o=!0;(s||l)&&(o=c===r);for(var g=1;g<p[r].length;g++){var v=d?e(p[r][g-1].xItem.xAxisPoint):h(p[r][g-1].xItem.xAxisPoint)+n._additionalSpace,_=t(p[r][g-1].y),y=d?e(p[r][g].xItem.xAxisPoint):h(p[r][g].xItem.xAxisPoint)+n._additionalSpace,x=t(p[r][g].y);f.push(u.createElement("line",a({key:i+"-"+g+"-line",x1:v,y1:_,x2:y,y2:x,opacity:o?1:.1,strokeWidth:3,stroke:p[r][g].color,transform:"translate("+m+", 0)"},l&&c===r&&{onMouseOver:n._lineHover.bind(n,p[r][g-1]),onMouseLeave:n._lineHoverOut})))}})),Object.keys(p).forEach((function(r,i){p[r].forEach((function(o,s){g.push(u.createElement("circle",a({key:i+"-"+s+"-dot",cx:d?e(o.xItem.xAxisPoint):h(o.xItem.xAxisPoint)+n._additionalSpace,cy:t(o.y),onMouseOver:l&&c===r?n._lineHover.bind(n,o):n._onStackHover.bind(n,o.xItem)},l&&c===r&&{onMouseLeave:n._lineHoverOut},{r:n._getCircleVisibilityAndRadius(o.xItem.xAxisPoint,o.legend).radius,stroke:o.color,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n._getCircleVisibilityAndRadius(o.xItem.xAxisPoint,o.legend).visibility,transform:"translate("+m+", 0)"})))}))})),u.createElement(u.Fragment,null,f,g)},n._getCircleVisibilityAndRadius=function(e,t){var r=n.state,i=r.isLegendSelected,o=r.activeXAxisDataPoint,a=r.selectedLegendTitle;return i?e===o&&t===a?{visibility:qg.show,radius:8}:t===a?{visibility:qg.show,radius:.3}:{visibility:qg.hide,radius:0}:{visibility:o===e?qg.show:qg.hide,radius:8}},n._getMargins=function(e){n.margins=e},n._getCustomizedCallout=function(){var e=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint&&!e?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._lineHover=function(e,t){t.persist(),n.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:""+e.xItem.xAxisPoint,yCalloutValue:""+(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.color})},n._lineHoverOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},n._handleMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._createBar=function(e,t,r,i){var o=n.props,s=o.barCornerRadius,l=void 0===s?0:s,c=o.barMinimumHeight,d=void 0===c?0:c,h=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),p=n._toFocusWholeStack(h),f=n._points.map((function(i,o){var s=r-n.margins.bottom,c=e((n._xAxisType,jh.NumericAxis,i.xAxisPoint)),h=i.chartData.filter((function(e){return e.data>0}));if(h.length){var f=n._getBarGapAndScale(h,t),g=f.gapHeight,m=f.heightValueScale;if(!(m<0)){var v=h.map((function(t,r){var f=t.color?t.color:n._colors[r],v={},_=!0;(n.state.isLegendHovered||n.state.isLegendSelected)&&(_=n.state.selectedLegendTitle===t.legend);var y=Zg(n.props.styles,{theme:n.props.theme,shouldHighlight:_,href:n.props.href}),x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(i,t),onMouseOver:n._onRectHover.bind(n,i.xAxisPoint,t,f),onMouseMove:n._onRectHover.bind(n,i.xAxisPoint,t,f),onMouseLeave:n._handleMouseOut,onFocus:n._onRectFocus.bind(n,t,i.xAxisPoint,f,v),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,t)},b=m*t.data;b<d&&(b=d),s=s-b-(r?g:0);var C=n._xAxisType===jh.NumericAxis?0:e.bandwidth()/2;return l&&b>l&&r===h.length-1?u.createElement("path",a({key:r+o,className:y.opacityChangeOnHover,d:"\n M "+c+" "+(s+l)+"\n a "+l+" "+l+" 0 0 1 "+l+" "+-l+"\n h "+(n._barWidth-2*l)+"\n a "+l+" "+l+" 0 0 1 "+l+" "+l+"\n v "+(b-l)+"\n h "+-n._barWidth+"\n z\n ",fill:f,ref:function(e){return v.refElement=e},transform:"translate("+C+", 0)"},x)):b<1?u.createElement(u.Fragment,{key:r+o}," "):u.createElement("rect",a({key:r+o+""+p,className:y.opacityChangeOnHover,x:c,y:s,width:n._barWidth,height:b,fill:f,ref:function(e){return v.refElement=e}},x,{role:"img",transform:"translate("+C+", 0)"}))})),_={},y=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(i),onMouseOver:n._onStackHover.bind(n,i),onMouseMove:n._onStackHover.bind(n,i),onMouseLeave:n._handleMouseOut,onFocus:n._onStackFocus.bind(n,i,_),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,i),role:"img"};return u.createElement("g",a({key:o+""+p,id:o+"-singleBar",ref:function(e){return _.refElement=e}},y),v)}}})),g=Zg(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var m=wc(i).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var v={tooltipCls:g.tooltip,id:n._tooltipId,xAxis:m};m&&$h(v)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var i=n._yMax,o=Na().domain([0,i]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var a=$i(n._dataset,(function(e){return e.x}));return{xBarScale:Na().domain(n._isRtl?[a,0]:[0,a]).nice().range([n.margins.left,t-n.margins.right-n._barWidth]),yBarScale:o}}return{xBarScale:gu().domain(n._xAxisLabels).range([n.margins.left-n._additionalSpace,t-n.margins.right-n._additionalSpace]).padding(n.props.xAxisPadding||.1),yBarScale:o}},n._createNumericBars=function(e,t,r){var i=n._getScales(e,t,!0),o=i.xBarScale,a=i.yBarScale;return n._createBar(o,a,e,r)},n._createStringBars=function(e,t,r){var i=n._getScales(e,t,!1),o=i.xBarScale,a=i.yBarScale;return n._createBar(o,a,e,r)},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===jh.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._getAriaLabel=function(e,t){var n,r,i;if(!t){var o=e.xAxisCalloutData||e.xAxisPoint,a=e.chartData.map((function(e){return e.legend+", "+(e.yAxisCalloutData||e.data)+"."})).join(" "),s=null===(n=e.lineData)||void 0===n?void 0:n.map((function(e){return e.legend+", "+(e.yAxisCalloutData||e.data||e.y)+"."})).join(" ");return(null===(r=e.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||o+". "+a+(s?" "+s:"")}var l=e.xAxisCalloutData||t.xAxisCalloutData||e.xAxisPoint,u=t.legend,c=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||l+". "+u+", "+c+"."},n.state={isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:""},n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=Fe("callout"),n._tooltipId=Fe("VSBCTooltipId_"),n._adjustProps(),n._dataset=n._createDataSetLayer(),n._createLegendsForLine=yr((function(e){return n._getLineLegends(e)})),n}return o(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},t.prototype.render=function(){var e=this;this._adjustProps();var t=this.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),n=this._toFocusWholeStack(t),r=this.props.isCalloutForStack,i=void 0!==r&&r;this._dataset=this._createDataSetLayer();var o=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data)),s=a(a({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Re,id:"toolTip"+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,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),op(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return u.createElement(Zf,a({},this.props,{points:this._dataset,chartType:Yh.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,tickParams:l,legendBars:o,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:i||t?_p.horizontal:_p.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return u.createElement(u.Fragment,null,u.createElement("g",null,e._bars),u.createElement("g",null,t&&e._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||32,this._additionalSpace=.5*this._barWidth;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.red,e.black],this._xAxisType=rp(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},t.prototype._createDataSetLayer=function(){var e=[],t=this._points.map((function(t){var n=0;return t.chartData.forEach((function(e){n+=e.data})),e.push(t.xAxisPoint),{x:t.xAxisPoint,y:n}}));return this._xAxisLabels=e,t},t.prototype._renderCallout=function(e){return e?u.createElement(cp,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._getLegendData=function(e,t,n){var r=this;if(this.props.hideLegend)return u.createElement(u.Fragment,null);var i=[t.blueLight,t.blue,t.blueMid,t.red,t.black],o=[],s=this.props.allowHoverOnLegend,l=void 0===s||s;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:i[Math.floor(4*Math.random()+1)];if(!(o.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:l?function(){return r._onLegendHover(e.legend)}:void 0,onMouseOutAction:l?function(e){return r._onLegendLeave(e)}:void 0};o.push(n)}}))}));var c=[];n&&n.length>0&&n.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){r._onLegendClick(e.title)},hoverAction:l?function(){return r._onLegendHover(e.title)}:void 0,onMouseOutAction:l?function(e){return r._onLegendLeave(e)}:void 0};c.push(t)}));var d=c.concat(o);return u.createElement(zf,a({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._onRectHover=function(e,t,n,r){r.persist(),this._onRectFocusHover(e,t,n,r)},t.prototype._onRectFocusHover=function(e,t,n,r){(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.data,color:n,xCalloutValue:t.xAxisCalloutData?t.xAxisCalloutData:e,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},t.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},t.prototype._onStackHoverFocus=function(e,t){var n=e.lineData,r=void 0!==n&&n.length>0;r&&n.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:t,isCalloutVisible:!0,YValueHover:r?l(n.sort((function(e,t){return e.data<t.data?1:-1})),e.chartData.slice().reverse()):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},t.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},t.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},t.prototype._onClick=function(e,t){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,t,e),this.props.href&&(window.location.href=this.props.href)},t.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,i=void 0===r?0:r,o=e.reduce((function(e,t){return e+t.data}),0),a=null!=n?n:t(o),s=i&&e.length-1,l=s&&Math.max(1,Math.min(i,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/o}},t}(u.Component),(function(e){var t=e.shouldHighlight,n=e.href,r=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1",cursor:n?"pointer":"default"},tooltip:a(a({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),$g=De(),Qg=A(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Ae(),n._getGraphData=function(e,t,r,i,o){var a=n._createX0Scale(i),s=n._createX1Scale(a),l=[];n._datasetForBars.forEach((function(e){l.push(n._buildGraph(e,a,s,r,o))})),n._groupedVerticalBarGraph=l},n._getMargins=function(e){return n.margins=e},n._createDataSetOfGVBC=function(e){var t=[],r=e.map((function(e){return e.name}));e[0].series.forEach((function(e){t.push(e.key)}));var i=n._createDataset(e);return{keys:t,xAxisLabels:r,datasetForBars:i}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getOpacity=function(e){var t=!0;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.titleForHoverCard===e),t?"":"0.1"},n._onBarHover=function(e,t,r){r.persist(),(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n.setState({refSelected:r,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._onBarFocus=function(e,t,r){(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n._refArray.forEach((function(i,o){i.index===e.legend&&r===o&&n.setState({refSelected:i.refElement,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},n._redirectToUrl=function(e){e&&(window.location.href=e)},n._buildGraph=function(e,t,r,i,o){var a,s=[],l=Na().domain([0,n._yMax]).range([0,i-n.margins.bottom-n.margins.top]);a=n.props.barwidth&&n.props.barwidth<r.bandwidth()?n.props.barwidth:r.bandwidth();var c=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(c.forEach((function(t,o){var d=e.indexNum*c.length+o,h=e[t];h.data&&s.push(u.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:e.indexNum+"-"+o,height:Math.max(l(h.data),0),width:a,x:r(t),y:Math.max(i-n.margins.bottom-l(h.data),0),"data-is-focusable":!n.props.hideTooltip,opacity:n._getOpacity(h.legend),ref:function(e){n._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:n._onBarHover.bind(n,h,e),onMouseMove:n._onBarHover.bind(n,h,e),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,e,d),onBlur:n._onBarLeave,onClick:n.props.href?n._redirectToUrl.bind(n,n.props.href):h.onClick,"aria-label":n._getAriaLabel(h,e.xAxisPoint),role:"img"}))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=wc(o).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var h={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:d};d&&$h(h)}var p=n._isCustomBarWidth?(t.bandwidth()-n._x1TotalBandWidth)/2:0;return u.createElement("g",{key:e.indexNum,transform:"translate("+(t(e.xAxisPoint)+p)+", 0)"},s)},n._createDataset=function(e){var t=[],r=[];return e.forEach((function(e,n){var i={},o={},s=[];e.series.forEach((function(e){i[e.key]=e.data,o[e.key]=a({},e),s.push(e)})),o.xAxisPoint=e.name,o.indexNum=n,o.groupSeries=s,o.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,t.push(o),r.push(i)})),n._dataset=r,t},n._createX0Scale=function(e){return gu().domain(n._xAxisLabels).range(n._isRtl?[e-n.margins.right,n.margins.left]:[n.margins.left,e-n.margins.right]).padding(.1)},n._createX1Scale=function(e){var t=e.bandwidth();if(n.props.barwidth){var r=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length),i=(n.props.barwidth+2.5)*r.length;n._isCustomBarWidth=i<e.bandwidth(),t=n._isCustomBarWidth?i:e.bandwidth(),n._x1TotalBandWidth=t}return gu().domain(n._keys).range(n._isRtl?[t,0]:[0,t]).padding(.05)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=e,i=[t.blueLight,t.blue,t.blueMid,t.red,t.black],o=[];return r.forEach((function(e){e.series.forEach((function(e){var t=e.color?e.color:i[Math.floor(4*Math.random()+1)];if(!(o.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};o.push(r)}}))})),u.createElement(zf,a({legends:o,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._getAriaLabel=function(e,t){var n,r=e.xAxisCalloutData||t,i=e.legend,o=e.yAxisCalloutData||e.data;return(null===(n=e.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||r+". "+i+", "+o+"."},n._createSet=yr((function(e){return n._createDataSetOfGVBC(e)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,titleForHoverCard:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:""},n._refArray=[],n._calloutId=Fe("callout"),n._tooltipId=Fe("GVBCTooltipId_"),n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.data,n=this._createSet(t),r=n.keys,i=n.xAxisLabels,o=n.datasetForBars;this._keys=r,this._xAxisLabels=i,this._datasetForBars=o,this._isNumeric=rp(t[0].name,!0);var s=this._getLegendData(t,this.props.theme.palette),l=$i(this._dataset,(function(t){return $i(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=$g(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=a(a(a({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Re,id:"toolTip"+this._calloutId,gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.titleForHoverCard,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}),op(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return u.createElement(Zf,a({},this.props,{points:this._datasetForBars,chartType:Yh.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._isNumeric,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:_p.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(){return u.createElement("g",null,e._groupedVerticalBarGraph)}}))},t.prototype._refCallback=function(e,t,n){this._refArray[n]={index:t,refElement:e}},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.titleForHoverCard===e?this.setState({isLegendSelected:!1,titleForHoverCard:e}):this.setState({titleForHoverCard:e}):this.setState({isLegendSelected:!0,titleForHoverCard:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,titleForHoverCard:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,titleForHoverCard:"",isLegendSelected:!e&&this.state.isLegendSelected})},t}(u.Component),(function(e){var t=e.theme;return{opacityChangeOnHover:{cursor:e.href?"pointer":"default"},tooltip:a(a({},t.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Jg=De(),em=A(function(e){function t(t){var n=e.call(this,t)||this;n._rectRefArray={},n._getXandY=function(){var e="",t="";return n.props.data.forEach((function(n){if(n.data&&n.data.length>0)return e=n.data[0].x,t=n.data[0].y,{x:e,y:t}})),{x:e,y:t}},n._getOpacity=function(e){var t=!0;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=e===n.state.activeLegend),t?"1":"0.1"},n._rectRefCallback=function(e,t,r){n._rectRefArray[t]={data:r,refElement:e}},n._onRectFocus=function(e,t){n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:!0,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},n._onRectMouseOver=function(e,t,r){r.persist(),n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:!0,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},n._onRectBlurOrMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._createRectangles=function(){var e=[];return n._stringYAxisDataPoints.slice().reverse().forEach((function(t,r){n._dataSet[t].forEach((function(t,i){var o=""+r+i,a=u.createElement("g",{key:o,role:"img","aria-label":n._getAriaLabel(t),"data-is-focusable":!0,fillOpacity:n._getOpacity(t.legend),transform:"translate("+n._xAxisScale(t.x)+", "+n._yAxisScale(t.y)+")",ref:function(e){n._rectRefCallback(e,o,t)},onFocus:n._onRectFocus.bind(n,o,t),onBlur:n._onRectBlurOrMouseOut,onMouseOver:n._onRectMouseOver.bind(n,o,t),onMouseOut:n._onRectBlurOrMouseOut},u.createElement("rect",{fill:n._colorScale(t.value),width:n._xAxisScale.bandwidth(),height:n._yAxisScale.bandwidth(),onClick:t.onClick}),u.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:n._classNames.text,transform:"translate("+n._xAxisScale.bandwidth()/2+", "+n._yAxisScale.bandwidth()/2+")"},ap(t.rectText,n.props.culture)));e.push(a)}))})),e},n._onLegendHover=function(e){!1===n.state.isLegendSelected&&n.setState({activeLegend:e,isLegendHovered:!0})},n._onLegendLeave=function(e){(e||!1===n.state.isLegendSelected)&&n.setState({activeLegend:"",isLegendHovered:!1,isLegendSelected:!e&&n.state.isLegendSelected})},n._onLegendClick=function(e){n.state.isLegendSelected?n.state.activeLegend===e?n.setState({activeLegend:"",isLegendSelected:!1}):n.setState({activeLegend:e}):n.setState({activeLegend:e,isLegendSelected:!0,isLegendHovered:!1})},n._createLegendBars=function(){var e=n.props,t=e.data,r=e.legendProps,i=[];return t.forEach((function(e){var t={title:e.legend,color:n._colorScale(e.value),action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};i.push(t)})),u.createElement(zf,a({},r,{legends:i}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return Na().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===jh.DateAxis?""+e.getTime():n._xAxisType===jh.StringAxis?e:n._xAxisType===jh.NumericAxis?""+e:""},n._getYIndex=function(e){return n._yAxisType===qh.DateAxis?""+e.getTime():n._yAxisType===qh.StringAxis?e:n._yAxisType===qh.NumericAxis?""+e:""},n._createNewDataSet=function(e,t,r,i,o){var s=[];e.forEach((function(e){e.data.forEach((function(t){s.push(a(a({},t),{legend:e.legend}))}))}));var u={},c={},d={};return s.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",c[r]="1",u[r]?u[r]=l(u[r],[e]):u[r]=[e]})),Object.keys(u).forEach((function(e){u[e].sort((function(e,t){return n._xAxisType===jh.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===jh.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===jh.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===jh.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===jh.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===jh.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===qh.DateAxis&&(e.y=n._getStringFormattedDate(e.y,i)),n._yAxisType===qh.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,o)),n._yAxisType===qh.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(u).forEach((function(e){n._yAxisType===qh.DateAxis?u[n._getStringFormattedDate(e,i)]=u[e]:n._yAxisType===qh.NumericAxis?u[""+n._getStringFormattedNumber(e,o)]=u[e]:u[n._getFormattedLabelForYAxisDataPoint(e)]=u[e]})),{dataSet:u,yAxisPoints:n._getYAxisDataPoints(c),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===jh.DateAxis||n._xAxisType===jh.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===jh.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===jh.NumericAxis?n._getStringFormattedNumber(e,n.props.xAxisNumberFormatString):n._getFormattedLabelForXAxisDataPoint(e)}))},n._getYAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._yAxisType===qh.DateAxis||n._yAxisType===qh.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===qh.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===qh.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),Td(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return Bc(t||".2~s")(+e)},n._getFormattedLabelForXAxisDataPoint=function(e){var t=n.props.xAxisStringFormatter;return t?t(e):e},n._getFormattedLabelForYAxisDataPoint=function(e){var t=n.props.yAxisStringFormatter;return t?t(e):e},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.x,r=e.y,i=e.legend,o=e.ratio?e.ratio[0]+"/"+e.ratio[1]:e.rectText||e.value,a=e.descriptionMessage;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||n+", "+r+". "+i+", "+o+"."+(a?" "+a+".":"")};var r=n._getXandY(),i=r.x,o=r.y;return n._xAxisType=rp(i,!0),n._yAxisType=rp(o,!1),n._createSet=yr((function(e,t,r,i,o){return n._createNewDataSet(e,t,r,i,o)})),n.state={isLegendSelected:!1,activeLegend:"",isLegendHovered:!1,isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.xAxisDateFormatString,i=t.xAxisNumberFormatString,o=t.yAxisDateFormatString,s=t.yAxisNumberFormatString;this._colorScale=this._getColorScale();var l=this._createSet(n,r,i,o,s),c=l.dataSet,d=l.xAxisPoints,h=l.yAxisPoints;this._dataSet=c,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=Jg(this.props.styles,{theme:this.props.theme});var p=a(a(a(a({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:Ue,onDismiss:this._closeCallout}),op(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=a(a({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return u.createElement(Zf,a({},this.props,{points:n,chartType:Yh.HeatMapChart,xAxisType:jh.StringAxis,yAxisType:qh.StringAxis,calloutProps:p,chartHoverProps:f,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:_p.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(u.Component),(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function tm(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function nm(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=im)):void 0===t&&(t=rm);for(var n,r,i,o,a,s=new sm(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new sm(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(am)}function rm(e){return e.children}function im(e){return Array.isArray(e)?e[1]:null}function om(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function am(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function sm(e){this.data=e,this.depth=this.height=0,this.parent=null}function lm(e,t){return e.parent===t.parent?1:2}function um(e){var t=e.children;return t?t[0]:e.t}function cm(e){var t=e.children;return t?t[t.length-1]:e.t}function dm(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function hm(e,t,n){return e.a.parent===t.parent?e.a:n}function pm(e,t){this._=e,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=t}sm.prototype=nm.prototype={constructor:sm,count:function(){return this.eachAfter(tm)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return nm(this).eachBefore(om)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}},pm.prototype=Object.create(sm.prototype);var fm,gm,mm=function(){var e=lm,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,o,a=new pm(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new pm(r[i],i)),n.parent=t;return(a.parent=new pm(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var u=i,c=i,d=i;i.eachBefore((function(e){e.x<u.x&&(u=e),e.x>c.x&&(c=e),e.depth>d.depth&&(d=e)}));var h=u===c?1:e(u,c)/2,p=h-u.x,f=t/(c.x+h+p),g=n/(d.depth||1);i.eachBefore((function(e){e.x=(e.x+p)*f,e.y=e.depth*g}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,l=o.parent.children[0],u=o.m,c=a.m,d=s.m,h=l.m;s=cm(s),o=um(o),s&&o;)l=um(l),(a=cm(a)).a=t,(i=s.z+d-o.z-u+e(s._,o._))>0&&(dm(hm(s,t,r),t,i),u+=i,c+=i),d+=s.m,u+=o.m,h+=l.m,c+=a.m;s&&!cm(a)&&(a.t=s,a.m+=d-c),o&&!um(l)&&(l.t=o,l.m+=u-h,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},vm=De(),_m=function(e){function t(t,n,r,i,o,a){void 0===i&&(i=[]),void 0===o&&(o=[]);var s=e.call(this,t,r,i,o)||this;return s.composition=n,s._treeTraversal=a,s}return o(t,e),t.prototype.createTree=function(e,t){var n,r,i,o,a,s,l,u=(e=e<65?65:e>90?90:e)||75,c=nm(this.treeData,(function(e){return e.children})),d=(null===(n=c)||void 0===n?void 0:n.height)+1;mm().nodeSize([u,u/1.5]).separation((function(e,t){return e.parent===c&&t.parent===c?3.5:1}))(c).descendants().forEach((function(e){e.y=0===e.depth?10:130*e.depth,e.x+=t/2}));var h=[],p=0,f=function(e){var t,n;e.id=p,h.push({id:p,children:e.children,dataName:e.data.name,subName:e.data.subname,bodyText:e.data.bodytext,metricName:null===(t=e.data)||void 0===t?void 0:t.metric,fill:e.data.fill,x:e.x,y:e.y,parentID:null===(n=e.parent)||void 0===n?void 0:n.id}),p++};0===this._treeTraversal?c.each((function(e){f(e)})):c.eachBefore((function(e){f(e)}));for(var g=3*u,m=g/3.45,v=new Set,_=0,y=h;_<y.length;_++){var x=y[_],b=0===x.id?"Root Node":"Parent info parentId: "+x.parentID+"\n "+h[x.parentID].dataName+"\n "+h[x.parentID].subName;if(!x.children&&!v.has(x.parentID)&&3===d){var C=(g-20)/2,S=m;v.add(x.parentID),this.addLinktoSVG(x.id,h[x.parentID].x,h[x.parentID].y,h[x.id].x,h[x.id].y,!0,g,m,20);for(var E=null===(r=h[x.parentID])||void 0===r?void 0:r.children,A=(null===(i=h[x.parentID])||void 0===i?void 0:i.x)-C/2-10,L=(null===(o=h[x.parentID])||void 0===o?void 0:o.x)+C/2+10,w=null===(a=h[x.parentID])||void 0===a?void 0:a.x,D=null===(s=E[0])||void 0===s?void 0:s.y,k=0;k<E.length;++k){var T=E[k];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,k%2==0?1===E.length?w:A:L,D,T.data.fill,1===E.length?g:C,m,T.id,b),k%2==1&&(D+=S+20)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,w,D,T.data.fill,g,m,T.id,b),D+=S+20):E.length>2?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,k%2==0?A:L,D,T.data.fill,1===E.length?g:C,m,T.id,b),k%2==1&&(D+=S+20)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,w,D,T.data.fill,g,m,T.id,b),D+=S+20)}}if((x.children||d<=2)&&(this.addNodeShapetoSVG(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,g,m,x.id,b),0===x.id&&x.children)){E=null===(l=h[x.id])||void 0===l?void 0:l.children;var M=Qi(E,(function(e){return e.x})),P=$i(E,(function(e){return e.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,g,m,20,P)}}},t}(function(){function e(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=e,this.styleClassNames=t,this._nodeElements=n,this._linkElements=r}return e.prototype.truncateText=function(e,t,n,r){var i,o=e.split(/\s+/).reverse(),a="",s=wc(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];a=o.pop();){if(l.push(a),s.text(l.join(" ")+" "),null!==s.node())if(s.node().getComputedTextLength()>t-n){l.pop(),l.push("...");break}}return i=l.join(" ")+" ",s.text(null),Mc(".tempText").remove(),i},e.prototype.addNodeShapetoSVG=function(e,t,n,r,i,o,a,s,l,c,d){var h="nodeId: "+c+" \nnodeMainText: "+e+"\nsubText "+t+" "+d,p=i-s/2;!r&&0===c&&n||this._nodeElements.push(u.createElement("rect",{width:s,height:l,x:p,y:o,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:a,key:""+c+this.styleClassNames.rectNode})),t&&(t=this.truncateText(t,s,s/4,this.styleClassNames.rectSubText)),n&&(n=this.truncateText(n,s,s/4,this.styleClassNames.rectBodyText)),r&&(r=this.truncateText(r,s,s/4,this.styleClassNames.rectMetricText)),e=this.truncateText(e,s,s/4,this.styleClassNames.rectText);var f=r?u.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+s/2},r):n?u.createElement(u.Fragment,null,u.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+s/2},t),u.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+s/2},n)):u.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+s/2},t);t||r||n?this._nodeElements.push(u.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?o+l/2.5:o+l/2,x:p+s/2,key:""+c+this.styleClassNames.rectText},e,f)):this._nodeElements.push(u.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:o+l/1.6,x:p+s/2,key:""+c+this.styleClassNames.rectText},e))},e.prototype.createPathLink=function(e,t,n,r,i,o,a,s,l){return i?"M"+e+","+(t+a+s/2)+" V"+(t+5*s)+"\n H"+(e-o/2)+" H"+(e+o/2):"M"+(n-o/2)+","+(r-s)+" H"+(l+o/2)+" M"+e+","+(r-s)+"\n V"+(t+a+s/2)},e.prototype.addLinktoSVG=function(e,t,n,r,i,o,a,s,l,c){void 0===c&&(c=0),this._linkElements.push(u.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,i,o,a,s,l,c),key:""+e+this.styleClassNames.link}))},e}()),ym=A(function(e){function t(t){var n,r=e.call(this,t)||this;return r._nodeElements=[],r._linkElements=[],r._margin={top:30,right:20,bottom:30,left:50},r._width=r.props.width||1500,r._height=r.props.height||700,r._treeData=r.props.treeData,r._composition=null===(n=r.props)||void 0===n?void 0:n.composition,r._treeTraversal=r.props.treeTraversal,r.state={_width:r._width,_height:r._height},r}return o(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=vm(r,{theme:t,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},t.prototype.componentDidUpdate=function(e){if(e.layoutWidth!==this.props.layoutWidth){var t=Mc("text"),n=Mc("rect"),r=Mc("path");0===this._nodeElements.length&&0===this._linkElements.length&&(t.remove(),n.remove(),r.remove()),this.createTreeChart()}},t.prototype.createTreeChart=function(){var e=[],t=[],n=new _m(this._treeData,this._composition,this._classNames,e,t,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=e,this._linkElements=t},t.prototype.render=function(){var e;return u.createElement(Lp,null,u.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},u.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},u.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),u.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},t}(u.Component),(function(e){return{root:[e.theme.spacing,"ms-TreeChart",e.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:"white",padding:"10px",rx:"2px"},rectText:a({fill:"black"},e.theme.fonts.large),rectSubText:a({fill:"#484644"},e.theme.fonts.medium),rectBodyText:a({fill:"#808080"},e.theme.fonts.xSmall),rectMetricText:a({fill:"#000000"},e.theme.fonts.xLarge)}}));!function(e){e[e.long=1]="long",e[e.compact=0]="compact"}(fm||(fm={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(gm||(gm={})),Object(r.a)("@uifabric/charting","4.23.18")},8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={},i=void 0;try{i=window}catch(e){}function o(e,t){if(void 0!==i){var n=i.__packages__=i.__packages__||{};if(!n[e]||!r[e])r[e]=t,(n[e]=n[e]||[]).push(t)}}o("@uifabric/set-version","6.0.0")}});
|
|
16
|
+
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function l(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var u=n(0);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},i=0,o=e;i<o.length;i++){var a=o[i];if(a)for(var s in a)if(a.hasOwnProperty(s)){if("subComponentStyles"===s&&void 0!==a.subComponentStyles){var u=a.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(u[d]):r[d]=[u[d]]);continue}var h=n[s],p=a[s];n[s]=void 0===h?p:l(Array.isArray(h)?h:[h],Array.isArray(p)?p:[p])}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(r.hasOwnProperty(e)){var t=r[e];f[e]=function(e){return c.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in r)g(d)}return n}var d=!1;var h=void 0;try{h=window}catch(e){}function p(e){if(!d&&void 0!==h){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:h}}var f=0,g=function(){function e(){}return e.getValue=function(e,t){var n=m();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=m(),r=n.__callbacks__,i=n[e];if(t!==i){n[e]=t;var o={oldValue:i,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](o)}return t},e.addChangeListener=function(e){var t=e.__id__,n=v();t||(t=e.__id__=String(f++)),n[t]=e},e.removeChangeListener=function(e){delete v()[e.__id__]},e}();function m(){var e,t=p()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function v(){return m().__callbacks__}var _={settings:{},scopedSettings:{},inCustomizerContext:!1},y=g.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),x=[],b=function(){function e(){}return e.reset=function(){y.settings={},y.scopedSettings={}},e.applySettings=function(t){y.settings=a(a({},y.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){y.scopedSettings[t]=a(a({},y.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=_);for(var r={},i=t&&n.scopedSettings[t]||{},o=t&&y.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=i[l]||n.settings[l]||o[l]||y.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){x.push(e)},e.unobserve=function(e){x=x.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||x.forEach((function(e){return e()}))},e}(),C=u.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function S(e,t){var n,r=(n=u.useState(0)[1],function(){return n((function(e){return++e}))}),i=u.useContext(C).customizations,o=i.inCustomizerContext;return u.useEffect((function(){return o||b.observe(r),function(){o||b.unobserve(r)}}),[o]),b.getSettings(e,t,i)}var E=["theme","styles"];function A(e,t,n,r,i){var o=(r=r||{scope:"",fields:void 0}).scope,l=r.fields,d=void 0===l?E:l,h=u.forwardRef((function(r,i){var l=u.useRef(),h=S(d,o),p=h.styles,f=(h.dir,s(h,["styles","dir"])),g=n?n(r):void 0,m=l.current&&l.current.__cachedInputs__||[];if(!l.current||p!==m[1]||r.styles!==m[2]){var v=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var a=o[i];a&&r.push("function"==typeof a?a(e):a)}return 1===r.length?r[0]:r.length?c.apply(void 0,r):{}}(e,t,p,r.styles)};v.__cachedInputs__=[t,p,r.styles],v.__noStyleOverride__=!p&&!r.styles,l.current=v}return u.createElement(e,a({ref:i},f,g,r,{styles:l.current}))}));h.displayName="Styled"+(e.displayName||e.name);var p=i?u.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var L,w=0,D=1,k=2,T="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),M={};try{M=window}catch(Nr){}var P,F=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=a({injectionMode:D,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._keyToClassName=this._config.classNameCache||{}}return e.getInstance=function(){var t;if(!(L=M.__stylesheet__)||L._lastStyleElement&&L._lastStyleElement.ownerDocument!==document){var n=(null===(t=M)||void 0===t?void 0:t.FabricConfig)||{};L=M.__stylesheet__=new e(n.mergeStyles)}return L},e.prototype.setConfig=function(e){this._config=a(a({},this._config),e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==w?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case D:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case k:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),T||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();n=i?i.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function N(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],i=F.getInstance();function o(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)o(s.split(" "));else{var l=i.argsFromClassName(s);l?o(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?o(s):"object"==typeof s&&r.push(s)}}return o(e),{classes:n,objects:r}}function H(e){P!==e&&(P=e)}function I(){return void 0===P&&(P="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),P}function O(){return{rtl:I()}}P=I();var B,V={};var R={"user-select":1};function W(e,t){var n=function(){var e,t;if(!B){var n="undefined"!=typeof document?document:void 0,r="undefined"!=typeof navigator?navigator:void 0,i=null===(t=null===(e=r)||void 0===e?void 0:e.userAgent)||void 0===t?void 0:t.toLowerCase();B=n?{isWebkit:!(!n||!("WebkitAppearance"in n.documentElement.style)),isMoz:!!(i&&i.indexOf("firefox")>-1),isOpera:!!(i&&i.indexOf("opera")>-1),isMs:!(!r||!/rv:11.0/i.test(r.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return B}(),r=e[t];if(R[r]){var i=e[t+1];R[r]&&(n.isWebkit&&e.push("-webkit-"+r,i),n.isMoz&&e.push("-moz-"+r,i),n.isMs&&e.push("-ms-"+r,i),n.isOpera&&e.push("-o-"+r,i))}}var U,z=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Y(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var i=z.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]=""+r+a}}var j="left",q="right",X=((U={})[j]=q,U[q]=j,U),K={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Z(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if("string"==typeof i&&i.indexOf("@noflip")>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(j)>=0)t[n]=r.replace(j,q);else if(r.indexOf(q)>=0)t[n]=r.replace(q,j);else if(String(i).indexOf(j)>=0)t[n+1]=i.replace(j,q);else if(String(i).indexOf(q)>=0)t[n+1]=i.replace(q,j);else if(X[r])t[n]=X[r];else if(K[i])t[n+1]=K[i];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(i);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(i,0)}}}function G(e){var t=e&&e["&"];return t?t.displayName:void 0}var $=/\:global\((.+?)\)/g;function Q(e,t){return e.indexOf(":global(")>=0?e.replace($,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function J(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?ee([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!$.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],i=t[2];return e.slice(0,n)+i+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return ee([r],t,Q(n,e))})):ee([r],t,Q(n,e))}function ee(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=F.getInstance(),i=t[n];i||(i={},t[n]=i,t.__order.push(n));for(var o=0,a=e;o<a.length;o++){var s=a[o];if("string"==typeof s){var l=r.argsFromClassName(s);l&&ee(l,t,n)}else if(Array.isArray(s))ee(s,t,n);else for(var u in s)if(s.hasOwnProperty(u)){var c=s[u];if("selectors"===u){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&J(n,t,h,d[h])}else"object"==typeof c?null!==c&&J(n,t,u,c):void 0!==c&&("margin"===u||"padding"===u?te(i,u,c):i[u]=c)}}return t}function te(e,t,n){var r="string"==typeof n?n.split(" "):[n];e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function ne(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,i=0,o=t.__order;i<o.length;i++){var a=o[i];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function re(e,t){return t<=0?"":1===t?e:e+re(e,t-1)}function ie(e,t){if(!t)return"";var n,r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&"displayName"!==a&&void 0!==t[a]&&o.push(a,t[a]);for(var s=0;s<o.length;s+=2)i=void 0,"-"!==(i=(n=o)[r=s]).charAt(0)&&(n[r]=V[i]=V[i]||i.replace(/([A-Z])/g,"-$1").toLowerCase()),Y(o,s),Z(e,o,s),W(o,s);for(s=1;s<o.length;s+=4)o.splice(s,1,":",o[s],";");return o.join("")}function oe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ee(t),i=ne(e,r);if(i){var o=F.getInstance(),a={className:o.classNameFromKey(i),key:i,args:t};if(!a.className){a.className=o.getClassName(G(r));for(var s=[],l=0,u=r.__order;l<u.length;l++){var c=u[l];s.push(c,ie(e,r[c]))}a.rulesToInsert=s}return a}}function ae(e,t){void 0===t&&(t=1);var n=F.getInstance(),r=e.className,i=e.key,o=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var u=a[s],c=(u=u.replace(/&/g,re("."+e.className,t)))+"{"+l+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(c)}}n.cacheClassName(r,i,o,a)}}function se(e,t){var n,r,i={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var o=c.apply(void 0,e),a=[];for(var s in o)if(o.hasOwnProperty(s)){if("subComponentStyles"===s){i.subComponentStyles=o.subComponentStyles||{};continue}var l=N(o[s]),u=l.classes,d=l.objects;if(null===(n=d)||void 0===n?void 0:n.length)(f=oe(t||{},{displayName:s},d))&&(a.push(f),i[s]=u.concat([f.className]).join(" "));else i[s]=u.join(" ")}for(var h=0,p=a;h<p.length;h++){var f;(f=p[h])&&ae(f,null===(r=t)||void 0===r?void 0:r.specificityMultiplier)}return i}var le=9,ue=13,ce=27,de=32,he=33,pe=34,fe=35,ge=36,me=37,ve=38,_e=39,ye=40,xe=67;function be(e){if(!d&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function Ce(e){var t=null;try{var n=p();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function Se(e,t){var n;try{null===(n=p())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}var Ee;function Ae(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===Ee){var t=Ce("isRTL");null!==t&&function(e,t){void 0===t&&(t=!1);var n=be();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&Se("isRTL",e?"1":"0");H(Ee=e)}(Ee="1"===t);var n=be();void 0===Ee&&n&&H(Ee="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!Ee}var Le=0,we=F.getInstance();we&&we.onReset&&we.onReset((function(){return Le++}));function De(e){void 0===e&&(e={});var t=new Map,n=0,r=0,i=Le;return function(o,a){var s,l;if(void 0===a&&(a={}),e.useStaticStyles&&"function"==typeof o&&o.__noStyleOverride__)return o(a);r++;var u=t,c=a.theme,d=c&&void 0!==c.rtl?c.rtl:Ae(),h=e.disableCaching;(i!==Le&&(i=Le,t=new Map,n=0),e.disableCaching||(u=Te(t,o),u=Te(u,a)),!h&&u.__retval__||(u.__retval__=void 0===o?{}:se(["function"==typeof o?o(a):o],{rtl:!!d,specificityMultiplier:e.useStaticStyles?5:void 0}),h||n++),n>(e.cacheSize||50))&&((null===(l=null===(s=p())||void 0===s?void 0:s.FabricConfig)||void 0===l?void 0:l.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0);return u.__retval__}}function ke(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function Te(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++){e=ke(e,r[n])}else e=ke(e,t);else if("object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e=ke(e,t[i]));return e}var Me=p()||{};void 0===Me.__currentId__&&(Me.__currentId__=0);var Pe=!1;function Fe(e){if(!Pe){var t=F.getInstance();t&&t.onReset&&t.onReset(Ne),Pe=!0}return(void 0===e?"id__":e)+Me.__currentId__++}function Ne(e){void 0===e&&(e=0),Me.__currentId__=e}function He(e,t,n){void 0===n&&(n=0);for(var r=-1,i=n;e&&i<e.length;i++)if(t(e[i],i)){r=i;break}return r}function Ie(e,t){var n=He(e,t);if(!(n<0))return e[n]}function Oe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Be=0,Ve=1,Re=2,We=3,Ue=4,ze=5,Ye=6,je=7,qe=8,Xe=9,Ke=10,Ze=11,Ge=12,$e=13;function Qe(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,n;return e&&((n=e)&&n._virtual)&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function Je(e,t){return e&&e!==document.body?t(e)?e:Je(Qe(e),t):null}function et(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var i=Qe(t);if(i===e){r=!0;break}t=i}else e.contains&&(r=e.contains(t));return r}function tt(e){var t=rt(e,e,!0,!1,!1,!0);return!!t&&(ct(t),!0)}function nt(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=it(t);if(i&&l&&(o||!at(t)&&!st(t))){var u=nt(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&ot(u,!0)||!s)return u;var c=nt(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var h=nt(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(h)return h;d=d.parentElement}}}if(n&&l&&ot(t,s))return t;var p=nt(e,t.previousElementSibling,!0,!0,!0,o,a,s);return p||(r?null:nt(e,t.parentElement,!0,!1,!1,o,a,s))}function rt(e,t,n,r,i,o,a,s){if(!t||t===e&&i&&!a)return null;var l=it(t);if(n&&l&&ot(t,s))return t;if(!i&&l&&(o||!at(t)&&!st(t))){var u=rt(e,t.firstElementChild,!0,!0,!1,o,a,s);if(u)return u}if(t===e)return null;var c=rt(e,t.nextElementSibling,!0,!0,!1,o,a,s);return c||(r?null:rt(e,t.parentElement,!1,!1,!0,o,a,s))}function it(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function ot(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var i=e.getAttribute?e.getAttribute("data-is-focusable"):null,o=null!==r&&n>=0,a=!!e&&"false"!==i&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===i||o);return t?-1!==n&&a:a}function at(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function st(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function lt(e,t){return"true"!==function(e,t){var n=Je(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var ut=void 0;function ct(e){if(e){if(ut)return void(ut=e);ut=e;var t=p(e);t&&t.requestAnimationFrame((function(){var e=ut;ut=void 0,e&&(e.getAttribute&&"true"===e.getAttribute("data-is-focusable")&&(e.getAttribute("tabindex")||e.setAttribute("tabindex","0")),e.focus())}))}}var dt=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._onErrorHandler&&n._onErrorHandler(e)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,i=p(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[r]=!0}return r},e.prototype.clearImmediate=function(e,t){var n=p(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var i,o,a=t||0,s=!0,l=!0,u=0,c=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=Date.now(),h=n-u,p=s?a-h:a;return h>=a&&(!t||s)?(u=n,c&&(r.clearTimeout(c),c=null),i=e.apply(r._parent,o)):null===c&&l&&(c=r.setTimeout(d,p)),i};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,a,s=t||0,l=!1,u=!0,c=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(u=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(c=n.maxWait);var f=function(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),o=e.apply(r._parent,a)},m=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var i=t-d,a=s-i,f=t-h,v=!1;return null!==c&&(f>=c&&p?v=!0:a=Math.min(a,c-f)),i>=s||v||n?g(t):null!==p&&e||!u||(p=r.setTimeout(m,a)),o},v=function(){return!!p},_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),o},_.pending=v,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,i=p(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=i.requestAnimationFrame?i.requestAnimationFrame(o):i.setTimeout(o,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=p(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function ht(e,t){for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}function pt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var i=0,o=n;i<o.length;i++){var a=o[i];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}var ft,gt,mt,vt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,i=e;r<i.length;r++)for(var o=i[r],a=Array.isArray(o)?o:Object.keys(o),s=0,l=a;s<l.length;s++){var u=l[s];n[u]=1}return n},_t=vt(["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"]),yt=vt(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),xt=vt(yt,_t),bt=(vt(xt,["form"]),vt(xt,["height","loop","muted","preload","src","width"])),Ct=(vt(bt,["poster"]),vt(xt,["start"]),vt(xt,["value"]),vt(xt,["download","href","hrefLang","media","rel","target","type"]),vt(xt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),St=(vt(Ct,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),vt(Ct,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),vt(Ct,["form","multiple","required"]),vt(xt,["selected","value"]),vt(xt,["cellPadding","cellSpacing"]),vt(xt,["rowSpan","scope"]),vt(xt,["colSpan","headers","rowSpan","scope"]),vt(xt,["span"]),vt(xt,["span"]),vt(xt,["acceptCharset","action","encType","encType","method","noValidate","target"]),vt(xt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),vt(xt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),xt);function Et(e,t,n){for(var r,i=Array.isArray(t),o={},a=0,s=Object.keys(e);a<s.length;a++){var l=s[a];!(!i&&t[l]||i&&t.indexOf(l)>=0||0===l.indexOf("data-")||0===l.indexOf("aria-"))||n&&-1!==(null===(r=n)||void 0===r?void 0:r.indexOf(l))||(o[l]=e[l])}return o}function At(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];if(o)if("string"==typeof o)n.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)n.push(o.toString());else for(var a in o)o[a]&&n.push(a)}return n.join(" ")}function Lt(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dt(e,O())}function Dt(e,t){var n=N(e instanceof Array?e:[e]),r=n.classes,i=n.objects;return i.length&&r.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=oe.apply(void 0,l([e],t));return r?(ae(r,e.specificityMultiplier),r.className):""}(t||{},i)),r.join(" ")}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(ft||(ft={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(gt||(gt={}));wt({overflow:"hidden !important"});function kt(){if(void 0===mt){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),mt=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return mt}function Tt(e){for(var t=e,n=be(e);t&&t!==n.body;){if("true"===t.getAttribute("data-is-scrollable"))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute("data-is-scrollable")){var r=getComputedStyle(t),i=r?r.getPropertyValue("overflow-y"):"";if(i&&("scroll"===i||"auto"===i))return t}t=t.parentElement}return t&&t!==n.body||(t=p(e)),t}var Mt,Pt=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function Ft(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var Nt=((Mt={})[Be]=Ft(ft.top,ft.left),Mt[Ve]=Ft(ft.top),Mt[Re]=Ft(ft.top,ft.right),Mt[We]=Ft(ft.top,void 0,!0),Mt[Ue]=Ft(ft.bottom,ft.left),Mt[ze]=Ft(ft.bottom),Mt[Ye]=Ft(ft.bottom,ft.right),Mt[je]=Ft(ft.bottom,void 0,!0),Mt[qe]=Ft(ft.left,ft.top),Mt[Xe]=Ft(ft.left),Mt[Ke]=Ft(ft.left,ft.bottom),Mt[Ze]=Ft(ft.right,ft.top),Mt[Ge]=Ft(ft.right),Mt[$e]=Ft(ft.right,ft.bottom),Mt);function Ht(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function It(e,t){var n=[];return e.top<t.top&&n.push(ft.top),e.bottom>t.bottom&&n.push(ft.bottom),e.left<t.left&&n.push(ft.left),e.right>t.right&&n.push(ft.right),n}function Ot(e,t){return e[ft[t]]}function Bt(e,t,n){return e[ft[t]]=n,e}function Vt(e,t){var n=Gt(t);return(Ot(e,n.positiveEdge)+Ot(e,n.negativeEdge))/2}function Rt(e,t){return e>0?t:-1*t}function Wt(e,t){return Rt(e,Ot(t,e))}function Ut(e,t,n){return Rt(n,Ot(e,n)-Ot(t,n))}function zt(e,t,n){var r=Ot(e,t)-n;return e=Bt(e,t,n),e=Bt(e,-1*t,Ot(e,-1*t)-r)}function Yt(e,t,n,r){return void 0===r&&(r=0),zt(e,n,Ot(t,n)+Rt(n,r))}function jt(e,t,n){return Wt(n,e)>Wt(n,t)}function qt(e,t,n,r,i,o,a){void 0===i&&(i=0);var s=r.alignmentEdge,l=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};o||a||(u=function(e,t,n,r,i){void 0===i&&(i=0);var o=[ft.left,ft.right,ft.bottom,ft.top];Ae()&&(o[0]*=-1,o[1]*=-1);for(var a=e,s=r.targetEdge,l=r.alignmentEdge,u=0;u<4;u++){if(jt(a,n,s))return{elementRectangle:a,targetEdge:s,alignmentEdge:l};o.splice(o.indexOf(s),1),o.length>0&&(o.indexOf(-1*s)>-1?s*=-1:(l=s,s=o.slice(-1)[0]),a=Zt(e,t,{targetEdge:s,alignmentEdge:l},i))}return{elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}}(e,t,n,r,i));var c=It(e,n);if(l){if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var d=function(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=-1*i;return{elementRectangle:Zt(e.elementRectangle,t,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(u,t,i,a);if(Ht(d.elementRectangle,n))return d;u=Xt(It(d.elementRectangle,n),u,n)}}else u=Xt(c,u,n);return u}function Xt(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];t.elementRectangle=Yt(t.elementRectangle,n,o)}return t}function Kt(e,t,n){var r=Gt(t).positiveEdge;return zt(e,r,n-(Vt(e,t)-Ot(e,r)))}function Zt(e,t,n,r,i){var o;void 0===r&&(r=0);var a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;(o=i?Yt(e,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var i=Rt(-1*n,r);return zt(e,-1*n,Ot(t,n)+i)}(e,t,s,r),a)?o=Yt(o,t,a):o=Kt(o,l,Vt(t,s));return o}function Gt(e){return e===ft.top||e===ft.bottom?{positiveEdge:ft.left,negativeEdge:ft.right}:{positiveEdge:ft.top,negativeEdge:ft.bottom}}function $t(e,t,n){return n&&Math.abs(Ut(e,n,t))>Math.abs(Ut(e,n,-1*t))?-1*t:t}function Qt(e){return Math.sqrt(e*e*2)}function Jt(e,t,n){if(void 0===e&&(e=je),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=a({},Nt[e]);return Ae()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?Nt[t]:r):r}function en(e,t,n){var r=Vt(t,e),i=Vt(n,e),o=Gt(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function tn(e,t,n,r,i,o,a){var s=Zt(e,t,r,i,a);return Ht(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:qt(e,t,n,r,i,o,a)}function nn(e,t,n){var r=-1*e.targetEdge,i=new Pt(0,e.elementRectangle.width,0,e.elementRectangle.height),o={},s=$t(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Gt(r).positiveEdge,n);return o[ft[r]]=Ot(t,r),o[ft[s]]=Ut(t,i,s),{elementPosition:a({},o),closestEdge:en(e.targetEdge,t,i),targetEdge:r}}function rn(e,t){var n=t.targetRectangle,r=Gt(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=Vt(n,t.targetEdge),s=new Pt(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new Pt(0,e,0,e);return jt(l=Kt(l=zt(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-Wt(i,t.elementRectangle)),s,i)?jt(l,s,o)||(l=Yt(l,s,o)):l=Yt(l,s,i),l}function on(e){var t=e.getBoundingClientRect();return new Pt(t.left,t.right,t.top,t.bottom)}function an(e){return new Pt(e.left,e.right,e.top,e.bottom)}function sn(e,t,n,r,i){var o=0,a=Nt[t],s=i?-1*a.targetEdge:a.targetEdge;return(o=s===ft.top?Ot(e,a.targetEdge)-r.top-n:s===ft.bottom?r.bottom-Ot(e,a.targetEdge)-n:r.bottom-e.top-n)>0?o:r.height}function ln(e,t,n,r){var i=e.gapSpace?e.gapSpace:0,o=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new Pt(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=on(t);else{var i=t,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new Pt(o,s,a,l)}if(!Ht(n,e))for(var u=0,c=It(n,e);u<c.length;u++){var d=c[u];n[ft[d]]=e[ft[d]]}}else n=new Pt(0,0,0,0);return n}(n,e.target),s=function(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=en(e.targetEdge,t,n)),e.alignTargetEdge=i,e}(Jt(e.directionalHint,e.directionalHintForRTL,r),o,n,e.coverTarget,e.alignTargetEdge),l=tn(on(t),o,n,s,i,e.directionalHintFixed,e.coverTarget);return a(a({},l),{targetRectangle:o})}function un(e,t,n,r,i){return{elementPosition:function(e,t,n,r,i,o,a){var s={},l=on(t),u=o?n:-1*n,c=ft[u],d=i||Gt(n).positiveEdge;return a||(d=$t(e,d,r)),s[c]=Ut(e,l,u),s[ft[d]]=Ut(e,l,d),s}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,i),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function cn(e,t,n,r,i){var o=e.isBeakVisible&&e.beakWidth||0,s=Qt(o)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var u=e.bounds?an(e.bounds):new Pt(0,window.innerWidth-kt(),0,window.innerHeight),c=ln(l,n,u,r),d=nn(c,rn(o,c),u);return a(a({},un(c,t,u,e.coverTarget,i)),{beakPosition:d})}function dn(e,t,n,r){return function(e,t,n,r){return cn(e,t,n,r,!0)}(e,t,n,r)}var hn=function(e){function t(t){var n=e.call(this,t)||this;return n._root=u.createRef(),n._disposables=[],n._onKeyDown=function(e){switch(e.which){case ce:n.props.onDismiss&&(n.props.onDismiss(e),e.preventDefault(),e.stopPropagation())}},n._onFocus=function(){n._containsFocus=!0},n._onBlur=function(e){n._root.current&&e.relatedTarget&&!et(n._root.current,e.relatedTarget)&&(n._containsFocus=!1)},n._async=new dt(n),n.state={needsVerticalScrollBar:!1},n}return o(t,e),t.prototype.UNSAFE_componentWillMount=function(){this._originalFocusedElement=be().activeElement},t.prototype.componentDidMount=function(){if(this._root.current){this._disposables.push(Lt(this._root.current,"focus",this._onFocus,!0),Lt(this._root.current,"blur",this._onBlur,!0));var e=p(this._root.current);e&&this._disposables.push(Lt(e,"keydown",this._onKeyDown)),function(e){var t=be(e),n=t&&t.activeElement;return!(!n||!et(e,n))}(this._root.current)&&(this._containsFocus=!0)}this._updateScrollBarAsync()},t.prototype.componentDidUpdate=function(){this._updateScrollBarAsync(),this._async.dispose()},t.prototype.componentWillUnmount=function(){var e;if(this._disposables.forEach((function(e){return e()})),this.props.shouldRestoreFocus){var t=this.props.onRestoreFocus;(void 0===t?pn:t)({originalElement:this._originalFocusedElement,containsFocus:this._containsFocus,documentContainsFocus:(null===(e=be())||void 0===e?void 0:e.hasFocus())||!1})}delete this._originalFocusedElement},t.prototype.render=function(){var e=this.props,t=e.role,n=e.className,r=e.ariaLabel,i=e.ariaLabelledBy,o=e.ariaDescribedBy,s=e.style;return u.createElement("div",a({ref:this._root},Et(this.props,St),{className:n,role:t,"aria-label":r,"aria-labelledby":i,"aria-describedby":o,onKeyDown:this._onKeyDown,style:a({overflowY:this.state.needsVerticalScrollBar?"scroll":void 0,outline:"none"},s)}),this.props.children)},t.prototype._updateScrollBarAsync=function(){var e=this;this._async.requestAnimationFrame((function(){e._getScrollBar()}))},t.prototype._getScrollBar=function(){if(!this.props.style||!this.props.style.overflowY){var e=!1;if(this._root&&this._root.current&&this._root.current.firstElementChild){var t=this._root.current.clientHeight,n=this._root.current.firstElementChild.clientHeight;t>0&&n>t&&(e=n-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(u.Component);function pn(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==window&&t.focus&&t.focus()}function fn(e){var t=F.getInstance(),n=t.getClassName(),r=[];for(var i in e)e.hasOwnProperty(i)&&r.push(i,"{",ie(O(),e[i]),"}");var o=r.join("");return t.insertRule("@keyframes "+n+"{"+o+"}",!0),t.cacheClassName(n,o,[],["keyframes",o]),n}var gn="cubic-bezier(.1,.9,.2,1)",mn="cubic-bezier(.1,.25,.75,.9)",vn=fn({from:{opacity:0},to:{opacity:1}}),_n=fn({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),yn=Gn(-10),xn=Gn(-20),bn=Gn(-40),Cn=Gn(-400),Sn=Gn(10),En=Gn(20),An=Gn(40),Ln=Gn(400),wn=$n(10),Dn=$n(20),kn=$n(-10),Tn=$n(-20),Mn=Qn(10),Pn=Qn(20),Fn=Qn(40),Nn=Qn(400),Hn=Qn(-10),In=Qn(-20),On=Qn(-40),Bn=Qn(-400),Vn=Jn(-10),Rn=Jn(-20),Wn=Jn(10),Un=Jn(20),zn=fn({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),Yn=fn({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),jn=fn({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),qn=fn({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Xn=fn({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Kn=fn({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function Zn(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function Gn(e){return fn({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function $n(e){return fn({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Qn(e){return fn({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function Jn(e){return fn({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var er,tr,nr,rr,ir,or=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=wt(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}({slideRightIn10:Zn(vn+","+yn,"0.367s",gn),slideRightIn20:Zn(vn+","+xn,"0.367s",gn),slideRightIn40:Zn(vn+","+bn,"0.367s",gn),slideRightIn400:Zn(vn+","+Cn,"0.367s",gn),slideLeftIn10:Zn(vn+","+Sn,"0.367s",gn),slideLeftIn20:Zn(vn+","+En,"0.367s",gn),slideLeftIn40:Zn(vn+","+An,"0.367s",gn),slideLeftIn400:Zn(vn+","+Ln,"0.367s",gn),slideUpIn10:Zn(vn+","+wn,"0.367s",gn),slideUpIn20:Zn(vn+","+Dn,"0.367s",gn),slideDownIn10:Zn(vn+","+kn,"0.367s",gn),slideDownIn20:Zn(vn+","+Tn,"0.367s",gn),slideRightOut10:Zn(_n+","+Mn,"0.367s",gn),slideRightOut20:Zn(_n+","+Pn,"0.367s",gn),slideRightOut40:Zn(_n+","+Fn,"0.367s",gn),slideRightOut400:Zn(_n+","+Nn,"0.367s",gn),slideLeftOut10:Zn(_n+","+Hn,"0.367s",gn),slideLeftOut20:Zn(_n+","+In,"0.367s",gn),slideLeftOut40:Zn(_n+","+On,"0.367s",gn),slideLeftOut400:Zn(_n+","+Bn,"0.367s",gn),slideUpOut10:Zn(_n+","+Vn,"0.367s",gn),slideUpOut20:Zn(_n+","+Rn,"0.367s",gn),slideDownOut10:Zn(_n+","+Wn,"0.367s",gn),slideDownOut20:Zn(_n+","+Un,"0.367s",gn),scaleUpIn100:Zn(vn+","+zn,"0.367s",gn),scaleDownIn100:Zn(vn+","+jn,"0.367s",gn),scaleUpOut103:Zn(_n+","+qn,"0.167s",mn),scaleDownOut98:Zn(_n+","+Yn,"0.167s",mn),fadeIn100:Zn(vn,"0.167s",mn),fadeIn200:Zn(vn,"0.267s",mn),fadeIn400:Zn(vn,"0.367s",mn),fadeIn500:Zn(vn,"0.467s",mn),fadeOut100:Zn(_n,"0.167s",mn),fadeOut200:Zn(_n,"0.267s",mn),fadeOut400:Zn(_n,"0.367s",mn),fadeOut500:Zn(_n,"0.467s",mn),rotate90deg:Zn(Xn,"0.1s",mn),rotateN90deg:Zn(Kn,"0.1s",mn)}),ar={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"};!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(er||(er={})),function(e){e.Arabic="'"+er.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+er.Cyrillic+"'",e.EastEuropean="'"+er.EastEuropean+"'",e.Greek="'"+er.Greek+"'",e.Hebrew="'"+er.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+er.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+er.Vietnamese+"'",e.WestEuropean="'"+er.WestEuropean+"'",e.Armenian="'"+er.Armenian+"'",e.Georgian="'"+er.Georgian+"'"}(tr||(tr={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(nr||(nr={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(rr||(rr={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(ir||(ir={}));var sr="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",lr="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)";var ur;function cr(e,t){var n=t?p(t):p();if(n){var r=n.document.body.classList;r.add(e?"ms-Fabric--isFocusVisible":"ms-Fabric--isFocusHidden"),r.remove(e?"ms-Fabric--isFocusHidden":"ms-Fabric--isFocusVisible")}}function dr(e,t,n,r,i,o,a){return hr(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:i,outlineColor:o,isFocusedOnly:a})}function hr(e,t){var n,r;void 0===t&&(t={});var i=t.inset,o=void 0===i?0:i,a=t.width,s=void 0===a?1:a,l=t.position,u=void 0===l?"relative":l,c=t.highContrastStyle,d=t.borderColor,h=void 0===d?e.palette.white:d,p=t.outlineColor,f=void 0===p?e.palette.neutralSecondary:p,g=t.isFocusedOnly;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".ms-Fabric--isFocusVisible &"+(void 0===g||g?":focus":"")+":after"]={content:'""',position:"absolute",left:o+1,top:o+1,bottom:o+1,right:o+1,border:s+"px solid "+h,outline:s+"px solid "+f,zIndex:ur.FocusStyle,selectors:(r={},r[sr]=c,r)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(ur||(ur={}));var pr=!1,fr=0,gr={empty:!0},mr={},vr="undefined"==typeof WeakMap?null:WeakMap;function _r(){fr++}function yr(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!vr)return e;if(!pr){var r=F.getInstance();r&&r.onReset&&F.getInstance().onReset(_r),pr=!0}var i,o=0,a=fr;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=i;(void 0===i||a!==fr||t>0&&o>t)&&(i=Cr(),o=0,a=fr),l=i;for(var u=0;u<r.length;u++){var c=br(r[u]);l.map.has(c)||l.map.set(c,Cr()),l=l.map.get(c)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),o++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function xr(e){if(!vr)return e;var t=new vr;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function br(e){return e?"object"==typeof e||"function"==typeof e?e:(mr[e]||(mr[e]={val:e}),mr[e]):gr}function Cr(){return{map:vr?new vr:null}}var Sr=yr((function(e,t){var n=F.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function Er(e,t,n){return Sr(e,void 0!==n?n:t.disableGlobalClassNames)}var Ar,Lr=n(16);!function(e){e.depth0="0 0 0 0 transparent",e.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)",e.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)",e.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)",e.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)"}(Ar||(Ar={}));var wr={elevation4:Ar.depth4,elevation8:Ar.depth8,elevation16:Ar.depth16,elevation64:Ar.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};var Dr,kr="'Segoe UI', '"+er.WestEuropean+"'",Tr={ar:tr.Arabic,bg:tr.Cyrillic,cs:tr.EastEuropean,el:tr.Greek,et:tr.EastEuropean,he:tr.Hebrew,hi:tr.Hindi,hr:tr.EastEuropean,hu:tr.EastEuropean,ja:tr.Japanese,kk:tr.EastEuropean,ko:tr.Korean,lt:tr.EastEuropean,lv:tr.EastEuropean,pl:tr.EastEuropean,ru:tr.Cyrillic,sk:tr.EastEuropean,"sr-latn":tr.EastEuropean,th:tr.Thai,tr:tr.EastEuropean,uk:tr.Cyrillic,vi:tr.Vietnamese,"zh-hans":tr.ChineseSimplified,"zh-hant":tr.ChineseTraditional,hy:tr.Armenian,ka:tr.Georgian};function Mr(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var Pr,Fr,Nr,Hr,Ir,Or=(Pr=function(e){if(void 0===e&&(e="localStorage"),void 0===Dr){var t=be(),n="localStorage"===e?function(e){var t=null;try{var n=p();t=n?n.localStorage.getItem(e):null}catch(e){}return t}("language"):"sessionStorage"===e?Ce("language"):void 0;n&&(Dr=n),void 0===Dr&&t&&(Dr=t.documentElement.getAttribute("lang")),void 0===Dr&&(Dr="en")}return Dr}("sessionStorage"),Fr=function(e){for(var t in Tr)if(Tr.hasOwnProperty(t)&&e&&0===t.indexOf(e))return Tr[t];return kr}(Pr)+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",{tiny:Mr(nr.mini,rr.regular,Fr),xSmall:Mr(nr.xSmall,rr.regular,Fr),small:Mr(nr.small,rr.regular,Fr),smallPlus:Mr(nr.smallPlus,rr.regular,Fr),medium:Mr(nr.medium,rr.regular,Fr),mediumPlus:Mr(nr.mediumPlus,rr.regular,Fr),large:Mr(nr.large,rr.regular,Fr),xLarge:Mr(nr.xLarge,rr.semibold,Fr),xLargePlus:Mr(nr.xLargePlus,rr.semibold,Fr),xxLarge:Mr(nr.xxLarge,rr.semibold,Fr),xxLargePlus:Mr(nr.xxLargePlus,rr.semibold,Fr),superLarge:Mr(nr.superLarge,rr.semibold,Fr),mega:Mr(nr.mega,rr.semibold,Fr)});function Br(e,t,n,r){var i;i={fontFamily:e="'"+e+"'",src:(void 0!==r?"local('"+r+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"},F.getInstance().insertRule("@font-face{"+ie(O(),i)+"}",!0)}function Vr(e,t,n,r,i){void 0===r&&(r="segoeui");var o=e+"/"+n+"/"+r;Br(t,o+"-light",rr.light,i&&i+" Light"),Br(t,o+"-semilight",rr.semilight,i&&i+" SemiLight"),Br(t,o+"-regular",rr.regular,i),Br(t,o+"-semibold",rr.semibold,i&&i+" SemiBold"),Br(t,o+"-bold",rr.bold,i&&i+" Bold")}function Rr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];Wr(e||{},o)}return e}function Wr(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=t[r];if("object"!=typeof i||null===i||Array.isArray(i))e[r]=i;else{var o=n.indexOf(i)>-1;e[r]=o?i:Wr(e[r]||{},i,n)}}return n.pop(),e}function Ur(e,t,n,r,i){return void 0===i&&(i=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(zr(e,t,a({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),i)}function zr(e,t,n,r,i){var o,s,l;void 0===i&&(i=!1);var u={},c=e||{},d=c.white,h=c.black,p=c.themePrimary,f=c.themeDark,g=c.themeDarker,m=c.themeDarkAlt,v=c.themeLighter,_=c.neutralLight,y=c.neutralLighter,x=c.neutralDark,b=c.neutralQuaternary,C=c.neutralQuaternaryAlt,S=c.neutralPrimary,E=c.neutralSecondary,A=c.neutralSecondaryAlt,L=c.neutralTertiary,w=c.neutralTertiaryAlt,D=c.neutralLighterAlt,k=c.accent;return d&&(u.bodyBackground=d,u.bodyFrameBackground=d,u.accentButtonText=d,u.buttonBackground=d,u.primaryButtonText=d,u.primaryButtonTextHovered=d,u.primaryButtonTextPressed=d,u.inputBackground=d,u.inputForegroundChecked=d,u.listBackground=d,u.menuBackground=d,u.cardStandoutBackground=d),h&&(u.bodyTextChecked=h,u.buttonTextCheckedHovered=h),p&&(u.link=p,u.primaryButtonBackground=p,u.inputBackgroundChecked=p,u.inputIcon=p,u.inputFocusBorderAlt=p,u.menuIcon=p,u.menuHeader=p,u.accentButtonBackground=p),f&&(u.primaryButtonBackgroundPressed=f,u.inputBackgroundCheckedHovered=f,u.inputIconHovered=f),g&&(u.linkHovered=g),m&&(u.primaryButtonBackgroundHovered=m),v&&(u.inputPlaceholderBackgroundChecked=v),_&&(u.bodyBackgroundChecked=_,u.bodyFrameDivider=_,u.bodyDivider=_,u.variantBorder=_,u.buttonBackgroundCheckedHovered=_,u.buttonBackgroundPressed=_,u.listItemBackgroundChecked=_,u.listHeaderBackgroundPressed=_,u.menuItemBackgroundPressed=_,u.menuItemBackgroundChecked=_),y&&(u.bodyBackgroundHovered=y,u.buttonBackgroundHovered=y,u.buttonBackgroundDisabled=y,u.buttonBorderDisabled=y,u.primaryButtonBackgroundDisabled=y,u.disabledBackground=y,u.listItemBackgroundHovered=y,u.listHeaderBackgroundHovered=y,u.menuItemBackgroundHovered=y),b&&(u.primaryButtonTextDisabled=b,u.disabledSubtext=b),C&&(u.listItemBackgroundCheckedHovered=C),L&&(u.disabledBodyText=L,u.variantBorderHovered=(null===(o=n)||void 0===o?void 0:o.variantBorderHovered)||L,u.buttonTextDisabled=L,u.inputIconDisabled=L,u.disabledText=L),S&&(u.bodyText=S,u.actionLink=S,u.buttonText=S,u.inputBorderHovered=S,u.inputText=S,u.listText=S,u.menuItemText=S),D&&(u.bodyStandoutBackground=D,u.defaultStateBackground=D),x&&(u.actionLinkHovered=x,u.buttonTextHovered=x,u.buttonTextChecked=x,u.buttonTextPressed=x,u.inputTextHovered=x,u.menuItemTextHovered=x),E&&(u.bodySubtext=E,u.focusBorder=E,u.inputBorder=E,u.smallInputBorder=E,u.inputPlaceholderText=E),A&&(u.buttonBorder=A),w&&(u.disabledBodySubtext=w,u.disabledBorder=w,u.buttonBackgroundChecked=w,u.menuDivider=w),k&&(u.accentButtonBackground=k),(null===(s=t)||void 0===s?void 0:s.elevation4)&&(u.cardShadow=t.elevation4),!r&&(null===(l=t)||void 0===l?void 0:l.elevation8)?u.cardShadowHovered=t.elevation8:u.variantBorderHovered&&(u.cardShadowHovered="0 0 1px "+u.variantBorderHovered),u=a(a({},u),n)}!function(e){if(e){var t=e+"/fonts";Vr(t,er.Thai,"leelawadeeui-thai","leelawadeeui"),Vr(t,er.Arabic,"segoeui-arabic"),Vr(t,er.Cyrillic,"segoeui-cyrillic"),Vr(t,er.EastEuropean,"segoeui-easteuropean"),Vr(t,er.Greek,"segoeui-greek"),Vr(t,er.Hebrew,"segoeui-hebrew"),Vr(t,er.Vietnamese,"segoeui-vietnamese"),Vr(t,er.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Vr(t,tr.Selawik,"selawik","selawik"),Vr(t,er.Armenian,"segoeui-armenian"),Vr(t,er.Georgian,"segoeui-georgian"),Br("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",rr.light),Br("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",rr.semibold)}}(null!=(Ir=null===(Hr=null===(Nr=p())||void 0===Nr?void 0:Nr.FabricConfig)||void 0===Hr?void 0:Hr.fontBaseUrl)?Ir:"https://static2.sharepointonline.com/files/fabric/assets");var Yr={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function jr(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,i,o;void 0===t&&(t={});var a=Rr({},e,t,{semanticColors:zr(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,l=Object.keys(a.fonts);s<l.length;s++){var u=l[s];a.fonts[u]=Rr(a.fonts[u],t.defaultFontStyle,null===(o=null===(i=t)||void 0===i?void 0:i.fonts)||void 0===o?void 0:o[u])}return t.stylesheets&&(a.stylesheets=(e.stylesheets||[]).concat(t.stylesheets)),a}({palette:ar,effects:wr,fonts:Or,spacing:Yr,isInverted:n,disableGlobalClassNames:!1,semanticColors:Ur(ar,wr,void 0,n,t),rtl:void 0},e)}var qr,Xr=jr({}),Kr=[];function Zr(){var e,t,n,r,i,o=p();(null===(n=null===(t=o)||void 0===t?void 0:t.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1);Xr=jr(e,t),Object(Lr.a)(a(a(a(a({},Xr.palette),Xr.semanticColors),Xr.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var i=r[n],o=e.fonts[i],a=0,s=Object.keys(o);a<s.length;a++){var l=s[a],u=i+l.charAt(0).toUpperCase()+l.slice(1),c=o[l];"fontSize"===l&&"number"==typeof c&&(c+="px"),t[u]=c}return t}(Xr))),b.applySettings(((n={}).theme=Xr,n)),Kr.forEach((function(e){try{e(Xr)}catch(e){}}))}(o.FabricConfig.legacyTheme):b.getSettings(["theme"]).theme||((null===(i=null===(r=o)||void 0===r?void 0:r.FabricConfig)||void 0===i?void 0:i.theme)&&(Xr=jr(o.FabricConfig.theme)),b.applySettings(((e={}).theme=Xr,e)))}Zr(),Object(r.a)("@uifabric/styling","7.25.1"),Zr();var Gr=((qr={})[ft.top]=or.slideUpIn10,qr[ft.bottom]=or.slideDownIn10,qr[ft.left]=or.slideLeftIn10,qr[ft.right]=or.slideRightIn10,qr),$r=De({disableCaching:!0}),Qr=0,Jr=0,ei={opacity:0,filter:"opacity(0)",pointerEvents:"none"},ti=["role","aria-roledescription"],ni=function(e){function t(t){var n=e.call(this,t)||this;return n._hostElement=u.createRef(),n._calloutElement=u.createRef(),n._hasListeners=!1,n._disposables=[],n.dismiss=function(e){var t=n.props.onDismiss;t&&t(e)},n._dismissOnScroll=function(e){var t=n.props,r=t.preventDismissOnEvent,i=t.preventDismissOnScroll;n.state.positions&&(r&&!r(e)||!r&&!i)&&n._dismissOnClickOrScroll(e)},n._dismissOnResize=function(e){var t=n.props,r=t.preventDismissOnEvent,i=t.preventDismissOnResize;(r&&!r(e)||!r&&!i)&&n.dismiss(e)},n._dismissOnLostFocus=function(e){var t=n.props,r=t.preventDismissOnEvent,i=t.preventDismissOnLostFocus;(r&&!r(e)||!r&&!i)&&n._dismissOnClickOrScroll(e)},n._setInitialFocus=function(){n.props.setInitialFocus&&!n._didSetInitialFocus&&n.state.positions&&n._calloutElement.current&&(n._didSetInitialFocus=!0,n._async.requestAnimationFrame((function(){return tt(n._calloutElement.current)}),n._calloutElement.current))},n._onComponentDidMount=function(){n._addListeners(),n.props.onLayerMounted&&n.props.onLayerMounted(),n._updateAsyncPosition(),n._setHeightOffsetEveryFrame()},n._dismissOnTargetWindowBlur=function(e){var t=n.props,r=t.preventDismissOnEvent,i=t.preventDismissOnLostFocus;t.shouldDismissOnWindowFocus&&((!r||r(e))&&(r||i)||n._targetWindow.document.hasFocus()||null!==e.relatedTarget||n.dismiss(e))},n._mouseDownOnPopup=function(){n._isMouseDownOnPopup=!0},n._mouseUpOnPopup=function(){n._isMouseDownOnPopup=!1},n._async=new dt(n),n._didSetInitialFocus=!1,n.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},n._positionAttempts=0,n}return o(t,e),t.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},t.prototype.shouldComponentUpdate=function(e,t){return!(!e.shouldUpdateWhenHidden&&this.props.hidden&&e.hidden)&&(!ht(this.props,e)||!ht(this.state,t))},t.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach((function(e){return e()}))},t.prototype.UNSAFE_componentWillUpdate=function(e){var t=this._getTarget(e);(t!==this._getTarget()||"string"==typeof t||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),e.gapSpace===this.props.gapSpace&&this.props.beakWidth===e.beakWidth||(this._maxHeight=void 0),e.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),this._didPositionPropsChange(e,this.props)&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},t.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},t.prototype.render=function(){if(!this._targetWindow)return null;var e=this.props.target,t=this.props,n=t.styles,r=t.style,i=t.ariaLabel,o=t.ariaDescribedBy,s=t.ariaLabelledBy,l=t.className,c=t.isBeakVisible,d=t.children,h=t.beakWidth,p=t.calloutWidth,f=t.calloutMaxWidth,g=t.calloutMinWidth,m=t.finalHeight,v=t.hideOverflow,_=void 0===v?!!m:v,y=t.backgroundColor,x=t.calloutMaxHeight,b=t.onScroll,C=t.shouldRestoreFocus,S=void 0===C||C,E=t.popupProps;e=this._getTarget();var A=this.state.positions,L=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,w=x&&L&&x<L?x:L,D=_,k=c&&!!e;this._classNames=$r(n,{theme:this.props.theme,className:l,overflowYHidden:D,calloutWidth:p,positions:A,beakWidth:h,backgroundColor:y,calloutMinWidth:g,calloutMaxWidth:f});var T=a(a(a({},r),{maxHeight:w}),D&&{overflowY:"hidden"}),M=this.props.hidden?{visibility:"hidden"}:void 0;return u.createElement("div",{ref:this._hostElement,className:this._classNames.container,style:M},u.createElement("div",a({},Et(this.props,St,ti),{className:At(this._classNames.root,A&&A.targetEdge&&Gr[A.targetEdge]),style:A?A.elementPosition:ei,tabIndex:-1,ref:this._calloutElement}),k&&u.createElement("div",{className:this._classNames.beak,style:this._getBeakPosition()}),k&&u.createElement("div",{className:this._classNames.beakCurtain}),u.createElement(hn,a({},Et(this.props,ti),{ariaLabel:i,onRestoreFocus:this.props.onRestoreFocus,ariaDescribedBy:o,ariaLabelledBy:s,className:this._classNames.calloutMain,onDismiss:this.dismiss,onScroll:b,shouldRestoreFocus:S,style:T,onMouseDown:this._mouseDownOnPopup,onMouseUp:this._mouseUpOnPopup},E),d)))},t.prototype._dismissOnClickOrScroll=function(e){var t=e.target,n=this._hostElement.current&&!et(this._hostElement.current,t);n&&this._isMouseDownOnPopup?this._isMouseDownOnPopup=!1:(!this._target&&n||e.target!==this._targetWindow&&n&&(this._target.stopPropagation||!this._target||this.props.dismissOnTargetClick||t!==this._target&&!et(this._target,t)))&&this.dismiss(e)},t.prototype._addListeners=function(){var e=this;this._async.setTimeout((function(){e._disposables.push(Lt(e._targetWindow,"scroll",e._dismissOnScroll,!0),Lt(e._targetWindow,"resize",e._dismissOnResize,!0),Lt(e._targetWindow.document.documentElement,"focus",e._dismissOnLostFocus,!0),Lt(e._targetWindow.document.documentElement,"click",e._dismissOnLostFocus,!0),Lt(e._targetWindow,"blur",e._dismissOnTargetWindowBlur,!0)),e._hasListeners=!0}),0)},t.prototype._removeListeners=function(){this._disposables.forEach((function(e){return e()})),this._disposables=[],this._hasListeners=!1},t.prototype._updateAsyncPosition=function(){var e=this;this._async.requestAnimationFrame((function(){return e._updatePosition()}),this._calloutElement.current)},t.prototype._getBeakPosition=function(){var e=this.state.positions,t=a({},e&&e.beakPosition?e.beakPosition.elementPosition:null);return t.top||t.bottom||t.left||t.right||(t.left=Jr,t.top=Qr),t},t.prototype._updatePosition=function(){this._setTargetWindowAndElement(this._getTarget());var e=this.state.positions,t=this._hostElement.current,n=this._calloutElement.current,r=!!this.props.target;if(t&&n&&(!r||this._target)){var i=a({},this.props);i.bounds=this._getBounds(),i.target=this._target;var o=this.props.finalHeight?dn(i,t,n,e):function(e,t,n,r){return cn(e,t,n,r)}(i,t,n,e);!e&&o||e&&o&&!this._arePositionsEqual(e,o)&&this._positionAttempts<5?(this._positionAttempts++,this.setState({positions:o})):this._positionAttempts>0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds,t="function"==typeof e?e(this.props.target,this._targetWindow):e;t||(n=this._target,r=this._targetWindow,t={top:(t=function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,i=0;if(null!==e&&e.getBoundingClientRect){var o=e.getBoundingClientRect();r=(o.left+o.right)/2,i=(o.top+o.bottom)/2}else null!==e&&(r=e.left||e.x,i=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var u=l[s];r&&u.left<=r&&u.right>=r&&i&&u.top<=i&&u.bottom>=i&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}(n,r)).top+this.props.minPagePadding,left:t.left+this.props.minPagePadding,right:t.right-this.props.minPagePadding,bottom:t.bottom-this.props.minPagePadding,width:t.width-2*this.props.minPagePadding,height:t.height-2*this.props.minPagePadding}),this._bounds=t}var n,r;return this._bounds},t.prototype._getMaxHeight=function(){var e=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,n=(this.props.gapSpace?this.props.gapSpace:0)+t;this._async.requestAnimationFrame((function(){e._target&&(e._maxHeight=function(e,t,n,r,i){void 0===n&&(n=0);var o=e,a=e,s=e,l=r?an(r):new Pt(0,window.innerWidth-kt(),0,window.innerHeight),u=s.left||s.x,c=s.top||s.y,d=s.right||u,h=s.bottom||c;return sn(o.stopPropagation?new Pt(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==u&&void 0!==c?new Pt(u,d,c,h):on(a),t,n,l,i)}(e._target,e.props.directionalHint,n,e._getBounds(),e.props.coverTarget),e._blockResetHeight=!0,e.forceUpdate())}),this._target)}else this._maxHeight=this._getBounds().height;return this._maxHeight},t.prototype._arePositionsEqual=function(e,t){return this._comparePositions(e.elementPosition,t.elementPosition)&&this._comparePositions(e.beakPosition.elementPosition,t.beakPosition.elementPosition)},t.prototype._comparePositions=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],i=t[n];if(void 0===r||void 0===i)return!1;if(r.toFixed(2)!==i.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){var t=this._calloutElement.current;if(e)if("string"==typeof e){var n=be(t);this._target=n?n.querySelector(e):null,this._targetWindow=p(t)}else if(e.stopPropagation)this._targetWindow=p(e.target),this._target=e;else if(e.getBoundingClientRect){var r=e;this._targetWindow=p(r),this._target=r}else void 0!==e.current?(this._target=e.current,this._targetWindow=p(this._target)):(this._targetWindow=p(t),this._target=e);else this._targetWindow=p(t)},t.prototype._setHeightOffsetEveryFrame=function(){var e=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame((function(){var t=e._calloutElement.current&&e._calloutElement.current.lastChild;if(t){var n=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+n}),t.offsetHeight<e.props.finalHeight?e._setHeightOffsetEveryFrame():e._async.cancelAnimationFrame(e._setHeightOffsetTimer,e._calloutElement.current)}}),this._calloutElement.current))},t.prototype._didPositionPropsChange=function(e,t){return!e.hidden&&e.hidden!==t.hidden||e.directionalHint!==t.directionalHint||e.target!==t.target},t.prototype._getTarget=function(e){return void 0===e&&(e=this.props),e.target},t.defaultProps={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:je},t}(u.Component);function ri(e){return{height:e,width:e}}var ii={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},oi=A(ni,(function(e){var t,n=e.theme,r=e.className,i=e.overflowYHidden,o=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=Er(ii,n),d=n.semanticColors,h=n.effects;return{container:[c.container,{position:"relative"}],root:[c.root,n.fonts.medium,{position:"absolute",boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[sr]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!o&&{width:o},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[c.beak,{position:"absolute",backgroundColor:d.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},ri(a),s&&{backgroundColor:s}],beakCurtain:[c.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:d.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[c.calloutMain,{backgroundColor:d.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",borderRadius:h.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),ai=n(17);function si(e,t){return void 0===e&&(e={}),(ui(t)?t:function(e){return function(t){return e?a(a({},t),e):t}}(t))(e)}function li(e,t){return void 0===e&&(e={}),(ui(t)?t:function(e){void 0===e&&(e={});return function(t){var n=a({},t);for(var r in e)e.hasOwnProperty(r)&&(n[r]=a(a({},t[r]),e[r]));return n}}(t))(e)}function ui(e){return"function"==typeof e}var ci,di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return o(t,e),t.prototype.componentDidMount=function(){b.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){b.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return u.createElement(C.Consumer,null,(function(n){var r=function(e,t){var n=(t||{}).customizations,r=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:si(r.settings,e.settings),scopedSettings:li(r.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),u.createElement(C.Provider,{value:r},e.props.children)}))},t}(u.Component),hi=((ci={})[ve]=1,ci[ye]=1,ci[me]=1,ci[_e]=1,ci[ge]=1,ci[fe]=1,ci[le]=1,ci[he]=1,ci[pe]=1,ci);var pi=new WeakMap;function fi(e,t){var n,r=pi.get(e);return n=r?r+t:1,pi.set(e,n),n}var gi=function(e){var t;return t=e.rootRef,u.useEffect((function(){var e,n,r=p(null===(e=t)||void 0===e?void 0:e.current);if(r&&!0!==(null===(n=r.FabricConfig)||void 0===n?void 0:n.disableFocusRects)){var i=fi(r,1);return i<=1&&(r.addEventListener("mousedown",mi,!0),r.addEventListener("pointerdown",vi,!0),r.addEventListener("keydown",_i,!0)),function(){var e;r&&!0!==(null===(e=r.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(i=fi(r,-1))&&(r.removeEventListener("mousedown",mi,!0),r.removeEventListener("pointerdown",vi,!0),r.removeEventListener("keydown",_i,!0))}}}),[t]),null};function mi(e){cr(!1,e.target)}function vi(e){"mouse"!==e.pointerType&&cr(!1,e.target)}function _i(e){var t;t=e.which,hi[t]&&cr(!0,e.target)}var yi=De(),xi=yr((function(e,t){return jr(a(a({},e),{rtl:t}))})),bi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._rootElement=u.createRef(),t._removeClassNameFromBody=void 0,t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"div":t,r=e.theme,i=e.dir,o=this._getClassNames(),s=Et(this.props,St,["dir"]),l=function(e,t){var n=Ae(e)?"rtl":"ltr",r=Ae()?"rtl":"ltr",i=t||n;return{rootDir:i!==n||i!==r?i:t,needsTheme:i!==n}}(r,i),c=l.rootDir,d=l.needsTheme,h=u.createElement(n,a({dir:c},s,{className:o.root,ref:this._rootElement}));return d&&(h=u.createElement(di,{settings:{theme:xi(r,"rtl"===i)}},h)),u.createElement(u.Fragment,null,h,u.createElement(gi,{rootRef:this._rootElement}))},t.prototype.componentDidMount=function(){this._addClassNameToBody()},t.prototype.componentWillUnmount=function(){this._removeClassNameFromBody&&this._removeClassNameFromBody()},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.theme,r=e.applyTheme,i=e.styles;return yi(i,{theme:n,applyTheme:r,className:t})},t.prototype._addClassNameToBody=function(){if(this.props.applyThemeToBody){var e=this._getClassNames(),t=be(this._rootElement.current);t&&(t.body.classList.add(e.bodyThemed),this._removeClassNameFromBody=function(){t.body.classList.remove(e.bodyThemed)})}},t}(u.Component),Ci={fontFamily:"inherit"},Si={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ei=A(bi,(function(e){var t=e.theme,n=e.className,r=e.applyTheme;return{root:[Er(Si,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":Ci,"& input":Ci,"& textarea":Ci}},r&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"});function Ai(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var i=n._virtual.parent;if(i&&i!==t){var o=i._virtual.children.indexOf(n);o>-1&&i._virtual.children.splice(o,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}var Li,wi={},Di={};var ki,Ti=De(),Mi=function(e){function t(t){var n=e.call(this,t)||this;return n._rootRef=u.createRef(),n._createLayerElement=function(){var e,t,r=n.props.hostId,i=be(n._rootRef.current),o=n._getHost();if(o){n._removeLayerElement();var a=null===(t=null!=(e=o.ownerDocument)?e:i)||void 0===t?void 0:t.createElement("div");if(a){var s=n._getClassNames();a.className=s.root,a.setAttribute("data-portal-element","true"),Ai(a,n._rootRef.current),n.props.insertFirst?o.insertBefore(a,o.firstChild):o.appendChild(a),n.setState({hostId:r,layerElement:a},(function(){var e=n.props,t=e.onLayerDidMount,r=e.onLayerMounted;r&&r(),t&&t()}))}}},n.state={},n}var n,r,i;return o(t,e),t.prototype.componentDidMount=function(){var e=this.props.hostId;this._createLayerElement(),e&&function(e,t){wi[e]||(wi[e]=[]),wi[e].push(t);var n=Di[e];if(n)for(var r=0,i=n;r<i.length;r++){i[r].notifyLayersChanged()}}(e,this._createLayerElement)},t.prototype.render=function(){var e=this.state.layerElement,t=this._getClassNames(),n=this.props.eventBubblingEnabled;return u.createElement("span",{className:"ms-layer",ref:this._rootRef},e&&ai.createPortal(u.createElement(Ei,a({},!n&&function(){ki||(ki={},["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(e){return ki[e]=Pi})));return ki}(),{className:t.content}),this.props.children),e))},t.prototype.componentDidUpdate=function(){this.props.hostId!==this.state.hostId&&this._createLayerElement()},t.prototype.componentWillUnmount=function(){var e=this.props.hostId;this._removeLayerElement(),e&&function(e,t){var n=wi[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete wi[e])}var i=Di[e];if(i)for(var o=0,a=i;o<a.length;o++){a[o].notifyLayersChanged()}}(e,this._createLayerElement)},t.prototype._removeLayerElement=function(){var e=this.props.onLayerWillUnmount,t=this.state.layerElement;if(t&&Ai(t,null),e&&e(),t&&t.parentNode){var n=t.parentNode;n&&n.removeChild(t)}},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return Ti(n,{theme:r,className:t,isNotHost:!this.props.hostId})},t.prototype._getHost=function(){var e,t,n,r,i,o,a=this.props.hostId,s=be(this._rootRef.current);if(a){var l=function(e){var t=Di[e];return t&&t[0]||void 0}(a);return l?null!=(e=l.rootRef.current)?e:null:null!=(n=null===(t=s)||void 0===t?void 0:t.getElementById(a))?n:null}var u=Li;return null!=(o=u?null===(r=s)||void 0===r?void 0:r.querySelector(u):null===(i=s)||void 0===i?void 0:i.body)?o:null},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},t=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([(n="Layer",r=["theme","hostId"],function(e){var t,s=((t=function(t){function s(e){var n=t.call(this,e)||this;return n._styleCache={},n._onSettingChanged=n._onSettingChanged.bind(n),n}return o(s,t),s.prototype.componentDidMount=function(){b.observe(this._onSettingChanged)},s.prototype.componentWillUnmount=function(){b.unobserve(this._onSettingChanged)},s.prototype.render=function(){var t=this;return u.createElement(C.Consumer,null,(function(o){var s=b.getSettings(r,n,o.customizations),l=t.props;if(s.styles&&"function"==typeof s.styles&&(s.styles=s.styles(a(a({},s),l))),i&&s.styles){if(t._styleCache.default!==s.styles||t._styleCache.component!==l.styles){var d=c(s.styles,l.styles);t._styleCache.default=s.styles,t._styleCache.component=l.styles,t._styleCache.merged=d}return u.createElement(e,a({},s,l,{styles:t._styleCache.merged}))}return u.createElement(e,a({},s,l))}))},s.prototype._onSettingChanged=function(){this.forceUpdate()},s}(u.Component)).displayName="Customized"+n,t);return function(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(e,s)})],t)}(u.Component),Pi=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var Fi={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Ni=A(Mi,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,i=Er(Fi,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:ur.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[i.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,n=s(e,["layerProps"]),r=u.createElement(oi,a({},n));return this.props.doNotLayer?r:u.createElement(Ni,a({},t),r)},t}(u.Component),Ii=Array.prototype.slice,Oi=function(e){return e};function Bi(e){return"translate("+(e+.5)+",0)"}function Vi(e){return"translate(0,"+(e+.5)+")"}function Ri(e){return function(t){return+e(t)}}function Wi(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Ui(){return!this.__axis}function zi(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",c=1===e||3===e?Bi:Vi;function d(d){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):Oi:i,f=Math.max(o,0)+s,g=t.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,_=(t.bandwidth?Wi:Ri)(t.copy()),y=d.selection?d.selection():d,x=y.selectAll(".domain").data([null]),b=y.selectAll(".tick").data(h,t).order(),C=b.exit(),S=b.enter().append("g").attr("class","tick"),E=b.select("line"),A=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(S),E=E.merge(S.append("line").attr("stroke","#000").attr(u+"2",l*o)),A=A.merge(S.append("text").attr("fill","#000").attr(u,l*f).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),d!==y&&(x=x.transition(d),b=b.transition(d),E=E.transition(d),A=A.transition(d),C=C.transition(d).attr("opacity",1e-6).attr("transform",(function(e){return isFinite(e=_(e))?c(e):this.getAttribute("transform")})),S.attr("opacity",1e-6).attr("transform",(function(e){var t=this.parentNode.__axis;return c(t&&isFinite(t=t(e))?t:_(e))}))),C.remove(),x.attr("d",4===e||2==e?"M"+l*a+","+m+"H0.5V"+v+"H"+l*a:"M"+m+","+l*a+"V0.5H"+v+"V"+l*a),b.attr("opacity",1).attr("transform",(function(e){return c(_(e))})),E.attr(u+"2",l*o),A.attr(u,l*f).text(p),y.filter(Ui).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),y.each((function(){this.__axis=_}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Ii.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Ii.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Ii.call(e),d):r&&r.slice()},d.tickFormat=function(e){return arguments.length?(i=e,d):i},d.tickSize=function(e){return arguments.length?(o=a=+e,d):o},d.tickSizeInner=function(e){return arguments.length?(o=+e,d):o},d.tickSizeOuter=function(e){return arguments.length?(a=+e,d):a},d.tickPadding=function(e){return arguments.length?(s=+e,d):s},d}function Yi(e){return zi(2,e)}function ji(e){return zi(3,e)}function qi(e){return zi(4,e)}var Xi=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},Ki=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Xi(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var Zi=Ki(Xi);Zi.right,Zi.left;var Gi=Array.prototype;Gi.slice,Gi.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var $i=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r},Qi=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r};var Ji=Math.sqrt(50),eo=Math.sqrt(10),to=Math.sqrt(2);function no(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Ji?10:o>=eo?5:o>=to?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ji?10:o>=eo?5:o>=to?2:1)}function ro(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function io(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oo(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=ro,n=(t,n)=>ro(e(t),n),r=(t,n)=>e(t)-n):(t=e===ro||e===io?e:ao,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function ao(){return 0}const so=oo(ro),lo=so.right;so.left,oo((function(e){return null===e?NaN:+e})).center;var uo=lo,co=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function ho(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function po(){}var fo="\\s*([+-]?\\d+)\\s*",go="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vo=/^#([0-9a-f]{3,8})$/,_o=new RegExp(`^rgb\\(${fo},${fo},${fo}\\)$`),yo=new RegExp(`^rgb\\(${mo},${mo},${mo}\\)$`),xo=new RegExp(`^rgba\\(${fo},${fo},${fo},${go}\\)$`),bo=new RegExp(`^rgba\\(${mo},${mo},${mo},${go}\\)$`),Co=new RegExp(`^hsl\\(${go},${mo},${mo}\\)$`),So=new RegExp(`^hsla\\(${go},${mo},${mo},${go}\\)$`),Eo={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 Ao(){return this.rgb().formatHex()}function Lo(){return this.rgb().formatRgb()}function wo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=vo.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Do(t):3===n?new Po(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ko(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ko(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=_o.exec(e))?new Po(t[1],t[2],t[3],1):(t=yo.exec(e))?new Po(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=xo.exec(e))?ko(t[1],t[2],t[3],t[4]):(t=bo.exec(e))?ko(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Co.exec(e))?Bo(t[1],t[2]/100,t[3]/100,1):(t=So.exec(e))?Bo(t[1],t[2]/100,t[3]/100,t[4]):Eo.hasOwnProperty(e)?Do(Eo[e]):"transparent"===e?new Po(NaN,NaN,NaN,0):null}function Do(e){return new Po(e>>16&255,e>>8&255,255&e,1)}function ko(e,t,n,r){return r<=0&&(e=t=n=NaN),new Po(e,t,n,r)}function To(e){return e instanceof po||(e=wo(e)),e?new Po((e=e.rgb()).r,e.g,e.b,e.opacity):new Po}function Mo(e,t,n,r){return 1===arguments.length?To(e):new Po(e,t,n,null==r?1:r)}function Po(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Fo(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}`}function No(){const e=Ho(this.opacity);return`${1===e?"rgb(":"rgba("}${Io(this.r)}, ${Io(this.g)}, ${Io(this.b)}${1===e?")":`, ${e})`}`}function Ho(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Io(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oo(e){return((e=Io(e))<16?"0":"")+e.toString(16)}function Bo(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ro(e,t,n,r)}function Vo(e){if(e instanceof Ro)return new Ro(e.h,e.s,e.l,e.opacity);if(e instanceof po||(e=wo(e)),!e)return new Ro;if(e instanceof Ro)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ro(a,s,l,e.opacity)}function Ro(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Wo(e){return(e=(e||0)%360)<0?e+360:e}function Uo(e){return Math.max(0,Math.min(1,e||0))}function zo(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Yo(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}co(po,wo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ao,formatHex:Ao,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Vo(this).formatHsl()},formatRgb:Lo,toString:Lo}),co(Po,Mo,ho(po,{brighter(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Po(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Po(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Po(Io(this.r),Io(this.g),Io(this.b),Ho(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fo,formatHex:Fo,formatHex8:function(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}${Oo(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:No,toString:No})),co(Ro,(function(e,t,n,r){return 1===arguments.length?Vo(e):new Ro(e,t,n,null==r?1:r)}),ho(po,{brighter(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ro(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ro(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Po(zo(e>=240?e-240:e+120,i,r),zo(e,i,r),zo(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ro(Wo(this.h),Uo(this.s),Uo(this.l),Ho(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ho(this.opacity);return`${1===e?"hsl(":"hsla("}${Wo(this.h)}, ${100*Uo(this.s)}%, ${100*Uo(this.l)}%${1===e?")":`, ${e})`}`}}));var jo=e=>()=>e;function qo(e,t){return function(n){return e+n*t}}function Xo(e){return 1==(e=+e)?Ko:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):jo(isNaN(t)?n:t)}}function Ko(e,t){var n=t-e;return n?qo(e,n):jo(isNaN(e)?t:e)}var Zo=function e(t){var n=Xo(t);function r(e,t){var r=n((e=Mo(e)).r,(t=Mo(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Ko(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Go(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Mo(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}Go((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Yo((n-r/t)*t,a,i,o,s)}})),Go((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Yo((n-r/t)*t,i,o,a,s)}}));var $o=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}};function Qo(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Jo(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=aa(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}var ea=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},ta=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},na=function(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=aa(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},ra=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ia=new RegExp(ra.source,"g");var oa=function(e,t){var n,r,i,o=ra.lastIndex=ia.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=ra.exec(e))&&(r=ia.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:ta(n,r)})),o=ia.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})},aa=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?jo(t):("number"===r?ta:"string"===r?(n=wo(t))?(t=n,Zo):oa:t instanceof wo?Zo:t instanceof Date?ea:Qo(t)?$o:Array.isArray(t)?Jo:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?na:ta)(e,t)},sa=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}};function la(e){return+e}var ua=[0,1];function ca(e){return e}function da(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function ha(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=da(i,r),o=n(a,o)):(r=da(r,i),o=n(o,a)),function(e){return o(r(e))}}function pa(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=da(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=uo(e,t,1,r)-1;return o[n](i[n](t))}}function fa(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ga(){var e,t,n,r,i,o,a=ua,s=ua,l=aa,u=ca;function c(){var e,t,n,l=Math.min(a.length,s.length);return u!==ca&&(e=a[0],t=a[l-1],e>t&&(n=e,e=t,t=n),u=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?pa:ha,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((o||(o=r(s,a.map(e),ta)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,la),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=sa,c()},d.clamp=function(e){return arguments.length?(u=!!e||ca,c()):u!==ca},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function ma(){return ga()(ca,ca)}function va(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var _a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ya(e){if(!(t=_a.exec(e)))throw new Error("invalid format: "+e);var t;return new xa({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function xa(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}ya.prototype=xa.prototype,xa.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};function ba(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var Ca,Sa,Ea,Aa,La=function(e){return(e=ba(Math.abs(e)))?e[1]:NaN},wa=function(e,t){var n=ba(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Da={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>wa(100*e,t),r:wa,s:function(e,t){var n=ba(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Ca=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ba(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)},ka=function(e){return e},Ta=Array.prototype.map,Ma=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Sa=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?ka:(t=Ta.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?ka:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Ta.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=ya(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,_=e.type;"n"===_?(g=!0,_="g"):Da[_]||(void 0===m&&(m=12),v=!0,_="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===h?o:/[%p]/.test(_)?l:"",b=Da[_],C=/[defgprs%]/.test(_);function S(e){var i,o,l,h=y,S=x;if("c"===_)S=b(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:b(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:u:"-"===d||"("===d?"":d)+h,S=("s"===_?Ma[8+Ca/3]:"")+S+(E&&"("===d?")":""),C)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){S=(46===l?a+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}g&&!p&&(e=r(e,1/0));var A=h.length+e.length+S.length,L=A<f?new Array(f-A+1).join(t):"";switch(g&&p&&(e=r(L+e,L.length?f-S.length:1/0),L=""),n){case"<":e=h+e+S+L;break;case"=":e=h+L+e+S;break;case"^":e=L.slice(0,A=L.length>>1)+h+e+S+L.slice(A);break;default:e=L+h+e+S}return s(e)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=ya(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(La(t)/3))),i=Math.pow(10,-r),o=Ma[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ea=Sa.format,Aa=Sa.formatPrefix;function Pa(e,t,n,r){var i,o=function(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ji?i*=10:o>=eo?i*=5:o>=to&&(i*=2),t<e?-i:i}(e,t,n);switch((r=ya(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(La(t)/3)))-La(Math.abs(e)))}(o,a))||(r.precision=i),Aa(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,La(t)-La(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-La(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return Ea(r)}function Fa(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=no(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Pa(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],u=o[s],c=10;for(u<l&&(i=l,l=u,u=i,i=a,a=s,s=i);c-- >0;){if((i=no(l,u,n))===r)return o[a]=l,o[s]=u,t(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i}r=i}return e},e}function Na(){var e=ma();return e.copy=function(){return fa(e,Na())},va.apply(e,arguments),Fa(e)}function Ha(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ia(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Oa(){return 0}var Ba=Math.sqrt(50),Va=Math.sqrt(10),Ra=Math.sqrt(2);function Wa(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ba?i*=10:o>=Va?i*=5:o>=Ra&&(i*=2),t<e?-i:i}var Ua=new Date,za=new Date;function Ya(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Ya((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Ua.setTime(+t),za.setTime(+r),e(Ua),e(za),Math.floor(n(Ua,za))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var ja=Ya((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));ja.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Ya((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ja:null};var qa=ja,Xa=(ja.range,Ya((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))),Ka=Xa,Za=(Xa.range,Ya((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),Ga=Za,$a=(Za.range,Ya((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),Qa=$a,Ja=($a.range,Ya(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5,e=>e.getDate()-1)),es=Ja;Ja.range;function ts(e){return Ya((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var ns=ts(0),rs=ts(1),is=ts(2),os=ts(3),as=ts(4),ss=ts(5),ls=ts(6),us=(ns.range,rs.range,is.range,os.range,as.range,ss.range,ls.range,Ya((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),cs=us,ds=(us.range,Ya((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));ds.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ya((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var hs=ds,ps=(ds.range,Ya((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}))),fs=ps,gs=(ps.range,Ya((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}))),ms=gs,vs=(gs.range,Ya((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),_s=vs;vs.range;function ys(e){return Ya((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var xs=ys(0),bs=ys(1),Cs=ys(2),Ss=ys(3),Es=ys(4),As=ys(5),Ls=ys(6),ws=(xs.range,bs.range,Cs.range,Ss.range,Es.range,As.range,Ls.range,Ya((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),Ds=ws,ks=(ws.range,Ya((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));ks.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ya((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Ts=ks;ks.range;function Ms(e,t,n,r,i,o){const a=[[Ka,1,1e3],[Ka,5,5e3],[Ka,15,15e3],[Ka,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){const i=Math.abs(n-t)/r,o=function(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=Ha,n=(t,n)=>Ha(e(t),n),r=(t,n)=>e(t)-n):(t=e===Ha||e===Ia?e:Oa,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}(([,,e])=>e).right(a,i);if(o===a.length)return e.every(Wa(t/31536e6,n/31536e6,r));if(0===o)return qa.every(Math.max(Wa(t,n,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}const[Ps,Fs]=Ms(Ts,Ds,xs,_s,ms,fs),[Ns,Hs]=Ms(hs,cs,ns,es,Qa,Ga);function Is(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Os(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Bs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Vs,Rs,Ws={"-":"",_:" ",0:"0"},Us=/^\s*\d+/,zs=/^%/,Ys=/[\\^$*+?|[\]().{}]/g;function js(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function qs(e){return e.replace(Ys,"\\$&")}function Xs(e){return new RegExp("^(?:"+e.map(qs).join("|")+")","i")}function Ks(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Zs(e,t,n){var r=Us.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Gs(e,t,n){var r=Us.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function $s(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Qs(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Js(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function el(e,t,n){var r=Us.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tl(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function nl(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function rl(e,t,n){var r=Us.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function il(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ol(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function al(e,t,n){var r=Us.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function sl(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ll(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ul(e,t,n){var r=Us.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cl(e,t,n){var r=Us.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function dl(e,t,n){var r=Us.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hl(e,t,n){var r=zs.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function pl(e,t,n){var r=Us.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function fl(e,t,n){var r=Us.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function gl(e,t){return js(e.getDate(),t,2)}function ml(e,t){return js(e.getHours(),t,2)}function vl(e,t){return js(e.getHours()%12||12,t,2)}function _l(e,t){return js(1+es.count(hs(e),e),t,3)}function yl(e,t){return js(e.getMilliseconds(),t,3)}function xl(e,t){return yl(e,t)+"000"}function bl(e,t){return js(e.getMonth()+1,t,2)}function Cl(e,t){return js(e.getMinutes(),t,2)}function Sl(e,t){return js(e.getSeconds(),t,2)}function El(e){var t=e.getDay();return 0===t?7:t}function Al(e,t){return js(ns.count(hs(e)-1,e),t,2)}function Ll(e){var t=e.getDay();return t>=4||0===t?as(e):as.ceil(e)}function wl(e,t){return e=Ll(e),js(as.count(hs(e),e)+(4===hs(e).getDay()),t,2)}function Dl(e){return e.getDay()}function kl(e,t){return js(rs.count(hs(e)-1,e),t,2)}function Tl(e,t){return js(e.getFullYear()%100,t,2)}function Ml(e,t){return js((e=Ll(e)).getFullYear()%100,t,2)}function Pl(e,t){return js(e.getFullYear()%1e4,t,4)}function Fl(e,t){var n=e.getDay();return js((e=n>=4||0===n?as(e):as.ceil(e)).getFullYear()%1e4,t,4)}function Nl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+js(t/60|0,"0",2)+js(t%60,"0",2)}function Hl(e,t){return js(e.getUTCDate(),t,2)}function Il(e,t){return js(e.getUTCHours(),t,2)}function Ol(e,t){return js(e.getUTCHours()%12||12,t,2)}function Bl(e,t){return js(1+_s.count(Ts(e),e),t,3)}function Vl(e,t){return js(e.getUTCMilliseconds(),t,3)}function Rl(e,t){return Vl(e,t)+"000"}function Wl(e,t){return js(e.getUTCMonth()+1,t,2)}function Ul(e,t){return js(e.getUTCMinutes(),t,2)}function zl(e,t){return js(e.getUTCSeconds(),t,2)}function Yl(e){var t=e.getUTCDay();return 0===t?7:t}function jl(e,t){return js(xs.count(Ts(e)-1,e),t,2)}function ql(e){var t=e.getUTCDay();return t>=4||0===t?Es(e):Es.ceil(e)}function Xl(e,t){return e=ql(e),js(Es.count(Ts(e),e)+(4===Ts(e).getUTCDay()),t,2)}function Kl(e){return e.getUTCDay()}function Zl(e,t){return js(bs.count(Ts(e)-1,e),t,2)}function Gl(e,t){return js(e.getUTCFullYear()%100,t,2)}function $l(e,t){return js((e=ql(e)).getUTCFullYear()%100,t,2)}function Ql(e,t){return js(e.getUTCFullYear()%1e4,t,4)}function Jl(e,t){var n=e.getUTCDay();return js((e=n>=4||0===n?Es(e):Es.ceil(e)).getUTCFullYear()%1e4,t,4)}function eu(){return"+0000"}function tu(){return"%"}function nu(e){return+e}function ru(e){return Math.floor(+e/1e3)}function iu(e){return new Date(e)}function ou(e){return e instanceof Date?+e:+new Date(+e)}function au(e,t,n,r,i,o,a,s,l,u){var c=ma(),d=c.invert,h=c.domain,p=u(".%L"),f=u(":%S"),g=u("%I:%M"),m=u("%I %p"),v=u("%a %d"),_=u("%b %d"),y=u("%B"),x=u("%Y");function b(e){return(l(e)<e?p:s(e)<e?f:a(e)<e?g:o(e)<e?m:r(e)<e?i(e)<e?v:_:n(e)<e?y:x)(e)}return c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?h(Array.from(e,ou)):h().map(iu)},c.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?b:u(t)},c.nice=function(e){var n=h();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):c},c.copy=function(){return fa(c,au(e,t,n,r,i,o,a,s,l,u))},c}function su(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}!function(e){Vs=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Xs(i),c=Ks(i),d=Xs(o),h=Ks(o),p=Xs(a),f=Ks(a),g=Xs(s),m=Ks(s),v=Xs(l),_=Ks(l),y={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:gl,e:gl,f:xl,g:Ml,G:Fl,H:ml,I:vl,j:_l,L:yl,m:bl,M:Cl,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:nu,s:ru,S:Sl,u:El,U:Al,V:wl,w:Dl,W:kl,x:null,X:null,y:Tl,Y:Pl,Z:Nl,"%":tu},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Hl,e:Hl,f:Rl,g:$l,G:Jl,H:Il,I:Ol,j:Bl,L:Vl,m:Wl,M:Ul,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:nu,s:ru,S:zl,u:Yl,U:jl,V:Xl,w:Kl,W:Zl,x:null,X:null,y:Gl,Y:Ql,Z:eu,"%":tu},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:ol,e:ol,f:dl,g:tl,G:el,H:sl,I:sl,j:al,L:cl,m:il,M:ll,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:rl,Q:pl,s:fl,S:ul,u:Gs,U:$s,V:Qs,w:Zs,W:Js,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:tl,Y:el,Z:nl,"%":hl};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Ws[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,i,o=Bs(1900,void 0,1);if(E(o,e,n+="",0)!=n.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(t&&!("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?(i=(r=Os(Bs(o.y,0,1))).getUTCDay(),r=i>4||0===i?bs.ceil(r):bs(r),r=_s.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Is(Bs(o.y,0,1))).getDay(),r=i>4||0===i?rs.ceil(r):rs(r),r=es.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.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),i="Z"in o?Os(Bs(o.y,0,1)).getUTCDay():Is(Bs(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Os(o)):Is(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=b[i in Ws?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),Rs=Vs.format,Vs.parse,Vs.utcFormat,Vs.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});class lu extends Map{constructor(e,t=hu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(uu(this,e))}has(e){return super.has(uu(this,e))}set(e,t){return super.set(cu(this,e),t)}delete(e){return super.delete(du(this,e))}}Set;function uu({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function cu({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function du({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function hu(e){return null!==e&&"object"==typeof e?e.valueOf():e}const pu=Symbol("implicit");function fu(){var e=new lu,t=[],n=[],r=pu;function i(i){let o=e.get(i);if(void 0===o){if(r!==pu)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new lu;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return fu(t,n).unknown(r)},va.apply(i,arguments),i}function gu(){var e,t,n=fu().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,u=0,c=.5;function d(){var n=r().length,d=a<o,h=d?a:o,p=d?o:a;e=(p-h)/Math.max(1,n-l+2*u),s&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*c,t=e*(1-l),s&&(h=Math.round(h),t=Math.round(t));var f=su(n).map((function(t){return h+e*t}));return i(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,d()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return gu(r(),[o,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},va.apply(d(),arguments)}var mu="http://www.w3.org/1999/xhtml",vu={svg:"http://www.w3.org/2000/svg",xhtml:mu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},_u=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),vu.hasOwnProperty(t)?{space:vu[t],local:e}:e};function yu(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===mu&&t.documentElement.namespaceURI===mu?t.createElement(e):t.createElementNS(n,e)}}function xu(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var bu=function(e){var t=_u(e);return(t.local?xu:yu)(t)};function Cu(){}var Su=function(e){return null==e?Cu:function(){return this.querySelector(e)}};function Eu(){return[]}var Au=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Lu=document.documentElement;if(!Lu.matches){var wu=Lu.webkitMatchesSelector||Lu.msMatchesSelector||Lu.mozMatchesSelector||Lu.oMatchesSelector;Au=function(e){return function(){return wu.call(this,e)}}}}var Du=Au,ku=function(e){return new Array(e.length)};function Tu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Tu.prototype={constructor:Tu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Mu(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Tu(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Pu(e,t,n,r,i,o,a){var s,l,u,c={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=u="$"+a.call(l,l.__data__,s,t),u in c?i[s]=l:c[u]=l);for(s=0;s<h;++s)(l=c[u="$"+a.call(e,o[s],s,o)])?(r[s]=l,l.__data__=o[s],c[u]=null):n[s]=new Tu(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&c[p[s]]===l&&(i[s]=l)}function Fu(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Nu(e){return function(){this.removeAttribute(e)}}function Hu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Iu(e,t){return function(){this.setAttribute(e,t)}}function Ou(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Bu(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Vu(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var Ru=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function Wu(e){return function(){this.style.removeProperty(e)}}function Uu(e,t,n){return function(){this.style.setProperty(e,t,n)}}function zu(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Yu(e,t){return e.style.getPropertyValue(t)||Ru(e).getComputedStyle(e,null).getPropertyValue(t)}function ju(e){return function(){delete this[e]}}function qu(e,t){return function(){this[e]=t}}function Xu(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Ku(e){return e.trim().split(/^|\s+/)}function Zu(e){return e.classList||new Gu(e)}function Gu(e){this._node=e,this._names=Ku(e.getAttribute("class")||"")}function $u(e,t){for(var n=Zu(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Qu(e,t){for(var n=Zu(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Ju(e){return function(){$u(this,e)}}function ec(e){return function(){Qu(this,e)}}function tc(e,t){return function(){(t.apply(this,arguments)?$u:Qu)(this,e)}}Gu.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function nc(){this.textContent=""}function rc(e){return function(){this.textContent=e}}function ic(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function oc(){this.innerHTML=""}function ac(e){return function(){this.innerHTML=e}}function sc(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function lc(){this.nextSibling&&this.parentNode.appendChild(this)}function uc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cc(){return null}function dc(){var e=this.parentNode;e&&e.removeChild(this)}function hc(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function pc(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var fc={},gc=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(fc={mouseenter:"mouseover",mouseleave:"mouseout"}));function mc(e,t,n){return e=vc(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function vc(e,t,n){return function(r){var i=gc;gc=r;try{e.call(this,this.__data__,t,n)}finally{gc=i}}}function _c(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function yc(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function xc(e,t,n){var r=fc.hasOwnProperty(e.type)?mc:vc;return function(i,o,a){var s,l=this.__on,u=r(t,o,a);if(l)for(var c=0,d=l.length;c<d;++c)if((s=l[c]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=u,s.capture=n),void(s.value=t);this.addEventListener(e.type,u,n),s={type:e.type,name:e.name,value:t,listener:u,capture:n},l?l.push(s):this.__on=[s]}}function bc(e,t,n){var r=Ru(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Cc(e,t){return function(){return bc(this,e,t)}}function Sc(e,t){return function(){return bc(this,e,t.apply(this,arguments))}}var Ec=[null];function Ac(e,t){this._groups=e,this._parents=t}function Lc(){return new Ac([[document.documentElement]],Ec)}Ac.prototype=Lc.prototype={constructor:Ac,select:function(e){"function"!=typeof e&&(e=Su(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,u=r[i]=new Array(l),c=0;c<l;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),u[c]=a);return new Ac(r,this._parents)},selectAll:function(e){var t;"function"!=typeof e&&(e=null==(t=e)?Eu:function(){return this.querySelectorAll(t)});for(var n=this._groups,r=n.length,i=[],o=[],a=0;a<r;++a)for(var s,l=n[a],u=l.length,c=0;c<u;++c)(s=l[c])&&(i.push(e.call(s,s.__data__,c,l)),o.push(s));return new Ac(i,o)},filter:function(e){"function"!=typeof e&&(e=Du(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new Ac(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),c=-1,this.each((function(e){f[++c]=e})),f;var n,r=t?Pu:Mu,i=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),c=0;c<a;++c){var d=i[c],h=o[c],p=h.length,f=e.call(d,d&&d.__data__,c,i),g=f.length,m=l[c]=new Array(g),v=s[c]=new Array(g);r(d,h,m,v,u[c]=new Array(p),f,t);for(var _,y,x=0,b=0;x<g;++x)if(_=m[x]){for(x>=b&&(b=x+1);!(y=v[b])&&++b<g;);_._next=y||null}}return(s=new Ac(s,i))._enter=l,s._exit=u,s},enter:function(){return new Ac(this._enter||this._groups.map(ku),this._parents)},exit:function(){return new Ac(this._exit||this._groups.map(ku),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=u[p]||c[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new Ac(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Fu);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=new Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new Ac(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=_u(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Hu:Nu:"function"==typeof t?n.local?Vu:Bu:n.local?Ou:Iu)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Wu:"function"==typeof t?zu:Uu)(e,t,null==n?"":n)):Yu(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?ju:"function"==typeof t?Xu:qu)(e,t)):this.node()[e]},classed:function(e,t){var n=Ku(e+"");if(arguments.length<2){for(var r=Zu(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?tc:t?Ju:ec)(n,t))},text:function(e){return arguments.length?this.each(null==e?nc:("function"==typeof e?ic:rc)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?oc:("function"==typeof e?sc:ac)(e)):this.node().innerHTML},raise:function(){return this.each(lc)},lower:function(){return this.each(uc)},append:function(e){var t="function"==typeof e?e:bu(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:bu(e),r=null==t?cc:"function"==typeof t?t:Su(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(dc)},clone:function(e){return this.select(e?pc:hc)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=_c(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?xc:yc,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Sc:Cc)(e,t))}};var wc=function(e){return"string"==typeof e?new Ac([[document.querySelector(e)]],[document.documentElement]):new Ac([[e]],Ec)},Dc=0;function kc(){this._="@"+(++Dc).toString(36)}kc.prototype=function(){return new kc}.prototype={constructor:kc,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var Tc=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]},Mc=function(e){return"string"==typeof e?new Ac([document.querySelectorAll(e)],[document.documentElement]):new Ac([null==e?[]:e],Ec)},Pc=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},Fc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Nc(e){if(!(t=Fc.exec(e)))throw new Error("invalid format: "+e);var t;return new Hc({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Hc(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}Nc.prototype=Hc.prototype,Hc.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 Ic,Oc,Bc,Vc=function(e,t){var n=Pc(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Rc={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Vc(100*e,t)},r:Vc,s:function(e,t){var n=Pc(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Ic=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Pc(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Wc=function(e){return e},Uc=Array.prototype.map,zc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Yc=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Wc:(t=Uc.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Wc:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Uc.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Nc(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,_=e.type;"n"===_?(g=!0,_="g"):Rc[_]||(void 0===m&&(m=12),v=!0,_="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===h?o:/[%p]/.test(_)?l:"",b=Rc[_],C=/[defgprs%]/.test(_);function S(e){var i,o,l,h=y,S=x;if("c"===_)S=b(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:b(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:u:"-"===d||"("===d?"":d)+h,S=("s"===_?zc[8+Ic/3]:"")+S+(E&&"("===d?")":""),C)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){S=(46===l?a+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}g&&!p&&(e=r(e,1/0));var A=h.length+e.length+S.length,L=A<f?new Array(f-A+1).join(t):"";switch(g&&p&&(e=r(L+e,L.length?f-S.length:1/0),L=""),n){case"<":e=h+e+S+L;break;case"=":e=h+L+e+S;break;case"^":e=L.slice(0,A=L.length>>1)+h+e+S+L.slice(A);break;default:e=L+h+e+S}return s(e)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n,r=d(((e=Nc(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((n=t,((n=Pc(Math.abs(n)))?n[1]:NaN)/3)))),o=Math.pow(10,-i),a=zc[8+i/3];return function(e){return r(o*e)+a}}}};!function(e){Oc=Yc(e),Bc=Oc.format,Oc.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var jc=new Date,qc=new Date;function Xc(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Xc((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return jc.setTime(+t),qc.setTime(+r),e(jc),e(qc),Math.floor(n(jc,qc))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Kc=Xc((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Kc.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Xc((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Kc:null};Kc.range;var Zc=Xc((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()})),Gc=(Zc.range,Xc((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),$c=(Gc.range,Xc((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),Qc=($c.range,Xc((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),Jc=Qc;Qc.range;function ed(e){return Xc((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var td=ed(0),nd=ed(1),rd=ed(2),id=ed(3),od=ed(4),ad=ed(5),sd=ed(6),ld=(td.range,nd.range,rd.range,id.range,od.range,ad.range,sd.range,Xc((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),ud=(ld.range,Xc((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));ud.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xc((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var cd=ud,dd=(ud.range,Xc((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}))),hd=(dd.range,Xc((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}))),pd=(hd.range,Xc((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),fd=pd;pd.range;function gd(e){return Xc((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var md=gd(0),vd=gd(1),_d=gd(2),yd=gd(3),xd=gd(4),bd=gd(5),Cd=gd(6),Sd=(md.range,vd.range,_d.range,yd.range,xd.range,bd.range,Cd.range,Xc((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),Ed=(Sd.range,Xc((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Ed.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xc((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Ad=Ed;Ed.range;function Ld(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function wd(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Dd(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var kd,Td,Md,Pd,Fd={"-":"",_:" ",0:"0"},Nd=/^\s*\d+/,Hd=/^%/,Id=/[\\^$*+?|[\]().{}]/g;function Od(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Bd(e){return e.replace(Id,"\\$&")}function Vd(e){return new RegExp("^(?:"+e.map(Bd).join("|")+")","i")}function Rd(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Wd(e,t,n){var r=Nd.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ud(e,t,n){var r=Nd.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function zd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Yd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function jd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function qd(e,t,n){var r=Nd.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Xd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Kd(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Zd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Gd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function $d(e,t,n){var r=Nd.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Qd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Jd(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function eh(e,t,n){var r=Nd.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function th(e,t,n){var r=Nd.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function nh(e,t,n){var r=Nd.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rh(e,t,n){var r=Hd.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ih(e,t,n){var r=Nd.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function oh(e,t,n){var r=Nd.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function ah(e,t){return Od(e.getDate(),t,2)}function sh(e,t){return Od(e.getHours(),t,2)}function lh(e,t){return Od(e.getHours()%12||12,t,2)}function uh(e,t){return Od(1+Jc.count(cd(e),e),t,3)}function ch(e,t){return Od(e.getMilliseconds(),t,3)}function dh(e,t){return ch(e,t)+"000"}function hh(e,t){return Od(e.getMonth()+1,t,2)}function ph(e,t){return Od(e.getMinutes(),t,2)}function fh(e,t){return Od(e.getSeconds(),t,2)}function gh(e){var t=e.getDay();return 0===t?7:t}function mh(e,t){return Od(td.count(cd(e),e),t,2)}function vh(e,t){var n=e.getDay();return e=n>=4||0===n?od(e):od.ceil(e),Od(od.count(cd(e),e)+(4===cd(e).getDay()),t,2)}function _h(e){return e.getDay()}function yh(e,t){return Od(nd.count(cd(e),e),t,2)}function xh(e,t){return Od(e.getFullYear()%100,t,2)}function bh(e,t){return Od(e.getFullYear()%1e4,t,4)}function Ch(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Od(t/60|0,"0",2)+Od(t%60,"0",2)}function Sh(e,t){return Od(e.getUTCDate(),t,2)}function Eh(e,t){return Od(e.getUTCHours(),t,2)}function Ah(e,t){return Od(e.getUTCHours()%12||12,t,2)}function Lh(e,t){return Od(1+fd.count(Ad(e),e),t,3)}function wh(e,t){return Od(e.getUTCMilliseconds(),t,3)}function Dh(e,t){return wh(e,t)+"000"}function kh(e,t){return Od(e.getUTCMonth()+1,t,2)}function Th(e,t){return Od(e.getUTCMinutes(),t,2)}function Mh(e,t){return Od(e.getUTCSeconds(),t,2)}function Ph(e){var t=e.getUTCDay();return 0===t?7:t}function Fh(e,t){return Od(md.count(Ad(e),e),t,2)}function Nh(e,t){var n=e.getUTCDay();return e=n>=4||0===n?xd(e):xd.ceil(e),Od(xd.count(Ad(e),e)+(4===Ad(e).getUTCDay()),t,2)}function Hh(e){return e.getUTCDay()}function Ih(e,t){return Od(vd.count(Ad(e),e),t,2)}function Oh(e,t){return Od(e.getUTCFullYear()%100,t,2)}function Bh(e,t){return Od(e.getUTCFullYear()%1e4,t,4)}function Vh(){return"+0000"}function Rh(){return"%"}function Wh(e){return+e}function Uh(e){return Math.floor(+e/1e3)}!function(e){kd=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Vd(i),c=Rd(i),d=Vd(o),h=Rd(o),p=Vd(a),f=Rd(a),g=Vd(s),m=Rd(s),v=Vd(l),_=Rd(l),y={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:ah,e:ah,f:dh,H:sh,I:lh,j:uh,L:ch,m:hh,M:ph,p:function(e){return i[+(e.getHours()>=12)]},Q:Wh,s:Uh,S:fh,u:gh,U:mh,V:vh,w:_h,W:yh,x:null,X:null,y:xh,Y:bh,Z:Ch,"%":Rh},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Sh,e:Sh,f:Dh,H:Eh,I:Ah,j:Lh,L:wh,m:kh,M:Th,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Wh,s:Uh,S:Mh,u:Ph,U:Fh,V:Nh,w:Hh,W:Ih,x:null,X:null,y:Oh,Y:Bh,Z:Vh,"%":Rh},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:Gd,e:Gd,f:nh,H:Qd,I:Qd,j:$d,L:th,m:Zd,M:Jd,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:ih,s:oh,S:eh,u:Ud,U:zd,V:Yd,w:Wd,W:jd,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:Xd,Y:qd,Z:Kd,"%":rh};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Fd[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,i,o=Dd(1900);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=wd(Dd(o.y))).getUTCDay(),r=i>4||0===i?vd.ceil(r):vd(r),r=fd.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(Dd(o.y))).getDay(),r=i>4||0===i?nd.ceil(r):nd(r),r=Jc.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.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),i="Z"in o?wd(Dd(o.y)).getUTCDay():t(Dd(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,wd(o)):t(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=b[i in Fd?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",Ld);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e,wd);return t.toString=function(){return e},t}}}(e),Td=kd.format,kd.parse,Md=kd.utcFormat,Pd=kd.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Date.prototype.toISOString||Md("%Y-%m-%dT%H:%M:%S.%LZ");var zh,Yh,jh,qh;+new Date("2000-01-01T00:00:00.000Z")||Pd("%Y-%m-%dT%H:%M:%S.%LZ");function Xh(e,t){var n=e.domainNRangeValues,r=e.showRoundOffXTickValues,i=void 0!==r&&r,o=e.xAxistickSize,a=void 0===o?6:o,s=e.tickPadding,l=void 0===s?10:s,u=e.xAxisCount,c=void 0===u?6:u,d=e.xAxisElement,h=Na().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]);i&&h.nice();var p=ji(h).tickSize(a).tickPadding(l).ticks(c).tickSizeOuter(0).tickFormat((function(e,n){var r="number"==typeof e?e:e.valueOf();return ap(r,t)}));return d&&wc(d).call(p).selectAll("text").attr("aria-hidden","true"),h}function Kh(e,t){var n=e.domainNRangeValues,r=e.xAxisElement,i=e.tickPadding,o=void 0===i?6:i,a=e.xAxistickSize,s=void 0===a?6:a,l=e.xAxisCount,u=void 0===l?6:l,c=function(){return va.apply(au(Ns,Hs,hs,cs,ns,es,Qa,Ga,Ka,Rs).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]),d=ji(c).tickSize(s).tickPadding(o).ticks(u);return t.tickValues&&d.tickValues(t.tickValues),t.tickFormat&&d.tickFormat(Td(t.tickFormat)),r&&wc(r).call(d).selectAll("text").attr("aria-hidden","true"),c}function Zh(e,t,n){var r=e.yMinMaxValues,i=void 0===r?{startValue:0,endValue:0}:r,o=e.yAxisElement,a=void 0===o?null:o,s=e.yMaxValue,l=void 0===s?0:s,u=e.yMinValue,c=void 0===u?0:u,d=e.containerHeight,h=e.containerWidth,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,m=e.maxOfYVal,v=void 0===m?0:m,_=e.yAxisTickFormat,y=e.yAxisTickCount,x=void 0===y?4:y,b=e.eventAnnotationProps,C=e.eventLabelHeight,S=v||i.endValue,E=S>l?S:l,A=i.startValue<c?0:c,L=function(e,t,n){for(var r=Math.ceil((e-t)/n),i=[t,t+r];i[i.length-1]<e;)i.push(i[i.length-1]+r);return i}(E,A,x),w=Na().domain([A,L[L.length-1]]).range([d-p.bottom,p.top+(b?C:0)]),D=(t?Yi(w):qi(w)).tickPadding(g).tickValues(L).tickSizeInner(-(h-p.left-p.right));return _?D.tickFormat(_):D.tickFormat(Bc(".2~s")),a&&wc(a).call(D).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=L,w}!function(e){e[e.AreaChart=0]="AreaChart",e[e.LineChart=1]="LineChart",e[e.VerticalBarChart=2]="VerticalBarChart",e[e.VerticalStackedBarChart=3]="VerticalStackedBarChart",e[e.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",e[e.HeatMapChart=5]="HeatMapChart"}(Yh||(Yh={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(jh||(jh={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(qh||(qh={}));function Gh(e){var t=[];e.forEach((function(e){var n=e.data.filter((function(e){return!e.hideCallout})).map((function(t){return a(a({legend:e.legend},t),{color:e.color,index:e.index})}));t=t.concat(n)}));var n,r,i=[];return t.forEach((function(e,n){e.x=e.x instanceof Date?e.x.getTime():e.x;var r=[{legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}];t.slice(n+1).forEach((function(t){t.x=t.x instanceof Date?t.x.getTime():t.x,e.x===t.x&&r.push({legend:t.legend,y:t.y,color:t.color,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index})})),i.push({x:e.x,values:r})})),r="x",(n=i).map((function(e){return e[r]})).map((function(e,t,n){return n.indexOf(e)===t&&t})).filter((function(e){return n[e]})).map((function(e){return n[e]}))}function $h(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var i=wc("body").append("div").attr("id",r).attr("class",t).style("opacity",0),o=n.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,s=[],l=0;l<a;l++){var u=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(u)}var c=n.selectAll(".tick")._groups[0],d=c&&Object.keys(c).length,h=function(e){var t=c[e];wc(t).on("mouseover",(function(t){i.style("opacity",.9),i.html(s[e]).style("left",gc.pageX+"px").style("top",gc.pageY-28+"px")})).on("mouseout",(function(e){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function Qh(e){var t=!1;return e&&e.length>0&&e.forEach((function(e){e.data.length>0&&(t=e.data[0].x instanceof Date)})),t}function Jh(e,t,n,r,i,o,a,s){var u;if(o===jh.NumericAxis)switch(r){case Yh.AreaChart:case Yh.LineChart:u=function(e,t,n,r){var i=Qi(e,(function(e){return Qi(e.data,(function(e){return e.x}))})),o=$i(e,(function(e){return $i(e.data,(function(e){return e.x}))})),a=t.left,s=n-t.right;return r?{dStartValue:o,dEndValue:i,rStartValue:a,rEndValue:s}:{dStartValue:i,dEndValue:o,rStartValue:a,rEndValue:s}}(e,t,n,i);break;case Yh.VerticalStackedBarChart:u=function(e,t,n,r,i){var o=Qi(e,(function(e){return e.x})),a=$i(e,(function(e){return e.x})),s=t.left+i/2,l=n-t.right-i/2;return r?{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}:{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}}(e,t,n,i,a);break;case Yh.VerticalBarChart:u=function(e,t,n,r,i){var o=$i(e,(function(e){return e.x})),a=Qi(e,(function(e){return e.x})),s=t.left+i,l=n-t.right-i;return r?{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}}(e,t,n,i,a);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(o===jh.DateAxis)switch(r){case Yh.AreaChart:case Yh.LineChart:u=function(e,t,n,r,i){void 0===i&&(i=[]);var o=Qi(e,(function(e){return Qi(e.data,(function(e){return e.x}))})),a=$i(e,(function(e){return $i(e.data,(function(e){return e.x}))})),s=Qi(l(i,[o])),u=$i(l(i,[a])),c=t.left,d=n-t.right;return r?{dStartValue:u,dEndValue:s,rStartValue:c,rEndValue:d}:{dStartValue:s,dEndValue:u,rStartValue:c,rEndValue:d}}(e,t,n,i,s);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case Yh.VerticalStackedBarChart:case Yh.GroupedVerticalBarChart:case Yh.VerticalBarChart:case Yh.HeatMapChart:u=function(e,t,n){var r=e.left,i=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:i,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:i}}(t,n,i);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function ep(e,t){var n,r,i;switch(t){case Yh.AreaChart:case Yh.LineChart:n=function(e){var t=$i(e,(function(e){return $i(e.data,(function(e){return e.y}))}));return{startValue:Qi(e,(function(e){return Qi(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case Yh.VerticalStackedBarChart:i=$i(r=e,(function(e){return e.y})),n={startValue:Qi(r,(function(e){return e.y})),endValue:i};break;case Yh.VerticalBarChart:n=function(e){var t=$i(e,(function(e){return e.y}));return{startValue:Qi(e,(function(e){return e.y})),endValue:t}}(e);break;default:n={startValue:0,endValue:0}}return n}var tp,np,rp=function(e,t){if(t)switch(typeof e){case"string":return jh.StringAxis;case"number":return jh.NumericAxis;default:return jh.DateAxis}else switch(typeof e){case"string":return qh.StringAxis;case"number":return qh.NumericAxis;default:return qh.DateAxis}};!function(e){e[e.circle=0]="circle",e[e.square=1]="square",e[e.triangle=2]="triangle",e[e.diamond=3]="diamond",e[e.pyramid=4]="pyramid",e[e.hexagon=5]="hexagon",e[e.pentagon=6]="pentagon",e[e.octagon=7]="octagon"}(tp||(tp={})),function(e){e[e.dottedLine=0]="dottedLine"}(np||(np={}));var ip=((zh={})[tp.circle]={widthRatio:1},zh[tp.square]={widthRatio:1},zh[tp.triangle]={widthRatio:1},zh[tp.diamond]={widthRatio:1},zh[tp.pyramid]={widthRatio:1},zh[tp.hexagon]={widthRatio:2},zh[tp.pentagon]={widthRatio:1.168},zh[tp.octagon]={widthRatio:2.414},zh),op=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},ap=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e:Number(e).toLocaleString(t)):e},sp=De(),lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,i=e.YValue,o=e.styles,a=e.theme,s=e.ratio,l=e.descriptionMessage,c=e.culture;return this._classNames=sp(o,{theme:a,color:t,XValue:r,isRatioPresent:!!s}),u.createElement("div",{className:this._classNames.calloutContentRoot},u.createElement("div",{className:this._classNames.calloutDateTimeContainer},u.createElement("div",{className:this._classNames.calloutContentX},r," ")),u.createElement("div",{className:this._classNames.calloutInfoContainer},u.createElement("div",{className:this._classNames.calloutBlockContainer},u.createElement("div",{className:this._classNames.calloutlegendText},ap(n,c)),u.createElement("div",{className:this._classNames.calloutContentY},ap(i,c))),!!s&&u.createElement("div",{className:this._classNames.ratio},u.createElement(u.Fragment,null,u.createElement("span",{className:this._classNames.numerator},ap(s[0],c)),"/",u.createElement("span",{className:this._classNames.denominator},ap(s[1],c))))),!!l&&u.createElement("div",{className:this._classNames.descriptionMessage},l))},t}(u.Component),up=function(e){var t=e.color,n=e.XValue,r=e.theme,i=e.isRatioPresent,o=void 0!==i&&i;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:r.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[r.fonts.small,{lineHeight:"16px",opacity:"0.8",color:r.semanticColors.bodySubtext}],calloutBlockContainer:[r.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:r.semanticColors.bodyText,borderLeft:"4px solid "+t}],calloutlegendText:[r.fonts.small,{lineHeight:"16px",color:r.semanticColors.bodyText}],calloutContentY:[r.fonts.xxLarge,{color:t||r.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[o&&{display:"flex",alignItems:"flex-end"}],ratio:[r.fonts.small,{marginLeft:"6px",color:r.semanticColors.bodyText}],numerator:{fontWeight:rr.bold},denominator:{fontWeight:rr.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+r.semanticColors.menuDivider}]}},cp=A(lp,up),dp=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var i=r[n];"function"==typeof i?i(t):i&&(i.current=t)}}};function hp(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function pp(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=hp(e,e[n],t[n]))}(e,{componentDidMount:fp,componentDidUpdate:gp,componentWillUnmount:mp})}function fp(){vp(this.props.componentRef,this)}function gp(e){e.componentRef!==this.props.componentRef&&(vp(e.componentRef,null),vp(this.props.componentRef,this))}function mp(){vp(this.props.componentRef,null)}function vp(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}var _p,yp=1,xp=2;!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(_p||(_p={}));var bp;function Cp(e,t){var n,r,i,o,a,s,l;"function"==typeof MouseEvent?l=new MouseEvent("click",{ctrlKey:null===(n=t)||void 0===n?void 0:n.ctrlKey,metaKey:null===(r=t)||void 0===r?void 0:r.metaKey,shiftKey:null===(i=t)||void 0===i?void 0:i.shiftKey,altKey:null===(o=t)||void 0===o?void 0:o.altKey,bubbles:null===(a=t)||void 0===a?void 0:a.bubbles,cancelable:null===(s=t)||void 0===s?void 0:s.cancelable}):(l=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(l)}var Sp={},Ep=new Set,Ap=["text","number","password","email","tel","url","search"],Lp=function(e){function t(t){var n,r=e.call(this,t)||this;return r._root=u.createRef(),r._mergedRef=(n={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.resolver&&Oe(n.refs,e)||(n.resolver=dp(n)),n.refs=e,n.resolver}),r._onFocus=function(e){if(!r._portalContainsElement(e.target)){var t,n=r.props,i=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,a=n.stopFocusPropagation,s=n.onFocusNotification,l=n.onFocus,u=n.shouldFocusInnerElementWhenReceivedFocus,c=n.defaultTabbableElement,d=r._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==r._root.current;){if(ot(h)&&r._isImmediateDescendantOfZone(h)){t=h;break}h=Qe(h,!1)}if(u&&e.target===r._root.current){var p=c&&"function"==typeof c&&c(r._root.current);p&&ot(p)?(t=p,p.focus()):(r.focus(!0),r._activeElement&&(t=null))}var f=!r._activeElement;t&&t!==r._activeElement&&((d||f)&&r._setFocusAlignment(t,!0,!0),r._activeElement=t,f&&r._updateTabIndexes()),i&&i(r._activeElement,e),(a||o)&&e.stopPropagation(),l?l(e):s&&s()}},r._onBlur=function(){r._setParkedFocus(!1)},r._onMouseDown=function(e){if(!r._portalContainsElement(e.target)&&!r.props.disabled){for(var t=e.target,n=[];t&&t!==r._root.current;)n.push(t),t=Qe(t,!1);for(;n.length&&((t=n.pop())&&ot(t)&&r._setActiveElement(t,!0),!at(t)););}},r._onKeyDown=function(e,t){if(!r._portalContainsElement(e.target)){var n=r.props,i=n.direction,o=n.disabled,a=n.isInnerZoneKeystroke,s=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!(o||(r.props.onKeyDown&&r.props.onKeyDown(e),e.isDefaultPrevented()||r._getDocument().activeElement===r._root.current&&r._isInnerZone))){if((l&&l(e)||a&&a(e))&&r._isImmediateDescendantOfZone(e.target)){var u=r._getFirstInnerZone();if(u){if(!u.focus(!0))return}else{if(!st(e.target))return;if(!r.focusElement(rt(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case de:if(r._tryInvokeClickForFocusable(e.target,e))break;return;case me:if(i!==_p.vertical&&(r._preventDefaultWhenHandled(e),r._moveFocusLeft(t)))break;return;case _e:if(i!==_p.vertical&&(r._preventDefaultWhenHandled(e),r._moveFocusRight(t)))break;return;case ve:if(i!==_p.horizontal&&(r._preventDefaultWhenHandled(e),r._moveFocusUp()))break;return;case ye:if(i!==_p.horizontal&&(r._preventDefaultWhenHandled(e),r._moveFocusDown()))break;return;case pe:if(!s&&r._moveFocusPaging(!0))break;return;case he:if(!s&&r._moveFocusPaging(!1))break;return;case le:if(r.props.allowTabKey||r.props.handleTabKey===yp||r.props.handleTabKey===xp&&r._isElementInput(e.target)){var c=!1;if(r._processingTabKey=!0,i!==_p.vertical&&r._shouldWrapFocus(r._activeElement,"data-no-horizontal-wrap"))c=(Ae(t)?!e.shiftKey:e.shiftKey)?r._moveFocusLeft(t):r._moveFocusRight(t);else c=e.shiftKey?r._moveFocusUp():r._moveFocusDown();if(r._processingTabKey=!1,c)break;r.props.shouldResetActiveElementWhenTabFromZone&&(r._activeElement=null)}return;case ge:if(r._isContentEditableElement(e.target)||r._isElementInput(e.target)&&!r._shouldInputLoseFocus(e.target,!1))return!1;var d=r._root.current&&r._root.current.firstChild;if(r._root.current&&d&&r.focusElement(rt(r._root.current,d,!0)))break;return;case fe:if(r._isContentEditableElement(e.target)||r._isElementInput(e.target)&&!r._shouldInputLoseFocus(e.target,!0))return!1;var h=r._root.current&&r._root.current.lastChild;if(r._root.current&&r.focusElement(nt(r._root.current,h,!0,!0,!0)))break;return;case ue:if(r._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},r._getHorizontalDistanceFromCenter=function(e,t,n){var i=r._focusAlignment.left||r._focusAlignment.x||0,o=Math.floor(n.top),a=Math.floor(t.bottom),s=Math.floor(n.bottom),l=Math.floor(t.top);return e&&o>a||!e&&s<l?i>=n.left&&i<=n.left+n.width?0:Math.abs(n.left+n.width/2-i):r._shouldWrapFocus(r._activeElement,"data-no-vertical-wrap")?999999999:-999999999},pp(r),r._id=Fe("FocusZone"),r._focusAlignment={left:0,top:0},r._processingTabKey=!1,r}return o(t,e),t.getOuterZones=function(){return Ep.size},t._onKeyDownCapture=function(e){e.which===le&&Ep.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Sp[this._id]=this,e){this._windowElement=p(e);for(var n=Qe(e,!1);n&&n!==this._getDocument().body&&1===n.nodeType;){if(at(n)){this._isInnerZone=!0;break}n=Qe(n,!1)}this._isInnerZone||(Ep.add(this),this._windowElement&&1===Ep.size&&this._windowElement.addEventListener("keydown",t._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()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if(t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||!this.props.preventFocusRestoration&&t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r],a=n.children[Math.min(o,n.children.length-1)];if(!a)break;n=a}return n=ot(n)&&it(n)?n:rt(e,n,!0)||nt(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Sp[this._id],this._isInnerZone||(Ep.delete(this),this._windowElement&&0===Ep.size&&this._windowElement.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,i=t.rootProps,o=t.ariaDescribedBy,s=t.ariaLabelledBy,l=t.className,c=Et(this.props,xt),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(Xr=jr({},h)),Xr);return u.createElement(d,a({"aria-labelledby":s,"aria-describedby":o},c,i,{className:At((bp||(bp=wt({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),bp),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e){if(void 0===e&&(e=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute("data-is-focusable")&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var n=Sp[t.getAttribute("data-focuszone-id")];return!!n&&n.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&et(this._root.current,this._activeElement)&&ot(this._activeElement))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(rt(this._root.current,r,!0))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(nt(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,i=n.shouldReceiveFocus;return!(i&&!i(e)||r&&!r(e))&&(!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=et(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=Qe(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(at(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current||!this.props.shouldRaiseClicks)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute("data-is-focusable")&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Cp(n,t),!0;n=Qe(n,!1)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(at(e))return Sp[e.getAttribute("data-focuszone-id")];for(var t=e.firstElementChild;t;){if(at(t))return Sp[t.getAttribute("data-focuszone-id")];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var i=this._activeElement,o=-1,a=void 0,s=!1,l=this.props.direction===_p.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,e))return!1;var u=l?i.getBoundingClientRect():null;do{if(i=e?rt(this._root.current,i):nt(this._root.current,i),!l){a=i;break}if(i){var c=t(u,i.getBoundingClientRect());if(-1===c&&-1===o){a=i;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=i),o>=0&&c<0)break}}while(i);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(rt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(nt(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,i){var o=-1,a=Math.floor(i.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&a>=s||a===t)&&(t=a,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,i){var o=-1,a=Math.floor(i.bottom),s=Math.floor(i.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===t&&a<=l||s===t)&&(t=s,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(Ae(e),(function(r,i){var o=-1;return(Ae(e)?parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&i.right<=r.right&&t.props.direction!==_p.vertical?o=r.right-i.right:n||(o=-999999999),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(!Ae(e),(function(r,i){var o=-1;return(Ae(e)?parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&i.left>=r.left&&t.props.direction!==_p.vertical?o=i.left-r.left:n||(o=-999999999),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=Tt(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,u=n.getBoundingClientRect();do{if(n=e?rt(this._root.current,n):nt(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),h=Math.floor(u.bottom),p=Math.floor(c.bottom),f=Math.floor(u.top),g=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>a?(a=d,i=g,o=n):!e&&p<s?(s=p,i=g,o=n):(-1===i||g<=i)&&(i=g,o=n))}}while(n);var m=!1;if(o&&o!==this._activeElement)m=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(rt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(nt(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===_p.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),i=r.left+r.width/2,o=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:i,top:o}),t&&(this._focusAlignment.left=i),n&&(this._focusAlignment.top=o)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=Qe(e,!1);t&&t!==this._root.current&&t!==this._getDocument().body;){if(at(t))return t;t=Qe(t,!1)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!et(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!ot(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];at(r)?"true"===r.getAttribute("data-is-focusable")&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","0"))):(r.getAttribute&&"false"===r.getAttribute("data-is-focusable")&&r.setAttribute("tabindex","-1"),ot(r)?this.props.disabled?r.setAttribute("tabindex","-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&Ap.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,i=e.value,o=e.readOnly;if(r||n>0&&!t&&!o||n!==i.length&&t&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||lt(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&(t=e,n=this._root.current,null!==(r=Je(t,(function(e){return n===e||e.hasAttribute("data-portal-element")})))&&r.hasAttribute("data-portal-element"));var t,n,r},t.prototype._getDocument=function(){return be(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:_p.bidirectional,shouldRaiseClicks:!0},t}(u.Component),wp=De(),Dp=A(function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||8,n._classNames=wp(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor})},n._getChartDataText=function(e){return n.props.barChartCustomData?u.createElement("div",{"data-is-focusable":!0,role:"text"},n.props.barChartCustomData(e)):n._getDefaultTextData(e)},n._getDefaultTextData=function(e){var t=n.props.culture,r=n.props.chartDataMode||"default",i=e.chartData[0],o=i.horizontalBarChartdata.x,s=i.horizontalBarChartdata.y,l=op(e.chartDataAccessibilityData);switch(r){case"default":return u.createElement("div",a({className:n._classNames.chartDataText},l),ap(o,t));case"fraction":return u.createElement("div",a({},l),u.createElement("span",{className:n._classNames.chartDataText},ap(o,t)),u.createElement("span",{className:n._classNames.chartDataTextDenominator},"/"+ap(s,t)));case"percentage":var c=ap(Math.round(o/s*100),t)+"%";return u.createElement("div",a({className:n._classNames.chartDataText},l),c)}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||(e.horizontalBarChartdata?e.horizontalBarChartdata.x+"/"+e.horizontalBarChartdata.y:0);return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:""},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=Fe("callout"),n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme;this._adjustProps();var i=r.palette,o=0;return u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},n.map((function(t,n){o=t.chartData&&t.chartData[0]&&t.chartData[0].horizontalBarChartdata.x?t.chartData[0].horizontalBarChartdata.x:0,t.chartData[1]={legend:"",horizontalBarChartdata:{x:t.chartData[0].horizontalBarChartdata.y-o,y:t.chartData[0].horizontalBarChartdata.y},color:i.neutralTertiaryAlt};var r=e._getChartDataText(t),s=e._createBars(t,i),l=e._uniqLineText+"_"+n,c=t.chartData[0].horizontalBarChartdata.x;return u.createElement("div",{key:n,className:e._classNames.items},u.createElement("div",{className:e._classNames.items},u.createElement(Lp,{direction:_p.horizontal},u.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&u.createElement("div",a({className:e._classNames.chartDataText},op(t.chartTitleAccessibilityData)),t.chartTitle),r)),t.chartData[0].data&&e._createBenchmark(t),u.createElement(Lp,{direction:_p.horizontal},u.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},u.createElement("g",{id:l,key:l,ref:function(n){e._refCallback(n,t.chartData[0].legend)},className:e._classNames.barWrapper,onMouseOver:e._hoverOn.bind(e,c,t.chartData[0]),onFocus:e._hoverOn.bind(e,c,t.chartData[0]),onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()},role:"img","aria-label":e._getAriaLabel(t.chartData[0]),"data-is-focusable":!0,onBlur:e._hoverOff,onMouseLeave:e._hoverOff},s)))))})),u.createElement(Hi,a({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Ze,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,op(this.state.callOutAccessibilityData)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerHorizonalBar?this.props.onRenderCalloutPerHorizonalBar(this.state.barCalloutProps):u.createElement(cp,{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}))))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=Ie(this._refArray,(function(e){return e.index===t.legend}));this._calloutAnchorPoint=t,this.setState({isCalloutVisible:!0,hoverValue:e,lineColor:t.color,legend:t.legend,refSelected:n.refElement,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,barCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},t.prototype._hoverOff=function(){},t.prototype._createBenchmark=function(e){var t=e.chartData[0].horizontalBarChartdata.y,n=e.chartData[0].data,r=Math.round((n||0)/t*100),i={marginLeft:"calc("+r+"% - 4px)",marginRight:"calc("+(100-r)+"% - 4px)"};return u.createElement("div",{className:this._classNames.triangle,style:i})},t.prototype._createBars=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[],o=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),a=0,s=0;return e.chartData.map((function(e,t){var l=e.color?e.color:r[Math.floor(4*Math.random()+1)],c=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return t>0&&(a+=s),(s=c/o*100)<0?s=0:s<1&&0!==s&&(s=1),i.push(a),s<1?u.createElement(u.Fragment,{key:t}," "):u.createElement("rect",{key:t,x:i[t]+"%",y:0,width:s+"%",height:n._barHeight,fill:l})}))},t}(u.Component),(function(e){var t=e.className,n=e.theme,r=e.width,i=n.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},t],items:{height:"32px",marginTop:"5px",position:"relative"},chart:{width:"100%",height:"8px",marginBottom:"11px"},barWrapper:{stroke:n.palette.white,strokeWidth:2},chartTitle:a(a({},n.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),chartDataText:{fontWeight:rr.bold},chartDataTextDenominator:{fontWeight:rr.semibold},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"8px solid",borderTopColor:i.blue,marginBottom:"4px",position:"absolute",top:"12px"}}})),kp=function(e){return function(){return e}},Tp=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},Mp=function(e){return e},Pp=Math.abs,Fp=Math.atan2,Np=Math.cos,Hp=Math.max,Ip=Math.min,Op=Math.sin,Bp=Math.sqrt,Vp=Math.PI,Rp=Vp/2,Wp=2*Vp;function Up(e){return e>1?0:e<-1?Vp:Math.acos(e)}function zp(e){return e>=1?Rp:e<=-1?-Rp:Math.asin(e)}var Yp=function(){var e=Mp,t=Tp,n=null,r=kp(0),i=kp(Wp),o=kp(0);function a(a){var s,l,u,c,d,h=a.length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(Wp,Math.max(-Wp,i.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,o.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+e(a[s],s,a))>0&&(p+=d);for(null!=t?f.sort((function(e,n){return t(g[e],g[n])})):null!=n&&f.sort((function(e,t){return n(a[e],a[t])})),s=0,u=p?(v-h*y)/p:0;s<h;++s,m=c)l=f[s],c=m+((d=g[l])>0?d*u:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:c,padAngle:_};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:kp(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:kp(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:kp(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:kp(+e),a):o},a},jp=Math.PI,qp=2*jp,Xp=qp-1e-6;function Kp(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Zp(){return new Kp}Kp.prototype=Zp.prototype={constructor:Kp,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,u=o-e,c=a-t,d=u*u+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6)if(Math.abs(c*s-l*u)>1e-6&&i){var h=n-o,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=i*Math.tan((jp-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>1e-6&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>u*p)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%qp+qp),d>Xp?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=jp)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Gp=Zp;function $p(e){return e.innerRadius}function Qp(e){return e.outerRadius}function Jp(e){return e.startAngle}function ef(e){return e.endAngle}function tf(e){return e&&e.padAngle}function nf(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,h=d*l-c*u;if(!(h*h<1e-12))return[e+(h=(c*(t-o)-d*(e-i))/h)*l,t+h*u]}function rf(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/Bp(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=i-o,C=h*g-f*p,S=(y<0?-1:1)*Bp(Hp(0,b*b*x-C*C)),E=(C*y-_*S)/x,A=(-C*_-y*S)/x,L=(C*y+_*S)/x,w=(-C*_+y*S)/x,D=E-m,k=A-v,T=L-m,M=w-v;return D*D+k*k>T*T+M*M&&(E=L,A=w),{cx:E,cy:A,x01:-c,y01:-d,x11:E*(i/b-1),y11:A*(i/b-1)}}var of=function(){var e=$p,t=Qp,n=kp(0),r=null,i=Jp,o=ef,a=tf,s=null;function l(){var l,u,c=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-Rp,p=o.apply(this,arguments)-Rp,f=Pp(p-h),g=p>h;if(s||(s=l=Gp()),d<c&&(u=d,d=c,c=u),d>1e-12)if(f>Wp-1e-12)s.moveTo(d*Np(h),d*Op(h)),s.arc(0,0,d,h,p,!g),c>1e-12&&(s.moveTo(c*Np(p),c*Op(p)),s.arc(0,0,c,p,h,g));else{var m,v,_=h,y=p,x=h,b=p,C=f,S=f,E=a.apply(this,arguments)/2,A=E>1e-12&&(r?+r.apply(this,arguments):Bp(c*c+d*d)),L=Ip(Pp(d-c)/2,+n.apply(this,arguments)),w=L,D=L;if(A>1e-12){var k=zp(A/c*Op(E)),T=zp(A/d*Op(E));(C-=2*k)>1e-12?(x+=k*=g?1:-1,b-=k):(C=0,x=b=(h+p)/2),(S-=2*T)>1e-12?(_+=T*=g?1:-1,y-=T):(S=0,_=y=(h+p)/2)}var M=d*Np(_),P=d*Op(_),F=c*Np(b),N=c*Op(b);if(L>1e-12){var H,I=d*Np(y),O=d*Op(y),B=c*Np(x),V=c*Op(x);if(f<Vp&&(H=nf(M,P,B,V,I,O,F,N))){var R=M-H[0],W=P-H[1],U=I-H[0],z=O-H[1],Y=1/Op(Up((R*U+W*z)/(Bp(R*R+W*W)*Bp(U*U+z*z)))/2),j=Bp(H[0]*H[0]+H[1]*H[1]);w=Ip(L,(c-j)/(Y-1)),D=Ip(L,(d-j)/(Y+1))}}S>1e-12?D>1e-12?(m=rf(B,V,M,P,d,D,g),v=rf(I,O,F,N,d,D,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),D<L?s.arc(m.cx,m.cy,D,Fp(m.y01,m.x01),Fp(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,D,Fp(m.y01,m.x01),Fp(m.y11,m.x11),!g),s.arc(0,0,d,Fp(m.cy+m.y11,m.cx+m.x11),Fp(v.cy+v.y11,v.cx+v.x11),!g),s.arc(v.cx,v.cy,D,Fp(v.y11,v.x11),Fp(v.y01,v.x01),!g))):(s.moveTo(M,P),s.arc(0,0,d,_,y,!g)):s.moveTo(M,P),c>1e-12&&C>1e-12?w>1e-12?(m=rf(F,N,I,O,c,-w,g),v=rf(M,P,B,V,c,-w,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),w<L?s.arc(m.cx,m.cy,w,Fp(m.y01,m.x01),Fp(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,w,Fp(m.y01,m.x01),Fp(m.y11,m.x11),!g),s.arc(0,0,c,Fp(m.cy+m.y11,m.cx+m.x11),Fp(v.cy+v.y11,v.cx+v.x11),g),s.arc(v.cx,v.cy,w,Fp(v.y11,v.x11),Fp(v.y01,v.x01),!g))):s.arc(0,0,c,b,x,g):s.lineTo(F,N)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Vp/2;return[Np(r)*n,Op(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:kp(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:kp(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:kp(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:kp(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:kp(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:kp(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:kp(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l},af=function(e){var t,n=e.color,r=e.href,i=e.theme;return{root:{fill:n,cursor:r?"pointer":"default",stroke:ar.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:i.semanticColors.focusBorder,strokeWidth:4},insideDonutString:{fontSize:nr.large,fill:i.semanticColors.bodyText,selectors:(t={},t[lr]={fill:"rgb(179, 179, 179)"},t)}}},sf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=u.createRef(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t._getAriaLabel=function(){var e,n=t.props.data.data,r=n.xAxisCalloutData||n.legend,i=n.yAxisCalloutData||n.data||0;return(null===(e=n.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(r?r+", ":"")+i+"."},t}return o(t,e),t.getDerivedStateFromProps=function(e){return lf(e),null},t.prototype.updateChart=function(e){lf(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,i=t.focusedArcId,o=De()(af,{color:this.props.color,href:r,theme:this.props.theme}),a=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,s=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return u.createElement("g",{ref:this.currentRef},!!i&&i===a&&u.createElement("path",{id:a+"focusRing",d:n(this.props.focusData),className:o.focusRing}),u.createElement("path",{id:a,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,a),className:o.root,"data-is-focusable":!0,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:s,onClick:r?this._redirectToUrl.bind(this,r):null===(e=this.props.data)||void 0===e?void 0:e.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),u.createElement("text",{textAnchor:"middle",className:o.insideDonutString,y:5},this.props.valueInsideDonut))},t.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},t.prototype._hoverOn=function(e,t){t.persist(),this.props.activeArc!==this.props.data.data.legend&&""!==this.props.activeArc||this.props.hoverOnCallback(e,t)},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={arc:of()},t}(u.Component);function lf(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var uf=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t,r,i){var o=e&&e.data&&e.data.color;return u.createElement(sf,{key:t,data:e,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:o,onFocusCallback:n._focusCallback,hoverOnCallback:n._hoverCallback,onBlurCallback:n.props.onBlurCallback,hoverLeaveCallback:n.props.hoverLeaveCallback,uniqText:n.props.uniqText,activeArc:n.props.activeArc,href:i,calloutId:n.props.calloutId,valueInsideDonut:n.props.valueInsideDonut,theme:n.props.theme,focusedArcId:n.props.focusedArcId})},n._focusCallback=function(e,t,r){n.props.onFocusCallback(e,t,r)},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=Yp().sort(null).value((function(e){return e.data})).padAngle(0),n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,i=this._pieForFocusRing(r),o=n(r),a="translate("+this.props.width/2+", "+this.props.height/2+")";return u.createElement("g",{transform:a},o.map((function(t,n){return e.arcGenerator(t,n,i[n],e.props.href)})))},t.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},t.defaultProps={pie:Yp().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(u.Component),cf={host:"ms-HoverCard-host"};var df,hf,pf=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,i){var o;if(e._isElement(t)){if("undefined"!=typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,i||!1,!0),function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];pt.apply(this,[null,e].concat(t))}(a,r),o=t.dispatchEvent(a)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==o;){var l=t.__events__,u=l?l[n]:null;if(u)for(var c in u)if(u.hasOwnProperty(c))for(var d=u[c],h=0;!1!==o&&h<d.length;h++){var p=d[h];p.objectCallback&&(o=p.objectCallback.call(p.parent,r))}t=i?t.parent:null}return o},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,i){var o=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,i);else{var l=this._parent,u={target:t,eventName:n,parent:l,callback:r,options:i};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(u),a[n].count++,e._isElement(t)){var c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var i=e[0];i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.cancelBubble=!0}}catch(i){}return n}};u.elementCallback=c,t.addEventListener?t.addEventListener(n,c,i):t.attachEvent&&t.attachEvent("on"+n,c)}else{u.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed)return r.apply(l,e)}}this._eventRecords.push(u)}},e.prototype.off=function(e,t,n,r){for(var i=0;i<this._eventRecords.length;i++){var o=this._eventRecords[i];if(!(e&&e!==o.target||t&&t!==o.eventName||n&&n!==o.callback||"boolean"==typeof r&&r!==o.options)){var a=o.target.__events__,s=a[o.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(o),1)):(s.count-=l.length,delete a[o.eventName][this._id]),s.count||delete a[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(i--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(df||(df={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(hf||(hf={}));var ff,gf={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function mf(e){for(var t,n=[],r=be(e)||document;e!==r.body;){for(var i=0,o=e.parentElement.children;i<o.length;i++){var a=o[i];a!==e&&"true"!==(null===(t=a.getAttribute("aria-hidden"))||void 0===t?void 0:t.toLowerCase())&&n.push(a)}if(!e.parentElement)break;e=e.parentElement}return n.forEach((function(e){e.setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){e.setAttribute("aria-hidden","false")}))}(n),n=[]}}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(ff||(ff={}));var vf=function(e){function t(n){var r=e.call(this,n)||this;return r._root=u.createRef(),r._firstBumper=u.createRef(),r._lastBumper=u.createRef(),r._hasFocus=!1,r._onRootFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r._hasFocus=!0},r._onRootBlur=function(e){r.props.onBlur&&r.props.onBlur(e);var t=e.relatedTarget;null===e.relatedTarget&&(t=r._getDocument().activeElement),et(r._root.current,t)||(r._hasFocus=!1)},r._onFirstBumperFocus=function(){r._onBumperFocus(!0)},r._onLastBumperFocus=function(){r._onBumperFocus(!1)},r._onBumperFocus=function(e){if(!r.props.disabled){var t,n,i=e===r._hasFocus?r._lastBumper.current:r._firstBumper.current;if(r._root.current){var o=e===r._hasFocus?(t=r._root.current,void 0===(n=!1)&&(n=!0),nt(t,i,n,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),rt(e,t,r,!1,!1,n,!1,!0)}(r._root.current,i,!0,!1);o&&(r._isBumper(o)?r.focus():o.focus())}}},r._onFocusCapture=function(e){r.props.onFocusCapture&&r.props.onFocusCapture(e),e.target===e.currentTarget||r._isBumper(e.target)||(r._previouslyFocusedElementInTrapZone=e.target)},r._forceFocusInTrap=function(e){if(!r.props.disabled&&t._focusStack.length&&r===t._focusStack[t._focusStack.length-1]){var n=r._getDocument().activeElement;if(!et(r._root.current,n)){var i=r._getDocument();i&&i.activeElement===i.body?setTimeout((function(){i&&i.activeElement===i.body&&(r.focus(),r._hasFocus=!0)}),0):(r.focus(),r._hasFocus=!0),e.preventDefault(),e.stopPropagation()}}},r._forceClickInTrap=function(e){if(!r.props.disabled&&t._focusStack.length&&r===t._focusStack[t._focusStack.length-1]){var n=e.target;n&&!et(r._root.current,n)&&(r.focus(),r._hasFocus=!0,e.preventDefault(),e.stopPropagation())}},pp(r),r}return o(t,e),t.prototype.componentDidMount=function(){this._bringFocusIntoZone(),this._updateEventHandlers(this.props),!this.props.disabled&&this._root.current&&this.props.enableAriaHiddenSiblings&&(this._unmodalize=mf(this._root.current))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.elementToFocusOnDismiss;t&&this._previouslyFocusedElementOutsideTrapZone!==t&&(this._previouslyFocusedElementOutsideTrapZone=t),this._updateEventHandlers(e)},t.prototype.componentDidUpdate=function(e){var t=void 0===e.forceFocusInsideTrap||e.forceFocusInsideTrap,n=void 0===this.props.forceFocusInsideTrap||this.props.forceFocusInsideTrap,r=void 0!==e.disabled&&e.disabled,i=void 0!==this.props.disabled&&this.props.disabled;!t&&n||r&&!i?(this._bringFocusIntoZone(),!this._unmodalize&&this._root.current&&this.props.enableAriaHiddenSiblings&&(this._unmodalize=mf(this._root.current))):(t&&!n||!r&&i)&&(this._returnFocusToInitiator(),this._unmodalize&&this._unmodalize())},t.prototype.componentWillUnmount=function(){this.props.disabled&&!this.props.forceFocusInsideTrap&&et(this._root.current,this._getDocument().activeElement)||this._returnFocusToInitiator(),this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0),this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),this._unmodalize&&this._unmodalize(),delete this._previouslyFocusedElementInTrapZone,delete this._previouslyFocusedElementOutsideTrapZone},t.prototype.render=function(){var e=this.props,t=e.className,n=e.disabled,r=void 0!==n&&n,i=e.ariaLabelledBy,o=Et(this.props,St),s={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:r?-1:0,"data-is-visible":!0};return u.createElement("div",a({},o,{className:t,ref:this._root,"aria-labelledby":i,onFocusCapture:this._onFocusCapture,onFocus:this._onRootFocus,onBlur:this._onRootBlur}),u.createElement("div",a({},s,{ref:this._firstBumper,onFocus:this._onFirstBumperFocus})),this.props.children,u.createElement("div",a({},s,{ref:this._lastBumper,onFocus:this._onLastBumperFocus})))},t.prototype.focus=function(){var e=this.props,t=e.focusPreviouslyFocusedInnerElement,n=e.firstFocusableSelector,r=e.firstFocusableTarget;if(t&&this._previouslyFocusedElementInTrapZone&&et(this._root.current,this._previouslyFocusedElementInTrapZone))this._focusAsync(this._previouslyFocusedElementInTrapZone);else{var i="string"==typeof n?n:n&&n(),o=null;this._root.current&&("string"==typeof r?o=this._root.current.querySelector(r):r?o=r(this._root.current):i&&(o=this._root.current.querySelector("."+i)),o||(o=rt(this._root.current,this._root.current.firstChild,!1,!1,!1,!0))),o&&this._focusAsync(o)}},t.prototype._focusAsync=function(e){this._isBumper(e)||ct(e)},t.prototype._bringFocusIntoZone=function(){var e=this.props,n=e.elementToFocusOnDismiss,r=e.disabled,i=void 0!==r&&r,o=e.disableFirstFocus,a=void 0!==o&&o;i||(t._focusStack.push(this),this._previouslyFocusedElementOutsideTrapZone=n||this._getDocument().activeElement,a||et(this._root.current,this._previouslyFocusedElementOutsideTrapZone)||this.focus())},t.prototype._returnFocusToInitiator=function(){var e=this,n=this.props.ignoreExternalFocusing;t._focusStack=t._focusStack.filter((function(t){return e!==t}));var r=this._getDocument(),i=r.activeElement;n||!this._previouslyFocusedElementOutsideTrapZone||"function"!=typeof this._previouslyFocusedElementOutsideTrapZone.focus||!et(this._root.current,i)&&i!==r.body||this._focusAsync(this._previouslyFocusedElementOutsideTrapZone)},t.prototype._updateEventHandlers=function(e){var t=e.isClickableOutsideFocusTrap,n=void 0!==t&&t,r=e.forceFocusInsideTrap,i=void 0===r||r;i&&!this._disposeFocusHandler?this._disposeFocusHandler=Lt(window,"focus",this._forceFocusInTrap,!0):!i&&this._disposeFocusHandler&&(this._disposeFocusHandler(),this._disposeFocusHandler=void 0),n||this._disposeClickHandler?n&&this._disposeClickHandler&&(this._disposeClickHandler(),this._disposeClickHandler=void 0):this._disposeClickHandler=Lt(window,"click",this._forceClickInTrap,!0)},t.prototype._isBumper=function(e){return e===this._firstBumper.current||e===this._lastBumper.current},t.prototype._getDocument=function(){return be(this._root.current)},t._focusStack=[],t}(u.Component),_f=function(e){return u.createElement(Hi,a({},e),u.createElement(vf,a({disabled:e.hidden},e.focusTrapProps),e.children))},yf=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,i=void 0===r?Ue:r,o=e.directionalHintFixed,s=e.targetElement,l=e.firstFocus,c=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,m=a(a(a({},Et(e,St)),{className:h,target:s,isBeakVisible:!1,directionalHint:i,directionalHintFixed:o,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:n}),g);return u.createElement(u.Fragment,null,c?u.createElement(_f,a({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),f):u.createElement(Hi,a({},m),f))},xf=De(),bf=A(function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=u.createRef(),n._onKeyDown=function(e){e.which===ce&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return u.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),u.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},u.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new dt(n),pp(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return o(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,i=e.theme,o=e.mode,s=e.className,l=this.state,c=l.needsScroll,d=l.firstFrameRendered,h=n+r;this._classNames=xf(t,{theme:i,compactCardHeight:n,className:s,expandedCardHeight:r,needsScroll:c,expandedCardFirstFrameRendered:o===ff.expanded&&d});var p=u.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return u.createElement(yf,a({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(u.Component),(function(e){var t,n=e.theme,r=e.needsScroll,i=e.expandedCardFirstFrameRendered,o=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,u=Er(gf,n);return{root:[u.root,{width:320,pointerEvents:"none",selectors:(t={},t[sr]={border:"1px solid WindowText"},t)},s],compactCard:[u.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[u.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:l.neutralLighter}}},i&&{height:a}],expandedCardScroll:[u.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Cf={root:"ms-PlainCard-root"};var Sf,Ef=De(),Af=A(function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===ce&&n.props.onLeave&&n.props.onLeave(e)},pp(n),n}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=Ef(t,{theme:n,className:r});var i=u.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return u.createElement(yf,a({},this.props,{content:i,className:this._classNames.root}))},t}(u.Component),(function(e){var t,n=e.theme,r=e.className;return{root:[Er(Cf,n).root,{pointerEvents:"auto",selectors:(t={},t[sr]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),Lf=De(),wf=A(function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=u.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:ff.compact,openMode:"keydown"===e.type?df.hotKey:df.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==ce)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==ce||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:ff.compact,openMode:df.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:ff.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,i=e.eventListenerTarget,o=i?n._getTargetElement(i):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;o&&(n._events.on(o,"mouseenter",n._cardOpen),n._events.on(o,"mouseleave",a),t?n._events.on(o,"keydown",n._cardOpen):(n._events.on(o,"focus",n._cardOpen),n._events.on(o,"blur",a)),r?n._events.on(o,"click",n._instantOpenAsExpanded):(n._events.on(o,"mousedown",a),n._events.on(o,"keydown",a)))},pp(n),n._async=new dt(n),n._events=new pf(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:ff.compact,openMode:df.hover},n}return o(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:ff.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:ff.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,i=e.setAriaDescribedBy,o=void 0===i||i,s=e.styles,l=e.theme,c=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,g=this.state,m=g.isHoverCardVisible,v=g.mode,_=g.openMode,y=r||Fe("hoverCard");this._classNames=Lf(s,{theme:l,className:c});var x=a(a({},Et(this.props,St)),{id:y,trapFocus:!!p,firstFocus:f||_===df.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),b=a(a(a({},t),x),{mode:v}),C=a(a({},h),x);return u.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":o&&m?y:void 0,"data-is-focusable":!this.props.target},n,m&&(d===hf.expanding?u.createElement(bf,a({},b)):u.createElement(Af,a({},C))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return be().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:xe,type:hf.expanding},t}(u.Component),(function(e){var t=e.className,n=e.theme;return{host:[Er(cf,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Sf||(Sf={}));var Df=function(e){var t;void 0===e&&(t={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&t.hasOwnProperty(e.cacheKey))return t[e.cacheKey]},addMeasurementToCache:function(e,n){e.cacheKey&&(t[e.cacheKey]=n)}});var n,r=e;function i(e,t){var n=r.getCachedMeasurement(e);if(void 0!==n)return n;var i=t();return r.addMeasurementToCache(e,i),i}function o(e,t,o){for(var a=e,s=i(e,o);s>n;){var l=t(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,t,s,l){if(void 0!==l||void 0!==t.dataToMeasure){if(l){if(n&&t.renderedData&&!t.dataToMeasure)return a(a({},t),function(e,t,r,i){var o;return o=e>n?i?{resizeDirection:"grow",dataToMeasure:i(r)}:{resizeDirection:"shrink",dataToMeasure:t}:{resizeDirection:"shrink",dataToMeasure:r},n=e,a(a({},o),{measureContainer:!1})}(l,e.data,t.renderedData,e.onGrowData));n=l}var u=a(a({},t),{measureContainer:!1});return t.dataToMeasure&&(u="grow"===t.resizeDirection&&e.onGrowData?a(a({},u),function(e,t,s,l){for(var u=e,c=i(e,s);c<n;){var d=t(u);if(void 0===d)return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=r.getCachedMeasurement(d)))return{dataToMeasure:d};u=d}return a({resizeDirection:"shrink"},o(u,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):a(a({},u),o(t.dataToMeasure,e.onReduceData,s))),u}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:a({},e),resizeDirection:"grow",measureContainer:!0}}}},kf=u.createContext({isMeasured:!1}),Tf={position:"fixed",visibility:"hidden"},Mf={position:"relative"},Pf=function(e){function t(t){var n=e.call(this,t)||this;return n._nextResizeGroupStateProvider=Df(),n._root=u.createRef(),n._initialHiddenDiv=u.createRef(),n._updateHiddenDiv=u.createRef(),n._hasRenderedContent=!1,n.state=n._nextResizeGroupStateProvider.getInitialResizeGroupState(n.props.data),pp(n),n._async=new dt(n),n._events=new pf(n),n}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.onRenderData,r=this.state,i=r.dataToMeasure,o=r.renderedData,s=Et(this.props,St,["data"]),l=this._nextResizeGroupStateProvider.shouldRenderDataForMeasurement(i),c=!this._hasRenderedContent&&l;return u.createElement("div",a({},s,{className:t,ref:this._root}),u.createElement("div",{style:Mf},l&&!c&&u.createElement("div",{style:Tf,ref:this._updateHiddenDiv},u.createElement(kf.Provider,{value:{isMeasured:!0}},n(i))),u.createElement("div",{ref:this._initialHiddenDiv,style:c?Tf:void 0,"data-automation-id":"visibleContent"},c?n(i):o&&n(o))))},t.prototype.componentDidMount=function(){this._afterComponentRendered(this.props.direction),this._events.on(window,"resize",this._async.debounce(this._onResize,16,{leading:!0}))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.setState({dataToMeasure:a({},e.data),resizeDirection:"grow",measureContainer:!0})},t.prototype.componentDidUpdate=function(e){this.state.renderedData&&(this._hasRenderedContent=!0,this.props.dataDidRender&&this.props.dataDidRender(this.state.renderedData)),this._afterComponentRendered(this.props.direction)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.remeasure=function(){this._root.current&&this.setState({measureContainer:!0})},t.prototype._afterComponentRendered=function(e){var t=this;this._async.requestAnimationFrame((function(){var n=void 0;if(t.state.measureContainer&&t._root.current){var r=t._root.current.getBoundingClientRect();n=e&&e===Sf.vertical?r.height:r.width}var i=t._nextResizeGroupStateProvider.getNextState(t.props,t.state,(function(){var n=t._hasRenderedContent?t._updateHiddenDiv:t._initialHiddenDiv;return n.current?e&&e===Sf.vertical?n.current.scrollHeight:n.current.scrollWidth:0}),n);i&&t.setState(i)}),this._root.current)},t.prototype._onResize=function(){this._root.current&&this.setState({measureContainer:!0})},t}(u.Component);var Ff;!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(Ff||(Ff={}));var Nf,Hf=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=t?Ff.PERSISTED_KEYTIP_ADDED:Ff.KEYTIP_ADDED;pf.raise(this,i,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),i=this.keytips[t];i&&(r.keytip.visible=i.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||pf.raise(this,Ff.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?Ff.PERSISTED_KEYTIP_REMOVED:Ff.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||pf.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){pf.raise(this,Ff.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){pf.raise(this,Ff.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=l(e.keySequences);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return a(a({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){pf.raise(this,Ff.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=Fe()),{keytip:a({},e),uniqueID:t}},e._instance=new e,e}(),If=De(),Of=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=u.createRef(),n._persistedKeytips={},n._keytipManager=Hf.getInstance(),n._divContainer=u.createRef(),n._onRenderItems=function(e){return e.map((function(e,t){return u.createElement("div",{key:e.key,className:n._classNames.item},n.props.onRenderItem(e))}))},n._onRenderOverflowButtonWrapper=function(e){var t={className:n._classNames.overflowButton},r=n.props.keytipSequences,i=[];return r?e.forEach((function(e){var t=e.keytipProps;if(t){var o={content:t.content,keySequences:t.keySequences,disabled:t.disabled||!(!e.disabled&&!e.isDisabled),hasDynamicChildren:t.hasDynamicChildren,hasMenu:t.hasMenu};t.hasDynamicChildren||n._getSubMenuForItem(e)?o.onExecute=n._keytipManager.menuExecute.bind(n._keytipManager,r,e.keytipProps.keySequences):o.onExecute=t.onExecute,n._persistedKeytips[o.content]=o;var s=a(a({},e),{keytipProps:a(a({},t),{overflowSetSequence:r})});i.push(s)}else i.push(e)})):i=e,u.createElement("div",a({},t),n.props.onRenderOverflowButton(i))},pp(n),n}return o(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.items,i=n.overflowItems,o=n.className,s=n.focusZoneProps,l=n.styles,c=n.vertical,d=n.doNotContainWithinFocusZone,h=n.role,p=n.overflowSide,f=void 0===p?"end":p;this._classNames=If(l,{className:o,vertical:c}),d?(e="div",t=a(a({},Et(this.props,St)),{ref:this._divContainer})):(e=Lp,t=a(a(a({},Et(this.props,St)),s),{componentRef:this._focusZone,direction:c?_p.vertical:_p.horizontal}));var g=i&&i.length>0;return u.createElement(e,a({role:h||"group","aria-orientation":"menubar"===h?!0===c?"vertical":"horizontal":void 0},t,{className:this._classNames.root}),"start"===f&&g&&this._onRenderOverflowButtonWrapper(i),r&&this._onRenderItems(r),"end"===f&&g&&this._onRenderOverflowButtonWrapper(i))},t.prototype.focus=function(e){var t=!1;return this.props.doNotContainWithinFocusZone?this._divContainer.current&&(t=tt(this._divContainer.current)):this._focusZone.current&&(t=this._focusZone.current.focus(e)),t},t.prototype.focusElement=function(e){var t=!1;return!!e&&(this.props.doNotContainWithinFocusZone?this._divContainer.current&&et(this._divContainer.current,e)&&(e.focus(),t=document.activeElement===e):this._focusZone.current&&(t=this._focusZone.current.focusElement(e)),t)},t.prototype.componentDidMount=function(){this._registerPersistedKeytips()},t.prototype.componentWillUnmount=function(){this._unregisterPersistedKeytips()},t.prototype.UNSAFE_componentWillUpdate=function(){this._unregisterPersistedKeytips()},t.prototype.componentDidUpdate=function(){this._registerPersistedKeytips()},t.prototype._registerPersistedKeytips=function(){var e=this;Object.keys(this._persistedKeytips).forEach((function(t){var n=e._persistedKeytips[t],r=e._keytipManager.register(n,!0);e._persistedKeytips[r]=n,delete e._persistedKeytips[t]}))},t.prototype._unregisterPersistedKeytips=function(){var e=this;Object.keys(this._persistedKeytips).forEach((function(t){e._keytipManager.unregister(e._persistedKeytips[t],t,!0)})),this._persistedKeytips={}},t.prototype._getSubMenuForItem=function(e){return this.props.itemSubMenuProvider?this.props.itemSubMenuProvider(e):e.subMenuProps?e.subMenuProps.items:void 0},t}(u.Component),Bf={flexShrink:0,display:"inherit"},Vf=A(Of,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",Bf],overflowButton:["ms-OverflowSet-overflowButton",Bf]}}),void 0,{scope:"OverflowSet"}),Rf=((Nf={})[""+tp[tp.circle]]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Nf[""+tp[tp.square]]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Nf[""+tp[tp.triangle]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nf[""+tp[tp.pyramid]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nf[""+tp[tp.diamond]]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Nf[""+tp[tp.hexagon]]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Nf[""+tp[tp.pentagon]]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Nf[""+tp[tp.octagon]]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Nf[""+np[np.dottedLine]]="M0 6 H3 M5 6 H8 M10 6 H13",Nf),Wf=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,i=e.classNameForNonSvg;return-1===Object.keys(Rf).indexOf(r)?u.createElement("div",{className:i}):u.createElement("svg",a({width:14,height:14,viewBox:"-1 -1 14 14"},t,{transform:"rotate("+(r===tp[tp.diamond]?45:r===tp[tp.triangle]?180:0)+", 0, 0)"}),u.createElement("path",a({d:Rf[r]},n)))},Uf=De(),zf=A(function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderData=function(e){var t,r=n.props,i=r.overflowProps,o=r.allowFocusOnLegends,s=void 0===o||o,l={root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return u.createElement(Lp,a({},s&&{role:"listbox","aria-label":"Legends"}),u.createElement(Vf,a({items:e.primary,overflowItems:e.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems},i,{styles:a(a({},l),null===(t=i)||void 0===t?void 0:t.styles)})))},n._onReduceData=function(e){if(0!==e.primary.length){var t=l(e.primary.slice(-1),e.overflow);return{primary:e.primary.slice(0,-1),overflow:t}}},n._onGrowData=function(e){if(0!==e.overflow.length){var t=e.overflow.slice(1);return{primary:l(e.primary,e.overflow.slice(0,1)),overflow:t}}},n._canSelectMultipleLegends=function(e){var t,r,i,o=(t=n.state.selectedLegends,r=e.title,-1===(i=t.indexOf(r))?l(t,[r]):t.slice(0,i).concat(t.slice(i+1)));n.setState({selectedLegends:o.length===n.props.legends.length?[]:o,selectedState:0!==o.length&&o.length!==n.props.legends.length,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none",selectedLegend:"none",hoverState:!1})},n._canSelectOnlySingleLegend=function(e){!0===n.state.selectedState&&n.state.selectedLegend===e.title?n.setState({selectedLegend:"none",selectedState:!1,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none"}):n.setState({hoverState:!0,selectedState:!0,selectedLegend:e.title,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none"})},n._onClick=function(e){if(e.action){var t=n.props.canSelectMultipleLegends;void 0!==t&&t?n._canSelectMultipleLegends(e):n._canSelectOnlySingleLegend(e),e.action()}},n._onRenderCompactCard=function(e){var t=n.props,r=t.allowFocusOnLegends,i=void 0===r||r,o=t.className,s=t.styles,l=t.theme,c=[],d=Uf(s,{theme:l,className:o});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);c.push(r)})),u.createElement(Lp,a({},i&&{role:"listbox"},{direction:_p.vertical},n.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),c)},n._renderOverflowItems=function(e){var t=n.props.allowFocusOnLegends,r=void 0===t||t,i=[];e.forEach((function(e,t){i.push({key:t.toString(),name:e.title,onClick:e.action})}));var o={renderData:e},s=n.props,l=s.theme,c=s.className,d=s.styles,h=s.overflowText,p=Uf(d,{theme:l,className:c}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:o},g=h||"more";return u.createElement(wf,{type:hf.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){var t=n.props.canSelectMultipleLegends,r=void 0!==t&&t,i=Ie(e,(function(e){return e.title===n.state.selecetedLegendInHoverCard||e.title===n.state.selectedLegend}));n.setState({isHoverCardVisible:!1,selecetedLegendInHoverCard:"none",selectedLegends:[]},(function(){i&&n.setState({selectedLegend:"none",selectedState:!1},(function(){i.action&&!r&&i.action(),n.props.onLegendHoverCardLeave&&r&&n.props.onLegendHoverCardLeave(),n.setState({hoverState:!1},(function(){i.onMouseOutAction&&i.onMouseOutAction(!0)}))}))}))},setInitialFocus:!0,trapFocus:!0,onCardVisible:n._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:n._hoverCardRef},u.createElement("div",a({className:p.overflowIndicationTextStyle,ref:function(e){return n._hoverCardRef=e}},r&&{role:"button","aria-expanded":n.state.isHoverCardVisible,"aria-label":i.length+" "+g},{"data-is-focusable":r}),i.length," ",g))},n._hoverCardVisible=function(){n.setState({isHoverCardVisible:!0})},n._onHoverOverLegend=function(e){n.state.selectedState||e.hoverAction&&(n.setState({hoverState:!0,selectedLegend:e.title}),e.hoverAction())},n._onLeave=function(e){n.state.selectedState||e.onMouseOutAction&&(n.setState({hoverState:!1,selectedLegend:"none"}),e.onMouseOutAction())},n._renderButton=function(e,t,r){var i=n.props.allowFocusOnLegends,o=void 0===i||i,s={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},l=n._getColor(s.title,s.color),c=n.props,d=c.theme,h=c.className,p=c.styles,f=Uf(p,{theme:d,className:h,colorOnSelectedState:l,borderColor:s.color,overflow:r,stripePattern:s.stripePattern,isLineLegendInBarChart:s.isLineLegendInBarChart,opacity:s.opacity}),g=function(){n._onHoverOverLegend(s)},m=function(){n._onLeave(s)},v=n._getShape(f,s,l);return u.createElement("button",a({},o&&{"aria-selected":n.state.selectedLegend===s.title,role:"option","aria-label":s.title+" selected","aria-setsize":e["aria-setsize"],"aria-posinset":e["aria-posinset"]},e.nativeButtonProps&&a({},e.nativeButtonProps),{key:t,className:f.legend,onClick:function(){n._onClick(s)},onMouseOver:g,onMouseOut:m,onFocus:g,onBlur:m,"data-is-focusable":o}),v,u.createElement("div",{className:f.text},s.title))},n.state={selectedLegend:"none",selectedState:!1,hoverState:!1,isHoverCardVisible:!1,selecetedLegendInHoverCard:"none",selectedLegends:[]},n}return o(t,e),t.prototype.componentDidUpdate=function(e){e.selectedLegend!==this.props.selectedLegend&&this.setState({selectedLegend:this.props.selectedLegend})},t.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Uf(r,{theme:t,className:n});var i=this._generateData();return u.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):u.createElement(Pf,{data:i,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},t.prototype._generateData=function(){var e=this,t=this.props.allowFocusOnLegends,n=void 0===t||t;return{primary:this.props.legends.map((function(t,r){return a(a({},n&&{nativeButtonProps:Et(t,Ct,["title"]),"aria-setsize":e.props.legends.length,"aria-posinset":r+1}),{title:t.title,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,color:t.color,shape:t.shape,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity,key:r})})),overflow:[]}},t.prototype._getShape=function(e,t,n){var r={className:e.shape},i={fill:n,strokeWidth:2,stroke:t.color};return u.createElement(Wf,{svgProps:r,pathProps:i,shape:t.shape,classNameForNonSvg:e.rect})},t.prototype._getColor=function(e,t){var n=this.props,r=n.theme,i=n.canSelectMultipleLegends,o=void 0!==i&&i,a=r.palette;return this.state.hoverState&&this.state.selectedLegend===e?t:this.state.hoverState&&"none"!==this.state.selectedLegend&&this.state.selectedLegend!==e?a.white:o&&this.state.selectedState&&this.state.selectedLegends.indexOf(e)>-1||!this.state.selectedState&&"none"===this.state.selectedLegend||this.state.selectedLegend===e||this.state.selectedLegends.length<=0?t:a.white},t}(u.Component),(function(e){var t,n,r,i,o,s=e.className,l=e.theme,u=e.isLineLegendInBarChart,c=void 0!==u&&u,d=l,h=d.palette,p=d.fonts,f={inset:void 0,position:void 0,highContrastStyle:{outlineColor:l.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},s],legend:[dr(l,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(t={},t[sr]={content:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")",opacity:e.colorOnSelectedState===h.white?"0.6":""},t),width:"12px",height:c?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null===(r=l)||void 0===r?void 0:r.semanticColors.buttonBorder,backgroundImage:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, "+e.colorOnSelectedState+" 1px, "+e.colorOnSelectedState+" 4px)":""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===h.white?"0.6":e.opacity?e.opacity:"",selectors:(n={},n[sr]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",content:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")"},n)},text:a(a({},p.small),{lineHeight:"16px",color:null===(i=l)||void 0===i?void 0:i.semanticColors.bodyText,opacity:e.colorOnSelectedState===h.white?"0.6":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:h.black},overflowIndicationTextStyle:[dr(l,f),a(a({cursor:"pointer",color:null===(o=l)||void 0===o?void 0:o.semanticColors.bodyText},p.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[dr(l,f)]}}}})),Yf=De(),jf=A(function(e){function t(t){var n=e.call(this,t)||this;return n._closeCallout=function(){n.setState({showHover:!1})},n._focusCallback=function(e,t,r){n._currentHoverElement=r,n.setState({showHover:!0,value:e.data.toString(),legend:e.legend,activeLegend:e.legend,color:e.color,selectedLegend:e.legend,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,focusedArcId:t,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._hoverCallback=function(e,t){n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n._currentHoverElement=t,n.setState({showHover:!0,value:e.data.toString(),selectedLegend:e.legend,legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,activeLegend:e.legend,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onBlur=function(){n.setState({showHover:!1,focusedArcId:"",activeLegend:"",selectedLegend:"none"})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",isLegendSelected:!1,xCalloutValue:"",yCalloutValue:"",selectedLegend:"none",focusedArcId:""},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=Fe("callout"),n._uniqText=Fe("_Pie_"),n}return o(t,e),t.getDerivedStateFromProps=function(e,t){if(e.height&&e.height!==t._height&&e.width!==t._width){var n=e.height/5;return{_width:e.width,_height:e.height-n}}return null},t.prototype.componentDidMount=function(){var e=this._rootElem&&this._rootElem.offsetHeight/5;this.setState({_width:this._rootElem&&this._rootElem.offsetWidth,_height:this._rootElem&&this._rootElem.offsetHeight-e})},t.prototype.render=function(){var e,t,n=this,r=this.props,i=r.data,o=r.hideLegend,s=void 0!==o&&o,l=this.props.theme.palette;this._classNames=Yf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var c=this._createLegends(i,l),d=Math.min(this.state._width,this.state._height)/2,h=i&&(null===(e=i.chartData)||void 0===e?void 0:e.filter((function(e){return e.data>0}))),p=this._valueInsideDonut(this.props.valueInsideDonut,h);return u.createElement("div",{className:this._classNames.root,ref:function(e){return n._rootElem=e},onMouseLeave:this._handleChartMouseLeave},u.createElement(Lp,{direction:_p.horizontal,isCircularNavigation:!0},u.createElement("div",null,u.createElement("svg",{className:this._classNames.chart,"aria-label":null===(t=i)||void 0===t?void 0:t.chartTitle,ref:function(e){return n._setViewBox(e)}},u.createElement(uf,{width:this.state._width,height:this.state._height,outerRadius:d,innerRadius:this.props.innerRadius,data:h,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this.state.activeLegend,focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(p),theme:this.props.theme})))),u.createElement(Hi,a({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:Ye,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,op(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(cp,{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})),!s&&u.createElement("div",{className:this._classNames.legendContainer},c))},t.prototype._setViewBox=function(e){var t,n;if(null!==e){var r="0 0 "+(e.parentElement?e.parentElement.clientWidth:this.state._width)+" "+(e.parentElement&&(null===(t=e.parentElement)||void 0===t?void 0:t.offsetHeight)>this.state._height?null===(n=e.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height);e.setAttribute("viewBox",r)}},t.prototype._createLegends=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=e&&e.chartData.map((function(e,t){var i=e.color?e.color:r[Math.floor(4*Math.random()+1)];return{title:e.legend,color:i,action:function(){n.state.isLegendSelected?n.state.activeLegend!==e.legend||""===n.state.activeLegend?n.setState({activeLegend:e.legend,isLegendSelected:!0}):n.setState({activeLegend:e.legend}):n.setState({activeLegend:e.legend,isLegendSelected:!0})},hoverAction:function(){n.state.activeLegend!==e.legend||n.state.activeLegend,n.setState({activeLegend:e.legend})},onMouseOutAction:function(){n.setState({showHover:!1,activeLegend:""})}}}));return u.createElement(zf,a({legends:i,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText,selectedLegend:this.state.selectedLegend},this.props.legendProps))},t.prototype._hoverLeave=function(){this.setState({activeLegend:"",selectedLegend:"none",focusedArcId:""})},t.prototype._valueInsideDonut=function(e,t){var n=this;if(void 0===e||""===this.state.activeLegend||this.state.showHover)return e;var r=e;return t.map((function(e,t){e.legend===n.state.activeLegend&&(r=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),r},t.prototype._toLocaleString=function(e){var t,n=ap(e,this.props.culture);return n?null===(t=n)||void 0===t?void 0:t.toString():e},t.defaultProps={innerRadius:0},t}(u.Component),(function(e){var t=e.className,n=e.width,r=e.height;return{root:[e.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},t],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center"},legendContainer:{paddingTop:"16px",width:n+"px"}}})),qf=De(),Xf=function(e){function t(t){var n,r,i,o,s,l,c,d,h,p,f,g,m=e.call(this,t)||this;return m.minLegendContainerHeight=32,m._isRtl=Ae(),m._multiValueCallout=function(e){var t=m._yValueHoverSubCountsExists(e.YValueHover);return u.createElement("div",{className:m._classNames.calloutContentRoot},u.createElement("div",{className:m._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},u.createElement("div",a({className:m._classNames.calloutContentX},op(e.xAxisCalloutAccessibilityData,"text",!1)),ap(e.hoverXValue,m.props.culture))),u.createElement("div",{className:m._classNames.calloutInfoContainer,style:t?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,n,r){var i=n+1===r.length,o=e.shouldDrawBorderBottom,s=void 0!==o&&o;return u.createElement("div",a({},op(e.callOutAccessibilityData,"text",!1),{key:"callout-content-"+n,style:a(t?{display:"inline-block"}:{},s&&{borderBottom:"1px solid "+m.props.theme.semanticColors.menuDivider,paddingBottom:"10px"})}),m._getCalloutContent(e,n,t,i))})),!!e.descriptionMessage&&u.createElement("div",{className:m._classNames.descriptionMessage},e.descriptionMessage)))},m._getData=function(e,t){m.props.getGraphData&&m.props.getGraphData(e,t,m.state.containerHeight-m.state._removalValueForTextTuncate,m.state.containerWidth,m.xAxisElement)},m.state={containerHeight:0,containerWidth:0,_width:m.props.width||600,_height:m.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0},m.idForGraph=Fe("chart_"),m.margins={top:(r=null===(n=m.props.margins)||void 0===n?void 0:n.top,null!=r?r:20),bottom:(o=null===(i=m.props.margins)||void 0===i?void 0:i.bottom,null!=o?o:35),right:m._isRtl?(l=null===(s=m.props.margins)||void 0===s?void 0:s.left,null!=l?l:40):(d=null===(c=m.props.margins)||void 0===c?void 0:c.right,null!=d?d:20),left:m._isRtl?(p=null===(h=m.props.margins)||void 0===h?void 0:h.right,null!=p?p:20):(g=null===(f=m.props.margins)||void 0===f?void 0:f.left,null!=g?g:40)},m}return o(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer()},t.prototype.render=function(){var e=this,t=this.props,n=t.calloutProps,r=t.points,i=t.chartType,o=t.chartHoverProps,s=t.svgFocusZoneProps,l=t.svgProps,c=t.culture;this.props.parentRef&&this._fitParentContainer(),this.props.getmargins&&this.props.getmargins(this.margins);var d,h,p={domainNRangeValues:Jh(r,this.margins,this.state.containerWidth,i,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues),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},f={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:ep(r,i),yAxisPadding:this.props.yAxisPadding};switch(this.props.xAxisType){case jh.NumericAxis:d=Xh(p,c);break;case jh.DateAxis:d=Kh(p,this.props.tickParams);break;case jh.StringAxis:d=function(e,t,n,r){var i=e.domainNRangeValues,o=e.xAxisCount,a=void 0===o?6:o,s=e.xAxistickSize,l=void 0===s?6:s,u=e.tickPadding,c=void 0===u?10:u,d=e.xAxisPadding,h=void 0===d?.1:d,p=gu().domain(n).range([i.rStartValue,i.rEndValue]).padding(h),f=ji(p).tickSize(l).tickPadding(c).ticks(a).tickFormat((function(e,t){return ap(n[t],r)}));return e.xAxisElement&&wc(e.xAxisElement).call(f).selectAll("text").attr("aria-hidden","true"),p}(p,this.props.tickParams,this.props.datasetForXAxisDomain,c);break;default:d=Xh(p,c)}if(this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var g={node:this.xAxisElement,xAxis:d,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},m=d&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,i=e.showXAxisLablesTooltip;if(null!==t){var o=wc(t).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var e=wc(this),t=e.text(),n=e.text().slice(0,r)+"...",l=e.text().length,u=e.text().split(/\s+/).reverse();s.push(u.length);var c="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(i&&l>r)g=e.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(i&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);else{for(;c=u.pop();)d.push(c),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[c],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(c));var m=Math.max.apply(Math,s),v=12;o.selectAll("text").each((function(){var e=document.getElementById("WordBreakId"),t=e&&e.getBoundingClientRect(),n=t&&t.height;n>v&&(v=n)}));var _=4;m<=2?_=1:m>2&&m<=6?_=2:m>6&&m<=9&&(_=3),a=(m-_)*v}})),a>0?a:0}}(g);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==m&&this.setState({_removalValueForTextTuncate:m,isRemoveValCalculated:!1})}var v={yAxisDomainValues:[]};h=this.props.yAxisType&&this.props.yAxisType===qh.StringAxis?function(e,t,n){var r=e.containerHeight,i=e.tickPadding,o=void 0===i?12:i,a=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,u=e.yAxisPadding,c=void 0===u?0:u,d=gu().domain(t).range([r-a.bottom,a.top]).padding(c),h=(n?Yi(d):qi(d)).tickPadding(o).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&wc(l).call(h).selectAll("text"),d}(f,this.props.stringDatasetForYAxisDomain,this._isRtl):Zh(f,this._isRtl,v),this.props.getAxisData&&this.props.getAxisData(v),this._getData(d,h),this._classNames=qf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var _,y={width:this.state.containerWidth,height:this.state.containerHeight},x=this.props.children(a(a({},this.state),{xScale:d,yScale:h}));return _=this.props.focusZoneDirection===_p.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:_p.horizontal,u.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this.props.onChartMouseLeave},u.createElement(Lp,a({direction:_},s),u.createElement("svg",a({width:y.width,height:y.height,"aria-label":this.props.chartTitle,style:{display:"block"}},l),u.createElement("g",{ref:function(t){e.xAxisElement=t},id:"xAxisGElement"+this.idForGraph,transform:"translate(0, "+(y.height-this.margins.bottom-this.state._removalValueForTextTuncate)+")",className:this._classNames.xAxis}),u.createElement("g",{ref:function(t){e.yAxisElement=t},id:"yAxisGElement"+this.idForGraph,transform:"translate("+(this._isRtl?y.width-this.margins.right:this.margins.left)+", 0)",className:this._classNames.yAxis}),x)),!this.props.hideLegend&&u.createElement("div",{ref:function(t){return e.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),!this.props.hideTooltip&&n.isCalloutVisible&&u.createElement(Hi,a({},n),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(n),!this.props.customizedCallout&&!this.props.isCalloutForStack&&u.createElement(cp,a({XValue:n.XValue,Legend:n.legend,YValue:n.YValue,color:n.color,culture:this.props.culture},o))))},t.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},t.prototype._getCalloutContent=function(e,t,n,r){var i=r?{}:{marginRight:"16px"},o=void 0!==e.index&&-1!==e.index,a=qf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:e.color,toDrawShape:o}),s=this.props.culture,l=ap(e.y,s);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var c=e.yAxisCalloutData;return u.createElement("div",{style:i},u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",l,")"),Object.keys(c).map((function(e){return u.createElement("div",{key:e,className:a.calloutBlockContainer},u.createElement("div",{className:a.calloutlegendText}," ",ap(e,s)),u.createElement("div",{className:a.calloutContentY},ap(c[e],s)))})))}return u.createElement("div",{style:n?i:{}},n&&u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",l,")"),u.createElement("div",{id:t+"_"+e.y,className:a.calloutBlockContainer},o&&u.createElement(Wf,{svgProps:{className:a.shapeStyles},pathProps:{fill:e.color},shape:tp[e.index%Object.keys(ip).length]}),u.createElement("div",null,u.createElement("div",{className:a.calloutlegendText}," ",e.legend),u.createElement("div",{className:a.calloutContentY},ap(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,s)))))},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t;if(e.props.hideLegend)t=0;else{var i=getComputedStyle(e.legendContainer);t=(e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(i.marginTop||"0")+parseFloat(i.marginBottom||"0")}var o=e.props.parentRef?e.props.parentRef:e.chartContainer,a=o.getBoundingClientRect().width,s=o.getBoundingClientRect().height>t?o.getBoundingClientRect().height:350;(n!==a||r!==s-t)&&e.setState({containerWidth:a,containerHeight:s-t})}))},t}(u.Component),Kf=function(){var e,t,n=p();return!!(null===(t=null===(e=n)||void 0===e?void 0:e.navigator)||void 0===t?void 0:t.userAgent)&&n.navigator.userAgent.indexOf("rv:11.0")>-1}(),Zf=A(Xf,(function(e){var t,n,r,i,o,s,l,u,c=e.className,d=e.theme,h=e.isRtl,p=e.shouldHighlight,f=e.href,g=e.lineColor,m=void 0===g?"transparent":g,v=e.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(t={},t[lr]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[lr]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[lr]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(i={},i[lr]={opacity:.1,stroke:"rgb(179, 179, 179)"},i)},g:[h&&!Kf&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[a(a({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(o={},o[sr]={forcedColorAdjust:"none"},o),borderLeft:"4px solid "+m,paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:a(a({},_.small),{lineHeight:"16px",selectors:(s={},s[lr]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[a(a({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[lr]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(u={},u[lr]={color:"rgb(255, 255, 255)"},u),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+d.semanticColors.menuDivider}]}}));var Gf=xr((function(e){return xr((function(t){var n=xr((function(e){return function(n){return t(n,e)}}));return function(r,i){return e(r,i?n(i):t)}}))}));function $f(e,t){return Gf(e)(t)}var Qf=function(e){if(void 0===e)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},Jf=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},eg=0,tg=1,ng=2,rg=3,ig={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},og=function(e){return e.getBoundingClientRect()},ag=og,sg=og,lg=function(e){function t(t){var n=e.call(this,t)||this;return n._root=u.createRef(),n._surface=u.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items===n.props.items&&e.renderCount===n.props.renderCount&&e.startIndex===n.props.startIndex&&e.version===n.props.version&&t.hasMounted?t:"undefined"!=typeof window&&window.document&&window.document.createElement?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return u.createElement("div",a({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return u.createElement("div",a({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r,i,o=n.props,l=o.onRenderCell,c=o.onRenderCellConditional,d=o.role,h=e.page,p=h.items,f=void 0===p?[]:p,g=h.startIndex,m=s(e,["page"]),v=void 0===d?"listitem":"presentation",_=[],y=0;y<f.length;y++){var x=g+y,b=f[y],C=n.props.getKey?n.props.getKey(b,x):b&&b.key;null==C&&(C=x);var S=null!=(i=null===(r=null!=c?c:l)||void 0===r?void 0:r(b,x,n.props.ignoreScrollingState?void 0:n.state.isScrolling))?i:null;c&&!S||_.push(u.createElement("div",{role:v,className:"ms-List-cell",key:C,"data-list-index":x,"data-automationid":"ListCell"},S))}return u.createElement("div",a({},m),_)},pp(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new dt(n),n._events=new pf(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return o(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!0,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=eg);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var u=this._getPageSpecification(this.props,l,o),c=u.height;if(s=u.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=sg(this._scrollElement),h=Qf(this._scrollElement),p={top:h,bottom:h+d.height},f=e-l,g=0;g<f;++g)a+=t(l+g);var m=a+t(e);switch(n){case tg:return void Jf(this._scrollElement,a);case ng:return void Jf(this._scrollElement,m-d.height);case rg:return void Jf(this._scrollElement,(a+m-d.height)/2)}if(a>=p.top&&m<=p.bottom)return;a<p.top||m>p.bottom&&(a=m-d.height)}return void(this._scrollElement&&Jf(this._scrollElement,a))}a+=c}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var i=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/i)}for(var o=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){i=e(a);if(r.top+o<=this._scrollTop&&this._scrollTop<r.top+o+i)return a;o+=i}}}return 0},t.prototype.componentDidMount=function(){(this.setState({hasMounted:!0}),this._scrollElement=Tt(this._root.current),this._scrollTop=0,this.props.getPageHeight)||this._updatePageMeasurements(this.state.pages)&&(this._materializedRect=null,this.setState(this._updatePages(this.props,this.state)));this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),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._onAsyncScroll))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;if(this.state.pagesVersion!==t.pagesVersion){if(n.getPageHeight)this._onAsyncIdle();else this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._onAsyncScroll()):this._onAsyncIdle();n.onPagesUpdated&&n.onPagesUpdated(r.pages)}},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,i=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var o=0;o<n.length;o++){var a=n[o],s=r[o];if(a.key!==s.key||a.itemCount!==s.itemCount){i=!0;break}}else i=!0;return i},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,i=e.onRenderSurface,o=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,u=[],c=Et(this.props,St),d=0,h=l;d<h.length;d++){var p=h[d];u.push(this._renderPage(p))}var f=i?$f(i,this._onRenderSurface):this._onRenderSurface;return(o?$f(o,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:u,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:a(a({},c),{className:At("ms-List",t),role:u.length>0?r:void 0,"aria-label":u.length>0?c["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var i=this._getPageStyle(e),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:i,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return a(a({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=Qe(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,i=this._requiredWindowsBehind,o=Math.min(t,r+1),a=Math.min(n,i+1);o===r&&a===i||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>o||n>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),a(a(a({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,i=n.onPageRemoved;if(r||i){for(var o={},a=0,s=e;a<s.length;a++){(c=s[a]).items&&(o[c.startIndex]=c)}for(var l=0,u=t;l<u.length;l++){var c;(c=u[l]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var d in o)o.hasOwnProperty(d)&&this._onPageRemoved(o[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var i={width:n.clientWidth,height:n.clientHeight};(i.height||i.width)&&(t=e.height!==i.height,e.height=i.height,this._cachedPageHeights[e.startIndex]={height:i.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+i.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,i=e.startIndex,o=e.getPageHeight;n=this._getRenderCount(e);for(var s=a({},ig),l=[],u=1,c=0,d=null,h=this._focusedIndex,p=i+n,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!o,m=this._allowedRect,v=function(n){var o=_._getPageSpecification(e,n,m),a=o.height,v=o.data,y=o.key;u=o.itemCount;var x,b,C=c+a-1,S=He(t.pages,(function(e){return!!e.items&&e.startIndex===n}))>-1,E=!m||C>=m.top&&c<=m.bottom,A=!_._requiredRect||C>=_._requiredRect.top&&c<=_._requiredRect.bottom;if(!g&&(A||E&&S)||!f||h>=n&&h<n+u||n===i){d&&(l.push(d),d=null);var L=Math.min(u,p-n),w=_._createPage(y,r.slice(n,n+L),n,void 0,void 0,v);w.top=c,w.height=a,_._visibleRect&&_._visibleRect.bottom&&(w.isVisible=C>=_._visibleRect.top&&c<=_._visibleRect.bottom),l.push(w),A&&_._allowedRect&&(x=s,b={top:c,bottom:C,height:a,left:m.left,right:m.right,width:m.width},x.top=b.top<x.top||-1===x.top?b.top:x.top,x.left=b.left<x.left||-1===x.left?b.left:x.left,x.bottom=b.bottom>x.bottom||-1===x.bottom?b.bottom:x.bottom,x.right=b.right>x.right||-1===x.right?b.right:x.right,x.width=x.right-x.left+1,x.height=x.bottom-x.top+1)}else d||(d=_._createPage("spacer-"+n,void 0,n,0,void 0,v,!0)),d.height=(d.height||0)+(C-c)+1,d.itemCount+=u;if(c+=C-c+1,g&&f)return"break"},_=this,y=i;y<p;y+=u){if("break"===v(y))break}return d&&(d.key="spacer-end",l.push(d)),this._materializedRect=s,a(a({},t),{pages:l,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var i=r(t,n),o=i.itemCount,a=void 0===o?this._getItemCountForPage(t,n):o,s=i.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,n,a):s,data:i.data,key:i.key}}return{itemCount:a=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,a)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){var n=this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10;return n||10},t.prototype._createPage=function(e,t,n,r,i,o,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===i&&(i={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:i,top:0,height:0,data:o,isSpacer:a||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,i=t.renderCount;return void 0===i?n?n.length-r:0:i},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,i=e.renderedWindowsBehind,o=t.pages;if(this._shouldVirtualize(e)){var s=this._surfaceRect||a({},ig),l=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),u=Qf(this._scrollElement);this._surface.current&&(n||!o||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=ag(this._surface.current),this._scrollTop=u),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var c=Math.max(0,-s.top),d=p(this._root.current),h={top:c,left:s.left,bottom:c+d.innerHeight,right:s.right,width:s.width,height:d.innerHeight};this._requiredRect=ug(h,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=ug(h,i,r),this._visibleRect=h}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return u.createElement(u.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},t}(u.Component);function ug(e,t,n){var r=e.top-t*e.height,i=e.height+(t+n)*e.height;return{top:r,bottom:r+i,height:i,left:e.left,right:e.right,width:e.width}}var cg=function(e){var t=u.useRef(null);u.useEffect((function(){if(t.current){var n=wc(t.current),r=e.text.split(/\s+/),i=[],o=n.append("tspan"),a=0;return r.forEach((function(t){i.push(t),o.text(i.join(" "));var r=o.node();r&&r.getComputedTextLength()>e.width&&i.length>1&&(a++,i.pop(),o.text(i.join(" ")),i=[t],o=n.append("tspan").text(t).attr("dy",e.lineHeight).attr("x",e.x))})),n.attr("dy",-a*e.lineHeight),function(){n.selectAll("tspan").remove()}}}));e.lineHeight;var n=s(e,["lineHeight"]);return u.createElement("text",a({ref:t},n))},dg=function(e){var t,n=u.useRef(null),r=u.useState(!1),i=r[0],o=r[1],a=null;if(i){var s=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));s.length>0&&(a=u.createElement(Hi,{target:n.current,onDismiss:function(){return o(!1)},setInitialFocus:!0,role:"dialog"},u.createElement(Lp,{isCircularNavigation:!0,direction:_p.vertical},u.createElement(lg,{items:s,onRenderCell:function(e){return u.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var l=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.textColor;return t=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),u.createElement(u.Fragment,null,u.createElement("g",{ref:n,onClick:function(){return o(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},u.createElement(cg,{text:t,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:l})),a)},hg=function(e){var t=e.labelWidth?e.labelWidth:105,n=e.chartYTop-20,r=n+7,i=e.scale.range(),o=e.events.map((function(t){return a(a({},t),{x:e.scale(t.date)})}));o.sort((function(e,t){return+e.date-+t.date}));var s=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.strokeColor,l=function(e,t){for(var n=[],r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=t(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(o,(function(e){return e.date.toString()})).map((function(t,n){return u.createElement("line",{key:n,x1:t.x,x2:t.x,y1:r,y2:e.chartYBottom,stroke:s,strokeDasharray:"8"})})),c=function(e,t,n,r){var i=function(r,i){if(i===e.length)return[];var a=e[i].x,s=a-t;return a<r?[]:i===e.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[i]}]:a+t<n?[{x:a,anchor:"start",aggregatedIdx:[i]}]:[]:o(i,r<s?"end":"start")},o=function(r,o){var a="end"===o?e[r].x:e[r].x+t,s=He(e,(function(e){return e.x>a&&(e.x-t>=a||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],u=r;u<s;u++)l.push(u);var c=i(a,s);return c.unshift({x:e[r].x,anchor:o,aggregatedIdx:l}),c};return i(r,0)}(o,t+5,i[1],i[0]).map((function(r,i){return u.createElement(dg,a({key:i},{lineDefs:o,labelDef:r,textY:n,textWidth:t,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return u.createElement(u.Fragment,null,l,c)};var pg,fg=De();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(pg||(pg={}));var gg=A(function(e){function t(t){var n=e.call(this,t)||this;return n._xAxisScale="",n._yAxisScale="",n.eventLabelHeight=36,n._injectIndexPropertyInLineChartData=function(e){var t=n.props.allowMultipleShapesForPoints,r=void 0!==t&&t;return e?e.map((function(e,t){return a(a({},e),{index:r?t:-1})})):[]},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getMargins=function(e){n.margins=e},n._initializeLineChartData=function(e,t,r,i,o){n._xAxisScale=e,n._yAxisScale=t,n._renderedColorFillBars=n.props.colorFillBars?n._createColorFillBars(r):[],n.lines=n._createLines(o,r)},n._handleSingleLegendSelectionAction=function(e){n.state.selectedLegend===e.legend?(n.setState({selectedLegend:"",activeLegend:e.legend}),n._handleLegendClick(e,null)):(n.setState({selectedLegend:e.legend,activeLegend:e.legend}),n._handleLegendClick(e,e.legend))},n._onHoverCardHide=function(){n.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getBoxWidthOfShape=function(e,t,r){var i=n.props,o=i.allowMultipleShapesForPoints,a=void 0!==o&&o,s=i.strokeWidth,l=void 0===s?4:s,u=n.state.activePoint;return a?u===e?pg.hoverSize:1===t||r?2.5*l:pg.invisibleSize:u===e?pg.hoverSize:pg.invisibleSize},n._getPath=function(e,t,r,i,o,a){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,u=n._getBoxWidthOfShape(r,i,o),c=l?a%Object.keys(ip).length:0,d=ip[c].widthRatio;return function(e,t,n,r){return["M"+(e-n/2)+" "+t+"\n A"+n/2+" "+n/2+" 0 1 0 "+(e+n/2)+" "+t+"\n M"+(e-n/2)+" "+t+"\n A "+n/2+" "+n/2+" 0 1 1 "+(e+n/2)+" "+t+"\n ","M"+(e-n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t+n/2)+"\n L"+(e-n/2)+" "+(t+n/2)+"\n Z","M"+(e-n/2)+" "+(t-.2886*n)+"\n H "+(e+n/2)+"\n L"+e+" "+(t+.5774*n)+" Z","M"+e+" "+(t-n/2)+"\n L"+(e+n/2)+" "+t+"\n L"+e+" "+(t+n/2)+"\n L"+(e-n/2)+" "+t+"\n Z","M"+e+" "+(t-.5774*n)+"\n L"+(e+n/2)+" "+(t+.2886*n)+"\n L"+(e-n/2)+" "+(t+.2886*n)+" Z","M"+(e-.5*n)+" "+(t-.866*n)+"\n L"+(e+.5*n)+" "+(t-.866*n)+"\n L"+(e+n)+" "+t+"\n L"+(e+.5*n)+" "+(t+.866*n)+"\n L"+(e-.5*n)+" "+(t+.866*n)+"\n L"+(e-n)+" "+t+"\n Z","M"+e+" "+(t-.851*n)+"\n L"+(e+.6884*n)+" "+(t-.2633*n)+"\n L"+(e+.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.6884*n)+" "+(t-.2633*n)+"\n Z","M"+(e-.5001*n)+" "+(t-1.207*n)+"\n L"+(e+.5001*n)+" "+(t-1.207*n)+"\n L"+(e+1.207*n)+" "+(t-.5001*n)+"\n L"+(e+1.207*n)+" "+(t+.5001*n)+"\n L"+(e+.5001*n)+" "+(t+1.207*n)+"\n L"+(e-.5001*n)+" "+(t+1.207*n)+"\n L"+(e-1.207*n)+" "+(t+.5001*n)+"\n L"+(e-1.207*n)+" "+(t-.5001*n)+"\n Z"][r]}(e,t,u=d>1?u/d:u,c)},n._getPointFill=function(e,t,r,i){var o=n.state.activePoint,a=n.props,s=a.theme;a.allowMultipleShapesForPoints;return o===t?s.palette.white:e},n._createColorFillBars=function(e){var t=[];n.state.isSelectedLegend?n._colorFillBars=n.state.selectedColorBarLegend:n._colorFillBars=n.props.colorFillBars;for(var r=ep(n._points,Yh.LineChart),i=0;i<n._colorFillBars.length;i++){var o=n._colorFillBars[i],a=Fe(o.legend.replace(/\W/g,""));o.applyPattern&&t.push(n._getStripePattern(o.color,i));for(var s=0;s<o.data.length;s++){var l=o.data[s].startX,c=o.data[s].endX,d=n.state.activeLegend===o.legend||""===n.state.activeLegend||n.state.isSelectedLegend?n._colorFillBarsOpacity:.1;t.push(u.createElement("rect",{fill:o.applyPattern?"url(#"+n._colorFillBarPatternId+i+")":o.color,fillOpacity:d,x:n._xAxisScale(l),y:n._yAxisScale(r.endValue)-3,width:Math.abs(n._xAxisScale(c)-n._xAxisScale(l)),height:n._yAxisScale(n.props.yMinValue||0)-n._yAxisScale(r.endValue)+3,key:""+a+s}))}}return t},n._getStripePattern=function(e,t){return u.createElement("pattern",{id:""+n._colorFillBarPatternId+t,width:16,height:16,key:""+n._colorFillBarPatternId+t,patternUnits:"userSpaceOnUse"},u.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},n._checkInGap=function(e,t,n){for(var r=n,i=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(i=!0),{isInGap:i,gapIndex:r}},n._handleFocus=function(e,t,r,i,o){n._uniqueCallOutID=i;var a=t instanceof Date?t.toLocaleDateString():t,s=t instanceof Date?t.getTime():t,l=Ie(n._calloutPoints,(function(e){return e.x===s}));if(l){var u=n;wc("#"+i).attr("aria-labelledby","toolTip"+n._uniqueCallOutID),wc("#"+n._verticalLine).attr("transform",(function(){return"translate("+u._xAxisScale(t)+", 0)"})).attr("visibility","visibility"),n._refArray.forEach((function(t){t.index===e&&n.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:r||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:i,xAxisCalloutAccessibilityData:o})}))}else n.setState({activePoint:i})},n._handleHover=function(e,t,r,i,o,a,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,u=e instanceof Date?e.getTime():e,c=n,d=Ie(n._calloutPoints,(function(e){return e.x===u}));d?(wc("#"+n._verticalLine).attr("transform",(function(){return"translate("+c._xAxisScale(e)+", "+c._yAxisScale(t)+")"})).attr("visibility","visibility").attr("y2",""+(r-c._yAxisScale(t))),n._uniqueCallOutID!==o&&(n._uniqueCallOutID=o,n.setState({isCalloutVisible:!0,refSelected:"#"+o,hoverXValue:i||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:o,xAxisCalloutAccessibilityData:a}))):n.setState({activePoint:o})},n._onLineClick=function(e){e&&e()},n._onDataPointClick=function(e){e&&e()},n._handleMouseOut=function(){wc("#"+n._verticalLine).attr("visibility","hidden")},n._handleChartMouseLeave=function(){n._uniqueCallOutID=null,n.setState({isCalloutVisible:!1,activePoint:""})},n._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},n._handleMultipleLineLegendSelectionAction=function(e){var t,r=n.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);t=-1===r?l(n.state.selectedLegendPoints,[e]):n.state.selectedLegendPoints.slice(0,r).concat(n.state.selectedLegendPoints.slice(r+1)),n.props.data&&t.length===n.props.data.lineChartData.length&&(n.props.colorFillBars&&n.props.colorFillBars.length===n.state.selectedColorBarLegend.length||!n.props.colorFillBars)?n._clearMultipleLegendSelections():t.length||n.state.selectedColorBarLegend.length?n.setState({selectedLegendPoints:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._handleMultipleColorFillBarLegendSelectionAction=function(e){var t,r=n.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(t=-1===r?l(n.state.selectedColorBarLegend,[e]):n.state.selectedColorBarLegend.slice(0,r).concat(n.state.selectedColorBarLegend.slice(r+1))).length===(n.props.colorFillBars&&n.props.colorFillBars.length)&&(n.props.data&&n.props.data.lineChartData.length===n.state.selectedLegendPoints.length||!n.props.data)?n._clearMultipleLegendSelections():t.length||n.state.selectedLegendPoints.length?n.setState({selectedColorBarLegend:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._clearMultipleLegendSelections=function(){n.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},n.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:""},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._colorFillBarsOpacity=.5,n._calloutPoints=Gh(n._points)||[],n._circleId=Fe("circle"),n._lineId=Fe("lineID"),n._borderId=Fe("borderID"),n._verticalLine=Fe("verticalLine"),n._colorFillBarPatternId=Fe("colorFillBarPattern"),n._tooltipId=Fe("LineChartTooltipId_"),t.eventAnnotationProps&&t.eventAnnotationProps.labelHeight&&(n.eventLabelHeight=t.eventAnnotationProps.labelHeight),n}return o(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=Gh(this._points)||[])},t.prototype.render=function(){var e=this,t=this.props,n=t.tickValues,r=t.tickFormat,i=t.eventAnnotationProps,o=t.legendProps,s=t.data;this._points=this._injectIndexPropertyInLineChartData(s.lineChartData);var l=Qh(this._points),c=this._points;o&&o.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=Gh(c));var d=this._createLegends(this._points),h=a({isCalloutVisible:this.state.isCalloutVisible,directionalHint:We,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+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),p={tickValues:n,tickFormat:r};return u.createElement(Zf,a({},this.props,{chartTitle:s.chartTitle,points:c,chartType:Yh.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:l?jh.DateAxis:jh.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,u.createElement(u.Fragment,null,u.createElement("g",null,u.createElement("line",{x1:0,y1:0,x2:0,y2:t.containerHeight,stroke:"#C8C8C8",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),u.createElement("g",null,e._renderedColorFillBars,e.lines),i&&u.createElement(hg,a({},i,{scale:t.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:t.containerHeight-35}))))}}))},t.prototype._createLegends=function(e){var t=this,n=this.props,r=n.legendProps,i=n.allowMultipleShapesForPoints,o=void 0!==i&&i,s=!(!r||!r.canSelectMultipleLegends),c=e.map((function(e){var n=e.color;return a(a({title:e.legend,color:n,action:function(){s?t._handleMultipleLineLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t.setState({activeLegend:e.legend})}},e.legendShape&&{shape:e.legendShape}),o&&{shape:tp[e.index%Object.keys(ip).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(e,n){var r=e.legend;return{title:r,color:e.color,action:function(){s?t._handleMultipleColorFillBarLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t.setState({activeLegend:r})},opacity:t._colorFillBarsOpacity,stripePattern:e.applyPattern}})):[];return u.createElement(zf,a({legends:l(c,d),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},s&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},t.prototype._createLines=function(e,t){var n,r,i,o,a,s,c,d,h,p,f,g,m,v,_=this,y=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var x=this._points.length-1;x>=0;x--){var b=[],C=[],S=[],E=this._points[x].legend,A=this._points[x].color,L=this.state.activePoint,w=this.props.theme,D=t-this.margins.bottom+6;if(1===this._points[x].data.length){var k=this._points[x].data[0],T=k.x,M=k.y,P=k.xAxisCalloutData,F=k.xAxisCalloutAccessibilityData,N=""+this._circleId+x;S.push(u.createElement("circle",{id:""+this._circleId+x,key:""+this._circleId+x,r:L===N?5.5:3.5,cx:this._xAxisScale(T),cy:this._yAxisScale(M),fill:L===N?w.palette.white:A,onMouseOver:this._handleHover.bind(this,T,M,D,P,N,F),onMouseMove:this._handleHover.bind(this,T,M,D,P,N,F),onMouseOut:this._handleMouseOut,strokeWidth:L===N?4:0,stroke:L===N?A:""}))}for(var H=0,I=null!=(r=null===(n=this._points[x].gaps)||void 0===n?void 0:n.sort((function(e,t){return e.startIndex-t.startIndex})))?r:[],O=function(e){var t=B._checkInGap(e,I,H),n=t.isInGap;H=t.gapIndex;var r=""+B._lineId+x+e,l=""+B._borderId+x+e,y=""+B._circleId+x+e,k=B._points[x].data[e-1],T=k.x,M=k.y,P=k.xAxisCalloutData,F=k.xAxisCalloutAccessibilityData,N=B._points[x].data[e],O=N.x,V=N.y,R=B._getPath(B._xAxisScale(T),B._yAxisScale(M),y,e,!1,B._points[x].index),W=(null===(q=B._points[x].lineOptions)||void 0===q?void 0:q.strokeWidth)||B.props.strokeWidth||4,U=B.state.activeLegend===E||""===B.state.activeLegend||B.state.isSelectedLegend,z=B._points[x].hideNonActiveDots&&L!==y;if(S.push(u.createElement("path",{id:y,key:y,d:R,"data-is-focusable":0===x,onMouseOver:B._handleHover.bind(B,T,M,D,P,y,F),onMouseMove:B._handleHover.bind(B,T,M,D,P,y,F),onMouseOut:B._handleMouseOut,onFocus:function(){return _._handleFocus(r,T,P,y,F)},onBlur:B._handleMouseOut,onClick:B._onDataPointClick.bind(B,B._points[x].data[e-1].onDataPointClick),opacity:U&&!z?1:.01,fill:B._getPointFill(A,y,e,!1),stroke:A,strokeWidth:W})),e+1===B._points[x].data.length){var Y=""+y+e+"L",j=B._points[x].hideNonActiveDots&&L!==Y;R=B._getPath(B._xAxisScale(O),B._yAxisScale(V),Y,e,!0,B._points[x].index);var q=B._points[x].data[e],X=q.xAxisCalloutData,K=q.xAxisCalloutAccessibilityData;S.push(u.createElement("path",{id:Y,key:Y,d:R,"data-is-focusable":0===x,onMouseOver:B._handleHover.bind(B,O,V,D,X,Y,K),onMouseMove:B._handleHover.bind(B,O,V,D,X,Y,K),onMouseOut:B._handleMouseOut,onFocus:function(){return _._handleFocus(r,O,X,Y,K)},onBlur:B._handleMouseOut,onClick:B._onDataPointClick.bind(B,B._points[x].data[e].onDataPointClick),opacity:U&&!j?1:.01,fill:B._getPointFill(A,Y,e,!0),stroke:A,strokeWidth:W}))}if(U){if(!n){var Z=(null===(i=B._points[x].lineOptions)||void 0===i?void 0:i.lineBorderWidth)?Number.parseFloat(B._points[x].lineOptions.lineBorderWidth.toString()):0;Z>0&&C.push(u.createElement("line",{id:l,key:l,x1:B._xAxisScale(T),y1:B._yAxisScale(M),x2:B._xAxisScale(O),y2:B._yAxisScale(V),strokeLinecap:(a=null===(o=B._points[x].lineOptions)||void 0===o?void 0:o.strokeLinecap,null!=a?a:"round"),strokeWidth:Number.parseFloat(W.toString())+Z,stroke:(null===(s=B._points[x].lineOptions)||void 0===s?void 0:s.lineBorderColor)||w.palette.white,opacity:1})),b.push(u.createElement("line",{id:r,key:r,x1:B._xAxisScale(T),y1:B._yAxisScale(M),x2:B._xAxisScale(O),y2:B._yAxisScale(V),strokeWidth:W,ref:function(e){_._refCallback(e,r)},onMouseOver:B._handleHover.bind(B,T,M,D,P,y,F),onMouseMove:B._handleHover.bind(B,T,M,D,P,y,F),onMouseOut:B._handleMouseOut,stroke:A,strokeLinecap:(d=null===(c=B._points[x].lineOptions)||void 0===c?void 0:c.strokeLinecap,null!=d?d:"round"),strokeDasharray:null===(h=B._points[x].lineOptions)||void 0===h?void 0:h.strokeDasharray,strokeDashoffset:null===(p=B._points[x].lineOptions)||void 0===p?void 0:p.strokeDashoffset,opacity:1,onClick:B._onLineClick.bind(B,B._points[x].onLineClick)}))}}else n||b.push(u.createElement("line",{id:r,key:r,x1:B._xAxisScale(T),y1:B._yAxisScale(M),x2:B._xAxisScale(O),y2:B._yAxisScale(V),strokeWidth:W,stroke:A,strokeLinecap:(g=null===(f=B._points[x].lineOptions)||void 0===f?void 0:f.strokeLinecap,null!=g?g:"round"),strokeDasharray:null===(m=B._points[x].lineOptions)||void 0===m?void 0:m.strokeDasharray,strokeDashoffset:null===(v=B._points[x].lineOptions)||void 0===v?void 0:v.strokeDashoffset,opacity:.1}))},B=this,V=1;V<this._points[x].data.length;V++)O(V);y.push.apply(y,l(C,b,S))}var R=fg(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var W=wc(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var U={tooltipCls:R.tooltip,id:this._tooltipId,xAxis:W};W&&$h(U)}return y},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(u.Component),(function(e){return{tooltip:a(a({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),mg=Array.prototype.slice,vg=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},_g=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function yg(e,t){return e[t]}function xg(e){this._context=e}xg.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var bg=function(e){return new xg(e)};function Cg(e){return e[0]}function Sg(e){return e[1]}var Eg=function(){var e=Cg,t=Sg,n=kp(!0),r=null,i=bg,o=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==r&&(o=i(u=Gp())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(l,s,a),+t(l,s,a));if(u)return o=null,u+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:kp(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:kp(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:kp(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a};function Ag(e){return e<0?-1:1}function Lg(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Ag(o)+Ag(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function wg(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Dg(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function kg(e){this._context=e}function Tg(e){this._context=new Mg(e)}function Mg(e){this._context=e}function Pg(e){return new kg(e)}kg.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:Dg(this,this._t0,wg(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Dg(this,wg(this,n=Lg(this,e,t)),n);break;default:Dg(this,this._t0,n=Lg(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Tg.prototype=Object.create(kg.prototype)).point=function(e,t){kg.prototype.point.call(this,t,e)},Mg.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};var Fg,Ng=De(),Hg=Ki((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Fg||(Fg={}));var Ig=A(function(e){function t(t){var n=e.call(this,t)||this;return n._getMargins=function(e){n.margins=e},n._onRectMouseMove=function(e){e.persist();var t=n.props.data.lineChartData,r=n._xAxisRectScale.invert(Tc(document.getElementById(n._rectId),e)[0]),i=Hg(t[0].data,r),o=t[0].data[i-1],a=t[0].data[i],s=null,l=null,u=null;if(void 0===o&&void 0!==a)l=a.x,u=i;else if(void 0!==o&&void 0===a)l=o.x,u=i-1;else{var c=void 0,d=void 0,h=void 0;switch(s=rp(t[0].data[0].x,!0)){case jh.DateAxis:c=new Date(r).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1;break;case jh.NumericAxis:c=r,d=o.x,h=a.x,l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1}}var p=t[0].data[u],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleDateString():l,v=l instanceof Date?l.getTime():l,_=Ie(n._calloutPoints,(function(e){return e.x===v})),y=s===jh.DateAxis?l.getTime():l,x=n.state.nearestCircleToHighlight!==y;_&&x&&!n.state.isShowCalloutPending&&n.setState({nearestCircleToHighlight:y,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:n._xAxisRectScale(l),displayOfLine:Fg.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Fg.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Fg.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=kp([]),t=_g,n=vg,r=yg;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,u=s.length,c=new Array(u);for(o=0;o<u;++o){for(var d,h=s[o],p=c[o]=new Array(l),f=0;f<l;++f)p[f]=d=[0,+r(i[f],h,f,i)],d.data=i[f];p.key=h}for(o=0,a=t(c);o<u;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:kp(mg.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:kp(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?_g:"function"==typeof e?e:kp(mg.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?vg:e,i):n},i}().keys(e)(t),i=$i(r[r.length-1],(function(e){return e[1]})),o=[];return r.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),o.push(t)})),n._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:i}},n._createDataSet=function(e){var t=[],r=[],i=[],o=[],a=Gh(e);e&&e.length&&e.forEach((function(e){i.push(e.color),o.push(e.opacity||1),t.push.apply(t,e.data)}));for(var s=t,l=function(){var e=s[0].x instanceof Date?s[0].x.toLocaleDateString():s[0].x,t=s.filter((function(t){return(t.x instanceof Date?t.x.toLocaleDateString():t.x)===e})),n={};t.forEach((function(e,t){n.xVal=e.x,n["chart"+t]=e.y})),r.push(n);var i=s[0].x instanceof Date?s[0].x.toLocaleDateString():s[0].x;s=s.filter((function(e){return(e.x instanceof Date?e.x.toLocaleDateString():e.x)!==i}))};s.length;)l();for(var u=r&&Object.keys(r[0]).length,c=[],d=0;d<u-1;d++){var h="chart"+d;c.push(h)}var p=n._getStackedData(c,r);return{colors:i,opacity:o,keys:c,stackedInfo:p,calloutPoints:a}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getGraphData=function(e,t,r,i,o){n._chart=n._drawGraph(r,e,t,o)},n._getLegendData=function(e,t){var r=t,i=[e.blueLight,e.blue,e.blueMid,e.red,e.black],o=[];return r.forEach((function(e){var t=e.color?e.color:i[Math.floor(4*Math.random()+1)];if(!(o.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};o.push(r)}})),u.createElement(zf,a({legends:o,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._onDataPointClick=function(e){e&&e(),n.setState({isCircleClicked:!0})},n._getOpacity=function(e){if(n._isMultiStackChart){var t=.7;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.activeLegend===e?.7:.1),t}return.7},n._getLineOpacity=function(e){if(n._isMultiStackChart){var t=.3;return n.state.isCalloutVisible&&(t=1),(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.activeLegend===e?0:.1),t}return 1},n._updateCircleFillColor=function(e,t,r){var i=t;return n.state.nearestCircleToHighlight===e&&(n.state.isShowCalloutPending&&n.setState({refSelected:"#"+r,isCalloutVisible:!0,isShowCalloutPending:!1}),n.state.isCircleClicked||(i=n.props.theme.palette.white)),i},n._drawGraph=function(e,t,r,i){var o,s=n.props.data.lineChartData,l=n.props.data,c=l.pointOptions,d=l.pointLineOptions,h=function(){var e=Cg,t=null,n=kp(0),r=Sg,i=kp(!0),o=null,a=bg,s=null;function l(l){var u,c,d,h,p,f=l.length,g=!1,m=new Array(f),v=new Array(f);for(null==o&&(s=a(p=Gp())),u=0;u<=f;++u){if(!(u<f&&i(h=l[u],u,l))===g)if(g=!g)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=c;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[u]=+e(h,u,l),v[u]=+n(h,u,l),s.point(t?+t(h,u,l):m[u],r?+r(h,u,l):v[u]))}if(p)return s=null,p+""||null}function u(){return Eg().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:kp(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:kp(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:kp(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:kp(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:kp(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:kp(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:kp(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}().x((function(e){return t(e.xVal)})).y0((function(e){return r(e.values[0])})).y1((function(e){return r(e.values[1])})).curve(Pg),p=Eg().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Pg),f=[];n._stackedData.forEach((function(e,t){f.push(u.createElement(u.Fragment,{key:t+"-graph-"+n._uniqueIdForGraph},u.createElement("path",a({id:t+"-line-"+n._uniqueIdForGraph,d:p(e),fill:"transparent",strokeWidth:3,stroke:n._colors[t],opacity:n._getLineOpacity(s[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},s[t].lineOptions)),u.createElement("path",{id:t+"-graph-"+n._uniqueIdForGraph,d:h(e),fill:n._colors[t],opacity:n._opacity[t],fillOpacity:n._getOpacity(s[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove})))}));var g=c&&c.r?Number(c.r):8;n._stackedData.forEach((function(e,i){s.length!==i&&f.push(u.createElement("g",{key:i+"-dots-"+n._uniqueIdForGraph,d:h(e),clipPath:"url(#clip)"},e.map((function(e,l){var d=n._circleId+"_"+(i*n._stackedData[0].length+l),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return o=s[i].color,u.createElement("circle",a({key:d,id:d,"data-is-focusable":!0,cx:t(e.xVal),cy:r(e.values[1]),stroke:o,strokeWidth:3,visibility:n.state.nearestCircleToHighlight?"visibility":"hidden",fill:n._updateCircleFillColor(h,o,d),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,s[i].data[l].onDataPointClick)},c,{r:n._getCircleRadius(h,g)}))}))))})),f.push(u.createElement("line",a({id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:o,opacity:.5,visibility:n.state.displayOfLine},d)));var m=Ng(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var v=wc(i).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var _={tooltipCls:m.tooltip,id:n._tooltipId,xAxis:v};v&&$h(_)}return f},n._getCircleRadius=function(e,t){var r=n.state,i=r.isCircleClicked,o=r.nearestCircleToHighlight;return i&&o===e?1:o===e?t:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._createSet=yr((function(e){return n._createDataSet(e.lineChartData)})),n.state={activeLegend:"",hoverXValue:"",isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Fg.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1},n._uniqueIdForGraph=Fe("areaChart_"),n._verticalLineId=Fe("verticalLine_"),n._circleId=Fe("circle"),n._rectId=Fe("rectangle"),n._tooltipId=Fe("AreaChartTooltipID"),n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.data,n=t.lineChartData,r=t.chartTitle,i=this._createSet(this.props.data),o=i.colors,s=i.opacity,l=i.stackedInfo,c=i.calloutPoints;this._calloutPoints=c;var d=Qh(n);this._colors=o,this._opacity=s,this._stackedData=l.stackedData;var h=this._getLegendData(this.props.theme.palette,n),p={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},f=a({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Re,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+this._uniqueCallOutID,gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return u.createElement(Zf,a({},this.props,{chartTitle:r,points:n,chartType:Yh.AreaChart,calloutProps:f,legendBars:h,isCalloutForStack:!0,xAxisType:d?jh.DateAxis:jh.NumericAxis,tickParams:p,maxOfYVal:l.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){e._xAxisRectScale=t.xScale;var n=e._xAxisRectScale.ticks(),r=e._xAxisRectScale(n[n.length-1]),i=t.containerHeight-e.margins.top;return u.createElement(u.Fragment,null,u.createElement("g",null,u.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),u.createElement("g",null,e._chart))}}))},t.prototype._onLegendClick=function(e){this.state.isLegendSelected&&this.state.activeLegend===e?this.setState({isLegendSelected:!1,activeLegend:""}):this.setState({activeLegend:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({activeLegend:e,isLegendHovered:!0})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({activeLegend:"",isLegendHovered:!1,isLegendSelected:!e&&this.state.isLegendSelected})},t}(u.Component),(function(e){return{tooltip:a(a({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Og=function(e){return{root:{fill:e.color,stroke:ar.white,strokeWidth:2}}},Bg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var t=this.props,n=t.data,r=t.arc,i=t.culture,o=r.centroid(n),a="translate("+o[0]+", "+o[1]+")";return u.createElement("g",{className:"arc"},e.prototype.render.call(this),u.createElement("text",{transform:a,textAnchor:"middle"},n.data.x,"-",ap(n.data.y,i)))},t}(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){Vg(e)},t}return o(t,e),t.getDerivedStateFromProps=function(e){return Vg(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,i=De()(Og,{color:n});return u.createElement("path",{d:r(this.props.data),className:i.root,onClick:null===(e=this.props.data)||void 0===e?void 0:e.data.onClick})},t.defaultProps={arc:of()},t}(u.Component));function Vg(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Rg,Wg=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return u.createElement(Bg,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:""+n.colors(t)})},n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.colors,i=t.data,o=t.width,a=t.height,s=t.chartTitle;this.colors=fu().range(r);var l=n(i),c="translate("+o/2+", "+a/2+")";return u.createElement("svg",{width:o,height:a,"aria-label":s},u.createElement("g",{transform:c},l.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:Yp().sort(null).value((function(e){return e.y}))},t}(u.Component),Ug=De(),zg=A(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,i=e.colors,o=e.chartTitle,a=this.props,s=a.theme,l=a.className,c=a.styles,d=a.culture;this._classNames=Ug(c,{theme:s,width:n,height:r,className:l});var h=Math.min(n,r)/2-10;return u.createElement("div",{className:this._classNames.root},this.props.chartTitle&&u.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),u.createElement(Wg,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:i,chartTitle:o}))},t.defaultProps={data:[],width:600,height:350},t}(u.Component),(function(e){var t=e.className,n=e.theme,r=e.width+30,i=e.height+10;return{root:[n.fonts.medium,"ms-PieChart",t,{width:r+40}],chart:[{padding:20,width:r,height:i,boxSizing:"content-box"}],chartTitle:[a({textAlign:"center"},n.fonts.mediumPlus)]}})),Yg=De(),jg=A(function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n.state={isCalloutVisible:!1,selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",isLegendHovered:!1,isLegendSelected:!1,xCalloutValue:"",yCalloutValue:""},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=Fe("callout"),n}return o(t,e),t.prototype.render=function(){var e;this._adjustProps();var t=this.props,n=t.data,r=t.benchmarkData,i=t.targetData,o=t.hideNumberDisplay,s=t.ignoreFixStyle,l=t.culture,c=this.props.theme.palette,d=s||n.chartData.length>2?this.props.barHeight:8;r&&(r.color=r.color||c.neutralTertiary),i&&(i.color=i.color||c.neutralSecondary);var h=this._createBarsAndLegends(n,d,c,r,i),p=!1===o&&!s&&2===n.chartData.length,f=!1===o&&!s&&1===n.chartData.length,g=n.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),m=0;r&&g&&(m=r.data/g*100);var v=0;i&&g&&(v=i.data/g*100);var _=!1===this.props.hideLegend&&(s||n.chartData.length>2);this._classNames=Yg(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:r?r.color:"",benchmarkRatio:m,targetColor:i?i.color:"",targetRatio:v});var y=function(){return ap(n.chartData[0].data?n.chartData[0].data:0,l)};return u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},u.createElement(Lp,{direction:_p.horizontal},u.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&u.createElement("div",a({},op(n.chartTitleAccessibilityData)),u.createElement("strong",null,n.chartTitle)),p&&u.createElement("div",a({},op(n.chartDataAccessibilityData)),u.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&u.createElement("span",null,"/",u.createElement("span",{className:this._classNames.ratioDenominator},ap(g,l)))),f&&u.createElement("div",a({},op(n.chartDataAccessibilityData)),u.createElement("strong",null,y()))),(r||i)&&u.createElement("div",{className:this._classNames.benchmarkContainer},r&&u.createElement("div",{className:this._classNames.benchmark,role:"text"}),i&&u.createElement("div",{className:this._classNames.target,role:"text"}))),u.createElement(Lp,{direction:_p.horizontal},u.createElement("div",null,u.createElement("svg",{className:this._classNames.chart,"aria-label":null===(e=n)||void 0===e?void 0:e.chartTitle},u.createElement("g",null,h[0]),u.createElement(Hi,a({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Re,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,op(this.state.callOutAccessibilityData,"text",!1)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(cp,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),_&&u.createElement("div",{className:this._classNames.legendContainer},h[1]))},t.prototype._adjustProps=function(){this._classNames=Yg(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},t.prototype._createBarsAndLegends=function(e,t,n,r,i){var o=this,s=[n.blueLight,n.blue,n.blueMid,n.red,n.black],l=[],c=[],d=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),h=0,p=0,f=e.chartData.map((function(e,n){var r=e.color?e.color:s[Math.floor(4*Math.random()+1)],i=e.data?e.data:0,a={title:e.legend,color:r,action:d>0?function(){o._onClick(e.legend)}:void 0,hoverAction:d>0?function(){o._onHover(e.legend)}:void 0,onMouseOutAction:d>0?function(e){o._onLeave(e)}:void 0};e.placeHolder||l.push(a),n>0&&(h+=p),(p=i/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),c.push(h);var f=o.props.styles,g=!0;return(o.state.isLegendHovered||o.state.isLegendSelected)&&(g=o.state.selectedLegendTitle===e.legend),o._classNames=Yg(f,{theme:o.props.theme,shouldHighlight:g,href:o.props.href}),p<1?u.createElement(u.Fragment,{key:n}," "):u.createElement("g",{key:n,className:o._classNames.opacityChangeOnHover,ref:function(e){o._refCallback(e,a.title)},"data-is-focusable":!o.props.hideTooltip,onFocus:o._onBarFocus.bind(o,i,r,e),onBlur:o._onBarLeave,"aria-label":o._getAriaLabel(e),role:"img",onMouseOver:o._onBarHover.bind(o,i,r,e),onMouseMove:o._onBarHover.bind(o,i,r,e),onMouseLeave:o._onBarLeave,pointerEvents:"all",onClick:o.props.href?o._redirectToUrl.bind(o,o.props.href):e.onClick},u.createElement("rect",{key:n,x:c[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(l,r),this._addLegend(l,i);var g=u.createElement(zf,a({legends:l,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(t,this.props.barBackgroundColor?this.props.barBackgroundColor:n.neutralTertiary)]:f,g]},t.prototype._onBarFocus=function(e,t,n){var r=this;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._refArray.forEach((function(i){i.index===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._addLegend=function(e,t){if(t){var n={title:t.legend,color:t.color,shape:"triangle"};e.push(n)}},t.prototype._generateEmptyBar=function(e,t){return u.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},u.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:e,fill:t}))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._onClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e,isLegendHovered:!0}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(u.Component),(function(e){var t,n,r=e.className,i=e.width,o=e.barHeight,s=e.shouldHighlight,l=e.theme,u=e.href,c=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:i||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:o||16,marginBottom:"12px"},chartTitle:a(a({},l.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:u?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:nr.small,fontWeight:rr.semibold,color:l.palette.black},ratioDenominator:{fontSize:nr.small,color:l.palette.black,opacity:"0.6"},benchmarkContainer:{position:"relative",height:"12px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4.5px)",width:"0",height:"0",borderLeft:"4.5px solid transparent",borderRight:"4.5px solid transparent",borderTop:"7.8px solid",borderTopColor:c,marginBottom:"4px",selectors:(t={},t[sr]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+c+", "+c+")"},t)},target:{position:"absolute",left:"calc("+p+"% - 4.5px)",width:"0",height:"0",borderLeft:"4.5px solid transparent",borderRight:"4.5px solid transparent",borderTop:"7.8px solid",borderTopColor:h,marginBottom:"4px",selectors:(n={},n[sr]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+h+", "+h+")"},n)}}})),qg=De(),Xg=A(function(e){function t(t){var n=e.call(this,t)||this;return n._adjustProps=function(){var e=n.props,t=e.theme,r=e.className,i=e.styles,o=e.width,a=e.barHeight;n._classNames=qg(i,{legendColor:n.state.color,theme:t,width:o,className:r,barHeight:a})},n._getLegendData=function(e,t,r){var i=[r.blueLight,r.blue,r.blueMid,r.red,r.black],o=[];return e.forEach((function(e,r){var a=e.chartData.filter((function(e){return!e.placeHolder}));a.length<3?void 0!==t[r]&&t[r]&&a.forEach((function(e){var t=e.color?e.color:i[Math.floor(4*Math.random()+1)];if(!(o.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._onHover(e.legend)},onMouseOutAction:function(e){n._onLeave(e)}};o.push(r)}})):a.forEach((function(e){var t=e.color?e.color:i[Math.floor(4*Math.random()+1)];if(!(o.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._onHover(e.legend)},onMouseOutAction:function(e){n._onLeave(e)}};o.push(r)}}))})),u.createElement(zf,a({legends:o,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n.state={isCalloutVisible:!1,refArray:[],selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",isLegendHovered:!1,isLegendSelected:!1,xCalloutValue:"",yCalloutValue:""},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=Fe("callout"),n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme,i=t.culture;this._adjustProps();var o=r.palette,s=this._getLegendData(n,this.props.hideRatio,o),l=this.state.isCalloutVisible;this._classNames=qg(this.props.styles,{legendColor:this.state.color,theme:r});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,h=n.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,o,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href);return u.createElement("div",{key:n},r)}));return u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&u.createElement("div",{className:this._classNames.legendContainer},s),u.createElement(Hi,a({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&l),directionalHint:Re,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,op(this.state.callOutAccessibilityData,"text",!1)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(cp,{Legend:c,YValue:d,color:this.state.color,culture:i}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,i,o){var s,l=this,c=this.props.culture,d=[n.blueLight,n.blue,n.blueMid,n.red,n.black],h=[],p=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),f=0,g=0,m=e.chartData.map((function(e,r){var i=e.color?e.color:e.placeHolder?n.neutralTertiaryAlt:d[Math.floor(4*Math.random()+1)],a=e.data?e.data:0;r>0&&(f+=g),g=a/p*100?a/p*100:0,h.push(f);var s=l.props.styles,c=!0;return(l.state.isLegendHovered||l.state.isLegendSelected)&&(c=l.state.selectedLegendTitle===e.legend),l._classNames=qg(s,{theme:l.props.theme,shouldHighlight:c,href:o}),g<1?u.createElement(u.Fragment,{key:r}," "):u.createElement("g",{key:r,className:e.placeHolder?l._classNames.placeHolderOnHover:l._classNames.opacityChangeOnHover,ref:function(t){l._refCallback(t,e.legend)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,a,i,e),onBlur:l._onBarLeave,role:"img","aria-label":l._getAriaLabel(e),onMouseOver:e.placeHolder?void 0:l._onBarHover.bind(l,a,i,e),onMouseMove:e.placeHolder?void 0:l._onBarHover.bind(l,a,i,e),onMouseLeave:e.placeHolder?void 0:l._onBarLeave,onClick:o?e.placeHolder?void 0:l._redirectToUrl.bind(l,o):e.onClick},u.createElement("rect",{key:r,x:h[r]+"%",y:0,width:g+"%",height:t,fill:i}))}));0===e.chartData.length&&m.push(u.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,o)},u.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralTertiaryAlt}))),0===p&&m.push(u.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,o)},u.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralTertiaryAlt})));var v=void 0!==r&&r,_=!v&&2===e.chartData.length,y=!v&&1===e.chartData.length,x=function(){return ap(e.chartData[0].data?e.chartData[0].data:0,c)};return u.createElement("div",{className:this._classNames.singleChartRoot},u.createElement(Lp,{direction:_p.horizontal},u.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&u.createElement("div",a({},op(e.chartTitleAccessibilityData)),u.createElement("strong",null,e.chartTitle)),_&&u.createElement("div",a({},op(e.chartDataAccessibilityData)),u.createElement("strong",null,x()),!i&&u.createElement("span",null,"/",ap(p,c))),y&&u.createElement("div",a({},op(e.chartDataAccessibilityData)),u.createElement("strong",null,x())))),u.createElement(Lp,{direction:_p.horizontal},u.createElement("div",null,u.createElement("svg",{className:this._classNames.chart,"aria-label":null===(s=e)||void 0===s?void 0:s.chartTitle},m))))},t.prototype._onBarFocus=function(e,t,n){var r=this;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this.state.refArray.forEach((function(i){i.legendText===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._refCallback=function(e,t){this.state.refArray.push({legendText:t,refElement:e})},t.prototype._onHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideRatio:[],hideDenominator:[]},t}(u.Component),(function(e){var t=e.className,n=e.width,r=e.barHeight,i=e.shouldHighlight,o=e.theme,s=e.href;return{root:[o.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:n||"100%"},t],items:{marginBottom:"11px"},chart:{width:"100%",height:r||16},chartTitle:a(a({},o.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:"16px"},opacityChangeOnHover:{opacity:i?"":"0.1",cursor:s?"pointer":"default",stroke:o.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:o.palette.black,strokeWidth:"2px"}}},placeHolderOnHover:{opacity:i?"":"0.1",cursor:"default",stroke:o.palette.white,strokeWidth:"2",selectors:{"&:focus":{stroke:o.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"}}}));!function(e){e.show="visibility",e.hide="hidden"}(Rg||(Rg={}));var Kg,Zg=De(),Gg=A(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Ae(),n._createLine=function(e,t,r,i){void 0===r&&(r=0),void 0===i&&(i=0);var o=n._xAxisType===jh.NumericAxis,a=n._getScales(r,i,o).xBarScale,s=n._createColors(),l=n.props.theme,c=n.props,d=c.data,h=c.lineLegendColor,p=void 0===h?l.palette.yellow:h,f=c.lineLegendText,g=[];d&&d.forEach((function(e,t){e.lineData&&e.lineData.y&&g.push({x:e.x,y:e.lineData.y,point:e,index:t})}));var m=Eg().x((function(t){return o?e(t.x):a(t.index)+.5*n._barWidth})).y((function(e){return t(e.y)})),v=!0;(n.state.isLegendHovered||n.state.isLegendSelected)&&(v=n.state.selectedLegendTitle===f);var _=u.createElement("path",{opacity:v?1:.4,d:m(g),fill:"none",strokeWidth:3,stroke:p}),y=g.map((function(r,i){var l;return u.createElement("circle",{key:i,cx:o?e(r.x):a(r.index)+.5*n._barWidth,cy:t(r.y),onMouseOver:n._onBarHover.bind(n,r.point,s(r.y)),onMouseOut:n._onBarLeave,r:8,stroke:p,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n.state.acitveXdataPoint===r.x?Rg.show:Rg.hide,onClick:null===(l=r.point.lineData)||void 0===l?void 0:l.onClick})}));return u.createElement(u.Fragment,null,_,y)},n._checkForLine=function(){return n.props.data.some((function(e){var t,n;return void 0!==(null===(n=null===(t=e)||void 0===t?void 0:t.lineData)||void 0===n?void 0:n.y)}))},n._getMargins=function(e){n.margins=e},n._renderContentForBothLineAndBars=function(e){var t=n._getCalloutContentForLineAndBar(e),r=t.YValueHover,i=t.hoverXValue,o=r.map((function(e,t){return u.createElement(cp,a({key:t,Legend:e.legend},0===t&&{XValue:""+(i||e.data)},{color:e.color,YValue:e.data||e.y,culture:n.props.culture}))}));return u.createElement(u.Fragment,null,o)},n._renderContentForOnlyBars=function(e){var t=n.props.useSingleColor,r=void 0!==t&&t;return u.createElement(u.Fragment,null,u.createElement(cp,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!r&&e.color?e.color:n._createColors()(e.y),culture:n.props.culture}))},n._renderCallout=function(e){return e?n._isHavingLine?n._renderContentForBothLineAndBars(e):n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===jh.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForLineAndBar=function(e){var t,r,i,o,a=[],s=n.props,l=s.theme,u=s.useSingleColor,c=void 0!==u&&u,d=n.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(t){return t.x===e.x}));return n._isHavingLine&&void 0!==(null===(t=m[0].lineData)||void 0===t?void 0:t.y)&&a.push({legend:p,color:g,y:null===(r=m[0].lineData)||void 0===r?void 0:r.y,data:null===(i=m[0].lineData)||void 0===i?void 0:i.yAxisCalloutData,yAxisCalloutData:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),a.push({legend:m[0].legend,y:m[0].y,color:c?n._createColors()(1):m[0].color?m[0].color:n._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData}),{YValueHover:a,hoverXValue:e.xAxisCalloutData||e.x.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,acitveXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){if(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.selectedLegendTitle===e.legend){var i=n._getCalloutContentForLineAndBar(e),o=i.YValueHover,a=i.hoverXValue;n._refArray.forEach((function(i,s){i.index===e.legend&&t===s&&n.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:e.legend,dataForHoverCard:e.y,color:e.color||r,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,acitveXdataPoint:e.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))}},n._getScales=function(e,t,r){if(r){var i=$i(n._points,(function(e){return e.x}));return{xBarScale:Na().domain(n._isRtl?[i,0]:[0,i]).nice().range([n.margins.left+n._barWidth/2,t-n.margins.right-n._barWidth-n._barWidth/2]),yBarScale:Na().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:gu().domain(n._xAxisLabels).range([n.margins.left,t-n.margins.right]).padding(n.props.xAxisPadding||.1),yBarScale:Na().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props,i=r.theme,o=r.useSingleColor,s=n.props,l=s.lineLegendText,c=s.lineLegendColor,d=void 0===c?i.palette.yellow:c,h=[];if(e.forEach((function(e,t){var r=o?n._createColors()(1):e.color,i={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};h.push(i)})),n._isHavingLine&&l&&d){var p={title:l,color:d,action:function(){n._onLegendClick(l)},hoverAction:function(){n._onLegendHover(l)},onMouseOutAction:function(e){n._onLegendLeave(e)},isLineLegendInBarChart:!0};h.unshift(p)}return u.createElement(zf,a({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._getAriaLabel=function(e){var t,r,i,o=e.xAxisCalloutData||e.x,a=e.legend,s=e.yAxisCalloutData||e.y,l=n.props.lineLegendText||"Line",u=(null===(t=e.lineData)||void 0===t?void 0:t.yAxisCalloutData)||(null===(r=e.lineData)||void 0===r?void 0:r.y);return(null===(i=e.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||o+". "+(a?a+", ":"")+s+"."+(void 0!==u?" "+l+", "+u+".":"")},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",acitveXdataPoint:null,YValueHover:[],hoverXValue:""},n._isHavingLine=n._checkForLine(),n._calloutId=Fe("callout"),n._tooltipId=Fe("VCTooltipID_"),n._refArray=[],n._xAxisType=rp(n.props.data[0].x,!0),n}return o(t,e),t.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max($i(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Zg(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=a(a(a(a({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Re,id:"toolTip"+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.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),op(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return u.createElement(Zf,a({},this.props,{points:this._points,chartType:Yh.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:_p.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return u.createElement(u.Fragment,null,u.createElement("g",null,e._bars),e._isHavingLine&&u.createElement("g",null,e._createLine(t.xScale,t.yScale,t.containerHeight,t.containerWidth)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||32;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark],this._isHavingLine=this._checkForLine()},t.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(t*i*this._yMax);return Na().domain(r).range(this._colors)},t.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForLineAndBar(e),i=r.YValueHover,o=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===e.legend)&&this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:e.y,selectedLegendTitle:e.legend,color:e.color||t,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,acitveXdataPoint:e.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n){var r=this,i=this.props.useSingleColor,o=void 0!==i&&i,a=this._getScales(e,t,!0),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),d=this._points.map((function(t,n){var i=!0;(r.state.isLegendHovered||r.state.isLegendSelected)&&(i=r.state.selectedLegendTitle===t.legend),r._classNames=Zg(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var a=Math.max(l(t.y),0);return a<1?u.createElement(u.Fragment,{key:t.x}," "):u.createElement("rect",{key:t.x,x:s(t.x),className:r._classNames.opacityChangeOnHover,y:e-r.margins.bottom-l(t.y),width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:a,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,c(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,c(t.y)),onBlur:r._onBarLeave,fill:t.color&&!o?t.color:c(t.y)})}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=wc(n).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&$h(p)}return d},t.prototype._createStringBars=function(e,t,n){var r=this,i=this._getScales(e,t,!1),o=i.xBarScale,a=i.yBarScale,s=this._createColors(),l=this._points.map((function(t,n){var i=Math.max(a(t.y),0);return i<1?u.createElement(u.Fragment,{key:t.x}," "):u.createElement("rect",{key:t.x,x:o(t.x),y:e-r.margins.bottom-a(t.y),width:r._barWidth,height:i,"aria-label":r._getAriaLabel(t),role:"img",ref:function(e){r._refCallback(e,t.legend)},onMouseOver:r._onBarHover.bind(r,t,s(t.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,onClick:t.onClick,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,t,n,s(t.y)),fill:t.color?t.color:s(t.y),transform:"translate("+.5*(o.bandwidth()-r._barWidth)+", 0)"})}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var c=wc(n).call(o);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:c,showTooltip:this.props.showXAxisLablesTooltip};c&&$h(d)}return l},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t}(u.Component),(function(e){var t=e.shouldHighlight,n=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:a(a({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),$g=De();!function(e){e.show="visibility",e.hide="hidden"}(Kg||(Kg={}));var Qg=A(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Ae(),n._toFocusWholeStack=function(e){var t=n.props.isCalloutForStack,r=void 0!==t&&t;return e?!n.state.isLegendSelected:r},n._getFormattedLineData=function(e){var t=[],n={};return e.forEach((function(e,n){e.lineData&&e.lineData.forEach((function(r){t.push(a(a({},r),{index:n,xItem:e}))}))})),t.forEach((function(e){n[e.legend]?n[e.legend].push(e):n[e.legend]=[e]})),n},n._getLineLegends=function(e){var t=n._lineObject,r=[];return Object.keys(t).forEach((function(e){r.push({title:e,color:t[e][0].color})})),r},n._createLines=function(e,t,r,i){var o=n.state,s=o.isLegendHovered,l=o.isLegendSelected,c=o.selectedLegendTitle,d=n._xAxisType===jh.NumericAxis,h=n._getScales(r,i,d).xBarScale,p=n._getFormattedLineData(n.props.data),f=[],g=[],m=d?0:h.bandwidth()/2;return Object.keys(p).forEach((function(r,i){var o=!0;(s||l)&&(o=c===r);for(var g=1;g<p[r].length;g++){var v=d?e(p[r][g-1].xItem.xAxisPoint):h(p[r][g-1].xItem.xAxisPoint)+n._additionalSpace,_=t(p[r][g-1].y),y=d?e(p[r][g].xItem.xAxisPoint):h(p[r][g].xItem.xAxisPoint)+n._additionalSpace,x=t(p[r][g].y);f.push(u.createElement("line",a({key:i+"-"+g+"-line",x1:v,y1:_,x2:y,y2:x,opacity:o?1:.1,strokeWidth:3,stroke:p[r][g].color,transform:"translate("+m+", 0)"},l&&c===r&&{onMouseOver:n._lineHover.bind(n,p[r][g-1]),onMouseLeave:n._lineHoverOut})))}})),Object.keys(p).forEach((function(r,i){p[r].forEach((function(o,s){g.push(u.createElement("circle",a({key:i+"-"+s+"-dot",cx:d?e(o.xItem.xAxisPoint):h(o.xItem.xAxisPoint)+n._additionalSpace,cy:t(o.y),onMouseOver:l&&c===r?n._lineHover.bind(n,o):n._onStackHover.bind(n,o.xItem)},l&&c===r&&{onMouseLeave:n._lineHoverOut},{r:n._getCircleVisibilityAndRadius(o.xItem.xAxisPoint,o.legend).radius,stroke:o.color,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n._getCircleVisibilityAndRadius(o.xItem.xAxisPoint,o.legend).visibility,transform:"translate("+m+", 0)"})))}))})),u.createElement(u.Fragment,null,f,g)},n._getCircleVisibilityAndRadius=function(e,t){var r=n.state,i=r.isLegendSelected,o=r.activeXAxisDataPoint,a=r.selectedLegendTitle;return i?e===o&&t===a?{visibility:Kg.show,radius:8}:t===a?{visibility:Kg.show,radius:.3}:{visibility:Kg.hide,radius:0}:{visibility:o===e?Kg.show:Kg.hide,radius:8}},n._getMargins=function(e){n.margins=e},n._getCustomizedCallout=function(){var e=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint&&!e?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._lineHover=function(e,t){t.persist(),n.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:""+e.xItem.xAxisPoint,yCalloutValue:""+(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.color})},n._lineHoverOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},n._handleMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._createBar=function(e,t,r,i){var o=n.props,s=o.barCornerRadius,l=void 0===s?0:s,c=o.barMinimumHeight,d=void 0===c?0:c,h=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),p=n._toFocusWholeStack(h),f=n._points.map((function(i,o){var s=r-n.margins.bottom,c=e((n._xAxisType,jh.NumericAxis,i.xAxisPoint)),h=i.chartData.filter((function(e){return e.data>0}));if(h.length){var f=n._getBarGapAndScale(h,t),g=f.gapHeight,m=f.heightValueScale;if(!(m<0)){var v=h.map((function(t,r){var f=t.color?t.color:n._colors[r],v={},_=!0;(n.state.isLegendHovered||n.state.isLegendSelected)&&(_=n.state.selectedLegendTitle===t.legend);var y=$g(n.props.styles,{theme:n.props.theme,shouldHighlight:_,href:n.props.href}),x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(i,t),onMouseOver:n._onRectHover.bind(n,i.xAxisPoint,t,f),onMouseMove:n._onRectHover.bind(n,i.xAxisPoint,t,f),onMouseLeave:n._handleMouseOut,onFocus:n._onRectFocus.bind(n,t,i.xAxisPoint,f,v),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,t)},b=m*t.data;b<d&&(b=d),s=s-b-(r?g:0);var C=n._xAxisType===jh.NumericAxis?0:e.bandwidth()/2;return l&&b>l&&r===h.length-1?u.createElement("path",a({key:r+o,className:y.opacityChangeOnHover,d:"\n M "+c+" "+(s+l)+"\n a "+l+" "+l+" 0 0 1 "+l+" "+-l+"\n h "+(n._barWidth-2*l)+"\n a "+l+" "+l+" 0 0 1 "+l+" "+l+"\n v "+(b-l)+"\n h "+-n._barWidth+"\n z\n ",fill:f,ref:function(e){return v.refElement=e},transform:"translate("+C+", 0)"},x)):b<1?u.createElement(u.Fragment,{key:r+o}," "):u.createElement("rect",a({key:r+o+""+p,className:y.opacityChangeOnHover,x:c,y:s,width:n._barWidth,height:b,fill:f,ref:function(e){return v.refElement=e}},x,{role:"img",transform:"translate("+C+", 0)"}))})),_={},y=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(i),onMouseOver:n._onStackHover.bind(n,i),onMouseMove:n._onStackHover.bind(n,i),onMouseLeave:n._handleMouseOut,onFocus:n._onStackFocus.bind(n,i,_),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,i),role:"img"};return u.createElement("g",a({key:o+""+p,id:o+"-singleBar",ref:function(e){return _.refElement=e}},y),v)}}})),g=$g(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var m=wc(i).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var v={tooltipCls:g.tooltip,id:n._tooltipId,xAxis:m};m&&$h(v)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var i=n._yMax,o=Na().domain([0,i]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var a=$i(n._dataset,(function(e){return e.x}));return{xBarScale:Na().domain(n._isRtl?[a,0]:[0,a]).nice().range([n.margins.left,t-n.margins.right-n._barWidth]),yBarScale:o}}return{xBarScale:gu().domain(n._xAxisLabels).range([n.margins.left-n._additionalSpace,t-n.margins.right-n._additionalSpace]).padding(n.props.xAxisPadding||.1),yBarScale:o}},n._createNumericBars=function(e,t,r){var i=n._getScales(e,t,!0),o=i.xBarScale,a=i.yBarScale;return n._createBar(o,a,e,r)},n._createStringBars=function(e,t,r){var i=n._getScales(e,t,!1),o=i.xBarScale,a=i.yBarScale;return n._createBar(o,a,e,r)},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===jh.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._getAriaLabel=function(e,t){var n,r,i;if(!t){var o=e.xAxisCalloutData||e.xAxisPoint,a=e.chartData.map((function(e){return e.legend+", "+(e.yAxisCalloutData||e.data)+"."})).join(" "),s=null===(n=e.lineData)||void 0===n?void 0:n.map((function(e){return e.legend+", "+(e.yAxisCalloutData||e.data||e.y)+"."})).join(" ");return(null===(r=e.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||o+". "+a+(s?" "+s:"")}var l=e.xAxisCalloutData||t.xAxisCalloutData||e.xAxisPoint,u=t.legend,c=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||l+". "+u+", "+c+"."},n.state={isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:""},n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=Fe("callout"),n._tooltipId=Fe("VSBCTooltipId_"),n._adjustProps(),n._dataset=n._createDataSetLayer(),n._createLegendsForLine=yr((function(e){return n._getLineLegends(e)})),n}return o(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},t.prototype.render=function(){var e=this;this._adjustProps();var t=this.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),n=this._toFocusWholeStack(t),r=this.props.isCalloutForStack,i=void 0!==r&&r;this._dataset=this._createDataSetLayer();var o=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data)),s=a(a({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Re,id:"toolTip"+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,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),op(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return u.createElement(Zf,a({},this.props,{points:this._dataset,chartType:Yh.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,tickParams:l,legendBars:o,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:i||t?_p.horizontal:_p.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return u.createElement(u.Fragment,null,u.createElement("g",null,e._bars),u.createElement("g",null,t&&e._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||32,this._additionalSpace=.5*this._barWidth;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.red,e.black],this._xAxisType=rp(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},t.prototype._createDataSetLayer=function(){var e=[],t=this._points.map((function(t){var n=0;return t.chartData.forEach((function(e){n+=e.data})),e.push(t.xAxisPoint),{x:t.xAxisPoint,y:n}}));return this._xAxisLabels=e,t},t.prototype._renderCallout=function(e){return e?u.createElement(cp,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._getLegendData=function(e,t,n){var r=this;if(this.props.hideLegend)return u.createElement(u.Fragment,null);var i=[t.blueLight,t.blue,t.blueMid,t.red,t.black],o=[],s=this.props.allowHoverOnLegend,l=void 0===s||s;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:i[Math.floor(4*Math.random()+1)];if(!(o.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:l?function(){return r._onLegendHover(e.legend)}:void 0,onMouseOutAction:l?function(e){return r._onLegendLeave(e)}:void 0};o.push(n)}}))}));var c=[];n&&n.length>0&&n.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){r._onLegendClick(e.title)},hoverAction:l?function(){return r._onLegendHover(e.title)}:void 0,onMouseOutAction:l?function(e){return r._onLegendLeave(e)}:void 0};c.push(t)}));var d=c.concat(o);return u.createElement(zf,a({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._onRectHover=function(e,t,n,r){r.persist(),this._onRectFocusHover(e,t,n,r)},t.prototype._onRectFocusHover=function(e,t,n,r){(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.data,color:n,xCalloutValue:t.xAxisCalloutData?t.xAxisCalloutData:e,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},t.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},t.prototype._onStackHoverFocus=function(e,t){var n=e.lineData,r=void 0!==n&&n.length>0;r&&n.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:t,isCalloutVisible:!0,YValueHover:r?l(n.sort((function(e,t){return e.data<t.data?1:-1})),e.chartData.slice().reverse()):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},t.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},t.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},t.prototype._onClick=function(e,t){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,t,e),this.props.href&&(window.location.href=this.props.href)},t.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,i=void 0===r?0:r,o=e.reduce((function(e,t){return e+t.data}),0),a=null!=n?n:t(o),s=i&&e.length-1,l=s&&Math.max(1,Math.min(i,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/o}},t}(u.Component),(function(e){var t=e.shouldHighlight,n=e.href,r=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1",cursor:n?"pointer":"default"},tooltip:a(a({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Jg=De(),em=A(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Ae(),n._getGraphData=function(e,t,r,i,o){var a=n._createX0Scale(i),s=n._createX1Scale(a),l=[];n._datasetForBars.forEach((function(e){l.push(n._buildGraph(e,a,s,r,o))})),n._groupedVerticalBarGraph=l},n._getMargins=function(e){return n.margins=e},n._createDataSetOfGVBC=function(e){var t=[],r=e.map((function(e){return e.name}));e[0].series.forEach((function(e){t.push(e.key)}));var i=n._createDataset(e);return{keys:t,xAxisLabels:r,datasetForBars:i}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getOpacity=function(e){var t=!0;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.titleForHoverCard===e),t?"":"0.1"},n._onBarHover=function(e,t,r){r.persist(),(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n.setState({refSelected:r,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._onBarFocus=function(e,t,r){(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n._refArray.forEach((function(i,o){i.index===e.legend&&r===o&&n.setState({refSelected:i.refElement,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},n._redirectToUrl=function(e){e&&(window.location.href=e)},n._buildGraph=function(e,t,r,i,o){var a,s=[],l=Na().domain([0,n._yMax]).range([0,i-n.margins.bottom-n.margins.top]);a=n.props.barwidth&&n.props.barwidth<r.bandwidth()?n.props.barwidth:r.bandwidth();var c=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(c.forEach((function(t,o){var d=e.indexNum*c.length+o,h=e[t];h.data&&s.push(u.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:e.indexNum+"-"+o,height:Math.max(l(h.data),0),width:a,x:r(t),y:Math.max(i-n.margins.bottom-l(h.data),0),"data-is-focusable":!n.props.hideTooltip,opacity:n._getOpacity(h.legend),ref:function(e){n._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:n._onBarHover.bind(n,h,e),onMouseMove:n._onBarHover.bind(n,h,e),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,e,d),onBlur:n._onBarLeave,onClick:n.props.href?n._redirectToUrl.bind(n,n.props.href):h.onClick,"aria-label":n._getAriaLabel(h,e.xAxisPoint),role:"img"}))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=wc(o).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var h={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:d};d&&$h(h)}var p=n._isCustomBarWidth?(t.bandwidth()-n._x1TotalBandWidth)/2:0;return u.createElement("g",{key:e.indexNum,transform:"translate("+(t(e.xAxisPoint)+p)+", 0)"},s)},n._createDataset=function(e){var t=[],r=[];return e.forEach((function(e,n){var i={},o={},s=[];e.series.forEach((function(e){i[e.key]=e.data,o[e.key]=a({},e),s.push(e)})),o.xAxisPoint=e.name,o.indexNum=n,o.groupSeries=s,o.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,t.push(o),r.push(i)})),n._dataset=r,t},n._createX0Scale=function(e){return gu().domain(n._xAxisLabels).range(n._isRtl?[e-n.margins.right,n.margins.left]:[n.margins.left,e-n.margins.right]).padding(.1)},n._createX1Scale=function(e){var t=e.bandwidth();if(n.props.barwidth){var r=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length),i=(n.props.barwidth+2.5)*r.length;n._isCustomBarWidth=i<e.bandwidth(),t=n._isCustomBarWidth?i:e.bandwidth(),n._x1TotalBandWidth=t}return gu().domain(n._keys).range(n._isRtl?[t,0]:[0,t]).padding(.05)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=e,i=[t.blueLight,t.blue,t.blueMid,t.red,t.black],o=[];return r.forEach((function(e){e.series.forEach((function(e){var t=e.color?e.color:i[Math.floor(4*Math.random()+1)];if(!(o.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};o.push(r)}}))})),u.createElement(zf,a({legends:o,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._getAriaLabel=function(e,t){var n,r=e.xAxisCalloutData||t,i=e.legend,o=e.yAxisCalloutData||e.data;return(null===(n=e.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||r+". "+i+", "+o+"."},n._createSet=yr((function(e){return n._createDataSetOfGVBC(e)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,titleForHoverCard:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:""},n._refArray=[],n._calloutId=Fe("callout"),n._tooltipId=Fe("GVBCTooltipId_"),n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.data,n=this._createSet(t),r=n.keys,i=n.xAxisLabels,o=n.datasetForBars;this._keys=r,this._xAxisLabels=i,this._datasetForBars=o,this._isNumeric=rp(t[0].name,!0);var s=this._getLegendData(t,this.props.theme.palette),l=$i(this._dataset,(function(t){return $i(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=Jg(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=a(a(a({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Re,id:"toolTip"+this._calloutId,gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.titleForHoverCard,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}),op(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return u.createElement(Zf,a({},this.props,{points:this._datasetForBars,chartType:Yh.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._isNumeric,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:_p.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(){return u.createElement("g",null,e._groupedVerticalBarGraph)}}))},t.prototype._refCallback=function(e,t,n){this._refArray[n]={index:t,refElement:e}},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.titleForHoverCard===e?this.setState({isLegendSelected:!1,titleForHoverCard:e}):this.setState({titleForHoverCard:e}):this.setState({isLegendSelected:!0,titleForHoverCard:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,titleForHoverCard:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,titleForHoverCard:"",isLegendSelected:!e&&this.state.isLegendSelected})},t}(u.Component),(function(e){var t=e.theme;return{opacityChangeOnHover:{cursor:e.href?"pointer":"default"},tooltip:a(a({},t.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),tm=De(),nm=A(function(e){function t(t){var n=e.call(this,t)||this;n._rectRefArray={},n._getXandY=function(){var e="",t="";return n.props.data.forEach((function(n){if(n.data&&n.data.length>0)return e=n.data[0].x,t=n.data[0].y,{x:e,y:t}})),{x:e,y:t}},n._getOpacity=function(e){var t=!0;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=e===n.state.activeLegend),t?"1":"0.1"},n._rectRefCallback=function(e,t,r){n._rectRefArray[t]={data:r,refElement:e}},n._onRectFocus=function(e,t){n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:!0,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},n._onRectMouseOver=function(e,t,r){r.persist(),n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:!0,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},n._onRectBlurOrMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._createRectangles=function(){var e=[];return n._stringYAxisDataPoints.slice().reverse().forEach((function(t,r){n._dataSet[t].forEach((function(t,i){var o=""+r+i,a=u.createElement("g",{key:o,role:"img","aria-label":n._getAriaLabel(t),"data-is-focusable":!0,fillOpacity:n._getOpacity(t.legend),transform:"translate("+n._xAxisScale(t.x)+", "+n._yAxisScale(t.y)+")",ref:function(e){n._rectRefCallback(e,o,t)},onFocus:n._onRectFocus.bind(n,o,t),onBlur:n._onRectBlurOrMouseOut,onMouseOver:n._onRectMouseOver.bind(n,o,t),onMouseOut:n._onRectBlurOrMouseOut},u.createElement("rect",{fill:n._colorScale(t.value),width:n._xAxisScale.bandwidth(),height:n._yAxisScale.bandwidth(),onClick:t.onClick}),u.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:n._classNames.text,transform:"translate("+n._xAxisScale.bandwidth()/2+", "+n._yAxisScale.bandwidth()/2+")"},ap(t.rectText,n.props.culture)));e.push(a)}))})),e},n._onLegendHover=function(e){!1===n.state.isLegendSelected&&n.setState({activeLegend:e,isLegendHovered:!0})},n._onLegendLeave=function(e){(e||!1===n.state.isLegendSelected)&&n.setState({activeLegend:"",isLegendHovered:!1,isLegendSelected:!e&&n.state.isLegendSelected})},n._onLegendClick=function(e){n.state.isLegendSelected?n.state.activeLegend===e?n.setState({activeLegend:"",isLegendSelected:!1}):n.setState({activeLegend:e}):n.setState({activeLegend:e,isLegendSelected:!0,isLegendHovered:!1})},n._createLegendBars=function(){var e=n.props,t=e.data,r=e.legendProps,i=[];return t.forEach((function(e){var t={title:e.legend,color:n._colorScale(e.value),action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};i.push(t)})),u.createElement(zf,a({},r,{legends:i}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return Na().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===jh.DateAxis?""+e.getTime():n._xAxisType===jh.StringAxis?e:n._xAxisType===jh.NumericAxis?""+e:""},n._getYIndex=function(e){return n._yAxisType===qh.DateAxis?""+e.getTime():n._yAxisType===qh.StringAxis?e:n._yAxisType===qh.NumericAxis?""+e:""},n._createNewDataSet=function(e,t,r,i,o){var s=[];e.forEach((function(e){e.data.forEach((function(t){s.push(a(a({},t),{legend:e.legend}))}))}));var u={},c={},d={};return s.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",c[r]="1",u[r]?u[r]=l(u[r],[e]):u[r]=[e]})),Object.keys(u).forEach((function(e){u[e].sort((function(e,t){return n._xAxisType===jh.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===jh.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===jh.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===jh.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===jh.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===jh.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===qh.DateAxis&&(e.y=n._getStringFormattedDate(e.y,i)),n._yAxisType===qh.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,o)),n._yAxisType===qh.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(u).forEach((function(e){n._yAxisType===qh.DateAxis?u[n._getStringFormattedDate(e,i)]=u[e]:n._yAxisType===qh.NumericAxis?u[""+n._getStringFormattedNumber(e,o)]=u[e]:u[n._getFormattedLabelForYAxisDataPoint(e)]=u[e]})),{dataSet:u,yAxisPoints:n._getYAxisDataPoints(c),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===jh.DateAxis||n._xAxisType===jh.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===jh.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===jh.NumericAxis?n._getStringFormattedNumber(e,n.props.xAxisNumberFormatString):n._getFormattedLabelForXAxisDataPoint(e)}))},n._getYAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._yAxisType===qh.DateAxis||n._yAxisType===qh.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===qh.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===qh.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),Td(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return Bc(t||".2~s")(+e)},n._getFormattedLabelForXAxisDataPoint=function(e){var t=n.props.xAxisStringFormatter;return t?t(e):e},n._getFormattedLabelForYAxisDataPoint=function(e){var t=n.props.yAxisStringFormatter;return t?t(e):e},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.x,r=e.y,i=e.legend,o=e.ratio?e.ratio[0]+"/"+e.ratio[1]:e.rectText||e.value,a=e.descriptionMessage;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||n+", "+r+". "+i+", "+o+"."+(a?" "+a+".":"")};var r=n._getXandY(),i=r.x,o=r.y;return n._xAxisType=rp(i,!0),n._yAxisType=rp(o,!1),n._createSet=yr((function(e,t,r,i,o){return n._createNewDataSet(e,t,r,i,o)})),n.state={isLegendSelected:!1,activeLegend:"",isLegendHovered:!1,isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.xAxisDateFormatString,i=t.xAxisNumberFormatString,o=t.yAxisDateFormatString,s=t.yAxisNumberFormatString;this._colorScale=this._getColorScale();var l=this._createSet(n,r,i,o,s),c=l.dataSet,d=l.xAxisPoints,h=l.yAxisPoints;this._dataSet=c,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=tm(this.props.styles,{theme:this.props.theme});var p=a(a(a(a({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:Ue,onDismiss:this._closeCallout}),op(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=a(a({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return u.createElement(Zf,a({},this.props,{points:n,chartType:Yh.HeatMapChart,xAxisType:jh.StringAxis,yAxisType:qh.StringAxis,calloutProps:p,chartHoverProps:f,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:_p.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(u.Component),(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function rm(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function im(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=am)):void 0===t&&(t=om);for(var n,r,i,o,a,s=new um(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new um(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(lm)}function om(e){return e.children}function am(e){return Array.isArray(e)?e[1]:null}function sm(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function lm(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function um(e){this.data=e,this.depth=this.height=0,this.parent=null}function cm(e,t){return e.parent===t.parent?1:2}function dm(e){var t=e.children;return t?t[0]:e.t}function hm(e){var t=e.children;return t?t[t.length-1]:e.t}function pm(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function fm(e,t,n){return e.a.parent===t.parent?e.a:n}function gm(e,t){this._=e,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=t}um.prototype=im.prototype={constructor:um,count:function(){return this.eachAfter(rm)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return im(this).eachBefore(sm)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}},gm.prototype=Object.create(um.prototype);var mm,vm,_m=function(){var e=cm,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,o,a=new gm(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new gm(r[i],i)),n.parent=t;return(a.parent=new gm(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var u=i,c=i,d=i;i.eachBefore((function(e){e.x<u.x&&(u=e),e.x>c.x&&(c=e),e.depth>d.depth&&(d=e)}));var h=u===c?1:e(u,c)/2,p=h-u.x,f=t/(c.x+h+p),g=n/(d.depth||1);i.eachBefore((function(e){e.x=(e.x+p)*f,e.y=e.depth*g}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,l=o.parent.children[0],u=o.m,c=a.m,d=s.m,h=l.m;s=hm(s),o=dm(o),s&&o;)l=dm(l),(a=hm(a)).a=t,(i=s.z+d-o.z-u+e(s._,o._))>0&&(pm(fm(s,t,r),t,i),u+=i,c+=i),d+=s.m,u+=o.m,h+=l.m,c+=a.m;s&&!hm(a)&&(a.t=s,a.m+=d-c),o&&!dm(l)&&(l.t=o,l.m+=u-h,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},ym=De(),xm=function(e){function t(t,n,r,i,o,a){void 0===i&&(i=[]),void 0===o&&(o=[]);var s=e.call(this,t,r,i,o)||this;return s.composition=n,s._treeTraversal=a,s}return o(t,e),t.prototype.createTree=function(e,t){var n,r,i,o,a,s,l,u=(e=e<65?65:e>90?90:e)||75,c=im(this.treeData,(function(e){return e.children})),d=(null===(n=c)||void 0===n?void 0:n.height)+1;_m().nodeSize([u,u/1.5]).separation((function(e,t){return e.parent===c&&t.parent===c?3.5:1}))(c).descendants().forEach((function(e){e.y=0===e.depth?10:130*e.depth,e.x+=t/2}));var h=[],p=0,f=function(e){var t,n;e.id=p,h.push({id:p,children:e.children,dataName:e.data.name,subName:e.data.subname,bodyText:e.data.bodytext,metricName:null===(t=e.data)||void 0===t?void 0:t.metric,fill:e.data.fill,x:e.x,y:e.y,parentID:null===(n=e.parent)||void 0===n?void 0:n.id}),p++};0===this._treeTraversal?c.each((function(e){f(e)})):c.eachBefore((function(e){f(e)}));for(var g=3*u,m=g/3.45,v=new Set,_=0,y=h;_<y.length;_++){var x=y[_],b=0===x.id?"Root Node":"Parent info parentId: "+x.parentID+"\n "+h[x.parentID].dataName+"\n "+h[x.parentID].subName;if(!x.children&&!v.has(x.parentID)&&3===d){var C=(g-20)/2,S=m;v.add(x.parentID),this.addLinktoSVG(x.id,h[x.parentID].x,h[x.parentID].y,h[x.id].x,h[x.id].y,!0,g,m,20);for(var E=null===(r=h[x.parentID])||void 0===r?void 0:r.children,A=(null===(i=h[x.parentID])||void 0===i?void 0:i.x)-C/2-10,L=(null===(o=h[x.parentID])||void 0===o?void 0:o.x)+C/2+10,w=null===(a=h[x.parentID])||void 0===a?void 0:a.x,D=null===(s=E[0])||void 0===s?void 0:s.y,k=0;k<E.length;++k){var T=E[k];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,k%2==0?1===E.length?w:A:L,D,T.data.fill,1===E.length?g:C,m,T.id,b),k%2==1&&(D+=S+20)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,w,D,T.data.fill,g,m,T.id,b),D+=S+20):E.length>2?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,k%2==0?A:L,D,T.data.fill,1===E.length?g:C,m,T.id,b),k%2==1&&(D+=S+20)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,w,D,T.data.fill,g,m,T.id,b),D+=S+20)}}if((x.children||d<=2)&&(this.addNodeShapetoSVG(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,g,m,x.id,b),0===x.id&&x.children)){E=null===(l=h[x.id])||void 0===l?void 0:l.children;var M=Qi(E,(function(e){return e.x})),P=$i(E,(function(e){return e.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,g,m,20,P)}}},t}(function(){function e(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=e,this.styleClassNames=t,this._nodeElements=n,this._linkElements=r}return e.prototype.truncateText=function(e,t,n,r){var i,o=e.split(/\s+/).reverse(),a="",s=wc(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];a=o.pop();){if(l.push(a),s.text(l.join(" ")+" "),null!==s.node())if(s.node().getComputedTextLength()>t-n){l.pop(),l.push("...");break}}return i=l.join(" ")+" ",s.text(null),Mc(".tempText").remove(),i},e.prototype.addNodeShapetoSVG=function(e,t,n,r,i,o,a,s,l,c,d){var h="nodeId: "+c+" \nnodeMainText: "+e+"\nsubText "+t+" "+d,p=i-s/2;!r&&0===c&&n||this._nodeElements.push(u.createElement("rect",{width:s,height:l,x:p,y:o,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:a,key:""+c+this.styleClassNames.rectNode})),t&&(t=this.truncateText(t,s,s/4,this.styleClassNames.rectSubText)),n&&(n=this.truncateText(n,s,s/4,this.styleClassNames.rectBodyText)),r&&(r=this.truncateText(r,s,s/4,this.styleClassNames.rectMetricText)),e=this.truncateText(e,s,s/4,this.styleClassNames.rectText);var f=r?u.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+s/2},r):n?u.createElement(u.Fragment,null,u.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+s/2},t),u.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+s/2},n)):u.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+s/2},t);t||r||n?this._nodeElements.push(u.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?o+l/2.5:o+l/2,x:p+s/2,key:""+c+this.styleClassNames.rectText},e,f)):this._nodeElements.push(u.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:o+l/1.6,x:p+s/2,key:""+c+this.styleClassNames.rectText},e))},e.prototype.createPathLink=function(e,t,n,r,i,o,a,s,l){return i?"M"+e+","+(t+a+s/2)+" V"+(t+5*s)+"\n H"+(e-o/2)+" H"+(e+o/2):"M"+(n-o/2)+","+(r-s)+" H"+(l+o/2)+" M"+e+","+(r-s)+"\n V"+(t+a+s/2)},e.prototype.addLinktoSVG=function(e,t,n,r,i,o,a,s,l,c){void 0===c&&(c=0),this._linkElements.push(u.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,i,o,a,s,l,c),key:""+e+this.styleClassNames.link}))},e}()),bm=A(function(e){function t(t){var n,r=e.call(this,t)||this;return r._nodeElements=[],r._linkElements=[],r._margin={top:30,right:20,bottom:30,left:50},r._width=r.props.width||1500,r._height=r.props.height||700,r._treeData=r.props.treeData,r._composition=null===(n=r.props)||void 0===n?void 0:n.composition,r._treeTraversal=r.props.treeTraversal,r.state={_width:r._width,_height:r._height},r}return o(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=ym(r,{theme:t,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},t.prototype.componentDidUpdate=function(e){if(e.layoutWidth!==this.props.layoutWidth){var t=Mc("text"),n=Mc("rect"),r=Mc("path");0===this._nodeElements.length&&0===this._linkElements.length&&(t.remove(),n.remove(),r.remove()),this.createTreeChart()}},t.prototype.createTreeChart=function(){var e=[],t=[],n=new xm(this._treeData,this._composition,this._classNames,e,t,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=e,this._linkElements=t},t.prototype.render=function(){var e;return u.createElement(Lp,null,u.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},u.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},u.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),u.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},t}(u.Component),(function(e){return{root:[e.theme.spacing,"ms-TreeChart",e.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:"white",padding:"10px",rx:"2px"},rectText:a({fill:"black"},e.theme.fonts.large),rectSubText:a({fill:"#484644"},e.theme.fonts.medium),rectBodyText:a({fill:"#808080"},e.theme.fonts.xSmall),rectMetricText:a({fill:"#000000"},e.theme.fonts.xLarge)}}));!function(e){e[e.long=1]="long",e[e.compact=0]="compact"}(mm||(mm={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(vm||(vm={})),Object(r.a)("@uifabric/charting","4.23.20")},8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={},i=void 0;try{i=window}catch(e){}function o(e,t){if(void 0!==i){var n=i.__packages__=i.__packages__||{};if(!n[e]||!r[e])r[e]=t,(n[e]=n[e]||[]).push(t)}}o("@uifabric/set-version","6.0.0")}});
|
|
17
17
|
//# sourceMappingURL=react-charting.min.js.map
|