@fluentui/react-charting 4.23.12 → 4.23.13
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.
|
@@ -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 c=n(0);function u(){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 c=a.subComponentStyles;for(var d in c)c.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(c[d]):r[d]=[c[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 u.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=c.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function S(e,t){var n,r=(n=c.useState(0)[1],function(){return n((function(e){return++e}))}),i=c.useContext(C).customizations,o=i.inCustomizerContext;return c.useEffect((function(){return o||b.observe(r),function(){o||b.unobserve(r)}}),[o]),b.getSettings(e,t,i)}var E=["theme","styles"];function L(e,t,n,r,i){var o=(r=r||{scope:"",fields:void 0}).scope,l=r.fields,d=void 0===l?E:l,h=c.forwardRef((function(r,i){var l=c.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?u.apply(void 0,r):{}}(e,t,p,r.styles)};v.__cachedInputs__=[t,p,r.styles],v.__noStyleOverride__=!p&&!r.styles,l.current=v}return c.createElement(e,a({ref:i},f,g,r,{styles:l.current}))}));h.displayName="Styled"+(e.displayName||e.name);var p=i?c.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var A,k=0,w=1,D=2,T="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),M={};try{M=window}catch(Ir){}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:w,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._keyToClassName=this._config.classNameCache||{}}return e.getInstance=function(){var t;if(!(A=M.__stylesheet__)||A._lastStyleElement&&A._lastStyleElement.ownerDocument!==document){var n=(null===(t=M)||void 0===t?void 0:t.FabricConfig)||{};A=M.__stylesheet__=new e(n.mergeStyles)}return A},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!==k?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case w:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case D: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");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var r=this._findPlaceholderStyleTag();r?e.insertBefore(t,r.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function I(){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 N(e){P!==e&&(P=e)}function H(){return void 0===P&&(P="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),P}function O(){return{rtl:H()}}P=H();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 z,U=["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=U.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]=""+r+a}}var j="left",q="right",X=((z={})[j]=q,z[q]=j,z),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 c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&J(n,t,h,d[h])}else"object"==typeof u?null!==u&&J(n,t,c,u):void 0!==u&&("margin"===c||"padding"===c?te(i,c,u):i[c]=u)}}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,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,ie(e,r[u]))}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 c=a[s],u=(c=c.replace(/&/g,re("."+e.className,t)))+"{"+l+"}"+(0===c.indexOf("@")?"}":"");n.insertRule(u)}}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=u.apply(void 0,e),a=[];for(var s in o)if(o.hasOwnProperty(s)){if("subComponentStyles"===s){i.subComponentStyles=o.subComponentStyles||{};continue}var l=I(o[s]),c=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]=c.concat([f.className]).join(" "));else i[s]=c.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,ce=13,ue=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 Le(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");N(Ee=e)}(Ee="1"===t);var n=be();void 0===Ee&&n&&N(Ee="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!Ee}var Ae=0,ke=F.getInstance();ke&&ke.onReset&&ke.onReset((function(){return Ae++}));function we(e){void 0===e&&(e={});var t=new Map,n=0,r=0,i=Ae;return function(o,a){var s,l;if(void 0===a&&(a={}),e.useStaticStyles&&"function"==typeof o&&o.__noStyleOverride__)return o(a);r++;var c=t,u=a.theme,d=u&&void 0!==u.rtl?u.rtl:Le(),h=e.disableCaching;(i!==Ae&&(i=Ae,t=new Map,n=0),e.disableCaching||(c=Te(t,o),c=Te(c,a)),!h&&c.__retval__||(c.__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 c.__retval__}}function De(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=De(e,r[n])}else e=De(e,t);else if("object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e=De(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(Ie),Pe=!0}return(void 0===e?"id__":e)+Me.__currentId__++}function Ie(e){void 0===e&&(e=0),Me.__currentId__=e}function Ne(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 He(e,t){var n=Ne(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,ze=4,Ue=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&&(ut(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 c=nt(e,t.lastElementChild,!0,!0,!0,o,a,s);if(c){if(s&&ot(c,!0)||!s)return c;var u=nt(e,c.previousElementSibling,!0,!0,!0,o,a,s);if(u)return u;for(var d=c.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 c=rt(e,t.firstElementChild,!0,!0,!1,o,a,s);if(c)return c}if(t===e)return null;var u=rt(e,t.nextElementSibling,!0,!0,!1,o,a,s);return u||(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 ct=void 0;function ut(e){if(e){if(ct)return void(ct=e);ct=e;var t=p(e);t&&t.requestAnimationFrame((function(){var e=ct;ct=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,c=0,u=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-c,p=s?a-h:a;return h>=a&&(!t||s)?(c=n,u&&(r.clearTimeout(u),u=null),i=e.apply(r._parent,o)):null===u&&l&&(u=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,c=!0,u=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=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!==u&&(f>=u&&p?v=!0:a=Math.min(a,u-f)),i>=s||v||n?g(t):null!==p&&e||!c||(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 c=l[s];n[c]=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 Lt(){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 At(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function kt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return wt(e,O())}function wt(e,t){var n=I(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={}));kt({overflow:"hidden !important"});function Dt(){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 It=((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[ze]=Ft(ft.bottom,ft.left),Mt[Ue]=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 Nt(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function Ht(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 zt(e,t,n){return Rt(n,Ot(e,n)-Ot(t,n))}function Ut(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),Ut(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,c={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};o||a||(c=function(e,t,n,r,i){void 0===i&&(i=0);var o=[ft.left,ft.right,ft.bottom,ft.top];Le()&&(o[0]*=-1,o[1]*=-1);for(var a=e,s=r.targetEdge,l=r.alignmentEdge,c=0;c<4;c++){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 u=Ht(e,n);if(l){if(c.alignmentEdge&&u.indexOf(-1*c.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}}(c,t,i,a);if(Nt(d.elementRectangle,n))return d;c=Xt(Ht(d.elementRectangle,n),c,n)}}else c=Xt(u,c,n);return c}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 Ut(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 Ut(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(zt(e,n,t))>Math.abs(zt(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({},It[e]);return Le()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?It[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 Nt(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]]=zt(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=Ut(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=It[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(!Nt(n,e))for(var c=0,u=Ht(n,e);c<u.length;c++){var d=u[c];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 cn(e,t,n,r,i){return{elementPosition:function(e,t,n,r,i,o,a){var s={},l=on(t),c=o?n:-1*n,u=ft[c],d=i||Gt(n).positiveEdge;return a||(d=$t(e,d,r)),s[u]=zt(e,l,c),s[ft[d]]=zt(e,l,d),s}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,i),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function un(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 c=e.bounds?an(e.bounds):new Pt(0,window.innerWidth-Dt(),0,window.innerHeight),u=ln(l,n,c,r),d=nn(u,rn(o,u),c);return a(a({},cn(u,t,c,e.coverTarget,i)),{beakPosition:d})}function dn(e,t,n,r){return function(e,t,n,r){return un(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=c.createRef(),n._disposables=[],n._onKeyDown=function(e){switch(e.which){case ue: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(At(this._root.current,"focus",this._onFocus,!0),At(this._root.current,"blur",this._onBlur,!0));var e=p(this._root.current);e&&this._disposables.push(At(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 c.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}(c.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),Ln=Gn(40),An=Gn(400),kn=$n(10),wn=$n(20),Dn=$n(-10),Tn=$n(-20),Mn=Qn(10),Pn=Qn(20),Fn=Qn(40),In=Qn(400),Nn=Qn(-10),Hn=Qn(-20),On=Qn(-40),Bn=Qn(-400),Vn=Jn(-10),Rn=Jn(-20),Wn=Jn(10),zn=Jn(20),Un=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=kt(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+","+Ln,"0.367s",gn),slideLeftIn400:Zn(vn+","+An,"0.367s",gn),slideUpIn10:Zn(vn+","+kn,"0.367s",gn),slideUpIn20:Zn(vn+","+wn,"0.367s",gn),slideDownIn10:Zn(vn+","+Dn,"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+","+In,"0.367s",gn),slideLeftOut10:Zn(_n+","+Nn,"0.367s",gn),slideLeftOut20:Zn(_n+","+Hn,"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+","+zn,"0.367s",gn),scaleUpIn100:Zn(vn+","+Un,"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 cr;function ur(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,c=void 0===l?"relative":l,u=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:c,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:cr.FocusStyle,selectors:(r={},r[sr]=u,r)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(cr||(cr={}));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 c=0;c<r.length;c++){var u=br(r[c]);l.map.has(u)||l.map.set(u,Cr()),l=l.map.get(u)}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 Lr,Ar=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)"}(Lr||(Lr={}));var kr={elevation4:Lr.depth4,elevation8:Lr.depth8,elevation16:Lr.depth16,elevation64:Lr.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};var wr,Dr="'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,Ir,Nr,Hr,Or=(Pr=function(e){if(void 0===e&&(e="localStorage"),void 0===wr){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&&(wr=n),void 0===wr&&t&&(wr=t.documentElement.getAttribute("lang")),void 0===wr&&(wr="en")}return wr}("sessionStorage"),Fr=function(e){for(var t in Tr)if(Tr.hasOwnProperty(t)&&e&&0===t.indexOf(e))return Tr[t];return Dr}(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 zr(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}(Ur(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 Ur(e,t,n,r,i){var o,s,l;void 0===i&&(i=!1);var c={},u=e||{},d=u.white,h=u.black,p=u.themePrimary,f=u.themeDark,g=u.themeDarker,m=u.themeDarkAlt,v=u.themeLighter,_=u.neutralLight,y=u.neutralLighter,x=u.neutralDark,b=u.neutralQuaternary,C=u.neutralQuaternaryAlt,S=u.neutralPrimary,E=u.neutralSecondary,L=u.neutralSecondaryAlt,A=u.neutralTertiary,k=u.neutralTertiaryAlt,w=u.neutralLighterAlt,D=u.accent;return d&&(c.bodyBackground=d,c.bodyFrameBackground=d,c.accentButtonText=d,c.buttonBackground=d,c.primaryButtonText=d,c.primaryButtonTextHovered=d,c.primaryButtonTextPressed=d,c.inputBackground=d,c.inputForegroundChecked=d,c.listBackground=d,c.menuBackground=d,c.cardStandoutBackground=d),h&&(c.bodyTextChecked=h,c.buttonTextCheckedHovered=h),p&&(c.link=p,c.primaryButtonBackground=p,c.inputBackgroundChecked=p,c.inputIcon=p,c.inputFocusBorderAlt=p,c.menuIcon=p,c.menuHeader=p,c.accentButtonBackground=p),f&&(c.primaryButtonBackgroundPressed=f,c.inputBackgroundCheckedHovered=f,c.inputIconHovered=f),g&&(c.linkHovered=g),m&&(c.primaryButtonBackgroundHovered=m),v&&(c.inputPlaceholderBackgroundChecked=v),_&&(c.bodyBackgroundChecked=_,c.bodyFrameDivider=_,c.bodyDivider=_,c.variantBorder=_,c.buttonBackgroundCheckedHovered=_,c.buttonBackgroundPressed=_,c.listItemBackgroundChecked=_,c.listHeaderBackgroundPressed=_,c.menuItemBackgroundPressed=_,c.menuItemBackgroundChecked=_),y&&(c.bodyBackgroundHovered=y,c.buttonBackgroundHovered=y,c.buttonBackgroundDisabled=y,c.buttonBorderDisabled=y,c.primaryButtonBackgroundDisabled=y,c.disabledBackground=y,c.listItemBackgroundHovered=y,c.listHeaderBackgroundHovered=y,c.menuItemBackgroundHovered=y),b&&(c.primaryButtonTextDisabled=b,c.disabledSubtext=b),C&&(c.listItemBackgroundCheckedHovered=C),A&&(c.disabledBodyText=A,c.variantBorderHovered=(null===(o=n)||void 0===o?void 0:o.variantBorderHovered)||A,c.buttonTextDisabled=A,c.inputIconDisabled=A,c.disabledText=A),S&&(c.bodyText=S,c.actionLink=S,c.buttonText=S,c.inputBorderHovered=S,c.inputText=S,c.listText=S,c.menuItemText=S),w&&(c.bodyStandoutBackground=w,c.defaultStateBackground=w),x&&(c.actionLinkHovered=x,c.buttonTextHovered=x,c.buttonTextChecked=x,c.buttonTextPressed=x,c.inputTextHovered=x,c.menuItemTextHovered=x),E&&(c.bodySubtext=E,c.focusBorder=E,c.inputBorder=E,c.smallInputBorder=E,c.inputPlaceholderText=E),L&&(c.buttonBorder=L),k&&(c.disabledBodySubtext=k,c.disabledBorder=k,c.buttonBackgroundChecked=k,c.menuDivider=k),D&&(c.accentButtonBackground=D),(null===(s=t)||void 0===s?void 0:s.elevation4)&&(c.cardShadow=t.elevation4),!r&&(null===(l=t)||void 0===l?void 0:l.elevation8)?c.cardShadowHovered=t.elevation8:c.variantBorderHovered&&(c.cardShadowHovered="0 0 1px "+c.variantBorderHovered),c=a(a({},c),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!=(Hr=null===(Nr=null===(Ir=p())||void 0===Ir?void 0:Ir.FabricConfig)||void 0===Nr?void 0:Nr.fontBaseUrl)?Hr:"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:Ur(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 c=l[s];a.fonts[c]=Rr(a.fonts[c],t.defaultFontStyle,null===(o=null===(i=t)||void 0===i?void 0:i.fonts)||void 0===o?void 0:o[c])}return t.stylesheets&&(a.stylesheets=(e.stylesheets||[]).concat(t.stylesheets)),a}({palette:ar,effects:kr,fonts:Or,spacing:Yr,isInverted:n,disableGlobalClassNames:!1,semanticColors:zr(ar,kr,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(Ar.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],c=i+l.charAt(0).toUpperCase()+l.slice(1),u=o[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),t[c]=u}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.24.0"),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=we({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=c.createRef(),n._calloutElement=c.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,u=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=this._getTarget();var E=this.state.positions,L=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,A=x&&L&&x<L?x:L,k=_,w=u&&!!e;this._classNames=$r(n,{theme:this.props.theme,className:l,overflowYHidden:k,calloutWidth:p,positions:E,beakWidth:h,backgroundColor:y,calloutMinWidth:g,calloutMaxWidth:f});var D=a(a(a({},r),{maxHeight:A}),k&&{overflowY:"hidden"}),T=this.props.hidden?{visibility:"hidden"}:void 0;return c.createElement("div",{ref:this._hostElement,className:this._classNames.container,style:T},c.createElement("div",a({},Et(this.props,St,ti),{className:Lt(this._classNames.root,E&&E.targetEdge&&Gr[E.targetEdge]),style:E?E.elementPosition:ei,tabIndex:-1,ref:this._calloutElement}),w&&c.createElement("div",{className:this._classNames.beak,style:this._getBeakPosition()}),w&&c.createElement("div",{className:this._classNames.beakCurtain}),c.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:D,onMouseDown:this._mouseDownOnPopup,onMouseUp:this._mouseUpOnPopup}),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(At(e._targetWindow,"scroll",e._dismissOnScroll,!0),At(e._targetWindow,"resize",e._dismissOnResize,!0),At(e._targetWindow.document.documentElement,"focus",e._dismissOnLostFocus,!0),At(e._targetWindow.document.documentElement,"click",e._dismissOnLostFocus,!0),At(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 un(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 c=l[s];r&&c.left<=r&&c.right>=r&&i&&c.top<=i&&c.bottom>=i&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.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-Dt(),0,window.innerHeight),c=s.left||s.x,u=s.top||s.y,d=s.right||c,h=s.bottom||u;return sn(o.stopPropagation?new Pt(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==c&&void 0!==u?new Pt(c,d,u,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}(c.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=L(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,c=e.calloutMinWidth,u=Er(ii,n),d=n.semanticColors,h=n.effects;return{container:[u.container,{position:"relative"}],root:[u.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},!!c&&{minWidth:c}],beak:[u.beak,{position:"absolute",backgroundColor:d.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},ri(a),s&&{backgroundColor:s}],beakCurtain:[u.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:d.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[u.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={}),(ci(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={}),(ci(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 ci(e){return"function"==typeof e}var ui,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 c.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)),c.createElement(C.Provider,{value:r},e.props.children)}))},t}(c.Component),hi=((ui={})[ve]=1,ui[ye]=1,ui[me]=1,ui[_e]=1,ui[ge]=1,ui[fe]=1,ui[le]=1,ui[he]=1,ui[pe]=1,ui);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,c.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){ur(!1,e.target)}function vi(e){"mouse"!==e.pointerType&&ur(!1,e.target)}function _i(e){var t;t=e.which,hi[t]&&ur(!0,e.target)}var yi=we(),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=c.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=Le(e)?"rtl":"ltr",r=Le()?"rtl":"ltr",i=t||n;return{rootDir:i!==n||i!==r?i:t,needsTheme:i!==n}}(r,i),u=l.rootDir,d=l.needsTheme,h=c.createElement(n,a({dir:u},s,{className:o.root,ref:this._rootElement}));return d&&(h=c.createElement(di,{settings:{theme:xi(r,"rtl"===i)}},h)),c.createElement(c.Fragment,null,h,c.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}(c.Component),Ci={fontFamily:"inherit"},Si={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ei=L(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 Li(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 Ai,ki={},wi={};var Di,Ti=we(),Mi=function(e){function t(t){var n=e.call(this,t)||this;return n._rootRef=c.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"),Li(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){ki[e]||(ki[e]=[]),ki[e].push(t);var n=wi[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 c.createElement("span",{className:"ms-layer",ref:this._rootRef},e&&ai.createPortal(c.createElement(Ei,a({},!n&&function(){Di||(Di={},["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 Di[e]=Pi})));return Di}(),{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=ki[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete ki[e])}var i=wi[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&&Li(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=wi[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 c=Ai;return null!=(o=c?null===(r=s)||void 0===r?void 0:r.querySelector(c):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 c.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=u(s.styles,l.styles);t._styleCache.default=s.styles,t._styleCache.component=l.styles,t._styleCache.merged=d}return c.createElement(e,a({},s,l,{styles:t._styleCache.merged}))}return c.createElement(e,a({},s,l))}))},s.prototype._onSettingChanged=function(){this.forceUpdate()},s}(c.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)}(c.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"},Ii=L(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:cr.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"]}),Ni=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=c.createElement(oi,a({},n));return this.props.doNotLayer?r:c.createElement(Ii,a({},t),r)},t}(c.Component),Hi=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 zi(){return!this.__axis}function Ui(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l=1===e||4===e?-1:1,c=4===e||2===e?"x":"y",u=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"),L=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(c+"2",l*o)),L=L.merge(S.append("text").attr("fill","#000").attr(c,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),L=L.transition(d),C=C.transition(d).attr("opacity",1e-6).attr("transform",(function(e){return isFinite(e=_(e))?u(e):this.getAttribute("transform")})),S.attr("opacity",1e-6).attr("transform",(function(e){var t=this.parentNode.__axis;return u(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 u(_(e))})),E.attr(c+"2",l*o),L.attr(c,l*f).text(p),y.filter(zi).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=Hi.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Hi.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Hi.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 Ui(2,e)}function ji(e){return Ui(3,e)}function qi(e){return Ui(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=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},eo=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Ji(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 to=eo(Ji),no=to.right,ro=(to.left,no);var io=Array.prototype,oo=(io.slice,io.map,function(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}),ao=Math.sqrt(50),so=Math.sqrt(10),lo=Math.sqrt(2),co=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=uo(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o};function uo(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>=ao?10:o>=so?5:o>=lo?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ao?10:o>=so?5:o>=lo?2:1)}function ho(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>=ao?i*=10:o>=so?i*=5:o>=lo&&(i*=2),t<e?-i:i}function po(){}function fo(e,t){var n=new po;if(e instanceof po)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}po.prototype=fo.prototype={constructor:po,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var go=fo;function mo(){}var vo=go.prototype;function _o(e,t){var n=new mo;if(e instanceof mo)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}mo.prototype=_o.prototype={constructor:mo,has:vo.has,add:function(e){return this["$"+(e+="")]=e,this},remove:vo.remove,clear:vo.clear,values:vo.keys,size:vo.size,empty:vo.empty,each:vo.each};var yo=Array.prototype,xo=yo.map,bo=yo.slice,Co={name:"implicit"};function So(e){var t=go(),n=[],r=Co;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==Co)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return e=null==e?[]:bo.call(e),i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=go();for(var r,o,a=-1,s=e.length;++a<s;)t.has(o=(r=e[a])+"")||t.set(o,n.push(r));return i},i.range=function(t){return arguments.length?(e=bo.call(t),i):e.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return So().domain(n).range(e).unknown(r)},i}function Eo(){var e,t,n=So().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,l=0,c=.5;function u(){var n=r().length,u=o[1]<o[0],d=o[u-0],h=o[1-u];e=(h-d)/Math.max(1,n-s+2*l),a&&(e=Math.floor(e)),d+=(h-d-e*(n-s))*c,t=e*(1-s),a&&(d=Math.round(d),t=Math.round(t));var p=oo(n).map((function(t){return d+e*t}));return i(u?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),u()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],u()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,u()):a},n.padding=function(e){return arguments.length?(s=l=Math.max(0,Math.min(1,e)),u()):s},n.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),u()):s},n.paddingOuter=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),u()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),u()):c},n.copy=function(){return Eo().domain(r()).range(o).round(a).paddingInner(s).paddingOuter(l).align(c)},u()}var Lo=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},Ao=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function ko(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function wo(){}var Do="\\s*([+-]?\\d+)\\s*",To="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Po=/^#([0-9a-f]{3,8})$/,Fo=new RegExp("^rgb\\("+[Do,Do,Do]+"\\)$"),Io=new RegExp("^rgb\\("+[Mo,Mo,Mo]+"\\)$"),No=new RegExp("^rgba\\("+[Do,Do,Do,To]+"\\)$"),Ho=new RegExp("^rgba\\("+[Mo,Mo,Mo,To]+"\\)$"),Oo=new RegExp("^hsl\\("+[To,Mo,Mo]+"\\)$"),Bo=new RegExp("^hsla\\("+[To,Mo,Mo,To]+"\\)$"),Vo={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 Ro(){return this.rgb().formatHex()}function Wo(){return this.rgb().formatRgb()}function zo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Po.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Uo(t):3===n?new Xo(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new Xo(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new Xo(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=Fo.exec(e))?new Xo(t[1],t[2],t[3],1):(t=Io.exec(e))?new Xo(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=No.exec(e))?Yo(t[1],t[2],t[3],t[4]):(t=Ho.exec(e))?Yo(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oo.exec(e))?$o(t[1],t[2]/100,t[3]/100,1):(t=Bo.exec(e))?$o(t[1],t[2]/100,t[3]/100,t[4]):Vo.hasOwnProperty(e)?Uo(Vo[e]):"transparent"===e?new Xo(NaN,NaN,NaN,0):null}function Uo(e){return new Xo(e>>16&255,e>>8&255,255&e,1)}function Yo(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xo(e,t,n,r)}function jo(e){return e instanceof wo||(e=zo(e)),e?new Xo((e=e.rgb()).r,e.g,e.b,e.opacity):new Xo}function qo(e,t,n,r){return 1===arguments.length?jo(e):new Xo(e,t,n,null==r?1:r)}function Xo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ko(){return"#"+Go(this.r)+Go(this.g)+Go(this.b)}function Zo(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Go(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function $o(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Jo(e,t,n,r)}function Qo(e){if(e instanceof Jo)return new Jo(e.h,e.s,e.l,e.opacity);if(e instanceof wo||(e=zo(e)),!e)return new Jo;if(e instanceof Jo)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 Jo(a,s,l,e.opacity)}function Jo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ea(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 ta(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}Ao(wo,zo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ro,formatHex:Ro,formatHsl:function(){return Qo(this).formatHsl()},formatRgb:Wo,toString:Wo}),Ao(Xo,qo,ko(wo,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Xo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Xo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ko,formatHex:Ko,formatRgb:Zo,toString:Zo})),Ao(Jo,(function(e,t,n,r){return 1===arguments.length?Qo(e):new Jo(e,t,n,null==r?1:r)}),ko(wo,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Jo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Jo(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Xo(ea(e>=240?e-240:e+120,i,r),ea(e,i,r),ea(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var na=function(e){return function(){return e}};function ra(e,t){return function(n){return e+n*t}}function ia(e){return 1==(e=+e)?oa: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):na(isNaN(t)?n:t)}}function oa(e,t){var n=t-e;return n?ra(e,n):na(isNaN(e)?t:e)}var aa=function e(t){var n=ia(t);function r(e,t){var r=n((e=qo(e)).r,(t=qo(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=oa(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 sa(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=qo(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+""}}}sa((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 ta((n-r/t)*t,a,i,o,s)}})),sa((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 ta((n-r/t)*t,i,o,a,s)}}));var la=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 ca(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ua(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]=ma(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 da=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},ha=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]=ma(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},pa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fa=new RegExp(pa.source,"g");var ga=function(e,t){var n,r,i,o=pa.lastIndex=fa.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=pa.exec(e))&&(r=fa.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:Lo(n,r)})),o=fa.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("")})},ma=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?na(t):("number"===r?Lo:"string"===r?(n=zo(t))?(t=n,aa):ga:t instanceof zo?aa:t instanceof Date?da:ca(t)?la:Array.isArray(t)?ua:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?ha:Lo)(e,t)},va=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},_a=function(e){return function(){return e}},ya=function(e){return+e},xa=[0,1];function ba(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:_a(t)}function Ca(e,t,n,r){var i=e[0],o=e[1],a=t[0],s=t[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(e){return a(i(e))}}function Sa(e,t,n,r){var i=Math.min(e.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=n(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var n=ro(e,t,1,i)-1;return a[n](o[n](t))}}function Ea(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function La(e,t){var n,r,i,o=xa,a=xa,s=ma,l=!1;function c(){return n=Math.min(o.length,a.length)>2?Sa:Ca,r=i=null,u}function u(t){return(r||(r=n(o,a,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return u.invert=function(e){return(i||(i=n(a,o,ba,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},u.domain=function(e){return arguments.length?(o=xo.call(e,ya),c()):o.slice()},u.range=function(e){return arguments.length?(a=bo.call(e),c()):a.slice()},u.rangeRound=function(e){return a=bo.call(e),s=va,c()},u.clamp=function(e){return arguments.length?(l=!!e,c()):l},u.interpolate=function(e){return arguments.length?(s=e,c()):s},c()}var Aa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ka(e){if(!(t=Aa.exec(e)))throw new Error("invalid format: "+e);var t;return new wa({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 wa(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+""}ka.prototype=wa.prototype,wa.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 Da,Ta,Ma,Pa,Fa=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)]},Ia=function(e){return(e=Fa(Math.abs(e)))?e[1]:NaN},Na=function(e,t){var n=Fa(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")},Ha={"%":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 Na(100*e,t)},r:Na,s:function(e,t){var n=Fa(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Da=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")+Fa(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)}},Oa=function(e){return e},Ba=Array.prototype.map,Va=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Ta=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Oa:(t=Ba.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?Oa:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Ba.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=ka(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"):Ha[_]||(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=Ha[_],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)?u: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:c:"-"===d||"("===d?"":d)+h,S=("s"===_?Va[8+Da/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 L=h.length+e.length+S.length,A=L<f?new Array(f-L+1).join(t):"";switch(g&&p&&(e=r(A+e,A.length?f-S.length:1/0),A=""),n){case"<":e=h+e+S+A;break;case"=":e=h+A+e+S;break;case"^":e=A.slice(0,L=A.length>>1)+h+e+S+A.slice(L);break;default:e=A+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=ka(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Ia(t)/3))),i=Math.pow(10,-r),o=Va[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ma=Ta.format,Pa=Ta.formatPrefix;var Ra=function(e,t,n){var r,i=e[0],o=e[e.length-1],a=ho(i,o,null==t?10:t);switch((n=ka(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ia(t)/3)))-Ia(Math.abs(e)))}(a,s))||(n.precision=r),Pa(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ia(t)-Ia(e))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(e){return Math.max(0,-Ia(Math.abs(e)))}(a))||(n.precision=r-2*("%"===n.type))}return Ma(n)};function Wa(e){var t=e.domain;return e.ticks=function(e){var n=t();return co(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return Ra(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=uo(s,l,n))>0?r=uo(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=uo(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function za(){var e=La(ba,Lo);return e.copy=function(){return Ea(e,za())},Wa(e)}var Ua=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};var Ya=new Date,ja=new Date;function qa(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 qa((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 Ya.setTime(+t),ja.setTime(+r),e(Ya),e(ja),Math.floor(n(Ya,ja))},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 Xa=qa((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Xa.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?qa((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Xa:null};var Ka=Xa,Za=(Xa.range,qa((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()}))),Ga=Za,$a=(Za.range,qa((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()}))),Qa=$a,Ja=($a.range,qa((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()}))),es=Ja,ts=(Ja.range,qa((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}))),ns=ts;ts.range;function rs(e){return qa((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 is=rs(0),os=rs(1),as=rs(2),ss=rs(3),ls=rs(4),cs=rs(5),us=rs(6),ds=(is.range,os.range,as.range,ss.range,ls.range,cs.range,us.range,qa((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()}))),hs=ds,ps=(ds.range,qa((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()})));ps.every=function(e){return isFinite(e=Math.floor(e))&&e>0?qa((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 fs=ps,gs=(ps.range,qa((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()}))),ms=(gs.range,qa((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()}))),vs=(ms.range,qa((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 qa((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),Ls=ys(5),As=ys(6),ks=(xs.range,bs.range,Cs.range,Ss.range,Es.range,Ls.range,As.range,qa((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()}))),ws=(ks.range,qa((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()})));ws.every=function(e){return isFinite(e=Math.floor(e))&&e>0?qa((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 Ds=ws;ws.range;function Ts(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 Ms(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 Ps(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var Fs,Is,Ns,Hs,Os={"-":"",_:" ",0:"0"},Bs=/^\s*\d+/,Vs=/^%/,Rs=/[\\^$*+?|[\]().{}]/g;function Ws(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 zs(e){return e.replace(Rs,"\\$&")}function Us(e){return new RegExp("^(?:"+e.map(zs).join("|")+")","i")}function Ys(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function js(e,t,n){var r=Bs.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function qs(e,t,n){var r=Bs.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Xs(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ks(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Zs(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Gs(e,t,n){var r=Bs.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $s(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Qs(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 Js(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function el(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tl(e,t,n){var r=Bs.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function nl(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function rl(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function il(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ol(e,t,n){var r=Bs.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function al(e,t,n){var r=Bs.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function sl(e,t,n){var r=Vs.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ll(e,t,n){var r=Bs.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function cl(e,t,n){var r=Bs.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function ul(e,t){return Ws(e.getDate(),t,2)}function dl(e,t){return Ws(e.getHours(),t,2)}function hl(e,t){return Ws(e.getHours()%12||12,t,2)}function pl(e,t){return Ws(1+ns.count(fs(e),e),t,3)}function fl(e,t){return Ws(e.getMilliseconds(),t,3)}function gl(e,t){return fl(e,t)+"000"}function ml(e,t){return Ws(e.getMonth()+1,t,2)}function vl(e,t){return Ws(e.getMinutes(),t,2)}function _l(e,t){return Ws(e.getSeconds(),t,2)}function yl(e){var t=e.getDay();return 0===t?7:t}function xl(e,t){return Ws(is.count(fs(e),e),t,2)}function bl(e,t){var n=e.getDay();return e=n>=4||0===n?ls(e):ls.ceil(e),Ws(ls.count(fs(e),e)+(4===fs(e).getDay()),t,2)}function Cl(e){return e.getDay()}function Sl(e,t){return Ws(os.count(fs(e),e),t,2)}function El(e,t){return Ws(e.getFullYear()%100,t,2)}function Ll(e,t){return Ws(e.getFullYear()%1e4,t,4)}function Al(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ws(t/60|0,"0",2)+Ws(t%60,"0",2)}function kl(e,t){return Ws(e.getUTCDate(),t,2)}function wl(e,t){return Ws(e.getUTCHours(),t,2)}function Dl(e,t){return Ws(e.getUTCHours()%12||12,t,2)}function Tl(e,t){return Ws(1+_s.count(Ds(e),e),t,3)}function Ml(e,t){return Ws(e.getUTCMilliseconds(),t,3)}function Pl(e,t){return Ml(e,t)+"000"}function Fl(e,t){return Ws(e.getUTCMonth()+1,t,2)}function Il(e,t){return Ws(e.getUTCMinutes(),t,2)}function Nl(e,t){return Ws(e.getUTCSeconds(),t,2)}function Hl(e){var t=e.getUTCDay();return 0===t?7:t}function Ol(e,t){return Ws(xs.count(Ds(e),e),t,2)}function Bl(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Es(e):Es.ceil(e),Ws(Es.count(Ds(e),e)+(4===Ds(e).getUTCDay()),t,2)}function Vl(e){return e.getUTCDay()}function Rl(e,t){return Ws(bs.count(Ds(e),e),t,2)}function Wl(e,t){return Ws(e.getUTCFullYear()%100,t,2)}function zl(e,t){return Ws(e.getUTCFullYear()%1e4,t,4)}function Ul(){return"+0000"}function Yl(){return"%"}function jl(e){return+e}function ql(e){return Math.floor(+e/1e3)}!function(e){Fs=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,c=Us(i),u=Ys(i),d=Us(o),h=Ys(o),p=Us(a),f=Ys(a),g=Us(s),m=Ys(s),v=Us(l),_=Ys(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:ul,e:ul,f:gl,H:dl,I:hl,j:pl,L:fl,m:ml,M:vl,p:function(e){return i[+(e.getHours()>=12)]},Q:jl,s:ql,S:_l,u:yl,U:xl,V:bl,w:Cl,W:Sl,x:null,X:null,y:El,Y:Ll,Z:Al,"%":Yl},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:kl,e:kl,f:Pl,H:wl,I:Dl,j:Tl,L:Ml,m:Fl,M:Il,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:jl,s:ql,S:Nl,u:Hl,U:Ol,V:Bl,w:Vl,W:Rl,x:null,X:null,y:Wl,Y:zl,Z:Ul,"%":Yl},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:el,e:el,f:al,H:nl,I:nl,j:tl,L:ol,m:Js,M:rl,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:ll,s:cl,S:il,u:qs,U:Xs,V:Ks,w:js,W:Zs,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:$s,Y:Gs,Z:Qs,"%":sl};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Os[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=Ps(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=Ms(Ps(o.y))).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=t(Ps(o.y))).getDay(),r=i>4||0===i?os.ceil(r):os(r),r=ns.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?Ms(Ps(o.y)).getUTCDay():t(Ps(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,Ms(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 Os?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+="",Ts);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,Ms);return t.toString=function(){return e},t}}}(e),Is=Fs.format,Fs.parse,Ns=Fs.utcFormat,Hs=Fs.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||Ns("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Hs("%Y-%m-%dT%H:%M:%S.%LZ");function Xl(e){return new Date(e)}function Kl(e){return e instanceof Date?+e:+new Date(+e)}function Zl(e,t,n,r,i,o,a,s,l){var c=La(ba,Lo),u=c.invert,d=c.domain,h=l(".%L"),p=l(":%S"),f=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),v=l("%b %d"),_=l("%B"),y=l("%Y"),x=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,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 b(s){return(a(s)<s?h:o(s)<s?p:i(s)<s?f:r(s)<s?g:t(s)<s?n(s)<s?m:v:e(s)<s?_:y)(s)}function C(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=eo((function(e){return e[2]})).right(x,o);a===x.length?(i=ho(n/31536e6,r/31536e6,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(ho(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(xo.call(e,Kl)):d().map(Xl)},c.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=C(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?b:l(t)},c.nice=function(e,t){var n=d();return(e=C(e,n[0],n[n.length-1],t))?d(Ua(n,e)):c},c.copy=function(){return Ea(c,Zl(e,t,n,r,i,o,a,s,l))},c}var Gl="http://www.w3.org/1999/xhtml",$l={svg:"http://www.w3.org/2000/svg",xhtml:Gl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ql=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),$l.hasOwnProperty(t)?{space:$l[t],local:e}:e};function Jl(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Gl&&t.documentElement.namespaceURI===Gl?t.createElement(e):t.createElementNS(n,e)}}function ec(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var tc=function(e){var t=Ql(e);return(t.local?ec:Jl)(t)};function nc(){}var rc=function(e){return null==e?nc:function(){return this.querySelector(e)}};function ic(){return[]}var oc=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var ac=document.documentElement;if(!ac.matches){var sc=ac.webkitMatchesSelector||ac.msMatchesSelector||ac.mozMatchesSelector||ac.oMatchesSelector;oc=function(e){return function(){return sc.call(this,e)}}}}var lc=oc,cc=function(e){return new Array(e.length)};function uc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}uc.prototype={constructor:uc,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 dc(e,t,n,r,i,o){for(var a,s=0,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new uc(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function hc(e,t,n,r,i,o,a){var s,l,c,u={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c="$"+a.call(l,l.__data__,s,t),c in u?i[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+a.call(e,o[s],s,o)])?(r[s]=l,l.__data__=o[s],u[c]=null):n[s]=new uc(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(i[s]=l)}function pc(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function fc(e){return function(){this.removeAttribute(e)}}function gc(e){return function(){this.removeAttributeNS(e.space,e.local)}}function mc(e,t){return function(){this.setAttribute(e,t)}}function vc(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function _c(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function yc(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 xc=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function bc(e){return function(){this.style.removeProperty(e)}}function Cc(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Sc(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ec(e,t){return e.style.getPropertyValue(t)||xc(e).getComputedStyle(e,null).getPropertyValue(t)}function Lc(e){return function(){delete this[e]}}function Ac(e,t){return function(){this[e]=t}}function kc(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function wc(e){return e.trim().split(/^|\s+/)}function Dc(e){return e.classList||new Tc(e)}function Tc(e){this._node=e,this._names=wc(e.getAttribute("class")||"")}function Mc(e,t){for(var n=Dc(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Pc(e,t){for(var n=Dc(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Fc(e){return function(){Mc(this,e)}}function Ic(e){return function(){Pc(this,e)}}function Nc(e,t){return function(){(t.apply(this,arguments)?Mc:Pc)(this,e)}}Tc.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 Hc(){this.textContent=""}function Oc(e){return function(){this.textContent=e}}function Bc(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Vc(){this.innerHTML=""}function Rc(e){return function(){this.innerHTML=e}}function Wc(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function zc(){this.nextSibling&&this.parentNode.appendChild(this)}function Uc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Yc(){return null}function jc(){var e=this.parentNode;e&&e.removeChild(this)}function qc(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Xc(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Kc={},Zc=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Kc={mouseenter:"mouseover",mouseleave:"mouseout"}));function Gc(e,t,n){return e=$c(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function $c(e,t,n){return function(r){var i=Zc;Zc=r;try{e.call(this,this.__data__,t,n)}finally{Zc=i}}}function Qc(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 Jc(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 eu(e,t,n){var r=Kc.hasOwnProperty(e.type)?Gc:$c;return function(i,o,a){var s,l=this.__on,c=r(t,o,a);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function tu(e,t,n){var r=xc(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 nu(e,t){return function(){return tu(this,e,t)}}function ru(e,t){return function(){return tu(this,e,t.apply(this,arguments))}}var iu=[null];function ou(e,t){this._groups=e,this._parents=t}function au(){return new ou([[document.documentElement]],iu)}ou.prototype=au.prototype={constructor:ou,select:function(e){"function"!=typeof e&&(e=rc(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,c=r[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new ou(r,this._parents)},selectAll:function(e){var t;"function"!=typeof e&&(e=null==(t=e)?ic: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],c=l.length,u=0;u<c;++u)(s=l[u])&&(i.push(e.call(s,s.__data__,u,l)),o.push(s));return new ou(i,o)},filter:function(e){"function"!=typeof e&&(e=lc(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]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new ou(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),u=-1,this.each((function(e){f[++u]=e})),f;var n,r=t?hc:dc,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),c=new Array(a),u=0;u<a;++u){var d=i[u],h=o[u],p=h.length,f=e.call(d,d&&d.__data__,u,i),g=f.length,m=l[u]=new Array(g),v=s[u]=new Array(g);r(d,h,m,v,c[u]=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 ou(s,i))._enter=l,s._exit=c,s},enter:function(){return new ou(this._enter||this._groups.map(cc),this._parents)},exit:function(){return new ou(this._exit||this._groups.map(cc),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,c=t[s],u=n[s],d=c.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new ou(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=pc);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,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new ou(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=Ql(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?gc:fc:"function"==typeof t?n.local?yc:_c:n.local?vc:mc)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?bc:"function"==typeof t?Sc:Cc)(e,t,null==n?"":n)):Ec(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Lc:"function"==typeof t?kc:Ac)(e,t)):this.node()[e]},classed:function(e,t){var n=wc(e+"");if(arguments.length<2){for(var r=Dc(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?Nc:t?Fc:Ic)(n,t))},text:function(e){return arguments.length?this.each(null==e?Hc:("function"==typeof e?Bc:Oc)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Vc:("function"==typeof e?Wc:Rc)(e)):this.node().innerHTML},raise:function(){return this.each(zc)},lower:function(){return this.each(Uc)},append:function(e){var t="function"==typeof e?e:tc(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:tc(e),r=null==t?Yc:"function"==typeof t?t:rc(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(jc)},clone:function(e){return this.select(e?Xc:qc)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Qc(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?eu:Jc,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,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];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?ru:nu)(e,t))}};var su=function(e){return"string"==typeof e?new ou([[document.querySelector(e)]],[document.documentElement]):new ou([[e]],iu)},lu=0;function cu(){this._="@"+(++lu).toString(36)}cu.prototype=function(){return new cu}.prototype={constructor:cu,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 uu,du,hu,pu,fu=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]},gu=function(e){return"string"==typeof e?new ou([document.querySelectorAll(e)],[document.documentElement]):new ou([null==e?[]:e],iu)};function mu(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,c=e.xAxisCount,u=void 0===c?6:c,d=e.xAxisElement,h=za().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]);i&&h.nice();var p=ji(h).tickSize(a).tickPadding(l).ticks(u).tickSizeOuter(0).tickFormat((function(e,n){var r="number"==typeof e?e:e.valueOf();return Du(r,t)}));return d&&su(d).call(p).selectAll("text").attr("aria-hidden","true"),h}function vu(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,c=void 0===l?6:l,u=Zl(fs,hs,is,ns,es,Qa,Ga,Ka,Is).domain([new Date(2e3,0,1),new Date(2e3,0,2)]).domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]),d=ji(u).tickSize(s).tickPadding(o).ticks(c);return t.tickValues&&d.tickValues(t.tickValues),t.tickFormat&&d.tickFormat(Is(t.tickFormat)),r&&su(r).call(d).selectAll("text").attr("aria-hidden","true"),u}function _u(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,c=e.yMinValue,u=void 0===c?0:c,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,L=i.startValue<u?0:u,A=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,L,x),k=za().domain([L,A[A.length-1]]).range([d-p.bottom,p.top+(b?C:0)]),w=(t?Yi(k):qi(k)).tickPadding(g).tickValues(A).tickSizeInner(-(h-p.left-p.right));return _?w.tickFormat(_):w.tickFormat(Ma(".2~s")),a&&su(a).call(w).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=A,k}!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"}(du||(du={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(hu||(hu={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(pu||(pu={}));function yu(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 xu(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var i=su("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 c=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(e){var t=u[e];su(t).on("mouseover",(function(t){i.style("opacity",.9),i.html(s[e]).style("left",Zc.pageX+"px").style("top",Zc.pageY-28+"px")})).on("mouseout",(function(e){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function bu(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 Cu(e,t,n,r,i,o,a,s){var c;if(o===hu.NumericAxis)switch(r){case du.AreaChart:case du.LineChart:c=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 du.VerticalStackedBarChart:c=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 du.VerticalBarChart:c=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:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(o===hu.DateAxis)switch(r){case du.AreaChart:case du.LineChart:c=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])),c=$i(l(i,[a])),u=t.left,d=n-t.right;return r?{dStartValue:c,dEndValue:s,rStartValue:u,rEndValue:d}:{dStartValue:s,dEndValue:c,rStartValue:u,rEndValue:d}}(e,t,n,i,s);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case du.VerticalStackedBarChart:case du.GroupedVerticalBarChart:case du.VerticalBarChart:case du.HeatMapChart:c=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:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return c}function Su(e,t){var n,r,i;switch(t){case du.AreaChart:case du.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 du.VerticalStackedBarChart:i=$i(r=e,(function(e){return e.y})),n={startValue:Qi(r,(function(e){return e.y})),endValue:i};break;case du.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 Eu,Lu,Au=function(e,t){if(t)switch(typeof e){case"string":return hu.StringAxis;case"number":return hu.NumericAxis;default:return hu.DateAxis}else switch(typeof e){case"string":return pu.StringAxis;case"number":return pu.NumericAxis;default:return pu.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"}(Eu||(Eu={})),function(e){e[e.dottedLine=0]="dottedLine"}(Lu||(Lu={}));var ku=((uu={})[Eu.circle]={widthRatio:1},uu[Eu.square]={widthRatio:1},uu[Eu.triangle]={widthRatio:1},uu[Eu.diamond]={widthRatio:1},uu[Eu.pyramid]={widthRatio:1},uu[Eu.hexagon]={widthRatio:2},uu[Eu.pentagon]={widthRatio:1.168},uu[Eu.octagon]={widthRatio:2.414},uu),wu=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}},Du=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},Tu=we(),Mu=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,u=e.culture;return this._classNames=Tu(o,{theme:a,color:t,XValue:r,isRatioPresent:!!s}),c.createElement("div",{className:this._classNames.calloutContentRoot},c.createElement("div",{className:this._classNames.calloutDateTimeContainer},c.createElement("div",{className:this._classNames.calloutContentX},r," ")),c.createElement("div",{className:this._classNames.calloutInfoContainer},c.createElement("div",{className:this._classNames.calloutBlockContainer},c.createElement("div",{className:this._classNames.calloutlegendText},Du(n,u)),c.createElement("div",{className:this._classNames.calloutContentY},Du(i,u))),!!s&&c.createElement("div",{className:this._classNames.ratio},c.createElement(c.Fragment,null,c.createElement("span",{className:this._classNames.numerator},Du(s[0],u)),"/",c.createElement("span",{className:this._classNames.denominator},Du(s[1],u))))),!!l&&c.createElement("div",{className:this._classNames.descriptionMessage},l))},t}(c.Component),Pu=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}]}},Fu=L(Mu,Pu),Iu=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 Nu(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 Hu(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Nu(e,e[n],t[n]))}(e,{componentDidMount:Ou,componentDidUpdate:Bu,componentWillUnmount:Vu})}function Ou(){Ru(this.props.componentRef,this)}function Bu(e){e.componentRef!==this.props.componentRef&&(Ru(e.componentRef,null),Ru(this.props.componentRef,this))}function Vu(){Ru(this.props.componentRef,null)}function Ru(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}var Wu,zu=1,Uu=2;!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(Wu||(Wu={}));var Yu;function ju(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 qu={},Xu=new Set,Ku=["text","number","password","email","tel","url","search"],Zu=function(e){function t(t){var n,r=e.call(this,t)||this;return r._root=c.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=Iu(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,c=n.shouldFocusInnerElementWhenReceivedFocus,u=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(c&&e.target===r._root.current){var p=u&&"function"==typeof u&&u(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 c=r._getFirstInnerZone();if(c){if(!c.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!==Wu.vertical&&(r._preventDefaultWhenHandled(e),r._moveFocusLeft(t)))break;return;case _e:if(i!==Wu.vertical&&(r._preventDefaultWhenHandled(e),r._moveFocusRight(t)))break;return;case ve:if(i!==Wu.horizontal&&(r._preventDefaultWhenHandled(e),r._moveFocusUp()))break;return;case ye:if(i!==Wu.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===zu||r.props.handleTabKey===Uu&&r._isElementInput(e.target)){var u=!1;if(r._processingTabKey=!0,i!==Wu.vertical&&r._shouldWrapFocus(r._activeElement,"data-no-horizontal-wrap"))u=(Le(t)?!e.shiftKey:e.shiftKey)?r._moveFocusLeft(t):r._moveFocusRight(t);else u=e.shiftKey?r._moveFocusUp():r._moveFocusDown();if(r._processingTabKey=!1,u)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 ce: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},Hu(r),r._id=Fe("FocusZone"),r._focusAlignment={left:0,top:0},r._processingTabKey=!1,r}return o(t,e),t.getOuterZones=function(){return Xu.size},t._onKeyDownCapture=function(e){e.which===le&&Xu.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(qu[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||(Xu.add(this),this._windowElement&&1===Xu.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 qu[this._id],this._isInnerZone||(Xu.delete(this),this._windowElement&&0===Xu.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,u=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 c.createElement(d,a({"aria-labelledby":s,"aria-describedby":o},u,i,{className:Lt((Yu||(Yu=kt({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Yu),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=qu[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 ju(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 qu[e.getAttribute("data-focuszone-id")];for(var t=e.firstElementChild;t;){if(at(t))return qu[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===Wu.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,e))return!1;var c=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 u=t(c,i.getBoundingClientRect());if(-1===u&&-1===o){a=i;break}if(u>-1&&(-1===o||u<o)&&(o=u,a=i),o>=0&&u<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(Le(e),(function(r,i){var o=-1;return(Le(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!==Wu.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(!Le(e),(function(r,i){var o=-1;return(Le(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!==Wu.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,c=n.getBoundingClientRect();do{if(n=e?rt(this._root.current,n):nt(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),h=Math.floor(c.bottom),p=Math.floor(u.bottom),f=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(e,c,u);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===Wu.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&&Ku.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:Wu.bidirectional,shouldRaiseClicks:!0},t}(c.Component),Gu=we(),$u=L(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=Gu(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?c.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=wu(e.chartDataAccessibilityData);switch(r){case"default":return c.createElement("div",a({className:n._classNames.chartDataText},l),Du(o,t));case"fraction":return c.createElement("div",a({},l),c.createElement("span",{className:n._classNames.chartDataText},Du(o,t)),c.createElement("span",{className:n._classNames.chartDataTextDenominator},"/"+Du(s,t)));case"percentage":var u=Du(Math.round(o/s*100),t)+"%";return c.createElement("div",a({className:n._classNames.chartDataText},l),u)}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},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 c.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,u=t.chartData[0].horizontalBarChartdata.x;return c.createElement("div",{key:n,className:e._classNames.items},c.createElement("div",{className:e._classNames.items},c.createElement(Zu,{direction:Wu.horizontal},c.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&c.createElement("div",a({className:e._classNames.chartDataText},wu(t.chartTitleAccessibilityData)),t.chartTitle),r)),t.chartData[0].data&&e._createBenchmark(t),c.createElement(Zu,{direction:Wu.horizontal},c.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},c.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,u,t.chartData[0]),onFocus:e._hoverOn.bind(e,u,t.chartData[0]),onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()},"aria-labelledby":e._calloutId,role:"img","aria-label":"Horizontal bar chart","data-is-focusable":!0,onBlur:e._hoverOff,onMouseLeave:e._hoverOff},s)))))})),c.createElement(Ni,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,wu(this.state.callOutAccessibilityData)),c.createElement(c.Fragment,null,this.props.onRenderCalloutPerHorizonalBar?this.props.onRenderCalloutPerHorizonalBar(this.state.barCalloutProps):c.createElement(Fu,{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=He(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 c.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)],u=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return t>0&&(a+=s),(s=u/o*100)<0?s=0:s<1&&0!==s&&(s=1),i.push(a),s<1?c.createElement(c.Fragment,{key:t}," "):c.createElement("rect",{key:t,x:i[t]+"%",y:0,width:s+"%",height:n._barHeight,fill:l})}))},t}(c.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"}}})),Qu=function(e){return function(){return e}},Ju=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},ed=function(e){return e},td=Math.abs,nd=Math.atan2,rd=Math.cos,id=Math.max,od=Math.min,ad=Math.sin,sd=Math.sqrt,ld=Math.PI,cd=ld/2,ud=2*ld;function dd(e){return e>1?0:e<-1?ld:Math.acos(e)}function hd(e){return e>=1?cd:e<=-1?-cd:Math.asin(e)}var pd=function(){var e=ed,t=Ju,n=null,r=Qu(0),i=Qu(ud),o=Qu(0);function a(a){var s,l,c,u,d,h=a.length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(ud,Math.max(-ud,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,c=p?(v-h*y)/p:0;s<h;++s,m=u)l=f[s],u=m+((d=g[l])>0?d*c:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:_};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:Qu(+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:Qu(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Qu(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Qu(+e),a):o},a},fd=Math.PI,gd=2*fd,md=gd-1e-6;function vd(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function _d(){return new vd}vd.prototype=_d.prototype={constructor:vd,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,c=o-e,u=a-t,d=c*c+u*u;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(u*s-l*c)>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((fd-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>1e-6&&(this._+="L"+(e+y*c)+","+(t+y*u)),this._+="A"+i+","+i+",0,0,"+ +(u*h>c*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,c=t+s,u=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%gd+gd),d>md?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=fd)+","+u+","+(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 yd=_d;function xd(e){return e.innerRadius}function bd(e){return e.outerRadius}function Cd(e){return e.startAngle}function Sd(e){return e.endAngle}function Ed(e){return e&&e.padAngle}function Ld(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,h=d*l-u*c;if(!(h*h<1e-12))return[e+(h=(u*(t-o)-d*(e-i))/h)*l,t+h*c]}function Ad(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/sd(s*s+l*l),u=c*l,d=-c*s,h=e+u,p=t+d,f=n+u,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)*sd(id(0,b*b*x-C*C)),E=(C*y-_*S)/x,L=(-C*_-y*S)/x,A=(C*y+_*S)/x,k=(-C*_+y*S)/x,w=E-m,D=L-v,T=A-m,M=k-v;return w*w+D*D>T*T+M*M&&(E=A,L=k),{cx:E,cy:L,x01:-u,y01:-d,x11:E*(i/b-1),y11:L*(i/b-1)}}var kd=function(){var e=xd,t=bd,n=Qu(0),r=null,i=Cd,o=Sd,a=Ed,s=null;function l(){var l,c,u=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-cd,p=o.apply(this,arguments)-cd,f=td(p-h),g=p>h;if(s||(s=l=yd()),d<u&&(c=d,d=u,u=c),d>1e-12)if(f>ud-1e-12)s.moveTo(d*rd(h),d*ad(h)),s.arc(0,0,d,h,p,!g),u>1e-12&&(s.moveTo(u*rd(p),u*ad(p)),s.arc(0,0,u,p,h,g));else{var m,v,_=h,y=p,x=h,b=p,C=f,S=f,E=a.apply(this,arguments)/2,L=E>1e-12&&(r?+r.apply(this,arguments):sd(u*u+d*d)),A=od(td(d-u)/2,+n.apply(this,arguments)),k=A,w=A;if(L>1e-12){var D=hd(L/u*ad(E)),T=hd(L/d*ad(E));(C-=2*D)>1e-12?(x+=D*=g?1:-1,b-=D):(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*rd(_),P=d*ad(_),F=u*rd(b),I=u*ad(b);if(A>1e-12){var N,H=d*rd(y),O=d*ad(y),B=u*rd(x),V=u*ad(x);if(f<ld&&(N=Ld(M,P,B,V,H,O,F,I))){var R=M-N[0],W=P-N[1],z=H-N[0],U=O-N[1],Y=1/ad(dd((R*z+W*U)/(sd(R*R+W*W)*sd(z*z+U*U)))/2),j=sd(N[0]*N[0]+N[1]*N[1]);k=od(A,(u-j)/(Y-1)),w=od(A,(d-j)/(Y+1))}}S>1e-12?w>1e-12?(m=Ad(B,V,M,P,d,w,g),v=Ad(H,O,F,I,d,w,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),w<A?s.arc(m.cx,m.cy,w,nd(m.y01,m.x01),nd(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,w,nd(m.y01,m.x01),nd(m.y11,m.x11),!g),s.arc(0,0,d,nd(m.cy+m.y11,m.cx+m.x11),nd(v.cy+v.y11,v.cx+v.x11),!g),s.arc(v.cx,v.cy,w,nd(v.y11,v.x11),nd(v.y01,v.x01),!g))):(s.moveTo(M,P),s.arc(0,0,d,_,y,!g)):s.moveTo(M,P),u>1e-12&&C>1e-12?k>1e-12?(m=Ad(F,I,H,O,u,-k,g),v=Ad(M,P,B,V,u,-k,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),k<A?s.arc(m.cx,m.cy,k,nd(m.y01,m.x01),nd(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,k,nd(m.y01,m.x01),nd(m.y11,m.x11),!g),s.arc(0,0,u,nd(m.cy+m.y11,m.cx+m.x11),nd(v.cy+v.y11,v.cx+v.x11),g),s.arc(v.cx,v.cy,k,nd(v.y11,v.x11),nd(v.y01,v.x01),!g))):s.arc(0,0,u,b,x,g):s.lineTo(F,I)}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-ld/2;return[rd(r)*n,ad(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Qu(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Qu(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Qu(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Qu(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Qu(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Qu(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Qu(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l},wd=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)}}},Dd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=c.createRef(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t}return o(t,e),t.getDerivedStateFromProps=function(e){return Td(e),null},t.prototype.updateChart=function(e){Td(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,i=t.focusedArcId,o=we()(wd,{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 c.createElement("g",{ref:this.currentRef},!!i&&i===a&&c.createElement("path",{id:a+"focusRing",d:n(this.props.focusData),className:o.focusRing}),c.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-labelledby":this.props.calloutId,role:"text"}),c.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:kd()},t}(c.Component);function Td(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Md=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 c.createElement(Dd,{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=pd().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 c.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:pd().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(c.Component),Pd={host:"ms-HoverCard-host"};var Fd,Id,Nd=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__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],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,c={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(c),a[n].count++,e._isElement(t)){var u=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}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,i):t.attachEvent&&t.attachEvent("on"+n,u)}else{c.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(c)}},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"}(Fd||(Fd={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(Id||(Id={}));var Hd,Od={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Bd(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"}(Hd||(Hd={}));var Vd=function(e){function t(n){var r=e.call(this,n)||this;return r._root=c.createRef(),r._firstBumper=c.createRef(),r._lastBumper=c.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())}},Hu(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=Bd(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=Bd(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 c.createElement("div",a({},o,{className:t,ref:this._root,"aria-labelledby":i,onFocusCapture:this._onFocusCapture,onFocus:this._onRootFocus,onBlur:this._onRootBlur}),c.createElement("div",a({},s,{ref:this._firstBumper,onFocus:this._onFirstBumperFocus})),this.props.children,c.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)||ut(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=At(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=At(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}(c.Component),Rd=function(e){return c.createElement(Ni,a({},e),c.createElement(Vd,a({disabled:e.hidden},e.focusTrapProps),e.children))},Wd=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,i=void 0===r?ze:r,o=e.directionalHintFixed,s=e.targetElement,l=e.firstFocus,u=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 c.createElement(c.Fragment,null,u?c.createElement(Rd,a({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),f):c.createElement(Ni,a({},m),f))},zd=we(),Ud=L(function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=c.createRef(),n._onKeyDown=function(e){e.which===ue&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return c.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})})),c.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},c.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),Hu(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,u=l.needsScroll,d=l.firstFrameRendered,h=n+r;this._classNames=zd(t,{theme:i,compactCardHeight:n,className:s,expandedCardHeight:r,needsScroll:u,expandedCardFirstFrameRendered:o===Hd.expanded&&d});var p=c.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return c.createElement(Wd,a({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(c.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,c=Er(Od,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[sr]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[c.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:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Yd={root:"ms-PlainCard-root"};var jd,qd=we(),Xd=L(function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===ue&&n.props.onLeave&&n.props.onLeave(e)},Hu(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=qd(t,{theme:n,className:r});var i=c.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return c.createElement(Wd,a({},this.props,{content:i,className:this._classNames.root}))},t}(c.Component),(function(e){var t,n=e.theme,r=e.className;return{root:[Er(Yd,n).root,{pointerEvents:"auto",selectors:(t={},t[sr]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),Kd=we(),Zd=L(function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=c.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:Hd.compact,openMode:"keydown"===e.type?Fd.hotKey:Fd.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==ue)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==ue||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:Hd.compact,openMode:Fd.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Hd.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)))},Hu(n),n._async=new dt(n),n._events=new Nd(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Hd.compact,openMode:Fd.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:Hd.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Hd.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,u=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=Kd(s,{theme:l,className:u});var x=a(a({},Et(this.props,St)),{id:y,trapFocus:!!p,firstFocus:f||_===Fd.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 c.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===Id.expanding?c.createElement(Ud,a({},b)):c.createElement(Xd,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:Id.expanding},t}(c.Component),(function(e){var t=e.className,n=e.theme;return{host:[Er(Pd,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(jd||(jd={}));var Gd=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 c=a(a({},t),{measureContainer:!1});return t.dataToMeasure&&(c="grow"===t.resizeDirection&&e.onGrowData?a(a({},c),function(e,t,s,l){for(var c=e,u=i(e,s);u<n;){var d=t(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=r.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return a({resizeDirection:"shrink"},o(c,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):a(a({},c),o(t.dataToMeasure,e.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:a({},e),resizeDirection:"grow",measureContainer:!0}}}},$d=c.createContext({isMeasured:!1}),Qd={position:"fixed",visibility:"hidden"},Jd={position:"relative"},eh=function(e){function t(t){var n=e.call(this,t)||this;return n._nextResizeGroupStateProvider=Gd(),n._root=c.createRef(),n._initialHiddenDiv=c.createRef(),n._updateHiddenDiv=c.createRef(),n._hasRenderedContent=!1,n.state=n._nextResizeGroupStateProvider.getInitialResizeGroupState(n.props.data),Hu(n),n._async=new dt(n),n._events=new Nd(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),u=!this._hasRenderedContent&&l;return c.createElement("div",a({},s,{className:t,ref:this._root}),c.createElement("div",{style:Jd},l&&!u&&c.createElement("div",{style:Qd,ref:this._updateHiddenDiv},c.createElement($d.Provider,{value:{isMeasured:!0}},n(i))),c.createElement("div",{ref:this._initialHiddenDiv,style:u?Qd:void 0,"data-automation-id":"visibleContent"},u?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===jd.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===jd.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}(c.Component);var th;!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"}(th||(th={}));var nh,rh=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?th.PERSISTED_KEYTIP_ADDED:th.KEYTIP_ADDED;Nd.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||Nd.raise(this,th.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?th.PERSISTED_KEYTIP_REMOVED:th.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Nd.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Nd.raise(this,th.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Nd.raise(this,th.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){Nd.raise(this,th.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}(),ih=we(),oh=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=c.createRef(),n._persistedKeytips={},n._keytipManager=rh.getInstance(),n._divContainer=c.createRef(),n._onRenderItems=function(e){return e.map((function(e,t){return c.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,c.createElement("div",a({},t),n.props.onRenderOverflowButton(i))},Hu(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,u=n.vertical,d=n.doNotContainWithinFocusZone,h=n.role,p=n.overflowSide,f=void 0===p?"end":p;this._classNames=ih(l,{className:o,vertical:u}),d?(e="div",t=a(a({},Et(this.props,St)),{ref:this._divContainer})):(e=Zu,t=a(a(a({},Et(this.props,St)),s),{componentRef:this._focusZone,direction:u?Wu.vertical:Wu.horizontal}));var g=i&&i.length>0;return c.createElement(e,a({role:h||"group","aria-orientation":"menubar"===h?!0===u?"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}(c.Component),ah={flexShrink:0,display:"inherit"},sh=L(oh,(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",ah],overflowButton:["ms-OverflowSet-overflowButton",ah]}}),void 0,{scope:"OverflowSet"}),lh=((nh={})[""+Eu[Eu.circle]]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",nh[""+Eu[Eu.square]]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",nh[""+Eu[Eu.triangle]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",nh[""+Eu[Eu.pyramid]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",nh[""+Eu[Eu.diamond]]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",nh[""+Eu[Eu.hexagon]]="M9 0H3L0 5L3 10H9L12 5L9 0Z",nh[""+Eu[Eu.pentagon]]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",nh[""+Eu[Eu.octagon]]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",nh[""+Lu[Lu.dottedLine]]="M0 6 H3 M5 6 H8 M10 6 H13",nh),ch=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,i=e.classNameForNonSvg;return-1===Object.keys(lh).indexOf(r)?c.createElement("div",{className:i}):c.createElement("svg",a({width:14,height:14,viewBox:"-1 -1 14 14"},t,{transform:"rotate("+(r===Eu[Eu.diamond]?45:r===Eu[Eu.triangle]?180:0)+", 0, 0)"}),c.createElement("path",a({d:lh[r]},n)))},uh=we(),dh=L(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 c.createElement(Zu,a({},s&&{role:"listbox","aria-label":"Legends"}),c.createElement(sh,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,u=[],d=uh(s,{theme:l,className:o});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);u.push(r)})),c.createElement(Zu,a({},i&&{role:"listbox"},{direction:Wu.vertical},n.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),u)},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,u=s.className,d=s.styles,h=s.overflowText,p=uh(d,{theme:l,className:u}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:o},g=h||"more";return c.createElement(Zd,{type:Id.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){var t=n.props.canSelectMultipleLegends,r=void 0!==t&&t,i=He(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},c.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),u=n.props,d=u.theme,h=u.className,p=u.styles,f=uh(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 c.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,c.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=uh(r,{theme:t,className:n});var i=this._generateData();return c.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):c.createElement(eh,{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 c.createElement(ch,{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}(c.Component),(function(e){var t,n,r,i,o,s=e.className,l=e.theme,c=e.isLineLegendInBarChart,u=void 0!==c&&c,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:u?"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)]}}}})),hh=we(),ph=L(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=hh(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var u=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 c.createElement("div",{className:this._classNames.root,ref:function(e){return n._rootElem=e},onMouseLeave:this._handleChartMouseLeave},c.createElement(Zu,{direction:Wu.horizontal,isCircularNavigation:!0},c.createElement("div",null,c.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)}},c.createElement(Md,{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})))),c.createElement(Ni,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,wu(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):c.createElement(Fu,{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&&c.createElement("div",{className:this._classNames.legendContainer},u))},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 c.createElement(dh,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=Du(e,this.props.culture);return n?null===(t=n)||void 0===t?void 0:t.toString():e},t.defaultProps={innerRadius:0},t}(c.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"}}})),fh=we(),gh=function(e){function t(t){var n,r,i,o,s,l,u,d,h,p,f,g,m=e.call(this,t)||this;return m.minLegendContainerHeight=32,m._isRtl=Le(),m._multiValueCallout=function(e){var t=m._yValueHoverSubCountsExists(e.YValueHover);return c.createElement("div",{className:m._classNames.calloutContentRoot},c.createElement("div",{className:m._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},c.createElement("div",a({className:m._classNames.calloutContentX},wu(e.xAxisCalloutAccessibilityData,"text",!1)),Du(e.hoverXValue,m.props.culture))),c.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 c.createElement("div",a({},wu(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&&c.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===(u=m.props.margins)||void 0===u?void 0:u.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,u=t.culture;this.props.parentRef&&this._fitParentContainer(),this.props.getmargins&&this.props.getmargins(this.margins);var d,h,p={domainNRangeValues:Cu(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:Su(r,i),yAxisPadding:this.props.yAxisPadding};switch(this.props.xAxisType){case hu.NumericAxis:d=mu(p,u);break;case hu.DateAxis:d=vu(p,this.props.tickParams);break;case hu.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,c=e.tickPadding,u=void 0===c?10:c,d=e.xAxisPadding,h=void 0===d?.1:d,p=Eo().domain(n).range([i.rStartValue,i.rEndValue]).padding(h),f=ji(p).tickSize(l).tickPadding(u).ticks(a).tickFormat((function(e,t){return Du(n[t],r)}));return e.xAxisElement&&su(e.xAxisElement).call(f).selectAll("text").attr("aria-hidden","true"),p}(p,this.props.tickParams,this.props.datasetForXAxisDomain,u);break;default:d=mu(p,u)}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=su(t).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var e=su(this),t=e.text(),n=e.text().slice(0,r)+"...",l=e.text().length,c=e.text().split(/\s+/).reverse();s.push(c.length);var u="",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(;u=c.pop();)d.push(u),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[u],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(u));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===pu.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,c=e.yAxisPadding,u=void 0===c?0:c,d=Eo().domain(t).range([r-a.bottom,a.top]).padding(u),h=(n?Yi(d):qi(d)).tickPadding(o).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&su(l).call(h).selectAll("text"),d}(f,this.props.stringDatasetForYAxisDomain,this._isRtl):_u(f,this._isRtl,v),this.props.getAxisData&&this.props.getAxisData(v),this._getData(d,h),this._classNames=fh(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===Wu.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Wu.horizontal,c.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this.props.onChartMouseLeave},c.createElement(Zu,a({direction:_},s),c.createElement("svg",a({width:y.width,height:y.height,"aria-label":this.props.chartTitle,style:{display:"block"}},l),c.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}),c.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&&c.createElement("div",{ref:function(t){return e.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),!this.props.hideTooltip&&n.isCalloutVisible&&c.createElement(Ni,a({},n),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(n),!this.props.customizedCallout&&!this.props.isCalloutForStack&&c.createElement(Fu,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=fh(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=Du(e.y,s);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var u=e.yAxisCalloutData;return c.createElement("div",{style:i},c.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",l,")"),Object.keys(u).map((function(e){return c.createElement("div",{key:e,className:a.calloutBlockContainer},c.createElement("div",{className:a.calloutlegendText}," ",Du(e,s)),c.createElement("div",{className:a.calloutContentY},Du(u[e],s)))})))}return c.createElement("div",{style:n?i:{}},n&&c.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",l,")"),c.createElement("div",{id:t+"_"+e.y,className:a.calloutBlockContainer},o&&c.createElement(ch,{svgProps:{className:a.shapeStyles},pathProps:{fill:e.color},shape:Eu[e.index%Object.keys(ku).length]}),c.createElement("div",null,c.createElement("div",{className:a.calloutlegendText}," ",e.legend),c.createElement("div",{className:a.calloutContentY},Du(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}(c.Component),mh=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}(),vh=L(gh,(function(e){var t,n,r,i,o,s,l,c,u=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"},u],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&&!mh&&{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:(c={},c[lr]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+d.semanticColors.menuDivider}]}})),_h=0,yh=1,xh=2,bh=3;var Ch=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 Sh(e,t){return Ch(e)(t)}var Eh={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Lh=function(e){return e.getBoundingClientRect()},Ah=Lh,kh=Lh,wh=function(e){function t(t){var n=e.call(this,t)||this;return n._root=c.createRef(),n._surface=c.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 c.createElement("div",a({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return c.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,u=l.items,d=void 0===u?[]:u,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(c.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 c.createElement("div",a({},p),g)},Hu(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps},n._async=new dt(n),n._events=new Nd(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=_h);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var c=this._getPageSpecification(l,o),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=kh(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 yh:return void(this._scrollElement.scrollTop=a);case xh:return void(this._scrollElement.scrollTop=g-d.height);case bh: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+=u}},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,c=[],u=Et(this.props,St),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=i?Sh(i,this._onRenderSurface):this._onRenderSurface;return(o?Sh(o,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:a(a({},u),{className:Lt("ms-List",t),role:c.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++){(u=s[a]).items&&(o[u.startIndex]=u)}for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(o[u.startIndex]?delete o[u.startIndex]:this._onPageAdded(u))}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({},Eh),l=[],c=1,u=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;c=n.itemCount;var y,x,b=u+o-1,C=Ne(t.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,S=!m||b>=m.top&&u<=m.bottom,E=!_._requiredRect||b>=_._requiredRect.top&&u<=_._requiredRect.bottom;if(!g&&(E||S&&C)||!f||h>=e&&h<e+c||e===i){d&&(l.push(d),d=null);var L=Math.min(c,p-e),A=_._createPage(v,r.slice(e,e+L),e,void 0,void 0,a);A.top=u,A.height=o,_._visibleRect&&_._visibleRect.bottom&&(A.isVisible=b>=_._visibleRect.top&&u<=_._visibleRect.bottom),l.push(A),E&&_._allowedRect&&(y=s,x={top:u,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-u)+1,d.itemCount+=c;if(u+=b-u+1,g&&f)return"break"},_=this,y=i;y<p;y+=c){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({},Eh),l=this._scrollElement&&this._scrollElement.scrollHeight,c=this._scrollElement?this._scrollElement.scrollTop:0;this._surface.current&&(n||!o||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=Ah(this._surface.current),this._scrollTop=c),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l;var u=Math.max(0,-s.top),d=p(this._root.current),h={top:u,left:s.left,bottom:u+d.innerHeight,right:s.right,width:s.width,height:d.innerHeight};this._requiredRect=Dh(h,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Dh(h,i,r),this._visibleRect=h}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return c.createElement(c.Fragment,null,e&&e.name||"")},renderedWindowsAhead:2,renderedWindowsBehind:2},t}(c.Component);function Dh(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 Th=function(e){var t=c.useRef(null);c.useEffect((function(){if(t.current){var n=su(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 c.createElement("text",a({ref:t},n))},Mh=function(e){var t,n=c.useRef(null),r=c.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=c.createElement(Ni,{target:n.current,onDismiss:function(){return o(!1)},setInitialFocus:!0,role:"dialog"},c.createElement(Zu,{isCircularNavigation:!0,direction:Wu.vertical},c.createElement(wh,{items:s,onRenderCell:function(e){return c.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),c.createElement(c.Fragment,null,c.createElement("g",{ref:n,onClick:function(){return o(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},c.createElement(Th,{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)},Ph=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 c.createElement("line",{key:n,x1:t.x,x2:t.x,y1:r,y2:e.chartYBottom,stroke:s,strokeDasharray:"8"})})),u=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=Ne(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=[],c=r;c<s;c++)l.push(c);var u=i(a,s);return u.unshift({x:e[r].x,anchor:o,aggregatedIdx:l}),u};return i(r,0)}(o,t+5,i[1],i[0]).map((function(r,i){return c.createElement(Mh,a({key:i},{lineDefs:o,labelDef:r,textY:n,textWidth:t,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return c.createElement(c.Fragment,null,l,u)};var Fh,Ih=we();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(Fh||(Fh={}));var Nh=L(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,c=n.state.activePoint;return a?c===e?Fh.hoverSize:1===t||r?2.5*l:Fh.invisibleSize:c===e?Fh.hoverSize:Fh.invisibleSize},n._getPath=function(e,t,r,i,o,a){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=n._getBoxWidthOfShape(r,i,o),u=l?a%Object.keys(ku).length:0,d=ku[u].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,c=d>1?c/d:c,u)},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=Su(n._points,du.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,u=o.data[s].endX,d=n.state.activeLegend===o.legend||""===n.state.activeLegend||n.state.isSelectedLegend?n._colorFillBarsOpacity:.1;t.push(c.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(u)-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 c.createElement("pattern",{id:""+n._colorFillBarPatternId+t,width:16,height:16,key:""+n._colorFillBarPatternId+t,patternUnits:"userSpaceOnUse"},c.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=He(n._calloutPoints,(function(e){return e.x===s}));if(l){var c=n;su("#"+i).attr("aria-labelledby","toolTip"+n._uniqueCallOutID),su("#"+n._verticalLine).attr("transform",(function(){return"translate("+c._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,c=e instanceof Date?e.getTime():e,u=n,d=He(n._calloutPoints,(function(e){return e.x===c}));d?(su("#"+n._verticalLine).attr("transform",(function(){return"translate("+u._xAxisScale(e)+", "+u._yAxisScale(t)+")"})).attr("visibility","visibility").attr("y2",""+(r-u._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(){su("#"+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=yu(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=yu(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=bu(this._points),u=this._points;o&&o.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=yu(u));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 c.createElement(vh,a({},this.props,{chartTitle:s.chartTitle,points:u,chartType:du.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:l?hu.DateAxis:hu.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,c.createElement(c.Fragment,null,c.createElement("g",null,c.createElement("line",{x1:0,y1:0,x2:0,y2:t.containerHeight,stroke:"#C8C8C8",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),c.createElement("g",null,e._renderedColorFillBars,e.lines),i&&c.createElement(Ph,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),u=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:Eu[e.index%Object.keys(ku).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 c.createElement(dh,a({legends:l(u,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,u,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,L=this._points[x].color,A=this.state.activePoint,k=this.props.theme,w=t-this.margins.bottom+6;if(1===this._points[x].data.length){var D=this._points[x].data[0],T=D.x,M=D.y,P=D.xAxisCalloutData,F=D.xAxisCalloutAccessibilityData,I=""+this._circleId+x;S.push(c.createElement("circle",{id:""+this._circleId+x,key:""+this._circleId+x,r:A===I?5.5:3.5,cx:this._xAxisScale(T),cy:this._yAxisScale(M),fill:A===I?k.palette.white:L,onMouseOver:this._handleHover.bind(this,T,M,w,P,I,F),onMouseMove:this._handleHover.bind(this,T,M,w,P,I,F),onMouseOut:this._handleMouseOut,strokeWidth:A===I?4:0,stroke:A===I?L:""}))}for(var N=0,H=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,H,N),n=t.isInGap;N=t.gapIndex;var r=""+B._lineId+x+e,l=""+B._borderId+x+e,y=""+B._circleId+x+e,D=B._points[x].data[e-1],T=D.x,M=D.y,P=D.xAxisCalloutData,F=D.xAxisCalloutAccessibilityData,I=B._points[x].data[e],O=I.x,V=I.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,z=B.state.activeLegend===E||""===B.state.activeLegend||B.state.isSelectedLegend,U=B._points[x].hideNonActiveDots&&A!==y;if(S.push(c.createElement("path",{id:y,key:y,d:R,"data-is-focusable":0===x,onMouseOver:B._handleHover.bind(B,T,M,w,P,y,F),onMouseMove:B._handleHover.bind(B,T,M,w,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:z&&!U?1:.01,fill:B._getPointFill(L,y,e,!1),stroke:L,strokeWidth:W})),e+1===B._points[x].data.length){var Y=""+y+e+"L",j=B._points[x].hideNonActiveDots&&A!==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(c.createElement("path",{id:Y,key:Y,d:R,"data-is-focusable":0===x,onMouseOver:B._handleHover.bind(B,O,V,w,X,Y,K),onMouseMove:B._handleHover.bind(B,O,V,w,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:z&&!j?1:.01,fill:B._getPointFill(L,Y,e,!0),stroke:L,strokeWidth:W}))}if(z){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(c.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)||k.palette.white,opacity:1})),b.push(c.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,w,P,y,F),onMouseMove:B._handleHover.bind(B,T,M,w,P,y,F),onMouseOut:B._handleMouseOut,stroke:L,strokeLinecap:(d=null===(u=B._points[x].lineOptions)||void 0===u?void 0:u.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(c.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:L,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=Ih(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=su(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var z={tooltipCls:R.tooltip,id:this._tooltipId,xAxis:W};W&&xu(z)}return y},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(c.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"})}})),Hh=Array.prototype.slice,Oh=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]},Bh=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function Vh(e,t){return e[t]}function Rh(e){this._context=e}Rh.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 Wh=function(e){return new Rh(e)};function zh(e){return e[0]}function Uh(e){return e[1]}var Yh=function(){var e=zh,t=Uh,n=Qu(!0),r=null,i=Wh,o=null;function a(a){var s,l,c,u=a.length,d=!1;for(null==r&&(o=i(c=yd())),s=0;s<=u;++s)!(s<u&&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(c)return o=null,c+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:Qu(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:Qu(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:Qu(!!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 jh(e){return e<0?-1:1}function qh(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(jh(o)+jh(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Xh(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Kh(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 Zh(e){this._context=e}function Gh(e){this._context=new $h(e)}function $h(e){this._context=e}function Qh(e){return new Zh(e)}Zh.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:Kh(this,this._t0,Xh(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,Kh(this,Xh(this,n=qh(this,e,t)),n);break;default:Kh(this,this._t0,n=qh(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Gh.prototype=Object.create(Zh.prototype)).point=function(e,t){Zh.prototype.point.call(this,t,e)},$h.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 Jh,ep=we(),tp=Ki((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Jh||(Jh={}));var np=L(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(fu(document.getElementById(n._rectId),e)[0]),i=tp(t[0].data,r),o=t[0].data[i-1],a=t[0].data[i],s=null,l=null,c=null;if(void 0===o&&void 0!==a)l=a.x,c=i;else if(void 0!==o&&void 0===a)l=o.x,c=i-1;else{var u=void 0,d=void 0,h=void 0;switch(s=Au(t[0].data[0].x,!0)){case hu.DateAxis:u=new Date(r).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1;break;case hu.NumericAxis:u=r,d=o.x,h=a.x,l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1}}var p=t[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleDateString():l,v=l instanceof Date?l.getTime():l,_=He(n._calloutPoints,(function(e){return e.x===v})),y=s===hu.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:Jh.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Jh.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Jh.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=Qu([]),t=Bh,n=Oh,r=Vh;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,c=s.length,u=new Array(c);for(o=0;o<c;++o){for(var d,h=s[o],p=u[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(u);o<c;++o)u[a[o]].index=o;return n(u,a),u}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Qu(Hh.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Qu(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?Bh:"function"==typeof e?e:Qu(Hh.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?Oh: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=yu(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 c=r&&Object.keys(r[0]).length,u=[],d=0;d<c-1;d++){var h="chart"+d;u.push(h)}var p=n._getStackedData(u,r);return{colors:i,opacity:o,keys:u,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)}})),c.createElement(dh,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,u=l.pointOptions,d=l.pointLineOptions,h=function(){var e=zh,t=null,n=Qu(0),r=Uh,i=Qu(!0),o=null,a=Wh,s=null;function l(l){var c,u,d,h,p,f=l.length,g=!1,m=new Array(f),v=new Array(f);for(null==o&&(s=a(p=yd())),c=0;c<=f;++c){if(!(c<f&&i(h=l[c],c,l))===g)if(g=!g)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=c-1;d>=u;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[c]=+e(h,c,l),v[c]=+n(h,c,l),s.point(t?+t(h,c,l):m[c],r?+r(h,c,l):v[c]))}if(p)return s=null,p+""||null}function c(){return Yh().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:Qu(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Qu(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Qu(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Qu(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Qu(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Qu(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:Qu(!!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(Qh),p=Yh().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Qh),f=[];n._stackedData.forEach((function(e,t){f.push(c.createElement(c.Fragment,{key:t+"-graph-"+n._uniqueIdForGraph},c.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)),c.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=u&&u.r?Number(u.r):8;n._stackedData.forEach((function(e,i){s.length!==i&&f.push(c.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,c.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)},u,{r:n._getCircleRadius(h,g)}))}))))})),f.push(c.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=ep(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=su(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&&xu(_)}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:Jh.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,u=i.calloutPoints;this._calloutPoints=u;var d=bu(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 c.createElement(vh,a({},this.props,{chartTitle:r,points:n,chartType:du.AreaChart,calloutProps:f,legendBars:h,isCalloutForStack:!0,xAxisType:d?hu.DateAxis:hu.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 c.createElement(c.Fragment,null,c.createElement("g",null,c.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),c.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}(c.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"})}})),rp=function(e){return{root:{fill:e.color,stroke:ar.white,strokeWidth:2}}},ip=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 c.createElement("g",{className:"arc"},e.prototype.render.call(this),c.createElement("text",{transform:a,textAnchor:"middle"},n.data.x,"-",Du(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){op(e)},t}return o(t,e),t.getDerivedStateFromProps=function(e){return op(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,i=we()(rp,{color:n});return c.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:kd()},t}(c.Component));function op(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var ap,sp=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return c.createElement(ip,{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=So().range(r);var l=n(i),u="translate("+o/2+", "+a/2+")";return c.createElement("svg",{width:o,height:a,"aria-label":s},c.createElement("g",{transform:u},l.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:pd().sort(null).value((function(e){return e.y}))},t}(c.Component),lp=we(),cp=L(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,u=a.styles,d=a.culture;this._classNames=lp(u,{theme:s,width:n,height:r,className:l});var h=Math.min(n,r)/2-10;return c.createElement("div",{className:this._classNames.root},this.props.chartTitle&&c.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),c.createElement(sp,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:i,chartTitle:o}))},t.defaultProps={data:[],width:600,height:350},t}(c.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)]}})),up=we(),dp=L(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.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,u=this.props.theme.palette,d=s||n.chartData.length>2?this.props.barHeight:8;r&&(r.color=r.color||u.neutralTertiary),i&&(i.color=i.color||u.neutralSecondary);var h=this._createBarsAndLegends(n,d,u,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=up(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 Du(n.chartData[0].data?n.chartData[0].data:0,l)};return c.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},c.createElement(Zu,{direction:Wu.horizontal},c.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&c.createElement("div",a({},wu(n.chartTitleAccessibilityData)),c.createElement("strong",null,n.chartTitle)),p&&c.createElement("div",a({},wu(n.chartDataAccessibilityData)),c.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&c.createElement("span",null,"/",c.createElement("span",{className:this._classNames.ratioDenominator},Du(g,l)))),f&&c.createElement("div",a({},wu(n.chartDataAccessibilityData)),c.createElement("strong",null,y()))),(r||i)&&c.createElement("div",{className:this._classNames.benchmarkContainer},r&&c.createElement("div",{className:this._classNames.benchmark,role:"text"}),i&&c.createElement("div",{className:this._classNames.target,role:"text"}))),c.createElement(Zu,{direction:Wu.horizontal},c.createElement("div",null,c.createElement("svg",{className:this._classNames.chart,"aria-label":null===(e=n)||void 0===e?void 0:e.chartTitle},c.createElement("g",null,h[0]),c.createElement(Ni,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,wu(this.state.callOutAccessibilityData,"text",!1)),c.createElement(c.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):c.createElement(Fu,{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})))))),_&&c.createElement("div",{className:this._classNames.legendContainer},h[1]))},t.prototype._adjustProps=function(){this._classNames=up(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=[],u=[],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),u.push(h);var f=o.props.styles,g=!0;return(o.state.isLegendHovered||o.state.isLegendSelected)&&(g=o.state.selectedLegendTitle===e.legend),o._classNames=up(f,{theme:o.props.theme,shouldHighlight:g,href:o.props.href}),p<1?c.createElement(c.Fragment,{key:n}," "):c.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-labelledby":o._calloutId,"aria-label":"Stacked bar chart",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},c.createElement("rect",{key:n,x:u[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(l,r),this._addLegend(l,i);var g=c.createElement(dh,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 c.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},c.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}(c.Component),(function(e){var t,n,r=e.className,i=e.width,o=e.barHeight,s=e.shouldHighlight,l=e.theme,c=e.href,u=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:c?"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:u,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, "+u+", "+u+")"},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)}}})),hp=we(),pp=L(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=hp(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)}}))})),c.createElement(dh,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.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=hp(this.props.styles,{legendColor:this.state.color,theme:r});var u=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 c.createElement("div",{key:n},r)}));return c.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&c.createElement("div",{className:this._classNames.legendContainer},s),c.createElement(Ni,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,wu(this.state.callOutAccessibilityData,"text",!1)),c.createElement(c.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):c.createElement(Fu,{Legend:u,YValue:d,color:this.state.color,culture:i}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,i,o){var s,l=this,u=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,u=!0;return(l.state.isLegendHovered||l.state.isLegendSelected)&&(u=l.state.selectedLegendTitle===e.legend),l._classNames=hp(s,{theme:l.props.theme,shouldHighlight:u,href:o}),g<1?c.createElement(c.Fragment,{key:r}," "):c.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,"aria-labelledby":l._calloutId,role:"img","aria-label":"Multi stacked bar chart",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},c.createElement("rect",{key:r,x:h[r]+"%",y:0,width:g+"%",height:t,fill:i}))}));0===e.chartData.length&&m.push(c.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,o)},c.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralTertiaryAlt}))),0===p&&m.push(c.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,o)},c.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 Du(e.chartData[0].data?e.chartData[0].data:0,u)};return c.createElement("div",{className:this._classNames.singleChartRoot},c.createElement(Zu,{direction:Wu.horizontal},c.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&c.createElement("div",a({},wu(e.chartTitleAccessibilityData)),c.createElement("strong",null,e.chartTitle)),_&&c.createElement("div",a({},wu(e.chartDataAccessibilityData)),c.createElement("strong",null,x()),!i&&c.createElement("span",null,"/",Du(p,u))),y&&c.createElement("div",a({},wu(e.chartDataAccessibilityData)),c.createElement("strong",null,x())))),c.createElement(Zu,{direction:Wu.horizontal},c.createElement("div",null,c.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}(c.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"}(ap||(ap={}));var fp,gp=we(),mp=L(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Le(),n._createLine=function(e,t,r,i){void 0===r&&(r=0),void 0===i&&(i=0);var o=n._xAxisType===hu.NumericAxis,a=n._getScales(r,i,o).xBarScale,s=n._createColors(),l=n.props.theme,u=n.props,d=u.data,h=u.lineLegendColor,p=void 0===h?l.palette.yellow:h,f=u.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=Yh().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 _=c.createElement("path",{opacity:v?1:.4,d:m(g),fill:"none",strokeWidth:3,stroke:p}),y=g.map((function(r,i){var l;return c.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?ap.show:ap.hide,onClick:null===(l=r.point.lineData)||void 0===l?void 0:l.onClick})}));return c.createElement(c.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 c.createElement(Fu,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 c.createElement(c.Fragment,null,o)},n._renderContentForOnlyBars=function(e){var t=n.props.useSingleColor,r=void 0!==t&&t;return c.createElement(c.Fragment,null,c.createElement(Fu,{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===hu.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,c=s.useSingleColor,u=void 0!==c&&c,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:u?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:za().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:za().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:Eo().domain(n._xAxisLabels).range([n.margins.left,t-n.margins.right]).padding(n.props.xAxisPadding||.1),yBarScale:za().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,u=s.lineLegendColor,d=void 0===u?i.palette.yellow:u,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 c.createElement(dh,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.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=Au(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=gp(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),wu(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return c.createElement(vh,a({},this.props,{points:this._points,chartType:du.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Wu.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return c.createElement(c.Fragment,null,c.createElement("g",null,e._bars),e._isHavingLine&&c.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 za().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,u=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=gp(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var a=Math.max(l(t.y),0);return a<1?c.createElement(c.Fragment,{key:t.x}," "):c.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,u(t.y)),"aria-labelledby":"toolTip"+r._calloutId,"aria-label":"Vertical bar chart",role:"text",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,u(t.y)),onBlur:r._onBarLeave,fill:t.color&&!o?t.color:u(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=su(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&&xu(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?c.createElement(c.Fragment,{key:t.x}," "):c.createElement("rect",{key:t.x,x:o(t.x),y:e-r.margins.bottom-a(t.y),width:r._barWidth,height:i,"aria-labelledby":"toolTip"+r._calloutId,"aria-label":"Vertical bar chart",role:"text",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 u=su(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:u,showTooltip:this.props.showXAxisLablesTooltip};u&&xu(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}(c.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"})}})),vp=we();!function(e){e.show="visibility",e.hide="hidden"}(fp||(fp={}));var _p=L(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Le(),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,u=o.selectedLegendTitle,d=n._xAxisType===hu.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=u===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(c.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&&u===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(c.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&&u===r?n._lineHover.bind(n,o):n._onStackHover.bind(n,o.xItem)},l&&u===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)"})))}))})),c.createElement(c.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:fp.show,radius:8}:t===a?{visibility:fp.show,radius:.3}:{visibility:fp.hide,radius:0}:{visibility:o===e?fp.show:fp.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,u=o.barMinimumHeight,d=void 0===u?0:u,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,u=e((n._xAxisType,hu.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=vp(n.props.styles,{theme:n.props.theme,shouldHighlight:_,href:n.props.href}),x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-labelledby":"toolTip"+n._calloutId,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===hu.NumericAxis?0:e.bandwidth()/2;return l&&b>l&&r===h.length-1?c.createElement("path",a({key:r+o,className:y.opacityChangeOnHover,d:"\n M "+u+" "+(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?c.createElement(c.Fragment,{key:r+o}," "):c.createElement("rect",a({key:r+o+""+p,className:y.opacityChangeOnHover,x:u,y:s,width:n._barWidth,height:b,fill:f,ref:function(e){return v.refElement=e}},x,{role:"text",transform:"translate("+C+", 0)"}))})),_={},y=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-labelledby":"toolTip"+n._calloutId,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:"text"};return c.createElement("g",a({key:o+""+p,id:o+"-singleBar",ref:function(e){return _.refElement=e}},y),v)}}})),g=vp(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=su(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&&xu(v)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var i=n._yMax,o=za().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:za().domain(n._isRtl?[a,0]:[0,a]).nice().range([n.margins.left,t-n.margins.right-n._barWidth]),yBarScale:o}}return{xBarScale:Eo().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===hu.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.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),wu(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return c.createElement(vh,a({},this.props,{points:this._dataset,chartType:du.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,tickParams:l,legendBars:o,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:i||t?Wu.horizontal:Wu.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return c.createElement(c.Fragment,null,c.createElement("g",null,e._bars),c.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=Au(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?c.createElement(Fu,{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 c.createElement(c.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 u=[];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};u.push(t)}));var d=u.concat(o);return c.createElement(dh,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}(c.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"})}})),yp=we(),xp=L(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Le(),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=za().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 u=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(u.forEach((function(t,o){var d=e.indexNum*u.length+o,h=e[t];h.data&&s.push(c.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-labelledby":"toolTip"+n._calloutId,role:"text"}))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=su(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&&xu(h)}var p=n._isCustomBarWidth?(t.bandwidth()-n._x1TotalBandWidth)/2:0;return c.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 Eo().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 Eo().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)}}))})),c.createElement(dh,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._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=Au(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=yp(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=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}),wu(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return c.createElement(vh,a({},this.props,{points:this._datasetForBars,chartType:du.GroupedVerticalBarChart,calloutProps:u,legendBars:s,xAxisType:this._isNumeric,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Wu.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(){return c.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}(c.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"})}})),bp=we(),Cp=L(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,s=c.createElement("g",a({key:o},n.state.calloutId&&{"aria-labelledby":""+n.state.calloutId},{"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}),c.createElement("rect",{fill:n._colorScale(t.value),width:n._xAxisScale.bandwidth(),height:n._yAxisScale.bandwidth(),onClick:t.onClick}),c.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:n._classNames.text,transform:"translate("+n._xAxisScale.bandwidth()/2+", "+n._yAxisScale.bandwidth()/2+")"},Du(t.rectText,n.props.culture)));e.push(s)}))})),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)})),c.createElement(dh,a({},r,{legends:i}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return za().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===hu.DateAxis?""+e.getTime():n._xAxisType===hu.StringAxis?e:n._xAxisType===hu.NumericAxis?""+e:""},n._getYIndex=function(e){return n._yAxisType===pu.DateAxis?""+e.getTime():n._yAxisType===pu.StringAxis?e:n._yAxisType===pu.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 c={},u={},d={};return s.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",u[r]="1",c[r]?c[r]=l(c[r],[e]):c[r]=[e]})),Object.keys(c).forEach((function(e){c[e].sort((function(e,t){return n._xAxisType===hu.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===hu.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===hu.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===hu.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===hu.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===hu.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===pu.DateAxis&&(e.y=n._getStringFormattedDate(e.y,i)),n._yAxisType===pu.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,o)),n._yAxisType===pu.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(c).forEach((function(e){n._yAxisType===pu.DateAxis?c[n._getStringFormattedDate(e,i)]=c[e]:n._yAxisType===pu.NumericAxis?c[""+n._getStringFormattedNumber(e,o)]=c[e]:c[n._getFormattedLabelForYAxisDataPoint(e)]=c[e]})),{dataSet:c,yAxisPoints:n._getYAxisDataPoints(u),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===hu.DateAxis||n._xAxisType===hu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===hu.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===hu.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===pu.DateAxis||n._yAxisType===pu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===pu.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===pu.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),Is(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return Ma(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})};var r=n._getXandY(),i=r.x,o=r.y;return n._xAxisType=Au(i,!0),n._yAxisType=Au(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),u=l.dataSet,d=l.xAxisPoints,h=l.yAxisPoints;this._dataSet=u,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=bp(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:ze,onDismiss:this._closeCallout}),wu(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=a(a({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return c.createElement(vh,a({},this.props,{points:n,chartType:du.HeatMapChart,xAxisType:hu.StringAxis,yAxisType:pu.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:Wu.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(c.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 Sp(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 Ep(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ap)):void 0===t&&(t=Lp);for(var n,r,i,o,a,s=new Dp(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 Dp(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(wp)}function Lp(e){return e.children}function Ap(e){return Array.isArray(e)?e[1]:null}function kp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function wp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Dp(e){this.data=e,this.depth=this.height=0,this.parent=null}function Tp(e,t){return e.parent===t.parent?1:2}function Mp(e){var t=e.children;return t?t[0]:e.t}function Pp(e){var t=e.children;return t?t[t.length-1]:e.t}function Fp(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 Ip(e,t,n){return e.a.parent===t.parent?e.a:n}function Np(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}Dp.prototype=Ep.prototype={constructor:Dp,count:function(){return this.eachAfter(Sp)},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 Ep(this).eachBefore(kp)},[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)}},Np.prototype=Object.create(Dp.prototype);var Hp,Op,Bp=function(){var e=Tp,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,o,a=new Np(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 Np(r[i],i)),n.parent=t;return(a.parent=new Np(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var c=i,u=i,d=i;i.eachBefore((function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)}));var h=c===u?1:e(c,u)/2,p=h-c.x,f=t/(u.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],c=o.m,u=a.m,d=s.m,h=l.m;s=Pp(s),o=Mp(o),s&&o;)l=Mp(l),(a=Pp(a)).a=t,(i=s.z+d-o.z-c+e(s._,o._))>0&&(Fp(Ip(s,t,r),t,i),c+=i,u+=i),d+=s.m,c+=o.m,h+=l.m,u+=a.m;s&&!Pp(a)&&(a.t=s,a.m+=d-u),o&&!Mp(l)&&(l.t=o,l.m+=c-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},Vp=we(),Rp=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,c=(e=e<65?65:e>90?90:e)||75,u=Ep(this.treeData,(function(e){return e.children})),d=(null===(n=u)||void 0===n?void 0:n.height)+1;Bp().nodeSize([c,c/1.5]).separation((function(e,t){return e.parent===u&&t.parent===u?3.5:1}))(u).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?u.each((function(e){f(e)})):u.eachBefore((function(e){f(e)}));for(var g=3*c,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,L=(null===(i=h[x.parentID])||void 0===i?void 0:i.x)-C/2-10,A=(null===(o=h[x.parentID])||void 0===o?void 0:o.x)+C/2+10,k=null===(a=h[x.parentID])||void 0===a?void 0:a.x,w=null===(s=E[0])||void 0===s?void 0:s.y,D=0;D<E.length;++D){var T=E[D];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?1===E.length?k:L:A,w,T.data.fill,1===E.length?g:C,m,T.id,b),D%2==1&&(w+=S+20)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,k,w,T.data.fill,g,m,T.id,b),w+=S+20):E.length>2?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?L:A,w,T.data.fill,1===E.length?g:C,m,T.id,b),D%2==1&&(w+=S+20)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,k,w,T.data.fill,g,m,T.id,b),w+=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=su(".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),gu(".tempText").remove(),i},e.prototype.addNodeShapetoSVG=function(e,t,n,r,i,o,a,s,l,u,d){var h="nodeId: "+u+" \nnodeMainText: "+e+"\nsubText "+t+" "+d,p=i-s/2;!r&&0===u&&n||this._nodeElements.push(c.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:""+u+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?c.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+s/2},r):n?c.createElement(c.Fragment,null,c.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+s/2},t),c.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+s/2},n)):c.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+s/2},t);t||r||n?this._nodeElements.push(c.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:""+u+this.styleClassNames.rectText},e,f)):this._nodeElements.push(c.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:o+l/1.6,x:p+s/2,key:""+u+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,u){void 0===u&&(u=0),this._linkElements.push(c.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,i,o,a,s,l,u),key:""+e+this.styleClassNames.link}))},e}()),Wp=L(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=Vp(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=gu("text"),n=gu("rect"),r=gu("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 Rp(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 c.createElement(Zu,null,c.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},c.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},c.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),c.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},t}(c.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"}(Hp||(Hp={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(Op||(Op={})),Object(r.a)("@uifabric/charting","4.23.11")},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 c=n(0);function u(){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 c=a.subComponentStyles;for(var d in c)c.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(c[d]):r[d]=[c[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 u.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=c.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function S(e,t){var n,r=(n=c.useState(0)[1],function(){return n((function(e){return++e}))}),i=c.useContext(C).customizations,o=i.inCustomizerContext;return c.useEffect((function(){return o||b.observe(r),function(){o||b.unobserve(r)}}),[o]),b.getSettings(e,t,i)}var E=["theme","styles"];function L(e,t,n,r,i){var o=(r=r||{scope:"",fields:void 0}).scope,l=r.fields,d=void 0===l?E:l,h=c.forwardRef((function(r,i){var l=c.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?u.apply(void 0,r):{}}(e,t,p,r.styles)};v.__cachedInputs__=[t,p,r.styles],v.__noStyleOverride__=!p&&!r.styles,l.current=v}return c.createElement(e,a({ref:i},f,g,r,{styles:l.current}))}));h.displayName="Styled"+(e.displayName||e.name);var p=i?c.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var A,k=0,w=1,D=2,T="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),M={};try{M=window}catch(Ir){}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:w,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._keyToClassName=this._config.classNameCache||{}}return e.getInstance=function(){var t;if(!(A=M.__stylesheet__)||A._lastStyleElement&&A._lastStyleElement.ownerDocument!==document){var n=(null===(t=M)||void 0===t?void 0:t.FabricConfig)||{};A=M.__stylesheet__=new e(n.mergeStyles)}return A},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!==k?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case w:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(e){}break;case D: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");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var r=this._findPlaceholderStyleTag();r?e.insertBefore(t,r.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function I(){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 N(e){P!==e&&(P=e)}function H(){return void 0===P&&(P="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),P}function O(){return{rtl:H()}}P=H();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 z,U=["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=U.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]=""+r+a}}var j="left",q="right",X=((z={})[j]=q,z[q]=j,z),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 c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&J(n,t,h,d[h])}else"object"==typeof u?null!==u&&J(n,t,c,u):void 0!==u&&("margin"===c||"padding"===c?te(i,c,u):i[c]=u)}}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,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,ie(e,r[u]))}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 c=a[s],u=(c=c.replace(/&/g,re("."+e.className,t)))+"{"+l+"}"+(0===c.indexOf("@")?"}":"");n.insertRule(u)}}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=u.apply(void 0,e),a=[];for(var s in o)if(o.hasOwnProperty(s)){if("subComponentStyles"===s){i.subComponentStyles=o.subComponentStyles||{};continue}var l=I(o[s]),c=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]=c.concat([f.className]).join(" "));else i[s]=c.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,ce=13,ue=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 Le(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");N(Ee=e)}(Ee="1"===t);var n=be();void 0===Ee&&n&&N(Ee="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!Ee}var Ae=0,ke=F.getInstance();ke&&ke.onReset&&ke.onReset((function(){return Ae++}));function we(e){void 0===e&&(e={});var t=new Map,n=0,r=0,i=Ae;return function(o,a){var s,l;if(void 0===a&&(a={}),e.useStaticStyles&&"function"==typeof o&&o.__noStyleOverride__)return o(a);r++;var c=t,u=a.theme,d=u&&void 0!==u.rtl?u.rtl:Le(),h=e.disableCaching;(i!==Ae&&(i=Ae,t=new Map,n=0),e.disableCaching||(c=Te(t,o),c=Te(c,a)),!h&&c.__retval__||(c.__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 c.__retval__}}function De(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=De(e,r[n])}else e=De(e,t);else if("object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e=De(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(Ie),Pe=!0}return(void 0===e?"id__":e)+Me.__currentId__++}function Ie(e){void 0===e&&(e=0),Me.__currentId__=e}function Ne(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 He(e,t){var n=Ne(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,ze=4,Ue=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&&(ut(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 c=nt(e,t.lastElementChild,!0,!0,!0,o,a,s);if(c){if(s&&ot(c,!0)||!s)return c;var u=nt(e,c.previousElementSibling,!0,!0,!0,o,a,s);if(u)return u;for(var d=c.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 c=rt(e,t.firstElementChild,!0,!0,!1,o,a,s);if(c)return c}if(t===e)return null;var u=rt(e,t.nextElementSibling,!0,!0,!1,o,a,s);return u||(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 ct=void 0;function ut(e){if(e){if(ct)return void(ct=e);ct=e;var t=p(e);t&&t.requestAnimationFrame((function(){var e=ct;ct=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,c=0,u=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-c,p=s?a-h:a;return h>=a&&(!t||s)?(c=n,u&&(r.clearTimeout(u),u=null),i=e.apply(r._parent,o)):null===u&&l&&(u=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,c=!0,u=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=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!==u&&(f>=u&&p?v=!0:a=Math.min(a,u-f)),i>=s||v||n?g(t):null!==p&&e||!c||(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 c=l[s];n[c]=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 Lt(){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 At(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function kt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return wt(e,O())}function wt(e,t){var n=I(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={}));kt({overflow:"hidden !important"});function Dt(){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 It=((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[ze]=Ft(ft.bottom,ft.left),Mt[Ue]=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 Nt(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function Ht(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 zt(e,t,n){return Rt(n,Ot(e,n)-Ot(t,n))}function Ut(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),Ut(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,c={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};o||a||(c=function(e,t,n,r,i){void 0===i&&(i=0);var o=[ft.left,ft.right,ft.bottom,ft.top];Le()&&(o[0]*=-1,o[1]*=-1);for(var a=e,s=r.targetEdge,l=r.alignmentEdge,c=0;c<4;c++){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 u=Ht(e,n);if(l){if(c.alignmentEdge&&u.indexOf(-1*c.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}}(c,t,i,a);if(Nt(d.elementRectangle,n))return d;c=Xt(Ht(d.elementRectangle,n),c,n)}}else c=Xt(u,c,n);return c}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 Ut(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 Ut(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(zt(e,n,t))>Math.abs(zt(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({},It[e]);return Le()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?It[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 Nt(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]]=zt(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=Ut(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=It[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(!Nt(n,e))for(var c=0,u=Ht(n,e);c<u.length;c++){var d=u[c];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 cn(e,t,n,r,i){return{elementPosition:function(e,t,n,r,i,o,a){var s={},l=on(t),c=o?n:-1*n,u=ft[c],d=i||Gt(n).positiveEdge;return a||(d=$t(e,d,r)),s[u]=zt(e,l,c),s[ft[d]]=zt(e,l,d),s}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,i),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function un(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 c=e.bounds?an(e.bounds):new Pt(0,window.innerWidth-Dt(),0,window.innerHeight),u=ln(l,n,c,r),d=nn(u,rn(o,u),c);return a(a({},cn(u,t,c,e.coverTarget,i)),{beakPosition:d})}function dn(e,t,n,r){return function(e,t,n,r){return un(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=c.createRef(),n._disposables=[],n._onKeyDown=function(e){switch(e.which){case ue: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(At(this._root.current,"focus",this._onFocus,!0),At(this._root.current,"blur",this._onBlur,!0));var e=p(this._root.current);e&&this._disposables.push(At(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 c.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}(c.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),Ln=Gn(40),An=Gn(400),kn=$n(10),wn=$n(20),Dn=$n(-10),Tn=$n(-20),Mn=Qn(10),Pn=Qn(20),Fn=Qn(40),In=Qn(400),Nn=Qn(-10),Hn=Qn(-20),On=Qn(-40),Bn=Qn(-400),Vn=Jn(-10),Rn=Jn(-20),Wn=Jn(10),zn=Jn(20),Un=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=kt(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+","+Ln,"0.367s",gn),slideLeftIn400:Zn(vn+","+An,"0.367s",gn),slideUpIn10:Zn(vn+","+kn,"0.367s",gn),slideUpIn20:Zn(vn+","+wn,"0.367s",gn),slideDownIn10:Zn(vn+","+Dn,"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+","+In,"0.367s",gn),slideLeftOut10:Zn(_n+","+Nn,"0.367s",gn),slideLeftOut20:Zn(_n+","+Hn,"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+","+zn,"0.367s",gn),scaleUpIn100:Zn(vn+","+Un,"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 cr;function ur(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,c=void 0===l?"relative":l,u=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:c,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:cr.FocusStyle,selectors:(r={},r[sr]=u,r)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(cr||(cr={}));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 c=0;c<r.length;c++){var u=br(r[c]);l.map.has(u)||l.map.set(u,Cr()),l=l.map.get(u)}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 Lr,Ar=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)"}(Lr||(Lr={}));var kr={elevation4:Lr.depth4,elevation8:Lr.depth8,elevation16:Lr.depth16,elevation64:Lr.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};var wr,Dr="'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,Ir,Nr,Hr,Or=(Pr=function(e){if(void 0===e&&(e="localStorage"),void 0===wr){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&&(wr=n),void 0===wr&&t&&(wr=t.documentElement.getAttribute("lang")),void 0===wr&&(wr="en")}return wr}("sessionStorage"),Fr=function(e){for(var t in Tr)if(Tr.hasOwnProperty(t)&&e&&0===t.indexOf(e))return Tr[t];return Dr}(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 zr(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}(Ur(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 Ur(e,t,n,r,i){var o,s,l;void 0===i&&(i=!1);var c={},u=e||{},d=u.white,h=u.black,p=u.themePrimary,f=u.themeDark,g=u.themeDarker,m=u.themeDarkAlt,v=u.themeLighter,_=u.neutralLight,y=u.neutralLighter,x=u.neutralDark,b=u.neutralQuaternary,C=u.neutralQuaternaryAlt,S=u.neutralPrimary,E=u.neutralSecondary,L=u.neutralSecondaryAlt,A=u.neutralTertiary,k=u.neutralTertiaryAlt,w=u.neutralLighterAlt,D=u.accent;return d&&(c.bodyBackground=d,c.bodyFrameBackground=d,c.accentButtonText=d,c.buttonBackground=d,c.primaryButtonText=d,c.primaryButtonTextHovered=d,c.primaryButtonTextPressed=d,c.inputBackground=d,c.inputForegroundChecked=d,c.listBackground=d,c.menuBackground=d,c.cardStandoutBackground=d),h&&(c.bodyTextChecked=h,c.buttonTextCheckedHovered=h),p&&(c.link=p,c.primaryButtonBackground=p,c.inputBackgroundChecked=p,c.inputIcon=p,c.inputFocusBorderAlt=p,c.menuIcon=p,c.menuHeader=p,c.accentButtonBackground=p),f&&(c.primaryButtonBackgroundPressed=f,c.inputBackgroundCheckedHovered=f,c.inputIconHovered=f),g&&(c.linkHovered=g),m&&(c.primaryButtonBackgroundHovered=m),v&&(c.inputPlaceholderBackgroundChecked=v),_&&(c.bodyBackgroundChecked=_,c.bodyFrameDivider=_,c.bodyDivider=_,c.variantBorder=_,c.buttonBackgroundCheckedHovered=_,c.buttonBackgroundPressed=_,c.listItemBackgroundChecked=_,c.listHeaderBackgroundPressed=_,c.menuItemBackgroundPressed=_,c.menuItemBackgroundChecked=_),y&&(c.bodyBackgroundHovered=y,c.buttonBackgroundHovered=y,c.buttonBackgroundDisabled=y,c.buttonBorderDisabled=y,c.primaryButtonBackgroundDisabled=y,c.disabledBackground=y,c.listItemBackgroundHovered=y,c.listHeaderBackgroundHovered=y,c.menuItemBackgroundHovered=y),b&&(c.primaryButtonTextDisabled=b,c.disabledSubtext=b),C&&(c.listItemBackgroundCheckedHovered=C),A&&(c.disabledBodyText=A,c.variantBorderHovered=(null===(o=n)||void 0===o?void 0:o.variantBorderHovered)||A,c.buttonTextDisabled=A,c.inputIconDisabled=A,c.disabledText=A),S&&(c.bodyText=S,c.actionLink=S,c.buttonText=S,c.inputBorderHovered=S,c.inputText=S,c.listText=S,c.menuItemText=S),w&&(c.bodyStandoutBackground=w,c.defaultStateBackground=w),x&&(c.actionLinkHovered=x,c.buttonTextHovered=x,c.buttonTextChecked=x,c.buttonTextPressed=x,c.inputTextHovered=x,c.menuItemTextHovered=x),E&&(c.bodySubtext=E,c.focusBorder=E,c.inputBorder=E,c.smallInputBorder=E,c.inputPlaceholderText=E),L&&(c.buttonBorder=L),k&&(c.disabledBodySubtext=k,c.disabledBorder=k,c.buttonBackgroundChecked=k,c.menuDivider=k),D&&(c.accentButtonBackground=D),(null===(s=t)||void 0===s?void 0:s.elevation4)&&(c.cardShadow=t.elevation4),!r&&(null===(l=t)||void 0===l?void 0:l.elevation8)?c.cardShadowHovered=t.elevation8:c.variantBorderHovered&&(c.cardShadowHovered="0 0 1px "+c.variantBorderHovered),c=a(a({},c),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!=(Hr=null===(Nr=null===(Ir=p())||void 0===Ir?void 0:Ir.FabricConfig)||void 0===Nr?void 0:Nr.fontBaseUrl)?Hr:"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:Ur(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 c=l[s];a.fonts[c]=Rr(a.fonts[c],t.defaultFontStyle,null===(o=null===(i=t)||void 0===i?void 0:i.fonts)||void 0===o?void 0:o[c])}return t.stylesheets&&(a.stylesheets=(e.stylesheets||[]).concat(t.stylesheets)),a}({palette:ar,effects:kr,fonts:Or,spacing:Yr,isInverted:n,disableGlobalClassNames:!1,semanticColors:zr(ar,kr,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(Ar.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],c=i+l.charAt(0).toUpperCase()+l.slice(1),u=o[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),t[c]=u}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.0"),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=we({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=c.createRef(),n._calloutElement=c.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,u=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=this._getTarget();var E=this.state.positions,L=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,A=x&&L&&x<L?x:L,k=_,w=u&&!!e;this._classNames=$r(n,{theme:this.props.theme,className:l,overflowYHidden:k,calloutWidth:p,positions:E,beakWidth:h,backgroundColor:y,calloutMinWidth:g,calloutMaxWidth:f});var D=a(a(a({},r),{maxHeight:A}),k&&{overflowY:"hidden"}),T=this.props.hidden?{visibility:"hidden"}:void 0;return c.createElement("div",{ref:this._hostElement,className:this._classNames.container,style:T},c.createElement("div",a({},Et(this.props,St,ti),{className:Lt(this._classNames.root,E&&E.targetEdge&&Gr[E.targetEdge]),style:E?E.elementPosition:ei,tabIndex:-1,ref:this._calloutElement}),w&&c.createElement("div",{className:this._classNames.beak,style:this._getBeakPosition()}),w&&c.createElement("div",{className:this._classNames.beakCurtain}),c.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:D,onMouseDown:this._mouseDownOnPopup,onMouseUp:this._mouseUpOnPopup}),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(At(e._targetWindow,"scroll",e._dismissOnScroll,!0),At(e._targetWindow,"resize",e._dismissOnResize,!0),At(e._targetWindow.document.documentElement,"focus",e._dismissOnLostFocus,!0),At(e._targetWindow.document.documentElement,"click",e._dismissOnLostFocus,!0),At(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 un(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 c=l[s];r&&c.left<=r&&c.right>=r&&i&&c.top<=i&&c.bottom>=i&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.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-Dt(),0,window.innerHeight),c=s.left||s.x,u=s.top||s.y,d=s.right||c,h=s.bottom||u;return sn(o.stopPropagation?new Pt(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==c&&void 0!==u?new Pt(c,d,u,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}(c.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=L(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,c=e.calloutMinWidth,u=Er(ii,n),d=n.semanticColors,h=n.effects;return{container:[u.container,{position:"relative"}],root:[u.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},!!c&&{minWidth:c}],beak:[u.beak,{position:"absolute",backgroundColor:d.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},ri(a),s&&{backgroundColor:s}],beakCurtain:[u.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:d.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[u.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={}),(ci(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={}),(ci(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 ci(e){return"function"==typeof e}var ui,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 c.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)),c.createElement(C.Provider,{value:r},e.props.children)}))},t}(c.Component),hi=((ui={})[ve]=1,ui[ye]=1,ui[me]=1,ui[_e]=1,ui[ge]=1,ui[fe]=1,ui[le]=1,ui[he]=1,ui[pe]=1,ui);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,c.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){ur(!1,e.target)}function vi(e){"mouse"!==e.pointerType&&ur(!1,e.target)}function _i(e){var t;t=e.which,hi[t]&&ur(!0,e.target)}var yi=we(),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=c.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=Le(e)?"rtl":"ltr",r=Le()?"rtl":"ltr",i=t||n;return{rootDir:i!==n||i!==r?i:t,needsTheme:i!==n}}(r,i),u=l.rootDir,d=l.needsTheme,h=c.createElement(n,a({dir:u},s,{className:o.root,ref:this._rootElement}));return d&&(h=c.createElement(di,{settings:{theme:xi(r,"rtl"===i)}},h)),c.createElement(c.Fragment,null,h,c.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}(c.Component),Ci={fontFamily:"inherit"},Si={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ei=L(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 Li(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 Ai,ki={},wi={};var Di,Ti=we(),Mi=function(e){function t(t){var n=e.call(this,t)||this;return n._rootRef=c.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"),Li(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){ki[e]||(ki[e]=[]),ki[e].push(t);var n=wi[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 c.createElement("span",{className:"ms-layer",ref:this._rootRef},e&&ai.createPortal(c.createElement(Ei,a({},!n&&function(){Di||(Di={},["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 Di[e]=Pi})));return Di}(),{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=ki[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete ki[e])}var i=wi[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&&Li(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=wi[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 c=Ai;return null!=(o=c?null===(r=s)||void 0===r?void 0:r.querySelector(c):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 c.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=u(s.styles,l.styles);t._styleCache.default=s.styles,t._styleCache.component=l.styles,t._styleCache.merged=d}return c.createElement(e,a({},s,l,{styles:t._styleCache.merged}))}return c.createElement(e,a({},s,l))}))},s.prototype._onSettingChanged=function(){this.forceUpdate()},s}(c.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)}(c.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"},Ii=L(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:cr.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"]}),Ni=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=c.createElement(oi,a({},n));return this.props.doNotLayer?r:c.createElement(Ii,a({},t),r)},t}(c.Component),Hi=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 zi(){return!this.__axis}function Ui(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l=1===e||4===e?-1:1,c=4===e||2===e?"x":"y",u=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"),L=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(c+"2",l*o)),L=L.merge(S.append("text").attr("fill","#000").attr(c,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),L=L.transition(d),C=C.transition(d).attr("opacity",1e-6).attr("transform",(function(e){return isFinite(e=_(e))?u(e):this.getAttribute("transform")})),S.attr("opacity",1e-6).attr("transform",(function(e){var t=this.parentNode.__axis;return u(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 u(_(e))})),E.attr(c+"2",l*o),L.attr(c,l*f).text(p),y.filter(zi).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=Hi.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Hi.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Hi.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 Ui(2,e)}function ji(e){return Ui(3,e)}function qi(e){return Ui(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=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},eo=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Ji(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 to=eo(Ji),no=to.right,ro=(to.left,no);var io=Array.prototype,oo=(io.slice,io.map,function(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}),ao=Math.sqrt(50),so=Math.sqrt(10),lo=Math.sqrt(2),co=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=uo(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o};function uo(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>=ao?10:o>=so?5:o>=lo?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ao?10:o>=so?5:o>=lo?2:1)}function ho(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>=ao?i*=10:o>=so?i*=5:o>=lo&&(i*=2),t<e?-i:i}function po(){}function fo(e,t){var n=new po;if(e instanceof po)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}po.prototype=fo.prototype={constructor:po,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var go=fo;function mo(){}var vo=go.prototype;function _o(e,t){var n=new mo;if(e instanceof mo)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}mo.prototype=_o.prototype={constructor:mo,has:vo.has,add:function(e){return this["$"+(e+="")]=e,this},remove:vo.remove,clear:vo.clear,values:vo.keys,size:vo.size,empty:vo.empty,each:vo.each};var yo=Array.prototype,xo=yo.map,bo=yo.slice,Co={name:"implicit"};function So(e){var t=go(),n=[],r=Co;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==Co)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return e=null==e?[]:bo.call(e),i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=go();for(var r,o,a=-1,s=e.length;++a<s;)t.has(o=(r=e[a])+"")||t.set(o,n.push(r));return i},i.range=function(t){return arguments.length?(e=bo.call(t),i):e.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return So().domain(n).range(e).unknown(r)},i}function Eo(){var e,t,n=So().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,l=0,c=.5;function u(){var n=r().length,u=o[1]<o[0],d=o[u-0],h=o[1-u];e=(h-d)/Math.max(1,n-s+2*l),a&&(e=Math.floor(e)),d+=(h-d-e*(n-s))*c,t=e*(1-s),a&&(d=Math.round(d),t=Math.round(t));var p=oo(n).map((function(t){return d+e*t}));return i(u?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),u()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],u()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,u()):a},n.padding=function(e){return arguments.length?(s=l=Math.max(0,Math.min(1,e)),u()):s},n.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),u()):s},n.paddingOuter=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),u()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),u()):c},n.copy=function(){return Eo().domain(r()).range(o).round(a).paddingInner(s).paddingOuter(l).align(c)},u()}var Lo=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},Ao=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function ko(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function wo(){}var Do="\\s*([+-]?\\d+)\\s*",To="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Po=/^#([0-9a-f]{3,8})$/,Fo=new RegExp("^rgb\\("+[Do,Do,Do]+"\\)$"),Io=new RegExp("^rgb\\("+[Mo,Mo,Mo]+"\\)$"),No=new RegExp("^rgba\\("+[Do,Do,Do,To]+"\\)$"),Ho=new RegExp("^rgba\\("+[Mo,Mo,Mo,To]+"\\)$"),Oo=new RegExp("^hsl\\("+[To,Mo,Mo]+"\\)$"),Bo=new RegExp("^hsla\\("+[To,Mo,Mo,To]+"\\)$"),Vo={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 Ro(){return this.rgb().formatHex()}function Wo(){return this.rgb().formatRgb()}function zo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Po.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Uo(t):3===n?new Xo(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new Xo(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new Xo(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=Fo.exec(e))?new Xo(t[1],t[2],t[3],1):(t=Io.exec(e))?new Xo(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=No.exec(e))?Yo(t[1],t[2],t[3],t[4]):(t=Ho.exec(e))?Yo(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oo.exec(e))?$o(t[1],t[2]/100,t[3]/100,1):(t=Bo.exec(e))?$o(t[1],t[2]/100,t[3]/100,t[4]):Vo.hasOwnProperty(e)?Uo(Vo[e]):"transparent"===e?new Xo(NaN,NaN,NaN,0):null}function Uo(e){return new Xo(e>>16&255,e>>8&255,255&e,1)}function Yo(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xo(e,t,n,r)}function jo(e){return e instanceof wo||(e=zo(e)),e?new Xo((e=e.rgb()).r,e.g,e.b,e.opacity):new Xo}function qo(e,t,n,r){return 1===arguments.length?jo(e):new Xo(e,t,n,null==r?1:r)}function Xo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ko(){return"#"+Go(this.r)+Go(this.g)+Go(this.b)}function Zo(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Go(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function $o(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Jo(e,t,n,r)}function Qo(e){if(e instanceof Jo)return new Jo(e.h,e.s,e.l,e.opacity);if(e instanceof wo||(e=zo(e)),!e)return new Jo;if(e instanceof Jo)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 Jo(a,s,l,e.opacity)}function Jo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ea(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 ta(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}Ao(wo,zo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ro,formatHex:Ro,formatHsl:function(){return Qo(this).formatHsl()},formatRgb:Wo,toString:Wo}),Ao(Xo,qo,ko(wo,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Xo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Xo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ko,formatHex:Ko,formatRgb:Zo,toString:Zo})),Ao(Jo,(function(e,t,n,r){return 1===arguments.length?Qo(e):new Jo(e,t,n,null==r?1:r)}),ko(wo,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Jo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Jo(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Xo(ea(e>=240?e-240:e+120,i,r),ea(e,i,r),ea(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var na=function(e){return function(){return e}};function ra(e,t){return function(n){return e+n*t}}function ia(e){return 1==(e=+e)?oa: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):na(isNaN(t)?n:t)}}function oa(e,t){var n=t-e;return n?ra(e,n):na(isNaN(e)?t:e)}var aa=function e(t){var n=ia(t);function r(e,t){var r=n((e=qo(e)).r,(t=qo(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=oa(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 sa(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=qo(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+""}}}sa((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 ta((n-r/t)*t,a,i,o,s)}})),sa((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 ta((n-r/t)*t,i,o,a,s)}}));var la=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 ca(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ua(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]=ma(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 da=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},ha=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]=ma(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},pa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fa=new RegExp(pa.source,"g");var ga=function(e,t){var n,r,i,o=pa.lastIndex=fa.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=pa.exec(e))&&(r=fa.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:Lo(n,r)})),o=fa.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("")})},ma=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?na(t):("number"===r?Lo:"string"===r?(n=zo(t))?(t=n,aa):ga:t instanceof zo?aa:t instanceof Date?da:ca(t)?la:Array.isArray(t)?ua:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?ha:Lo)(e,t)},va=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},_a=function(e){return function(){return e}},ya=function(e){return+e},xa=[0,1];function ba(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:_a(t)}function Ca(e,t,n,r){var i=e[0],o=e[1],a=t[0],s=t[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(e){return a(i(e))}}function Sa(e,t,n,r){var i=Math.min(e.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=n(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var n=ro(e,t,1,i)-1;return a[n](o[n](t))}}function Ea(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function La(e,t){var n,r,i,o=xa,a=xa,s=ma,l=!1;function c(){return n=Math.min(o.length,a.length)>2?Sa:Ca,r=i=null,u}function u(t){return(r||(r=n(o,a,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return u.invert=function(e){return(i||(i=n(a,o,ba,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},u.domain=function(e){return arguments.length?(o=xo.call(e,ya),c()):o.slice()},u.range=function(e){return arguments.length?(a=bo.call(e),c()):a.slice()},u.rangeRound=function(e){return a=bo.call(e),s=va,c()},u.clamp=function(e){return arguments.length?(l=!!e,c()):l},u.interpolate=function(e){return arguments.length?(s=e,c()):s},c()}var Aa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ka(e){if(!(t=Aa.exec(e)))throw new Error("invalid format: "+e);var t;return new wa({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 wa(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+""}ka.prototype=wa.prototype,wa.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 Da,Ta,Ma,Pa,Fa=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)]},Ia=function(e){return(e=Fa(Math.abs(e)))?e[1]:NaN},Na=function(e,t){var n=Fa(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")},Ha={"%":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 Na(100*e,t)},r:Na,s:function(e,t){var n=Fa(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Da=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")+Fa(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)}},Oa=function(e){return e},Ba=Array.prototype.map,Va=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Ta=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Oa:(t=Ba.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?Oa:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Ba.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=ka(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"):Ha[_]||(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=Ha[_],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)?u: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:c:"-"===d||"("===d?"":d)+h,S=("s"===_?Va[8+Da/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 L=h.length+e.length+S.length,A=L<f?new Array(f-L+1).join(t):"";switch(g&&p&&(e=r(A+e,A.length?f-S.length:1/0),A=""),n){case"<":e=h+e+S+A;break;case"=":e=h+A+e+S;break;case"^":e=A.slice(0,L=A.length>>1)+h+e+S+A.slice(L);break;default:e=A+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=ka(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Ia(t)/3))),i=Math.pow(10,-r),o=Va[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ma=Ta.format,Pa=Ta.formatPrefix;var Ra=function(e,t,n){var r,i=e[0],o=e[e.length-1],a=ho(i,o,null==t?10:t);switch((n=ka(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ia(t)/3)))-Ia(Math.abs(e)))}(a,s))||(n.precision=r),Pa(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ia(t)-Ia(e))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(e){return Math.max(0,-Ia(Math.abs(e)))}(a))||(n.precision=r-2*("%"===n.type))}return Ma(n)};function Wa(e){var t=e.domain;return e.ticks=function(e){var n=t();return co(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return Ra(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=uo(s,l,n))>0?r=uo(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=uo(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function za(){var e=La(ba,Lo);return e.copy=function(){return Ea(e,za())},Wa(e)}var Ua=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};var Ya=new Date,ja=new Date;function qa(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 qa((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 Ya.setTime(+t),ja.setTime(+r),e(Ya),e(ja),Math.floor(n(Ya,ja))},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 Xa=qa((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Xa.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?qa((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Xa:null};var Ka=Xa,Za=(Xa.range,qa((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()}))),Ga=Za,$a=(Za.range,qa((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()}))),Qa=$a,Ja=($a.range,qa((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()}))),es=Ja,ts=(Ja.range,qa((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}))),ns=ts;ts.range;function rs(e){return qa((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 is=rs(0),os=rs(1),as=rs(2),ss=rs(3),ls=rs(4),cs=rs(5),us=rs(6),ds=(is.range,os.range,as.range,ss.range,ls.range,cs.range,us.range,qa((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()}))),hs=ds,ps=(ds.range,qa((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()})));ps.every=function(e){return isFinite(e=Math.floor(e))&&e>0?qa((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 fs=ps,gs=(ps.range,qa((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()}))),ms=(gs.range,qa((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()}))),vs=(ms.range,qa((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 qa((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),Ls=ys(5),As=ys(6),ks=(xs.range,bs.range,Cs.range,Ss.range,Es.range,Ls.range,As.range,qa((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()}))),ws=(ks.range,qa((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()})));ws.every=function(e){return isFinite(e=Math.floor(e))&&e>0?qa((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 Ds=ws;ws.range;function Ts(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 Ms(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 Ps(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var Fs,Is,Ns,Hs,Os={"-":"",_:" ",0:"0"},Bs=/^\s*\d+/,Vs=/^%/,Rs=/[\\^$*+?|[\]().{}]/g;function Ws(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 zs(e){return e.replace(Rs,"\\$&")}function Us(e){return new RegExp("^(?:"+e.map(zs).join("|")+")","i")}function Ys(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function js(e,t,n){var r=Bs.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function qs(e,t,n){var r=Bs.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Xs(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ks(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Zs(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Gs(e,t,n){var r=Bs.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $s(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Qs(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 Js(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function el(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tl(e,t,n){var r=Bs.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function nl(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function rl(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function il(e,t,n){var r=Bs.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ol(e,t,n){var r=Bs.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function al(e,t,n){var r=Bs.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function sl(e,t,n){var r=Vs.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ll(e,t,n){var r=Bs.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function cl(e,t,n){var r=Bs.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function ul(e,t){return Ws(e.getDate(),t,2)}function dl(e,t){return Ws(e.getHours(),t,2)}function hl(e,t){return Ws(e.getHours()%12||12,t,2)}function pl(e,t){return Ws(1+ns.count(fs(e),e),t,3)}function fl(e,t){return Ws(e.getMilliseconds(),t,3)}function gl(e,t){return fl(e,t)+"000"}function ml(e,t){return Ws(e.getMonth()+1,t,2)}function vl(e,t){return Ws(e.getMinutes(),t,2)}function _l(e,t){return Ws(e.getSeconds(),t,2)}function yl(e){var t=e.getDay();return 0===t?7:t}function xl(e,t){return Ws(is.count(fs(e),e),t,2)}function bl(e,t){var n=e.getDay();return e=n>=4||0===n?ls(e):ls.ceil(e),Ws(ls.count(fs(e),e)+(4===fs(e).getDay()),t,2)}function Cl(e){return e.getDay()}function Sl(e,t){return Ws(os.count(fs(e),e),t,2)}function El(e,t){return Ws(e.getFullYear()%100,t,2)}function Ll(e,t){return Ws(e.getFullYear()%1e4,t,4)}function Al(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ws(t/60|0,"0",2)+Ws(t%60,"0",2)}function kl(e,t){return Ws(e.getUTCDate(),t,2)}function wl(e,t){return Ws(e.getUTCHours(),t,2)}function Dl(e,t){return Ws(e.getUTCHours()%12||12,t,2)}function Tl(e,t){return Ws(1+_s.count(Ds(e),e),t,3)}function Ml(e,t){return Ws(e.getUTCMilliseconds(),t,3)}function Pl(e,t){return Ml(e,t)+"000"}function Fl(e,t){return Ws(e.getUTCMonth()+1,t,2)}function Il(e,t){return Ws(e.getUTCMinutes(),t,2)}function Nl(e,t){return Ws(e.getUTCSeconds(),t,2)}function Hl(e){var t=e.getUTCDay();return 0===t?7:t}function Ol(e,t){return Ws(xs.count(Ds(e),e),t,2)}function Bl(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Es(e):Es.ceil(e),Ws(Es.count(Ds(e),e)+(4===Ds(e).getUTCDay()),t,2)}function Vl(e){return e.getUTCDay()}function Rl(e,t){return Ws(bs.count(Ds(e),e),t,2)}function Wl(e,t){return Ws(e.getUTCFullYear()%100,t,2)}function zl(e,t){return Ws(e.getUTCFullYear()%1e4,t,4)}function Ul(){return"+0000"}function Yl(){return"%"}function jl(e){return+e}function ql(e){return Math.floor(+e/1e3)}!function(e){Fs=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,c=Us(i),u=Ys(i),d=Us(o),h=Ys(o),p=Us(a),f=Ys(a),g=Us(s),m=Ys(s),v=Us(l),_=Ys(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:ul,e:ul,f:gl,H:dl,I:hl,j:pl,L:fl,m:ml,M:vl,p:function(e){return i[+(e.getHours()>=12)]},Q:jl,s:ql,S:_l,u:yl,U:xl,V:bl,w:Cl,W:Sl,x:null,X:null,y:El,Y:Ll,Z:Al,"%":Yl},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:kl,e:kl,f:Pl,H:wl,I:Dl,j:Tl,L:Ml,m:Fl,M:Il,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:jl,s:ql,S:Nl,u:Hl,U:Ol,V:Bl,w:Vl,W:Rl,x:null,X:null,y:Wl,Y:zl,Z:Ul,"%":Yl},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:el,e:el,f:al,H:nl,I:nl,j:tl,L:ol,m:Js,M:rl,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:ll,s:cl,S:il,u:qs,U:Xs,V:Ks,w:js,W:Zs,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:$s,Y:Gs,Z:Qs,"%":sl};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Os[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=Ps(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=Ms(Ps(o.y))).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=t(Ps(o.y))).getDay(),r=i>4||0===i?os.ceil(r):os(r),r=ns.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?Ms(Ps(o.y)).getUTCDay():t(Ps(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,Ms(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 Os?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+="",Ts);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,Ms);return t.toString=function(){return e},t}}}(e),Is=Fs.format,Fs.parse,Ns=Fs.utcFormat,Hs=Fs.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||Ns("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Hs("%Y-%m-%dT%H:%M:%S.%LZ");function Xl(e){return new Date(e)}function Kl(e){return e instanceof Date?+e:+new Date(+e)}function Zl(e,t,n,r,i,o,a,s,l){var c=La(ba,Lo),u=c.invert,d=c.domain,h=l(".%L"),p=l(":%S"),f=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),v=l("%b %d"),_=l("%B"),y=l("%Y"),x=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,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 b(s){return(a(s)<s?h:o(s)<s?p:i(s)<s?f:r(s)<s?g:t(s)<s?n(s)<s?m:v:e(s)<s?_:y)(s)}function C(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=eo((function(e){return e[2]})).right(x,o);a===x.length?(i=ho(n/31536e6,r/31536e6,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(ho(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(xo.call(e,Kl)):d().map(Xl)},c.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=C(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?b:l(t)},c.nice=function(e,t){var n=d();return(e=C(e,n[0],n[n.length-1],t))?d(Ua(n,e)):c},c.copy=function(){return Ea(c,Zl(e,t,n,r,i,o,a,s,l))},c}var Gl="http://www.w3.org/1999/xhtml",$l={svg:"http://www.w3.org/2000/svg",xhtml:Gl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ql=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),$l.hasOwnProperty(t)?{space:$l[t],local:e}:e};function Jl(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Gl&&t.documentElement.namespaceURI===Gl?t.createElement(e):t.createElementNS(n,e)}}function ec(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var tc=function(e){var t=Ql(e);return(t.local?ec:Jl)(t)};function nc(){}var rc=function(e){return null==e?nc:function(){return this.querySelector(e)}};function ic(){return[]}var oc=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var ac=document.documentElement;if(!ac.matches){var sc=ac.webkitMatchesSelector||ac.msMatchesSelector||ac.mozMatchesSelector||ac.oMatchesSelector;oc=function(e){return function(){return sc.call(this,e)}}}}var lc=oc,cc=function(e){return new Array(e.length)};function uc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}uc.prototype={constructor:uc,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 dc(e,t,n,r,i,o){for(var a,s=0,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new uc(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function hc(e,t,n,r,i,o,a){var s,l,c,u={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c="$"+a.call(l,l.__data__,s,t),c in u?i[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+a.call(e,o[s],s,o)])?(r[s]=l,l.__data__=o[s],u[c]=null):n[s]=new uc(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(i[s]=l)}function pc(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function fc(e){return function(){this.removeAttribute(e)}}function gc(e){return function(){this.removeAttributeNS(e.space,e.local)}}function mc(e,t){return function(){this.setAttribute(e,t)}}function vc(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function _c(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function yc(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 xc=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function bc(e){return function(){this.style.removeProperty(e)}}function Cc(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Sc(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ec(e,t){return e.style.getPropertyValue(t)||xc(e).getComputedStyle(e,null).getPropertyValue(t)}function Lc(e){return function(){delete this[e]}}function Ac(e,t){return function(){this[e]=t}}function kc(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function wc(e){return e.trim().split(/^|\s+/)}function Dc(e){return e.classList||new Tc(e)}function Tc(e){this._node=e,this._names=wc(e.getAttribute("class")||"")}function Mc(e,t){for(var n=Dc(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Pc(e,t){for(var n=Dc(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Fc(e){return function(){Mc(this,e)}}function Ic(e){return function(){Pc(this,e)}}function Nc(e,t){return function(){(t.apply(this,arguments)?Mc:Pc)(this,e)}}Tc.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 Hc(){this.textContent=""}function Oc(e){return function(){this.textContent=e}}function Bc(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Vc(){this.innerHTML=""}function Rc(e){return function(){this.innerHTML=e}}function Wc(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function zc(){this.nextSibling&&this.parentNode.appendChild(this)}function Uc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Yc(){return null}function jc(){var e=this.parentNode;e&&e.removeChild(this)}function qc(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Xc(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Kc={},Zc=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Kc={mouseenter:"mouseover",mouseleave:"mouseout"}));function Gc(e,t,n){return e=$c(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function $c(e,t,n){return function(r){var i=Zc;Zc=r;try{e.call(this,this.__data__,t,n)}finally{Zc=i}}}function Qc(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 Jc(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 eu(e,t,n){var r=Kc.hasOwnProperty(e.type)?Gc:$c;return function(i,o,a){var s,l=this.__on,c=r(t,o,a);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function tu(e,t,n){var r=xc(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 nu(e,t){return function(){return tu(this,e,t)}}function ru(e,t){return function(){return tu(this,e,t.apply(this,arguments))}}var iu=[null];function ou(e,t){this._groups=e,this._parents=t}function au(){return new ou([[document.documentElement]],iu)}ou.prototype=au.prototype={constructor:ou,select:function(e){"function"!=typeof e&&(e=rc(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,c=r[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new ou(r,this._parents)},selectAll:function(e){var t;"function"!=typeof e&&(e=null==(t=e)?ic: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],c=l.length,u=0;u<c;++u)(s=l[u])&&(i.push(e.call(s,s.__data__,u,l)),o.push(s));return new ou(i,o)},filter:function(e){"function"!=typeof e&&(e=lc(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]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new ou(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),u=-1,this.each((function(e){f[++u]=e})),f;var n,r=t?hc:dc,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),c=new Array(a),u=0;u<a;++u){var d=i[u],h=o[u],p=h.length,f=e.call(d,d&&d.__data__,u,i),g=f.length,m=l[u]=new Array(g),v=s[u]=new Array(g);r(d,h,m,v,c[u]=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 ou(s,i))._enter=l,s._exit=c,s},enter:function(){return new ou(this._enter||this._groups.map(cc),this._parents)},exit:function(){return new ou(this._exit||this._groups.map(cc),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,c=t[s],u=n[s],d=c.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new ou(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=pc);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,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new ou(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=Ql(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?gc:fc:"function"==typeof t?n.local?yc:_c:n.local?vc:mc)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?bc:"function"==typeof t?Sc:Cc)(e,t,null==n?"":n)):Ec(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Lc:"function"==typeof t?kc:Ac)(e,t)):this.node()[e]},classed:function(e,t){var n=wc(e+"");if(arguments.length<2){for(var r=Dc(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?Nc:t?Fc:Ic)(n,t))},text:function(e){return arguments.length?this.each(null==e?Hc:("function"==typeof e?Bc:Oc)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Vc:("function"==typeof e?Wc:Rc)(e)):this.node().innerHTML},raise:function(){return this.each(zc)},lower:function(){return this.each(Uc)},append:function(e){var t="function"==typeof e?e:tc(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:tc(e),r=null==t?Yc:"function"==typeof t?t:rc(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(jc)},clone:function(e){return this.select(e?Xc:qc)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Qc(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?eu:Jc,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,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];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?ru:nu)(e,t))}};var su=function(e){return"string"==typeof e?new ou([[document.querySelector(e)]],[document.documentElement]):new ou([[e]],iu)},lu=0;function cu(){this._="@"+(++lu).toString(36)}cu.prototype=function(){return new cu}.prototype={constructor:cu,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 uu,du,hu,pu,fu=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]},gu=function(e){return"string"==typeof e?new ou([document.querySelectorAll(e)],[document.documentElement]):new ou([null==e?[]:e],iu)};function mu(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,c=e.xAxisCount,u=void 0===c?6:c,d=e.xAxisElement,h=za().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]);i&&h.nice();var p=ji(h).tickSize(a).tickPadding(l).ticks(u).tickSizeOuter(0).tickFormat((function(e,n){var r="number"==typeof e?e:e.valueOf();return Du(r,t)}));return d&&su(d).call(p).selectAll("text").attr("aria-hidden","true"),h}function vu(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,c=void 0===l?6:l,u=Zl(fs,hs,is,ns,es,Qa,Ga,Ka,Is).domain([new Date(2e3,0,1),new Date(2e3,0,2)]).domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]),d=ji(u).tickSize(s).tickPadding(o).ticks(c);return t.tickValues&&d.tickValues(t.tickValues),t.tickFormat&&d.tickFormat(Is(t.tickFormat)),r&&su(r).call(d).selectAll("text").attr("aria-hidden","true"),u}function _u(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,c=e.yMinValue,u=void 0===c?0:c,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,L=i.startValue<u?0:u,A=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,L,x),k=za().domain([L,A[A.length-1]]).range([d-p.bottom,p.top+(b?C:0)]),w=(t?Yi(k):qi(k)).tickPadding(g).tickValues(A).tickSizeInner(-(h-p.left-p.right));return _?w.tickFormat(_):w.tickFormat(Ma(".2~s")),a&&su(a).call(w).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=A,k}!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"}(du||(du={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(hu||(hu={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(pu||(pu={}));function yu(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 xu(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var i=su("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 c=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(e){var t=u[e];su(t).on("mouseover",(function(t){i.style("opacity",.9),i.html(s[e]).style("left",Zc.pageX+"px").style("top",Zc.pageY-28+"px")})).on("mouseout",(function(e){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function bu(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 Cu(e,t,n,r,i,o,a,s){var c;if(o===hu.NumericAxis)switch(r){case du.AreaChart:case du.LineChart:c=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 du.VerticalStackedBarChart:c=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 du.VerticalBarChart:c=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:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(o===hu.DateAxis)switch(r){case du.AreaChart:case du.LineChart:c=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])),c=$i(l(i,[a])),u=t.left,d=n-t.right;return r?{dStartValue:c,dEndValue:s,rStartValue:u,rEndValue:d}:{dStartValue:s,dEndValue:c,rStartValue:u,rEndValue:d}}(e,t,n,i,s);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case du.VerticalStackedBarChart:case du.GroupedVerticalBarChart:case du.VerticalBarChart:case du.HeatMapChart:c=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:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return c}function Su(e,t){var n,r,i;switch(t){case du.AreaChart:case du.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 du.VerticalStackedBarChart:i=$i(r=e,(function(e){return e.y})),n={startValue:Qi(r,(function(e){return e.y})),endValue:i};break;case du.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 Eu,Lu,Au=function(e,t){if(t)switch(typeof e){case"string":return hu.StringAxis;case"number":return hu.NumericAxis;default:return hu.DateAxis}else switch(typeof e){case"string":return pu.StringAxis;case"number":return pu.NumericAxis;default:return pu.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"}(Eu||(Eu={})),function(e){e[e.dottedLine=0]="dottedLine"}(Lu||(Lu={}));var ku=((uu={})[Eu.circle]={widthRatio:1},uu[Eu.square]={widthRatio:1},uu[Eu.triangle]={widthRatio:1},uu[Eu.diamond]={widthRatio:1},uu[Eu.pyramid]={widthRatio:1},uu[Eu.hexagon]={widthRatio:2},uu[Eu.pentagon]={widthRatio:1.168},uu[Eu.octagon]={widthRatio:2.414},uu),wu=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}},Du=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},Tu=we(),Mu=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,u=e.culture;return this._classNames=Tu(o,{theme:a,color:t,XValue:r,isRatioPresent:!!s}),c.createElement("div",{className:this._classNames.calloutContentRoot},c.createElement("div",{className:this._classNames.calloutDateTimeContainer},c.createElement("div",{className:this._classNames.calloutContentX},r," ")),c.createElement("div",{className:this._classNames.calloutInfoContainer},c.createElement("div",{className:this._classNames.calloutBlockContainer},c.createElement("div",{className:this._classNames.calloutlegendText},Du(n,u)),c.createElement("div",{className:this._classNames.calloutContentY},Du(i,u))),!!s&&c.createElement("div",{className:this._classNames.ratio},c.createElement(c.Fragment,null,c.createElement("span",{className:this._classNames.numerator},Du(s[0],u)),"/",c.createElement("span",{className:this._classNames.denominator},Du(s[1],u))))),!!l&&c.createElement("div",{className:this._classNames.descriptionMessage},l))},t}(c.Component),Pu=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}]}},Fu=L(Mu,Pu),Iu=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 Nu(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 Hu(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Nu(e,e[n],t[n]))}(e,{componentDidMount:Ou,componentDidUpdate:Bu,componentWillUnmount:Vu})}function Ou(){Ru(this.props.componentRef,this)}function Bu(e){e.componentRef!==this.props.componentRef&&(Ru(e.componentRef,null),Ru(this.props.componentRef,this))}function Vu(){Ru(this.props.componentRef,null)}function Ru(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}var Wu,zu=1,Uu=2;!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(Wu||(Wu={}));var Yu;function ju(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 qu={},Xu=new Set,Ku=["text","number","password","email","tel","url","search"],Zu=function(e){function t(t){var n,r=e.call(this,t)||this;return r._root=c.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=Iu(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,c=n.shouldFocusInnerElementWhenReceivedFocus,u=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(c&&e.target===r._root.current){var p=u&&"function"==typeof u&&u(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 c=r._getFirstInnerZone();if(c){if(!c.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!==Wu.vertical&&(r._preventDefaultWhenHandled(e),r._moveFocusLeft(t)))break;return;case _e:if(i!==Wu.vertical&&(r._preventDefaultWhenHandled(e),r._moveFocusRight(t)))break;return;case ve:if(i!==Wu.horizontal&&(r._preventDefaultWhenHandled(e),r._moveFocusUp()))break;return;case ye:if(i!==Wu.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===zu||r.props.handleTabKey===Uu&&r._isElementInput(e.target)){var u=!1;if(r._processingTabKey=!0,i!==Wu.vertical&&r._shouldWrapFocus(r._activeElement,"data-no-horizontal-wrap"))u=(Le(t)?!e.shiftKey:e.shiftKey)?r._moveFocusLeft(t):r._moveFocusRight(t);else u=e.shiftKey?r._moveFocusUp():r._moveFocusDown();if(r._processingTabKey=!1,u)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 ce: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},Hu(r),r._id=Fe("FocusZone"),r._focusAlignment={left:0,top:0},r._processingTabKey=!1,r}return o(t,e),t.getOuterZones=function(){return Xu.size},t._onKeyDownCapture=function(e){e.which===le&&Xu.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(qu[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||(Xu.add(this),this._windowElement&&1===Xu.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 qu[this._id],this._isInnerZone||(Xu.delete(this),this._windowElement&&0===Xu.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,u=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 c.createElement(d,a({"aria-labelledby":s,"aria-describedby":o},u,i,{className:Lt((Yu||(Yu=kt({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Yu),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=qu[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 ju(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 qu[e.getAttribute("data-focuszone-id")];for(var t=e.firstElementChild;t;){if(at(t))return qu[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===Wu.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,e))return!1;var c=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 u=t(c,i.getBoundingClientRect());if(-1===u&&-1===o){a=i;break}if(u>-1&&(-1===o||u<o)&&(o=u,a=i),o>=0&&u<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(Le(e),(function(r,i){var o=-1;return(Le(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!==Wu.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(!Le(e),(function(r,i){var o=-1;return(Le(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!==Wu.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,c=n.getBoundingClientRect();do{if(n=e?rt(this._root.current,n):nt(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),h=Math.floor(c.bottom),p=Math.floor(u.bottom),f=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(e,c,u);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===Wu.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&&Ku.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:Wu.bidirectional,shouldRaiseClicks:!0},t}(c.Component),Gu=we(),$u=L(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=Gu(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?c.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=wu(e.chartDataAccessibilityData);switch(r){case"default":return c.createElement("div",a({className:n._classNames.chartDataText},l),Du(o,t));case"fraction":return c.createElement("div",a({},l),c.createElement("span",{className:n._classNames.chartDataText},Du(o,t)),c.createElement("span",{className:n._classNames.chartDataTextDenominator},"/"+Du(s,t)));case"percentage":var u=Du(Math.round(o/s*100),t)+"%";return c.createElement("div",a({className:n._classNames.chartDataText},l),u)}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},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 c.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,u=t.chartData[0].horizontalBarChartdata.x;return c.createElement("div",{key:n,className:e._classNames.items},c.createElement("div",{className:e._classNames.items},c.createElement(Zu,{direction:Wu.horizontal},c.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&c.createElement("div",a({className:e._classNames.chartDataText},wu(t.chartTitleAccessibilityData)),t.chartTitle),r)),t.chartData[0].data&&e._createBenchmark(t),c.createElement(Zu,{direction:Wu.horizontal},c.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},c.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,u,t.chartData[0]),onFocus:e._hoverOn.bind(e,u,t.chartData[0]),onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()},"aria-labelledby":e._calloutId,role:"img","aria-label":"Horizontal bar chart","data-is-focusable":!0,onBlur:e._hoverOff,onMouseLeave:e._hoverOff},s)))))})),c.createElement(Ni,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,wu(this.state.callOutAccessibilityData)),c.createElement(c.Fragment,null,this.props.onRenderCalloutPerHorizonalBar?this.props.onRenderCalloutPerHorizonalBar(this.state.barCalloutProps):c.createElement(Fu,{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=He(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 c.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)],u=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return t>0&&(a+=s),(s=u/o*100)<0?s=0:s<1&&0!==s&&(s=1),i.push(a),s<1?c.createElement(c.Fragment,{key:t}," "):c.createElement("rect",{key:t,x:i[t]+"%",y:0,width:s+"%",height:n._barHeight,fill:l})}))},t}(c.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"}}})),Qu=function(e){return function(){return e}},Ju=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},ed=function(e){return e},td=Math.abs,nd=Math.atan2,rd=Math.cos,id=Math.max,od=Math.min,ad=Math.sin,sd=Math.sqrt,ld=Math.PI,cd=ld/2,ud=2*ld;function dd(e){return e>1?0:e<-1?ld:Math.acos(e)}function hd(e){return e>=1?cd:e<=-1?-cd:Math.asin(e)}var pd=function(){var e=ed,t=Ju,n=null,r=Qu(0),i=Qu(ud),o=Qu(0);function a(a){var s,l,c,u,d,h=a.length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(ud,Math.max(-ud,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,c=p?(v-h*y)/p:0;s<h;++s,m=u)l=f[s],u=m+((d=g[l])>0?d*c:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:_};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:Qu(+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:Qu(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Qu(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Qu(+e),a):o},a},fd=Math.PI,gd=2*fd,md=gd-1e-6;function vd(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function _d(){return new vd}vd.prototype=_d.prototype={constructor:vd,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,c=o-e,u=a-t,d=c*c+u*u;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(u*s-l*c)>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((fd-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>1e-6&&(this._+="L"+(e+y*c)+","+(t+y*u)),this._+="A"+i+","+i+",0,0,"+ +(u*h>c*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,c=t+s,u=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%gd+gd),d>md?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=fd)+","+u+","+(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 yd=_d;function xd(e){return e.innerRadius}function bd(e){return e.outerRadius}function Cd(e){return e.startAngle}function Sd(e){return e.endAngle}function Ed(e){return e&&e.padAngle}function Ld(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,h=d*l-u*c;if(!(h*h<1e-12))return[e+(h=(u*(t-o)-d*(e-i))/h)*l,t+h*c]}function Ad(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/sd(s*s+l*l),u=c*l,d=-c*s,h=e+u,p=t+d,f=n+u,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)*sd(id(0,b*b*x-C*C)),E=(C*y-_*S)/x,L=(-C*_-y*S)/x,A=(C*y+_*S)/x,k=(-C*_+y*S)/x,w=E-m,D=L-v,T=A-m,M=k-v;return w*w+D*D>T*T+M*M&&(E=A,L=k),{cx:E,cy:L,x01:-u,y01:-d,x11:E*(i/b-1),y11:L*(i/b-1)}}var kd=function(){var e=xd,t=bd,n=Qu(0),r=null,i=Cd,o=Sd,a=Ed,s=null;function l(){var l,c,u=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-cd,p=o.apply(this,arguments)-cd,f=td(p-h),g=p>h;if(s||(s=l=yd()),d<u&&(c=d,d=u,u=c),d>1e-12)if(f>ud-1e-12)s.moveTo(d*rd(h),d*ad(h)),s.arc(0,0,d,h,p,!g),u>1e-12&&(s.moveTo(u*rd(p),u*ad(p)),s.arc(0,0,u,p,h,g));else{var m,v,_=h,y=p,x=h,b=p,C=f,S=f,E=a.apply(this,arguments)/2,L=E>1e-12&&(r?+r.apply(this,arguments):sd(u*u+d*d)),A=od(td(d-u)/2,+n.apply(this,arguments)),k=A,w=A;if(L>1e-12){var D=hd(L/u*ad(E)),T=hd(L/d*ad(E));(C-=2*D)>1e-12?(x+=D*=g?1:-1,b-=D):(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*rd(_),P=d*ad(_),F=u*rd(b),I=u*ad(b);if(A>1e-12){var N,H=d*rd(y),O=d*ad(y),B=u*rd(x),V=u*ad(x);if(f<ld&&(N=Ld(M,P,B,V,H,O,F,I))){var R=M-N[0],W=P-N[1],z=H-N[0],U=O-N[1],Y=1/ad(dd((R*z+W*U)/(sd(R*R+W*W)*sd(z*z+U*U)))/2),j=sd(N[0]*N[0]+N[1]*N[1]);k=od(A,(u-j)/(Y-1)),w=od(A,(d-j)/(Y+1))}}S>1e-12?w>1e-12?(m=Ad(B,V,M,P,d,w,g),v=Ad(H,O,F,I,d,w,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),w<A?s.arc(m.cx,m.cy,w,nd(m.y01,m.x01),nd(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,w,nd(m.y01,m.x01),nd(m.y11,m.x11),!g),s.arc(0,0,d,nd(m.cy+m.y11,m.cx+m.x11),nd(v.cy+v.y11,v.cx+v.x11),!g),s.arc(v.cx,v.cy,w,nd(v.y11,v.x11),nd(v.y01,v.x01),!g))):(s.moveTo(M,P),s.arc(0,0,d,_,y,!g)):s.moveTo(M,P),u>1e-12&&C>1e-12?k>1e-12?(m=Ad(F,I,H,O,u,-k,g),v=Ad(M,P,B,V,u,-k,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),k<A?s.arc(m.cx,m.cy,k,nd(m.y01,m.x01),nd(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,k,nd(m.y01,m.x01),nd(m.y11,m.x11),!g),s.arc(0,0,u,nd(m.cy+m.y11,m.cx+m.x11),nd(v.cy+v.y11,v.cx+v.x11),g),s.arc(v.cx,v.cy,k,nd(v.y11,v.x11),nd(v.y01,v.x01),!g))):s.arc(0,0,u,b,x,g):s.lineTo(F,I)}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-ld/2;return[rd(r)*n,ad(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Qu(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Qu(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Qu(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Qu(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Qu(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Qu(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Qu(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l},wd=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)}}},Dd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=c.createRef(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t}return o(t,e),t.getDerivedStateFromProps=function(e){return Td(e),null},t.prototype.updateChart=function(e){Td(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,i=t.focusedArcId,o=we()(wd,{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 c.createElement("g",{ref:this.currentRef},!!i&&i===a&&c.createElement("path",{id:a+"focusRing",d:n(this.props.focusData),className:o.focusRing}),c.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-labelledby":this.props.calloutId,role:"text"}),c.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:kd()},t}(c.Component);function Td(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Md=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 c.createElement(Dd,{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=pd().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 c.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:pd().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(c.Component),Pd={host:"ms-HoverCard-host"};var Fd,Id,Nd=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__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],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,c={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(c),a[n].count++,e._isElement(t)){var u=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}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,i):t.attachEvent&&t.attachEvent("on"+n,u)}else{c.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(c)}},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"}(Fd||(Fd={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(Id||(Id={}));var Hd,Od={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Bd(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"}(Hd||(Hd={}));var Vd=function(e){function t(n){var r=e.call(this,n)||this;return r._root=c.createRef(),r._firstBumper=c.createRef(),r._lastBumper=c.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())}},Hu(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=Bd(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=Bd(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 c.createElement("div",a({},o,{className:t,ref:this._root,"aria-labelledby":i,onFocusCapture:this._onFocusCapture,onFocus:this._onRootFocus,onBlur:this._onRootBlur}),c.createElement("div",a({},s,{ref:this._firstBumper,onFocus:this._onFirstBumperFocus})),this.props.children,c.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)||ut(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=At(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=At(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}(c.Component),Rd=function(e){return c.createElement(Ni,a({},e),c.createElement(Vd,a({disabled:e.hidden},e.focusTrapProps),e.children))},Wd=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,i=void 0===r?ze:r,o=e.directionalHintFixed,s=e.targetElement,l=e.firstFocus,u=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 c.createElement(c.Fragment,null,u?c.createElement(Rd,a({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),f):c.createElement(Ni,a({},m),f))},zd=we(),Ud=L(function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=c.createRef(),n._onKeyDown=function(e){e.which===ue&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return c.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})})),c.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},c.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),Hu(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,u=l.needsScroll,d=l.firstFrameRendered,h=n+r;this._classNames=zd(t,{theme:i,compactCardHeight:n,className:s,expandedCardHeight:r,needsScroll:u,expandedCardFirstFrameRendered:o===Hd.expanded&&d});var p=c.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return c.createElement(Wd,a({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(c.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,c=Er(Od,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[sr]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[c.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:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Yd={root:"ms-PlainCard-root"};var jd,qd=we(),Xd=L(function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===ue&&n.props.onLeave&&n.props.onLeave(e)},Hu(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=qd(t,{theme:n,className:r});var i=c.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return c.createElement(Wd,a({},this.props,{content:i,className:this._classNames.root}))},t}(c.Component),(function(e){var t,n=e.theme,r=e.className;return{root:[Er(Yd,n).root,{pointerEvents:"auto",selectors:(t={},t[sr]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),Kd=we(),Zd=L(function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=c.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:Hd.compact,openMode:"keydown"===e.type?Fd.hotKey:Fd.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==ue)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==ue||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:Hd.compact,openMode:Fd.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Hd.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)))},Hu(n),n._async=new dt(n),n._events=new Nd(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Hd.compact,openMode:Fd.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:Hd.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Hd.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,u=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=Kd(s,{theme:l,className:u});var x=a(a({},Et(this.props,St)),{id:y,trapFocus:!!p,firstFocus:f||_===Fd.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 c.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===Id.expanding?c.createElement(Ud,a({},b)):c.createElement(Xd,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:Id.expanding},t}(c.Component),(function(e){var t=e.className,n=e.theme;return{host:[Er(Pd,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(jd||(jd={}));var Gd=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 c=a(a({},t),{measureContainer:!1});return t.dataToMeasure&&(c="grow"===t.resizeDirection&&e.onGrowData?a(a({},c),function(e,t,s,l){for(var c=e,u=i(e,s);u<n;){var d=t(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=r.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return a({resizeDirection:"shrink"},o(c,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):a(a({},c),o(t.dataToMeasure,e.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:a({},e),resizeDirection:"grow",measureContainer:!0}}}},$d=c.createContext({isMeasured:!1}),Qd={position:"fixed",visibility:"hidden"},Jd={position:"relative"},eh=function(e){function t(t){var n=e.call(this,t)||this;return n._nextResizeGroupStateProvider=Gd(),n._root=c.createRef(),n._initialHiddenDiv=c.createRef(),n._updateHiddenDiv=c.createRef(),n._hasRenderedContent=!1,n.state=n._nextResizeGroupStateProvider.getInitialResizeGroupState(n.props.data),Hu(n),n._async=new dt(n),n._events=new Nd(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),u=!this._hasRenderedContent&&l;return c.createElement("div",a({},s,{className:t,ref:this._root}),c.createElement("div",{style:Jd},l&&!u&&c.createElement("div",{style:Qd,ref:this._updateHiddenDiv},c.createElement($d.Provider,{value:{isMeasured:!0}},n(i))),c.createElement("div",{ref:this._initialHiddenDiv,style:u?Qd:void 0,"data-automation-id":"visibleContent"},u?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===jd.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===jd.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}(c.Component);var th;!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"}(th||(th={}));var nh,rh=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?th.PERSISTED_KEYTIP_ADDED:th.KEYTIP_ADDED;Nd.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||Nd.raise(this,th.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?th.PERSISTED_KEYTIP_REMOVED:th.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Nd.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Nd.raise(this,th.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Nd.raise(this,th.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){Nd.raise(this,th.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}(),ih=we(),oh=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=c.createRef(),n._persistedKeytips={},n._keytipManager=rh.getInstance(),n._divContainer=c.createRef(),n._onRenderItems=function(e){return e.map((function(e,t){return c.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,c.createElement("div",a({},t),n.props.onRenderOverflowButton(i))},Hu(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,u=n.vertical,d=n.doNotContainWithinFocusZone,h=n.role,p=n.overflowSide,f=void 0===p?"end":p;this._classNames=ih(l,{className:o,vertical:u}),d?(e="div",t=a(a({},Et(this.props,St)),{ref:this._divContainer})):(e=Zu,t=a(a(a({},Et(this.props,St)),s),{componentRef:this._focusZone,direction:u?Wu.vertical:Wu.horizontal}));var g=i&&i.length>0;return c.createElement(e,a({role:h||"group","aria-orientation":"menubar"===h?!0===u?"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}(c.Component),ah={flexShrink:0,display:"inherit"},sh=L(oh,(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",ah],overflowButton:["ms-OverflowSet-overflowButton",ah]}}),void 0,{scope:"OverflowSet"}),lh=((nh={})[""+Eu[Eu.circle]]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",nh[""+Eu[Eu.square]]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",nh[""+Eu[Eu.triangle]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",nh[""+Eu[Eu.pyramid]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",nh[""+Eu[Eu.diamond]]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",nh[""+Eu[Eu.hexagon]]="M9 0H3L0 5L3 10H9L12 5L9 0Z",nh[""+Eu[Eu.pentagon]]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",nh[""+Eu[Eu.octagon]]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",nh[""+Lu[Lu.dottedLine]]="M0 6 H3 M5 6 H8 M10 6 H13",nh),ch=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,i=e.classNameForNonSvg;return-1===Object.keys(lh).indexOf(r)?c.createElement("div",{className:i}):c.createElement("svg",a({width:14,height:14,viewBox:"-1 -1 14 14"},t,{transform:"rotate("+(r===Eu[Eu.diamond]?45:r===Eu[Eu.triangle]?180:0)+", 0, 0)"}),c.createElement("path",a({d:lh[r]},n)))},uh=we(),dh=L(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 c.createElement(Zu,a({},s&&{role:"listbox","aria-label":"Legends"}),c.createElement(sh,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,u=[],d=uh(s,{theme:l,className:o});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);u.push(r)})),c.createElement(Zu,a({},i&&{role:"listbox"},{direction:Wu.vertical},n.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),u)},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,u=s.className,d=s.styles,h=s.overflowText,p=uh(d,{theme:l,className:u}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:o},g=h||"more";return c.createElement(Zd,{type:Id.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){var t=n.props.canSelectMultipleLegends,r=void 0!==t&&t,i=He(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},c.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),u=n.props,d=u.theme,h=u.className,p=u.styles,f=uh(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 c.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,c.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=uh(r,{theme:t,className:n});var i=this._generateData();return c.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):c.createElement(eh,{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 c.createElement(ch,{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}(c.Component),(function(e){var t,n,r,i,o,s=e.className,l=e.theme,c=e.isLineLegendInBarChart,u=void 0!==c&&c,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:u?"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)]}}}})),hh=we(),ph=L(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=hh(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var u=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 c.createElement("div",{className:this._classNames.root,ref:function(e){return n._rootElem=e},onMouseLeave:this._handleChartMouseLeave},c.createElement(Zu,{direction:Wu.horizontal,isCircularNavigation:!0},c.createElement("div",null,c.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)}},c.createElement(Md,{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})))),c.createElement(Ni,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,wu(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):c.createElement(Fu,{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&&c.createElement("div",{className:this._classNames.legendContainer},u))},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 c.createElement(dh,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=Du(e,this.props.culture);return n?null===(t=n)||void 0===t?void 0:t.toString():e},t.defaultProps={innerRadius:0},t}(c.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"}}})),fh=we(),gh=function(e){function t(t){var n,r,i,o,s,l,u,d,h,p,f,g,m=e.call(this,t)||this;return m.minLegendContainerHeight=32,m._isRtl=Le(),m._multiValueCallout=function(e){var t=m._yValueHoverSubCountsExists(e.YValueHover);return c.createElement("div",{className:m._classNames.calloutContentRoot},c.createElement("div",{className:m._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},c.createElement("div",a({className:m._classNames.calloutContentX},wu(e.xAxisCalloutAccessibilityData,"text",!1)),Du(e.hoverXValue,m.props.culture))),c.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 c.createElement("div",a({},wu(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&&c.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===(u=m.props.margins)||void 0===u?void 0:u.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,u=t.culture;this.props.parentRef&&this._fitParentContainer(),this.props.getmargins&&this.props.getmargins(this.margins);var d,h,p={domainNRangeValues:Cu(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:Su(r,i),yAxisPadding:this.props.yAxisPadding};switch(this.props.xAxisType){case hu.NumericAxis:d=mu(p,u);break;case hu.DateAxis:d=vu(p,this.props.tickParams);break;case hu.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,c=e.tickPadding,u=void 0===c?10:c,d=e.xAxisPadding,h=void 0===d?.1:d,p=Eo().domain(n).range([i.rStartValue,i.rEndValue]).padding(h),f=ji(p).tickSize(l).tickPadding(u).ticks(a).tickFormat((function(e,t){return Du(n[t],r)}));return e.xAxisElement&&su(e.xAxisElement).call(f).selectAll("text").attr("aria-hidden","true"),p}(p,this.props.tickParams,this.props.datasetForXAxisDomain,u);break;default:d=mu(p,u)}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=su(t).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var e=su(this),t=e.text(),n=e.text().slice(0,r)+"...",l=e.text().length,c=e.text().split(/\s+/).reverse();s.push(c.length);var u="",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(;u=c.pop();)d.push(u),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[u],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(u));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===pu.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,c=e.yAxisPadding,u=void 0===c?0:c,d=Eo().domain(t).range([r-a.bottom,a.top]).padding(u),h=(n?Yi(d):qi(d)).tickPadding(o).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&su(l).call(h).selectAll("text"),d}(f,this.props.stringDatasetForYAxisDomain,this._isRtl):_u(f,this._isRtl,v),this.props.getAxisData&&this.props.getAxisData(v),this._getData(d,h),this._classNames=fh(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===Wu.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Wu.horizontal,c.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this.props.onChartMouseLeave},c.createElement(Zu,a({direction:_},s),c.createElement("svg",a({width:y.width,height:y.height,"aria-label":this.props.chartTitle,style:{display:"block"}},l),c.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}),c.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&&c.createElement("div",{ref:function(t){return e.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),!this.props.hideTooltip&&n.isCalloutVisible&&c.createElement(Ni,a({},n),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(n),!this.props.customizedCallout&&!this.props.isCalloutForStack&&c.createElement(Fu,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=fh(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=Du(e.y,s);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var u=e.yAxisCalloutData;return c.createElement("div",{style:i},c.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",l,")"),Object.keys(u).map((function(e){return c.createElement("div",{key:e,className:a.calloutBlockContainer},c.createElement("div",{className:a.calloutlegendText}," ",Du(e,s)),c.createElement("div",{className:a.calloutContentY},Du(u[e],s)))})))}return c.createElement("div",{style:n?i:{}},n&&c.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",l,")"),c.createElement("div",{id:t+"_"+e.y,className:a.calloutBlockContainer},o&&c.createElement(ch,{svgProps:{className:a.shapeStyles},pathProps:{fill:e.color},shape:Eu[e.index%Object.keys(ku).length]}),c.createElement("div",null,c.createElement("div",{className:a.calloutlegendText}," ",e.legend),c.createElement("div",{className:a.calloutContentY},Du(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}(c.Component),mh=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}(),vh=L(gh,(function(e){var t,n,r,i,o,s,l,c,u=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"},u],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&&!mh&&{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:(c={},c[lr]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+d.semanticColors.menuDivider}]}})),_h=0,yh=1,xh=2,bh=3;var Ch=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 Sh(e,t){return Ch(e)(t)}var Eh={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Lh=function(e){return e.getBoundingClientRect()},Ah=Lh,kh=Lh,wh=function(e){function t(t){var n=e.call(this,t)||this;return n._root=c.createRef(),n._surface=c.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 c.createElement("div",a({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return c.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,u=l.items,d=void 0===u?[]:u,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(c.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 c.createElement("div",a({},p),g)},Hu(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps},n._async=new dt(n),n._events=new Nd(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=_h);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var c=this._getPageSpecification(l,o),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=kh(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 yh:return void(this._scrollElement.scrollTop=a);case xh:return void(this._scrollElement.scrollTop=g-d.height);case bh: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+=u}},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,c=[],u=Et(this.props,St),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=i?Sh(i,this._onRenderSurface):this._onRenderSurface;return(o?Sh(o,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:a(a({},u),{className:Lt("ms-List",t),role:c.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++){(u=s[a]).items&&(o[u.startIndex]=u)}for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(o[u.startIndex]?delete o[u.startIndex]:this._onPageAdded(u))}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({},Eh),l=[],c=1,u=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;c=n.itemCount;var y,x,b=u+o-1,C=Ne(t.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,S=!m||b>=m.top&&u<=m.bottom,E=!_._requiredRect||b>=_._requiredRect.top&&u<=_._requiredRect.bottom;if(!g&&(E||S&&C)||!f||h>=e&&h<e+c||e===i){d&&(l.push(d),d=null);var L=Math.min(c,p-e),A=_._createPage(v,r.slice(e,e+L),e,void 0,void 0,a);A.top=u,A.height=o,_._visibleRect&&_._visibleRect.bottom&&(A.isVisible=b>=_._visibleRect.top&&u<=_._visibleRect.bottom),l.push(A),E&&_._allowedRect&&(y=s,x={top:u,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-u)+1,d.itemCount+=c;if(u+=b-u+1,g&&f)return"break"},_=this,y=i;y<p;y+=c){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({},Eh),l=this._scrollElement&&this._scrollElement.scrollHeight,c=this._scrollElement?this._scrollElement.scrollTop:0;this._surface.current&&(n||!o||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=Ah(this._surface.current),this._scrollTop=c),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l;var u=Math.max(0,-s.top),d=p(this._root.current),h={top:u,left:s.left,bottom:u+d.innerHeight,right:s.right,width:s.width,height:d.innerHeight};this._requiredRect=Dh(h,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Dh(h,i,r),this._visibleRect=h}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return c.createElement(c.Fragment,null,e&&e.name||"")},renderedWindowsAhead:2,renderedWindowsBehind:2},t}(c.Component);function Dh(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 Th=function(e){var t=c.useRef(null);c.useEffect((function(){if(t.current){var n=su(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 c.createElement("text",a({ref:t},n))},Mh=function(e){var t,n=c.useRef(null),r=c.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=c.createElement(Ni,{target:n.current,onDismiss:function(){return o(!1)},setInitialFocus:!0,role:"dialog"},c.createElement(Zu,{isCircularNavigation:!0,direction:Wu.vertical},c.createElement(wh,{items:s,onRenderCell:function(e){return c.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),c.createElement(c.Fragment,null,c.createElement("g",{ref:n,onClick:function(){return o(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},c.createElement(Th,{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)},Ph=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 c.createElement("line",{key:n,x1:t.x,x2:t.x,y1:r,y2:e.chartYBottom,stroke:s,strokeDasharray:"8"})})),u=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=Ne(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=[],c=r;c<s;c++)l.push(c);var u=i(a,s);return u.unshift({x:e[r].x,anchor:o,aggregatedIdx:l}),u};return i(r,0)}(o,t+5,i[1],i[0]).map((function(r,i){return c.createElement(Mh,a({key:i},{lineDefs:o,labelDef:r,textY:n,textWidth:t,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return c.createElement(c.Fragment,null,l,u)};var Fh,Ih=we();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(Fh||(Fh={}));var Nh=L(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,c=n.state.activePoint;return a?c===e?Fh.hoverSize:1===t||r?2.5*l:Fh.invisibleSize:c===e?Fh.hoverSize:Fh.invisibleSize},n._getPath=function(e,t,r,i,o,a){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=n._getBoxWidthOfShape(r,i,o),u=l?a%Object.keys(ku).length:0,d=ku[u].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,c=d>1?c/d:c,u)},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=Su(n._points,du.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,u=o.data[s].endX,d=n.state.activeLegend===o.legend||""===n.state.activeLegend||n.state.isSelectedLegend?n._colorFillBarsOpacity:.1;t.push(c.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(u)-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 c.createElement("pattern",{id:""+n._colorFillBarPatternId+t,width:16,height:16,key:""+n._colorFillBarPatternId+t,patternUnits:"userSpaceOnUse"},c.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=He(n._calloutPoints,(function(e){return e.x===s}));if(l){var c=n;su("#"+i).attr("aria-labelledby","toolTip"+n._uniqueCallOutID),su("#"+n._verticalLine).attr("transform",(function(){return"translate("+c._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,c=e instanceof Date?e.getTime():e,u=n,d=He(n._calloutPoints,(function(e){return e.x===c}));d?(su("#"+n._verticalLine).attr("transform",(function(){return"translate("+u._xAxisScale(e)+", "+u._yAxisScale(t)+")"})).attr("visibility","visibility").attr("y2",""+(r-u._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(){su("#"+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=yu(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=yu(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=bu(this._points),u=this._points;o&&o.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=yu(u));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 c.createElement(vh,a({},this.props,{chartTitle:s.chartTitle,points:u,chartType:du.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:l?hu.DateAxis:hu.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,c.createElement(c.Fragment,null,c.createElement("g",null,c.createElement("line",{x1:0,y1:0,x2:0,y2:t.containerHeight,stroke:"#C8C8C8",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),c.createElement("g",null,e._renderedColorFillBars,e.lines),i&&c.createElement(Ph,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),u=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:Eu[e.index%Object.keys(ku).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 c.createElement(dh,a({legends:l(u,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,u,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,L=this._points[x].color,A=this.state.activePoint,k=this.props.theme,w=t-this.margins.bottom+6;if(1===this._points[x].data.length){var D=this._points[x].data[0],T=D.x,M=D.y,P=D.xAxisCalloutData,F=D.xAxisCalloutAccessibilityData,I=""+this._circleId+x;S.push(c.createElement("circle",{id:""+this._circleId+x,key:""+this._circleId+x,r:A===I?5.5:3.5,cx:this._xAxisScale(T),cy:this._yAxisScale(M),fill:A===I?k.palette.white:L,onMouseOver:this._handleHover.bind(this,T,M,w,P,I,F),onMouseMove:this._handleHover.bind(this,T,M,w,P,I,F),onMouseOut:this._handleMouseOut,strokeWidth:A===I?4:0,stroke:A===I?L:""}))}for(var N=0,H=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,H,N),n=t.isInGap;N=t.gapIndex;var r=""+B._lineId+x+e,l=""+B._borderId+x+e,y=""+B._circleId+x+e,D=B._points[x].data[e-1],T=D.x,M=D.y,P=D.xAxisCalloutData,F=D.xAxisCalloutAccessibilityData,I=B._points[x].data[e],O=I.x,V=I.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,z=B.state.activeLegend===E||""===B.state.activeLegend||B.state.isSelectedLegend,U=B._points[x].hideNonActiveDots&&A!==y;if(S.push(c.createElement("path",{id:y,key:y,d:R,"data-is-focusable":0===x,onMouseOver:B._handleHover.bind(B,T,M,w,P,y,F),onMouseMove:B._handleHover.bind(B,T,M,w,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:z&&!U?1:.01,fill:B._getPointFill(L,y,e,!1),stroke:L,strokeWidth:W})),e+1===B._points[x].data.length){var Y=""+y+e+"L",j=B._points[x].hideNonActiveDots&&A!==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(c.createElement("path",{id:Y,key:Y,d:R,"data-is-focusable":0===x,onMouseOver:B._handleHover.bind(B,O,V,w,X,Y,K),onMouseMove:B._handleHover.bind(B,O,V,w,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:z&&!j?1:.01,fill:B._getPointFill(L,Y,e,!0),stroke:L,strokeWidth:W}))}if(z){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(c.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)||k.palette.white,opacity:1})),b.push(c.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,w,P,y,F),onMouseMove:B._handleHover.bind(B,T,M,w,P,y,F),onMouseOut:B._handleMouseOut,stroke:L,strokeLinecap:(d=null===(u=B._points[x].lineOptions)||void 0===u?void 0:u.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(c.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:L,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=Ih(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=su(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var z={tooltipCls:R.tooltip,id:this._tooltipId,xAxis:W};W&&xu(z)}return y},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(c.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"})}})),Hh=Array.prototype.slice,Oh=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]},Bh=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function Vh(e,t){return e[t]}function Rh(e){this._context=e}Rh.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 Wh=function(e){return new Rh(e)};function zh(e){return e[0]}function Uh(e){return e[1]}var Yh=function(){var e=zh,t=Uh,n=Qu(!0),r=null,i=Wh,o=null;function a(a){var s,l,c,u=a.length,d=!1;for(null==r&&(o=i(c=yd())),s=0;s<=u;++s)!(s<u&&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(c)return o=null,c+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:Qu(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:Qu(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:Qu(!!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 jh(e){return e<0?-1:1}function qh(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(jh(o)+jh(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Xh(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Kh(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 Zh(e){this._context=e}function Gh(e){this._context=new $h(e)}function $h(e){this._context=e}function Qh(e){return new Zh(e)}Zh.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:Kh(this,this._t0,Xh(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,Kh(this,Xh(this,n=qh(this,e,t)),n);break;default:Kh(this,this._t0,n=qh(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Gh.prototype=Object.create(Zh.prototype)).point=function(e,t){Zh.prototype.point.call(this,t,e)},$h.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 Jh,ep=we(),tp=Ki((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Jh||(Jh={}));var np=L(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(fu(document.getElementById(n._rectId),e)[0]),i=tp(t[0].data,r),o=t[0].data[i-1],a=t[0].data[i],s=null,l=null,c=null;if(void 0===o&&void 0!==a)l=a.x,c=i;else if(void 0!==o&&void 0===a)l=o.x,c=i-1;else{var u=void 0,d=void 0,h=void 0;switch(s=Au(t[0].data[0].x,!0)){case hu.DateAxis:u=new Date(r).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1;break;case hu.NumericAxis:u=r,d=o.x,h=a.x,l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1}}var p=t[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleDateString():l,v=l instanceof Date?l.getTime():l,_=He(n._calloutPoints,(function(e){return e.x===v})),y=s===hu.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:Jh.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Jh.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Jh.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=Qu([]),t=Bh,n=Oh,r=Vh;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,c=s.length,u=new Array(c);for(o=0;o<c;++o){for(var d,h=s[o],p=u[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(u);o<c;++o)u[a[o]].index=o;return n(u,a),u}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Qu(Hh.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Qu(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?Bh:"function"==typeof e?e:Qu(Hh.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?Oh: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=yu(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 c=r&&Object.keys(r[0]).length,u=[],d=0;d<c-1;d++){var h="chart"+d;u.push(h)}var p=n._getStackedData(u,r);return{colors:i,opacity:o,keys:u,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)}})),c.createElement(dh,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,u=l.pointOptions,d=l.pointLineOptions,h=function(){var e=zh,t=null,n=Qu(0),r=Uh,i=Qu(!0),o=null,a=Wh,s=null;function l(l){var c,u,d,h,p,f=l.length,g=!1,m=new Array(f),v=new Array(f);for(null==o&&(s=a(p=yd())),c=0;c<=f;++c){if(!(c<f&&i(h=l[c],c,l))===g)if(g=!g)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=c-1;d>=u;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[c]=+e(h,c,l),v[c]=+n(h,c,l),s.point(t?+t(h,c,l):m[c],r?+r(h,c,l):v[c]))}if(p)return s=null,p+""||null}function c(){return Yh().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:Qu(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Qu(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Qu(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Qu(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Qu(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Qu(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:Qu(!!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(Qh),p=Yh().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Qh),f=[];n._stackedData.forEach((function(e,t){f.push(c.createElement(c.Fragment,{key:t+"-graph-"+n._uniqueIdForGraph},c.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)),c.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=u&&u.r?Number(u.r):8;n._stackedData.forEach((function(e,i){s.length!==i&&f.push(c.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,c.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)},u,{r:n._getCircleRadius(h,g)}))}))))})),f.push(c.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=ep(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=su(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&&xu(_)}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:Jh.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,u=i.calloutPoints;this._calloutPoints=u;var d=bu(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 c.createElement(vh,a({},this.props,{chartTitle:r,points:n,chartType:du.AreaChart,calloutProps:f,legendBars:h,isCalloutForStack:!0,xAxisType:d?hu.DateAxis:hu.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 c.createElement(c.Fragment,null,c.createElement("g",null,c.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),c.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}(c.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"})}})),rp=function(e){return{root:{fill:e.color,stroke:ar.white,strokeWidth:2}}},ip=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 c.createElement("g",{className:"arc"},e.prototype.render.call(this),c.createElement("text",{transform:a,textAnchor:"middle"},n.data.x,"-",Du(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){op(e)},t}return o(t,e),t.getDerivedStateFromProps=function(e){return op(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,i=we()(rp,{color:n});return c.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:kd()},t}(c.Component));function op(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var ap,sp=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return c.createElement(ip,{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=So().range(r);var l=n(i),u="translate("+o/2+", "+a/2+")";return c.createElement("svg",{width:o,height:a,"aria-label":s},c.createElement("g",{transform:u},l.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:pd().sort(null).value((function(e){return e.y}))},t}(c.Component),lp=we(),cp=L(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,u=a.styles,d=a.culture;this._classNames=lp(u,{theme:s,width:n,height:r,className:l});var h=Math.min(n,r)/2-10;return c.createElement("div",{className:this._classNames.root},this.props.chartTitle&&c.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),c.createElement(sp,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:i,chartTitle:o}))},t.defaultProps={data:[],width:600,height:350},t}(c.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)]}})),up=we(),dp=L(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.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,u=this.props.theme.palette,d=s||n.chartData.length>2?this.props.barHeight:8;r&&(r.color=r.color||u.neutralTertiary),i&&(i.color=i.color||u.neutralSecondary);var h=this._createBarsAndLegends(n,d,u,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=up(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 Du(n.chartData[0].data?n.chartData[0].data:0,l)};return c.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},c.createElement(Zu,{direction:Wu.horizontal},c.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&c.createElement("div",a({},wu(n.chartTitleAccessibilityData)),c.createElement("strong",null,n.chartTitle)),p&&c.createElement("div",a({},wu(n.chartDataAccessibilityData)),c.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&c.createElement("span",null,"/",c.createElement("span",{className:this._classNames.ratioDenominator},Du(g,l)))),f&&c.createElement("div",a({},wu(n.chartDataAccessibilityData)),c.createElement("strong",null,y()))),(r||i)&&c.createElement("div",{className:this._classNames.benchmarkContainer},r&&c.createElement("div",{className:this._classNames.benchmark,role:"text"}),i&&c.createElement("div",{className:this._classNames.target,role:"text"}))),c.createElement(Zu,{direction:Wu.horizontal},c.createElement("div",null,c.createElement("svg",{className:this._classNames.chart,"aria-label":null===(e=n)||void 0===e?void 0:e.chartTitle},c.createElement("g",null,h[0]),c.createElement(Ni,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,wu(this.state.callOutAccessibilityData,"text",!1)),c.createElement(c.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):c.createElement(Fu,{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})))))),_&&c.createElement("div",{className:this._classNames.legendContainer},h[1]))},t.prototype._adjustProps=function(){this._classNames=up(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=[],u=[],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),u.push(h);var f=o.props.styles,g=!0;return(o.state.isLegendHovered||o.state.isLegendSelected)&&(g=o.state.selectedLegendTitle===e.legend),o._classNames=up(f,{theme:o.props.theme,shouldHighlight:g,href:o.props.href}),p<1?c.createElement(c.Fragment,{key:n}," "):c.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-labelledby":o._calloutId,"aria-label":"Stacked bar chart",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},c.createElement("rect",{key:n,x:u[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(l,r),this._addLegend(l,i);var g=c.createElement(dh,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 c.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},c.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}(c.Component),(function(e){var t,n,r=e.className,i=e.width,o=e.barHeight,s=e.shouldHighlight,l=e.theme,c=e.href,u=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:c?"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:u,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, "+u+", "+u+")"},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)}}})),hp=we(),pp=L(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=hp(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)}}))})),c.createElement(dh,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.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=hp(this.props.styles,{legendColor:this.state.color,theme:r});var u=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 c.createElement("div",{key:n},r)}));return c.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&c.createElement("div",{className:this._classNames.legendContainer},s),c.createElement(Ni,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,wu(this.state.callOutAccessibilityData,"text",!1)),c.createElement(c.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):c.createElement(Fu,{Legend:u,YValue:d,color:this.state.color,culture:i}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,i,o){var s,l=this,u=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,u=!0;return(l.state.isLegendHovered||l.state.isLegendSelected)&&(u=l.state.selectedLegendTitle===e.legend),l._classNames=hp(s,{theme:l.props.theme,shouldHighlight:u,href:o}),g<1?c.createElement(c.Fragment,{key:r}," "):c.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,"aria-labelledby":l._calloutId,role:"img","aria-label":"Multi stacked bar chart",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},c.createElement("rect",{key:r,x:h[r]+"%",y:0,width:g+"%",height:t,fill:i}))}));0===e.chartData.length&&m.push(c.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,o)},c.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralTertiaryAlt}))),0===p&&m.push(c.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,o)},c.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 Du(e.chartData[0].data?e.chartData[0].data:0,u)};return c.createElement("div",{className:this._classNames.singleChartRoot},c.createElement(Zu,{direction:Wu.horizontal},c.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&c.createElement("div",a({},wu(e.chartTitleAccessibilityData)),c.createElement("strong",null,e.chartTitle)),_&&c.createElement("div",a({},wu(e.chartDataAccessibilityData)),c.createElement("strong",null,x()),!i&&c.createElement("span",null,"/",Du(p,u))),y&&c.createElement("div",a({},wu(e.chartDataAccessibilityData)),c.createElement("strong",null,x())))),c.createElement(Zu,{direction:Wu.horizontal},c.createElement("div",null,c.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}(c.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"}(ap||(ap={}));var fp,gp=we(),mp=L(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Le(),n._createLine=function(e,t,r,i){void 0===r&&(r=0),void 0===i&&(i=0);var o=n._xAxisType===hu.NumericAxis,a=n._getScales(r,i,o).xBarScale,s=n._createColors(),l=n.props.theme,u=n.props,d=u.data,h=u.lineLegendColor,p=void 0===h?l.palette.yellow:h,f=u.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=Yh().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 _=c.createElement("path",{opacity:v?1:.4,d:m(g),fill:"none",strokeWidth:3,stroke:p}),y=g.map((function(r,i){var l;return c.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?ap.show:ap.hide,onClick:null===(l=r.point.lineData)||void 0===l?void 0:l.onClick})}));return c.createElement(c.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 c.createElement(Fu,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 c.createElement(c.Fragment,null,o)},n._renderContentForOnlyBars=function(e){var t=n.props.useSingleColor,r=void 0!==t&&t;return c.createElement(c.Fragment,null,c.createElement(Fu,{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===hu.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,c=s.useSingleColor,u=void 0!==c&&c,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:u?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:za().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:za().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:Eo().domain(n._xAxisLabels).range([n.margins.left,t-n.margins.right]).padding(n.props.xAxisPadding||.1),yBarScale:za().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,u=s.lineLegendColor,d=void 0===u?i.palette.yellow:u,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 c.createElement(dh,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.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=Au(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=gp(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),wu(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return c.createElement(vh,a({},this.props,{points:this._points,chartType:du.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Wu.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return c.createElement(c.Fragment,null,c.createElement("g",null,e._bars),e._isHavingLine&&c.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 za().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,u=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=gp(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var a=Math.max(l(t.y),0);return a<1?c.createElement(c.Fragment,{key:t.x}," "):c.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,u(t.y)),"aria-labelledby":"toolTip"+r._calloutId,"aria-label":"Vertical bar chart",role:"text",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,u(t.y)),onBlur:r._onBarLeave,fill:t.color&&!o?t.color:u(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=su(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&&xu(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?c.createElement(c.Fragment,{key:t.x}," "):c.createElement("rect",{key:t.x,x:o(t.x),y:e-r.margins.bottom-a(t.y),width:r._barWidth,height:i,"aria-labelledby":"toolTip"+r._calloutId,"aria-label":"Vertical bar chart",role:"text",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 u=su(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:u,showTooltip:this.props.showXAxisLablesTooltip};u&&xu(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}(c.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"})}})),vp=we();!function(e){e.show="visibility",e.hide="hidden"}(fp||(fp={}));var _p=L(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Le(),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,u=o.selectedLegendTitle,d=n._xAxisType===hu.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=u===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(c.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&&u===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(c.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&&u===r?n._lineHover.bind(n,o):n._onStackHover.bind(n,o.xItem)},l&&u===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)"})))}))})),c.createElement(c.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:fp.show,radius:8}:t===a?{visibility:fp.show,radius:.3}:{visibility:fp.hide,radius:0}:{visibility:o===e?fp.show:fp.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,u=o.barMinimumHeight,d=void 0===u?0:u,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,u=e((n._xAxisType,hu.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=vp(n.props.styles,{theme:n.props.theme,shouldHighlight:_,href:n.props.href}),x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-labelledby":"toolTip"+n._calloutId,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===hu.NumericAxis?0:e.bandwidth()/2;return l&&b>l&&r===h.length-1?c.createElement("path",a({key:r+o,className:y.opacityChangeOnHover,d:"\n M "+u+" "+(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?c.createElement(c.Fragment,{key:r+o}," "):c.createElement("rect",a({key:r+o+""+p,className:y.opacityChangeOnHover,x:u,y:s,width:n._barWidth,height:b,fill:f,ref:function(e){return v.refElement=e}},x,{role:"text",transform:"translate("+C+", 0)"}))})),_={},y=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-labelledby":"toolTip"+n._calloutId,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:"text"};return c.createElement("g",a({key:o+""+p,id:o+"-singleBar",ref:function(e){return _.refElement=e}},y),v)}}})),g=vp(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=su(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&&xu(v)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var i=n._yMax,o=za().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:za().domain(n._isRtl?[a,0]:[0,a]).nice().range([n.margins.left,t-n.margins.right-n._barWidth]),yBarScale:o}}return{xBarScale:Eo().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===hu.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.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),wu(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return c.createElement(vh,a({},this.props,{points:this._dataset,chartType:du.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,tickParams:l,legendBars:o,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:i||t?Wu.horizontal:Wu.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return c.createElement(c.Fragment,null,c.createElement("g",null,e._bars),c.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=Au(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?c.createElement(Fu,{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 c.createElement(c.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 u=[];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};u.push(t)}));var d=u.concat(o);return c.createElement(dh,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}(c.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"})}})),yp=we(),xp=L(function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=Le(),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=za().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 u=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(u.forEach((function(t,o){var d=e.indexNum*u.length+o,h=e[t];h.data&&s.push(c.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-labelledby":"toolTip"+n._calloutId,role:"text"}))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=su(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&&xu(h)}var p=n._isCustomBarWidth?(t.bandwidth()-n._x1TotalBandWidth)/2:0;return c.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 Eo().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 Eo().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)}}))})),c.createElement(dh,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._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=Au(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=yp(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=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}),wu(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return c.createElement(vh,a({},this.props,{points:this._datasetForBars,chartType:du.GroupedVerticalBarChart,calloutProps:u,legendBars:s,xAxisType:this._isNumeric,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Wu.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(){return c.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}(c.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"})}})),bp=we(),Cp=L(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,s=c.createElement("g",a({key:o},n.state.calloutId&&{"aria-labelledby":""+n.state.calloutId},{"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}),c.createElement("rect",{fill:n._colorScale(t.value),width:n._xAxisScale.bandwidth(),height:n._yAxisScale.bandwidth(),onClick:t.onClick}),c.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:n._classNames.text,transform:"translate("+n._xAxisScale.bandwidth()/2+", "+n._yAxisScale.bandwidth()/2+")"},Du(t.rectText,n.props.culture)));e.push(s)}))})),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)})),c.createElement(dh,a({},r,{legends:i}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return za().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===hu.DateAxis?""+e.getTime():n._xAxisType===hu.StringAxis?e:n._xAxisType===hu.NumericAxis?""+e:""},n._getYIndex=function(e){return n._yAxisType===pu.DateAxis?""+e.getTime():n._yAxisType===pu.StringAxis?e:n._yAxisType===pu.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 c={},u={},d={};return s.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",u[r]="1",c[r]?c[r]=l(c[r],[e]):c[r]=[e]})),Object.keys(c).forEach((function(e){c[e].sort((function(e,t){return n._xAxisType===hu.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===hu.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===hu.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===hu.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===hu.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===hu.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===pu.DateAxis&&(e.y=n._getStringFormattedDate(e.y,i)),n._yAxisType===pu.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,o)),n._yAxisType===pu.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(c).forEach((function(e){n._yAxisType===pu.DateAxis?c[n._getStringFormattedDate(e,i)]=c[e]:n._yAxisType===pu.NumericAxis?c[""+n._getStringFormattedNumber(e,o)]=c[e]:c[n._getFormattedLabelForYAxisDataPoint(e)]=c[e]})),{dataSet:c,yAxisPoints:n._getYAxisDataPoints(u),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===hu.DateAxis||n._xAxisType===hu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===hu.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===hu.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===pu.DateAxis||n._yAxisType===pu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===pu.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===pu.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),Is(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return Ma(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})};var r=n._getXandY(),i=r.x,o=r.y;return n._xAxisType=Au(i,!0),n._yAxisType=Au(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),u=l.dataSet,d=l.xAxisPoints,h=l.yAxisPoints;this._dataSet=u,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=bp(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:ze,onDismiss:this._closeCallout}),wu(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=a(a({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return c.createElement(vh,a({},this.props,{points:n,chartType:du.HeatMapChart,xAxisType:hu.StringAxis,yAxisType:pu.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:Wu.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(c.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 Sp(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 Ep(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ap)):void 0===t&&(t=Lp);for(var n,r,i,o,a,s=new Dp(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 Dp(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(wp)}function Lp(e){return e.children}function Ap(e){return Array.isArray(e)?e[1]:null}function kp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function wp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Dp(e){this.data=e,this.depth=this.height=0,this.parent=null}function Tp(e,t){return e.parent===t.parent?1:2}function Mp(e){var t=e.children;return t?t[0]:e.t}function Pp(e){var t=e.children;return t?t[t.length-1]:e.t}function Fp(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 Ip(e,t,n){return e.a.parent===t.parent?e.a:n}function Np(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}Dp.prototype=Ep.prototype={constructor:Dp,count:function(){return this.eachAfter(Sp)},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 Ep(this).eachBefore(kp)},[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)}},Np.prototype=Object.create(Dp.prototype);var Hp,Op,Bp=function(){var e=Tp,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,o,a=new Np(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 Np(r[i],i)),n.parent=t;return(a.parent=new Np(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var c=i,u=i,d=i;i.eachBefore((function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)}));var h=c===u?1:e(c,u)/2,p=h-c.x,f=t/(u.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],c=o.m,u=a.m,d=s.m,h=l.m;s=Pp(s),o=Mp(o),s&&o;)l=Mp(l),(a=Pp(a)).a=t,(i=s.z+d-o.z-c+e(s._,o._))>0&&(Fp(Ip(s,t,r),t,i),c+=i,u+=i),d+=s.m,c+=o.m,h+=l.m,u+=a.m;s&&!Pp(a)&&(a.t=s,a.m+=d-u),o&&!Mp(l)&&(l.t=o,l.m+=c-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},Vp=we(),Rp=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,c=(e=e<65?65:e>90?90:e)||75,u=Ep(this.treeData,(function(e){return e.children})),d=(null===(n=u)||void 0===n?void 0:n.height)+1;Bp().nodeSize([c,c/1.5]).separation((function(e,t){return e.parent===u&&t.parent===u?3.5:1}))(u).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?u.each((function(e){f(e)})):u.eachBefore((function(e){f(e)}));for(var g=3*c,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,L=(null===(i=h[x.parentID])||void 0===i?void 0:i.x)-C/2-10,A=(null===(o=h[x.parentID])||void 0===o?void 0:o.x)+C/2+10,k=null===(a=h[x.parentID])||void 0===a?void 0:a.x,w=null===(s=E[0])||void 0===s?void 0:s.y,D=0;D<E.length;++D){var T=E[D];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?1===E.length?k:L:A,w,T.data.fill,1===E.length?g:C,m,T.id,b),D%2==1&&(w+=S+20)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,k,w,T.data.fill,g,m,T.id,b),w+=S+20):E.length>2?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?L:A,w,T.data.fill,1===E.length?g:C,m,T.id,b),D%2==1&&(w+=S+20)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,k,w,T.data.fill,g,m,T.id,b),w+=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=su(".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),gu(".tempText").remove(),i},e.prototype.addNodeShapetoSVG=function(e,t,n,r,i,o,a,s,l,u,d){var h="nodeId: "+u+" \nnodeMainText: "+e+"\nsubText "+t+" "+d,p=i-s/2;!r&&0===u&&n||this._nodeElements.push(c.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:""+u+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?c.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+s/2},r):n?c.createElement(c.Fragment,null,c.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+s/2},t),c.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+s/2},n)):c.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+s/2},t);t||r||n?this._nodeElements.push(c.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:""+u+this.styleClassNames.rectText},e,f)):this._nodeElements.push(c.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:o+l/1.6,x:p+s/2,key:""+u+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,u){void 0===u&&(u=0),this._linkElements.push(c.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,i,o,a,s,l,u),key:""+e+this.styleClassNames.link}))},e}()),Wp=L(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=Vp(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=gu("text"),n=gu("rect"),r=gu("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 Rp(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 c.createElement(Zu,null,c.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},c.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},c.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),c.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},t}(c.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"}(Hp||(Hp={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(Op||(Op={})),Object(r.a)("@uifabric/charting","4.23.12")},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
|