@ansible/ansible-ui-framework 2.4.461 → 2.4.463

Sign up to get free protection for your applications and to get access to all the features.
package/index.umd.cjs CHANGED
@@ -1,4 +1,4 @@
1
- var i1e=Object.defineProperty;var a1e=(H,x,C)=>x in H?i1e(H,x,{enumerable:!0,configurable:!0,writable:!0,value:C}):H[x]=C;var Fy=(H,x,C)=>(a1e(H,typeof x!="symbol"?x+"":x,C),C),NP=(H,x,C)=>{if(!x.has(H))throw TypeError("Cannot "+C)};var Gi=(H,x,C)=>(NP(H,x,"read from private field"),C?C.call(H):x.get(H)),th=(H,x,C)=>{if(x.has(H))throw TypeError("Cannot add the same private member more than once");x instanceof WeakSet?x.add(H):x.set(H,C)},yi=(H,x,C,Ce)=>(NP(H,x,"write to private field"),Ce?Ce.call(H,C):x.set(H,C),C);var Ny=(H,x,C,Ce)=>({set _(Rt){yi(H,x,Rt,C)},get _(){return Gi(H,x,Ce)}});(function(H,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("@patternfly/react-core"),require("@patternfly/react-icons"),require("react-router-dom"),require("@patternfly/react-table"),require("react-dom"),require("monaco-editor")):typeof define=="function"&&define.amd?define(["exports","react","@patternfly/react-core","@patternfly/react-icons","react-router-dom","@patternfly/react-table","react-dom","monaco-editor"],x):(H=typeof globalThis<"u"?globalThis:H||self,x(H["@ansible/ansible-ui-framework"]={},H.React,H.PatternflyReactCore,H.PatternflyReactIcons,H.ReactRouterDom,H.PatternflyReactTable,H.ReactDOM,H.MonacoEditor))})(this,function(H,x,C,Ce,Rt,je,BP,RP){var Rr,Fa,Na;"use strict";function nh(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const F=nh(x),By=nh(BP),Pn=nh(RP);var kt=(e=>(e[e.Button=0]="Button",e[e.Link=1]="Link",e[e.Switch=2]="Switch",e[e.Dropdown=3]="Dropdown",e[e.Seperator=4]="Seperator",e))(kt||{}),ot=(e=>(e[e.None=0]="None",e[e.Single=1]="Single",e[e.Multiple=2]="Multiple",e))(ot||{}),al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rh={exports:{}},ol={};/**
1
+ var i1e=Object.defineProperty;var a1e=(q,x,C)=>x in q?i1e(q,x,{enumerable:!0,configurable:!0,writable:!0,value:C}):q[x]=C;var Fy=(q,x,C)=>(a1e(q,typeof x!="symbol"?x+"":x,C),C),NP=(q,x,C)=>{if(!x.has(q))throw TypeError("Cannot "+C)};var Gi=(q,x,C)=>(NP(q,x,"read from private field"),C?C.call(q):x.get(q)),th=(q,x,C)=>{if(x.has(q))throw TypeError("Cannot add the same private member more than once");x instanceof WeakSet?x.add(q):x.set(q,C)},yi=(q,x,C,Ce)=>(NP(q,x,"write to private field"),Ce?Ce.call(q,C):x.set(q,C),C);var Ny=(q,x,C,Ce)=>({set _(Rt){yi(q,x,Rt,C)},get _(){return Gi(q,x,Ce)}});(function(q,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("@patternfly/react-core"),require("@patternfly/react-icons"),require("react-router-dom"),require("@patternfly/react-table"),require("react-dom"),require("monaco-editor")):typeof define=="function"&&define.amd?define(["exports","react","@patternfly/react-core","@patternfly/react-icons","react-router-dom","@patternfly/react-table","react-dom","monaco-editor"],x):(q=typeof globalThis<"u"?globalThis:q||self,x(q["@ansible/ansible-ui-framework"]={},q.React,q.PatternflyReactCore,q.PatternflyReactIcons,q.ReactRouterDom,q.PatternflyReactTable,q.ReactDOM,q.MonacoEditor))})(this,function(q,x,C,Ce,Rt,je,BP,RP){var Rr,Fa,Na;"use strict";function nh(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const F=nh(x),By=nh(BP),Pn=nh(RP);var kt=(e=>(e[e.Button=0]="Button",e[e.Link=1]="Link",e[e.Switch=2]="Switch",e[e.Dropdown=3]="Dropdown",e[e.Seperator=4]="Seperator",e))(kt||{}),ot=(e=>(e[e.None=0]="None",e[e.Single=1]="Single",e[e.Multiple=2]="Multiple",e))(ot||{}),al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rh={exports:{}},ol={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -14,17 +14,17 @@ var i1e=Object.defineProperty;var a1e=(H,x,C)=>x in H?i1e(H,x,{enumerable:!0,con
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Wy;function zP(){return Wy||(Wy=1,process.env.NODE_ENV!=="production"&&function(){var e=x,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function y(L){if(L===null||typeof L!="object")return null;var de=g&&L[g]||L[p];return typeof de=="function"?de:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(L){{for(var de=arguments.length,ve=new Array(de>1?de-1:0),Te=1;Te<de;Te++)ve[Te-1]=arguments[Te];S("error",L,ve)}}function S(L,de,ve){{var Te=_.ReactDebugCurrentFrame,qe=Te.getStackAddendum();qe!==""&&(de+="%s",ve=ve.concat([qe]));var Je=ve.map(function(Ne){return String(Ne)});Je.unshift("Warning: "+de),Function.prototype.apply.call(console[L],console,Je)}}var O=!1,w=!1,A=!1,T=!1,k=!1,j;j=Symbol.for("react.module.reference");function N(L){return!!(typeof L=="string"||typeof L=="function"||L===r||L===a||k||L===i||L===u||L===c||T||L===h||O||w||A||typeof L=="object"&&L!==null&&(L.$$typeof===d||L.$$typeof===f||L.$$typeof===o||L.$$typeof===l||L.$$typeof===s||L.$$typeof===j||L.getModuleId!==void 0))}function M(L,de,ve){var Te=L.displayName;if(Te)return Te;var qe=de.displayName||de.name||"";return qe!==""?ve+"("+qe+")":ve}function E(L){return L.displayName||"Context"}function I(L){if(L==null)return null;if(typeof L.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof L=="function")return L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof L=="object")switch(L.$$typeof){case l:var de=L;return E(de)+".Consumer";case o:var ve=L;return E(ve._context)+".Provider";case s:return M(L,L.render,"ForwardRef");case f:var Te=L.displayName||null;return Te!==null?Te:I(L.type)||"Memo";case d:{var qe=L,Je=qe._payload,Ne=qe._init;try{return I(Ne(Je))}catch{return null}}}return null}var D=Object.assign,W=0,X,re,ne,ee,z,Z,q;function Y(){}Y.__reactDisabledLog=!0;function G(){{if(W===0){X=console.log,re=console.info,ne=console.warn,ee=console.error,z=console.group,Z=console.groupCollapsed,q=console.groupEnd;var L={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:L,log:L,warn:L,error:L,group:L,groupCollapsed:L,groupEnd:L})}W++}}function ie(){{if(W--,W===0){var L={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},L,{value:X}),info:D({},L,{value:re}),warn:D({},L,{value:ne}),error:D({},L,{value:ee}),group:D({},L,{value:z}),groupCollapsed:D({},L,{value:Z}),groupEnd:D({},L,{value:q})})}W<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=_.ReactCurrentDispatcher,se;function K(L,de,ve){{if(se===void 0)try{throw Error()}catch(qe){var Te=qe.stack.trim().match(/\n( *(at )?)/);se=Te&&Te[1]||""}return`
18
- `+se+L}}var J=!1,te;{var ue=typeof WeakMap=="function"?WeakMap:Map;te=new ue}function $(L,de){if(!L||J)return"";{var ve=te.get(L);if(ve!==void 0)return ve}var Te;J=!0;var qe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Je;Je=B.current,B.current=null,G();try{if(de){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(vi){Te=vi}Reflect.construct(L,[],Ne)}else{try{Ne.call()}catch(vi){Te=vi}L.call(Ne.prototype)}}else{try{throw Error()}catch(vi){Te=vi}L()}}catch(vi){if(vi&&Te&&typeof vi.stack=="string"){for(var $e=vi.stack.split(`
17
+ */var Wy;function zP(){return Wy||(Wy=1,process.env.NODE_ENV!=="production"&&function(){var e=x,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function y(L){if(L===null||typeof L!="object")return null;var de=g&&L[g]||L[p];return typeof de=="function"?de:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(L){{for(var de=arguments.length,ve=new Array(de>1?de-1:0),Te=1;Te<de;Te++)ve[Te-1]=arguments[Te];S("error",L,ve)}}function S(L,de,ve){{var Te=_.ReactDebugCurrentFrame,qe=Te.getStackAddendum();qe!==""&&(de+="%s",ve=ve.concat([qe]));var Je=ve.map(function(Ne){return String(Ne)});Je.unshift("Warning: "+de),Function.prototype.apply.call(console[L],console,Je)}}var O=!1,w=!1,A=!1,T=!1,k=!1,j;j=Symbol.for("react.module.reference");function N(L){return!!(typeof L=="string"||typeof L=="function"||L===r||L===a||k||L===i||L===u||L===c||T||L===h||O||w||A||typeof L=="object"&&L!==null&&(L.$$typeof===d||L.$$typeof===f||L.$$typeof===o||L.$$typeof===l||L.$$typeof===s||L.$$typeof===j||L.getModuleId!==void 0))}function M(L,de,ve){var Te=L.displayName;if(Te)return Te;var qe=de.displayName||de.name||"";return qe!==""?ve+"("+qe+")":ve}function E(L){return L.displayName||"Context"}function D(L){if(L==null)return null;if(typeof L.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof L=="function")return L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof L=="object")switch(L.$$typeof){case l:var de=L;return E(de)+".Consumer";case o:var ve=L;return E(ve._context)+".Provider";case s:return M(L,L.render,"ForwardRef");case f:var Te=L.displayName||null;return Te!==null?Te:D(L.type)||"Memo";case d:{var qe=L,Je=qe._payload,Ne=qe._init;try{return D(Ne(Je))}catch{return null}}}return null}var I=Object.assign,W=0,Z,ne,re,J,z,X,H;function Y(){}Y.__reactDisabledLog=!0;function G(){{if(W===0){Z=console.log,ne=console.info,re=console.warn,J=console.error,z=console.group,X=console.groupCollapsed,H=console.groupEnd;var L={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:L,log:L,warn:L,error:L,group:L,groupCollapsed:L,groupEnd:L})}W++}}function ie(){{if(W--,W===0){var L={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},L,{value:Z}),info:I({},L,{value:ne}),warn:I({},L,{value:re}),error:I({},L,{value:J}),group:I({},L,{value:z}),groupCollapsed:I({},L,{value:X}),groupEnd:I({},L,{value:H})})}W<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=_.ReactCurrentDispatcher,se;function K(L,de,ve){{if(se===void 0)try{throw Error()}catch(qe){var Te=qe.stack.trim().match(/\n( *(at )?)/);se=Te&&Te[1]||""}return`
18
+ `+se+L}}var Q=!1,te;{var ue=typeof WeakMap=="function"?WeakMap:Map;te=new ue}function $(L,de){if(!L||Q)return"";{var ve=te.get(L);if(ve!==void 0)return ve}var Te;Q=!0;var qe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Je;Je=B.current,B.current=null,G();try{if(de){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(vi){Te=vi}Reflect.construct(L,[],Ne)}else{try{Ne.call()}catch(vi){Te=vi}L.call(Ne.prototype)}}else{try{throw Error()}catch(vi){Te=vi}L()}}catch(vi){if(vi&&Te&&typeof vi.stack=="string"){for(var $e=vi.stack.split(`
19
19
  `),sn=Te.stack.split(`
20
20
  `),vt=$e.length-1,Tt=sn.length-1;vt>=1&&Tt>=0&&$e[vt]!==sn[Tt];)Tt--;for(;vt>=1&&Tt>=0;vt--,Tt--)if($e[vt]!==sn[Tt]){if(vt!==1||Tt!==1)do if(vt--,Tt--,Tt<0||$e[vt]!==sn[Tt]){var Jn=`
21
- `+$e[vt].replace(" at new "," at ");return L.displayName&&Jn.includes("<anonymous>")&&(Jn=Jn.replace("<anonymous>",L.displayName)),typeof L=="function"&&te.set(L,Jn),Jn}while(vt>=1&&Tt>=0);break}}}finally{J=!1,B.current=Je,ie(),Error.prepareStackTrace=qe}var il=L?L.displayName||L.name:"",FP=il?K(il):"";return typeof L=="function"&&te.set(L,FP),FP}function xe(L,de,ve){return $(L,!1)}function Se(L){var de=L.prototype;return!!(de&&de.isReactComponent)}function be(L,de,ve){if(L==null)return"";if(typeof L=="function")return $(L,Se(L));if(typeof L=="string")return K(L);switch(L){case u:return K("Suspense");case c:return K("SuspenseList")}if(typeof L=="object")switch(L.$$typeof){case s:return xe(L.render);case f:return be(L.type,de,ve);case d:{var Te=L,qe=Te._payload,Je=Te._init;try{return be(Je(qe),de,ve)}catch{}}}return""}var ge=Object.prototype.hasOwnProperty,P={},V=_.ReactDebugCurrentFrame;function Q(L){if(L){var de=L._owner,ve=be(L.type,L._source,de?de.type:null);V.setExtraStackFrame(ve)}else V.setExtraStackFrame(null)}function he(L,de,ve,Te,qe){{var Je=Function.call.bind(ge);for(var Ne in L)if(Je(L,Ne)){var $e=void 0;try{if(typeof L[Ne]!="function"){var sn=Error((Te||"React class")+": "+ve+" type `"+Ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof L[Ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw sn.name="Invariant Violation",sn}$e=L[Ne](de,Ne,Te,ve,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(vt){$e=vt}$e&&!($e instanceof Error)&&(Q(qe),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Te||"React class",ve,Ne,typeof $e),Q(null)),$e instanceof Error&&!($e.message in P)&&(P[$e.message]=!0,Q(qe),b("Failed %s type: %s",ve,$e.message),Q(null))}}}var me=Array.isArray;function ce(L){return me(L)}function le(L){{var de=typeof Symbol=="function"&&Symbol.toStringTag,ve=de&&L[Symbol.toStringTag]||L.constructor.name||"Object";return ve}}function U(L){try{return oe(L),!1}catch{return!0}}function oe(L){return""+L}function Ee(L){if(U(L))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",le(L)),oe(L)}var Ie=_.ReactCurrentOwner,Me={key:!0,ref:!0,__self:!0,__source:!0},Ve,dt,$t;$t={};function Ht(L){if(ge.call(L,"ref")){var de=Object.getOwnPropertyDescriptor(L,"ref").get;if(de&&de.isReactWarning)return!1}return L.ref!==void 0}function Xn(L){if(ge.call(L,"key")){var de=Object.getOwnPropertyDescriptor(L,"key").get;if(de&&de.isReactWarning)return!1}return L.key!==void 0}function qi(L,de){if(typeof L.ref=="string"&&Ie.current&&de&&Ie.current.stateNode!==de){var ve=I(Ie.current.type);$t[ve]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',I(Ie.current.type),L.ref),$t[ve]=!0)}}function Ue(L,de){{var ve=function(){Ve||(Ve=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",de))};ve.isReactWarning=!0,Object.defineProperty(L,"key",{get:ve,configurable:!0})}}function mt(L,de){{var ve=function(){dt||(dt=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",de))};ve.isReactWarning=!0,Object.defineProperty(L,"ref",{get:ve,configurable:!0})}}var En=function(L,de,ve,Te,qe,Je,Ne){var $e={$$typeof:t,type:L,key:de,ref:ve,props:Ne,_owner:Je};return $e._store={},Object.defineProperty($e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty($e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:qe}),Object.freeze&&(Object.freeze($e.props),Object.freeze($e)),$e};function Xt(L,de,ve,Te,qe){{var Je,Ne={},$e=null,sn=null;ve!==void 0&&(Ee(ve),$e=""+ve),Xn(de)&&(Ee(de.key),$e=""+de.key),Ht(de)&&(sn=de.ref,qi(de,qe));for(Je in de)ge.call(de,Je)&&!Me.hasOwnProperty(Je)&&(Ne[Je]=de[Je]);if(L&&L.defaultProps){var vt=L.defaultProps;for(Je in vt)Ne[Je]===void 0&&(Ne[Je]=vt[Je])}if($e||sn){var Tt=typeof L=="function"?L.displayName||L.name||"Unknown":L;$e&&Ue(Ne,Tt),sn&&mt(Ne,Tt)}return En(L,$e,sn,qe,Te,Ie.current,Ne)}}var pi=_.ReactCurrentOwner,nl=_.ReactDebugCurrentFrame;function rl(L){if(L){var de=L._owner,ve=be(L.type,L._source,de?de.type:null);nl.setExtraStackFrame(ve)}else nl.setExtraStackFrame(null)}var $y;$y=!1;function Ly(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function MP(){{if(pi.current){var L=I(pi.current.type);if(L)return`
21
+ `+$e[vt].replace(" at new "," at ");return L.displayName&&Jn.includes("<anonymous>")&&(Jn=Jn.replace("<anonymous>",L.displayName)),typeof L=="function"&&te.set(L,Jn),Jn}while(vt>=1&&Tt>=0);break}}}finally{Q=!1,B.current=Je,ie(),Error.prepareStackTrace=qe}var il=L?L.displayName||L.name:"",FP=il?K(il):"";return typeof L=="function"&&te.set(L,FP),FP}function xe(L,de,ve){return $(L,!1)}function Se(L){var de=L.prototype;return!!(de&&de.isReactComponent)}function be(L,de,ve){if(L==null)return"";if(typeof L=="function")return $(L,Se(L));if(typeof L=="string")return K(L);switch(L){case u:return K("Suspense");case c:return K("SuspenseList")}if(typeof L=="object")switch(L.$$typeof){case s:return xe(L.render);case f:return be(L.type,de,ve);case d:{var Te=L,qe=Te._payload,Je=Te._init;try{return be(Je(qe),de,ve)}catch{}}}return""}var ge=Object.prototype.hasOwnProperty,P={},V=_.ReactDebugCurrentFrame;function ee(L){if(L){var de=L._owner,ve=be(L.type,L._source,de?de.type:null);V.setExtraStackFrame(ve)}else V.setExtraStackFrame(null)}function he(L,de,ve,Te,qe){{var Je=Function.call.bind(ge);for(var Ne in L)if(Je(L,Ne)){var $e=void 0;try{if(typeof L[Ne]!="function"){var sn=Error((Te||"React class")+": "+ve+" type `"+Ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof L[Ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw sn.name="Invariant Violation",sn}$e=L[Ne](de,Ne,Te,ve,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(vt){$e=vt}$e&&!($e instanceof Error)&&(ee(qe),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Te||"React class",ve,Ne,typeof $e),ee(null)),$e instanceof Error&&!($e.message in P)&&(P[$e.message]=!0,ee(qe),b("Failed %s type: %s",ve,$e.message),ee(null))}}}var me=Array.isArray;function ce(L){return me(L)}function le(L){{var de=typeof Symbol=="function"&&Symbol.toStringTag,ve=de&&L[Symbol.toStringTag]||L.constructor.name||"Object";return ve}}function U(L){try{return oe(L),!1}catch{return!0}}function oe(L){return""+L}function Ee(L){if(U(L))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",le(L)),oe(L)}var Ie=_.ReactCurrentOwner,Me={key:!0,ref:!0,__self:!0,__source:!0},Ve,dt,$t;$t={};function Ht(L){if(ge.call(L,"ref")){var de=Object.getOwnPropertyDescriptor(L,"ref").get;if(de&&de.isReactWarning)return!1}return L.ref!==void 0}function Xn(L){if(ge.call(L,"key")){var de=Object.getOwnPropertyDescriptor(L,"key").get;if(de&&de.isReactWarning)return!1}return L.key!==void 0}function qi(L,de){if(typeof L.ref=="string"&&Ie.current&&de&&Ie.current.stateNode!==de){var ve=D(Ie.current.type);$t[ve]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(Ie.current.type),L.ref),$t[ve]=!0)}}function Ue(L,de){{var ve=function(){Ve||(Ve=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",de))};ve.isReactWarning=!0,Object.defineProperty(L,"key",{get:ve,configurable:!0})}}function mt(L,de){{var ve=function(){dt||(dt=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",de))};ve.isReactWarning=!0,Object.defineProperty(L,"ref",{get:ve,configurable:!0})}}var En=function(L,de,ve,Te,qe,Je,Ne){var $e={$$typeof:t,type:L,key:de,ref:ve,props:Ne,_owner:Je};return $e._store={},Object.defineProperty($e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty($e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:qe}),Object.freeze&&(Object.freeze($e.props),Object.freeze($e)),$e};function Xt(L,de,ve,Te,qe){{var Je,Ne={},$e=null,sn=null;ve!==void 0&&(Ee(ve),$e=""+ve),Xn(de)&&(Ee(de.key),$e=""+de.key),Ht(de)&&(sn=de.ref,qi(de,qe));for(Je in de)ge.call(de,Je)&&!Me.hasOwnProperty(Je)&&(Ne[Je]=de[Je]);if(L&&L.defaultProps){var vt=L.defaultProps;for(Je in vt)Ne[Je]===void 0&&(Ne[Je]=vt[Je])}if($e||sn){var Tt=typeof L=="function"?L.displayName||L.name||"Unknown":L;$e&&Ue(Ne,Tt),sn&&mt(Ne,Tt)}return En(L,$e,sn,qe,Te,Ie.current,Ne)}}var pi=_.ReactCurrentOwner,nl=_.ReactDebugCurrentFrame;function rl(L){if(L){var de=L._owner,ve=be(L.type,L._source,de?de.type:null);nl.setExtraStackFrame(ve)}else nl.setExtraStackFrame(null)}var $y;$y=!1;function Ly(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function MP(){{if(pi.current){var L=D(pi.current.type);if(L)return`
22
22
 
23
23
  Check the render method of \``+L+"`."}return""}}function Zxe(L){{if(L!==void 0){var de=L.fileName.replace(/^.*[\\\/]/,""),ve=L.lineNumber;return`
24
24
 
25
25
  Check your code at `+de+":"+ve+"."}return""}}var DP={};function Xxe(L){{var de=MP();if(!de){var ve=typeof L=="string"?L:L.displayName||L.name;ve&&(de=`
26
26
 
27
- Check the top-level render call using <`+ve+">.")}return de}}function IP(L,de){{if(!L._store||L._store.validated||L.key!=null)return;L._store.validated=!0;var ve=Xxe(de);if(DP[ve])return;DP[ve]=!0;var Te="";L&&L._owner&&L._owner!==pi.current&&(Te=" It was passed a child from "+I(L._owner.type)+"."),rl(L),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ve,Te),rl(null)}}function $P(L,de){{if(typeof L!="object")return;if(ce(L))for(var ve=0;ve<L.length;ve++){var Te=L[ve];Ly(Te)&&IP(Te,de)}else if(Ly(L))L._store&&(L._store.validated=!0);else if(L){var qe=y(L);if(typeof qe=="function"&&qe!==L.entries)for(var Je=qe.call(L),Ne;!(Ne=Je.next()).done;)Ly(Ne.value)&&IP(Ne.value,de)}}}function Jxe(L){{var de=L.type;if(de==null||typeof de=="string")return;var ve;if(typeof de=="function")ve=de.propTypes;else if(typeof de=="object"&&(de.$$typeof===s||de.$$typeof===f))ve=de.propTypes;else return;if(ve){var Te=I(de);he(ve,L.props,"prop",Te,L)}else if(de.PropTypes!==void 0&&!$y){$y=!0;var qe=I(de);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof de.getDefaultProps=="function"&&!de.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qxe(L){{for(var de=Object.keys(L.props),ve=0;ve<de.length;ve++){var Te=de[ve];if(Te!=="children"&&Te!=="key"){rl(L),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),rl(null);break}}L.ref!==null&&(rl(L),b("Invalid attribute `ref` supplied to `React.Fragment`."),rl(null))}}function LP(L,de,ve,Te,qe,Je){{var Ne=N(L);if(!Ne){var $e="";(L===void 0||typeof L=="object"&&L!==null&&Object.keys(L).length===0)&&($e+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var sn=Zxe(qe);sn?$e+=sn:$e+=MP();var vt;L===null?vt="null":ce(L)?vt="array":L!==void 0&&L.$$typeof===t?(vt="<"+(I(L.type)||"Unknown")+" />",$e=" Did you accidentally export a JSX literal instead of a component?"):vt=typeof L,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",vt,$e)}var Tt=Xt(L,de,ve,qe,Je);if(Tt==null)return Tt;if(Ne){var Jn=de.children;if(Jn!==void 0)if(Te)if(ce(Jn)){for(var il=0;il<Jn.length;il++)$P(Jn[il],L);Object.freeze&&Object.freeze(Jn)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $P(Jn,L)}return L===r?Qxe(Tt):Jxe(Tt),Tt}}function e1e(L,de,ve){return LP(L,de,ve,!0)}function t1e(L,de,ve){return LP(L,de,ve,!1)}var n1e=t1e,r1e=e1e;ll.Fragment=r,ll.jsx=n1e,ll.jsxs=r1e}()),ll}process.env.NODE_ENV==="production"?rh.exports=WP():rh.exports=zP();var v=rh.exports;const VP={name:"--pf-global--breakpoint--2xl",value:"1450px",var:"var(--pf-global--breakpoint--2xl)"},UP={name:"--pf-global--breakpoint--lg",value:"992px",var:"var(--pf-global--breakpoint--lg)"},HP={name:"--pf-global--breakpoint--md",value:"768px",var:"var(--pf-global--breakpoint--md)"},qP={name:"--pf-global--breakpoint--sm",value:"576px",var:"var(--pf-global--breakpoint--sm)"},GP={name:"--pf-global--breakpoint--xl",value:"1200px",var:"var(--pf-global--breakpoint--xl)"},vr={xs:Number({name:"--pf-global--breakpoint--xs",value:"0",var:"var(--pf-global--breakpoint--xs)"}.value.replace("px","")),sm:Number(qP.value.replace("px","")),md:Number(HP.value.replace("px","")),lg:Number(UP.value.replace("px","")),xl:Number(GP.value.replace("px","")),xxl:Number(VP.value.replace("px",""))};function zy(){const[e,t]=x.useState(()=>window.innerWidth<=vr.sm?"xs":window.innerWidth<=vr.md?"sm":window.innerWidth<=vr.lg?"md":window.innerWidth<=vr.xl?"lg":window.innerWidth<=vr.xxl?"xl":"xxl"),n=x.useCallback(()=>{window.innerWidth<=vr.sm?t("xs"):window.innerWidth<=vr.md?t("sm"):window.innerWidth<=vr.lg?t("md"):window.innerWidth<=vr.xl?t("lg"):window.innerWidth<=vr.xxl?t("xl"):t("xxl")},[]);return x.useEffect(()=>{const r=n;return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[n]),x.useEffect(()=>n(),[n]),e}function un(e){const t=zy();switch(e){case"xs":return!0;case"sm":switch(t){case"sm":case"md":case"lg":case"xl":case"xxl":return!0;default:return!1}case"md":switch(t){case"md":case"lg":case"xl":case"xxl":return!0;default:return!1}case"lg":switch(t){case"lg":case"xl":case"xxl":return!0;default:return!1}case"xl":switch(t){case"xl":case"xxl":return!0;default:return!1}case"xxl":switch(t){case"xxl":return!0;default:return!1}}}function YP(){const[e,t]=x.useState(()=>window.innerWidth>window.innerHeight?"landscape":"portrait"),n=x.useCallback(()=>{t(window.innerWidth>window.innerHeight?"landscape":"portrait")},[]);return x.useEffect(()=>{const r=n;return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[n]),x.useEffect(()=>n(),[n]),e}var ih={exports:{}},Ge={};/** @license React v16.13.1
27
+ Check the top-level render call using <`+ve+">.")}return de}}function IP(L,de){{if(!L._store||L._store.validated||L.key!=null)return;L._store.validated=!0;var ve=Xxe(de);if(DP[ve])return;DP[ve]=!0;var Te="";L&&L._owner&&L._owner!==pi.current&&(Te=" It was passed a child from "+D(L._owner.type)+"."),rl(L),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ve,Te),rl(null)}}function $P(L,de){{if(typeof L!="object")return;if(ce(L))for(var ve=0;ve<L.length;ve++){var Te=L[ve];Ly(Te)&&IP(Te,de)}else if(Ly(L))L._store&&(L._store.validated=!0);else if(L){var qe=y(L);if(typeof qe=="function"&&qe!==L.entries)for(var Je=qe.call(L),Ne;!(Ne=Je.next()).done;)Ly(Ne.value)&&IP(Ne.value,de)}}}function Jxe(L){{var de=L.type;if(de==null||typeof de=="string")return;var ve;if(typeof de=="function")ve=de.propTypes;else if(typeof de=="object"&&(de.$$typeof===s||de.$$typeof===f))ve=de.propTypes;else return;if(ve){var Te=D(de);he(ve,L.props,"prop",Te,L)}else if(de.PropTypes!==void 0&&!$y){$y=!0;var qe=D(de);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof de.getDefaultProps=="function"&&!de.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qxe(L){{for(var de=Object.keys(L.props),ve=0;ve<de.length;ve++){var Te=de[ve];if(Te!=="children"&&Te!=="key"){rl(L),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),rl(null);break}}L.ref!==null&&(rl(L),b("Invalid attribute `ref` supplied to `React.Fragment`."),rl(null))}}function LP(L,de,ve,Te,qe,Je){{var Ne=N(L);if(!Ne){var $e="";(L===void 0||typeof L=="object"&&L!==null&&Object.keys(L).length===0)&&($e+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var sn=Zxe(qe);sn?$e+=sn:$e+=MP();var vt;L===null?vt="null":ce(L)?vt="array":L!==void 0&&L.$$typeof===t?(vt="<"+(D(L.type)||"Unknown")+" />",$e=" Did you accidentally export a JSX literal instead of a component?"):vt=typeof L,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",vt,$e)}var Tt=Xt(L,de,ve,qe,Je);if(Tt==null)return Tt;if(Ne){var Jn=de.children;if(Jn!==void 0)if(Te)if(ce(Jn)){for(var il=0;il<Jn.length;il++)$P(Jn[il],L);Object.freeze&&Object.freeze(Jn)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $P(Jn,L)}return L===r?Qxe(Tt):Jxe(Tt),Tt}}function e1e(L,de,ve){return LP(L,de,ve,!0)}function t1e(L,de,ve){return LP(L,de,ve,!1)}var n1e=t1e,r1e=e1e;ll.Fragment=r,ll.jsx=n1e,ll.jsxs=r1e}()),ll}process.env.NODE_ENV==="production"?rh.exports=WP():rh.exports=zP();var v=rh.exports;const VP={name:"--pf-global--breakpoint--2xl",value:"1450px",var:"var(--pf-global--breakpoint--2xl)"},UP={name:"--pf-global--breakpoint--lg",value:"992px",var:"var(--pf-global--breakpoint--lg)"},HP={name:"--pf-global--breakpoint--md",value:"768px",var:"var(--pf-global--breakpoint--md)"},qP={name:"--pf-global--breakpoint--sm",value:"576px",var:"var(--pf-global--breakpoint--sm)"},GP={name:"--pf-global--breakpoint--xl",value:"1200px",var:"var(--pf-global--breakpoint--xl)"},vr={xs:Number({name:"--pf-global--breakpoint--xs",value:"0",var:"var(--pf-global--breakpoint--xs)"}.value.replace("px","")),sm:Number(qP.value.replace("px","")),md:Number(HP.value.replace("px","")),lg:Number(UP.value.replace("px","")),xl:Number(GP.value.replace("px","")),xxl:Number(VP.value.replace("px",""))};function zy(){const[e,t]=x.useState(()=>window.innerWidth<=vr.sm?"xs":window.innerWidth<=vr.md?"sm":window.innerWidth<=vr.lg?"md":window.innerWidth<=vr.xl?"lg":window.innerWidth<=vr.xxl?"xl":"xxl"),n=x.useCallback(()=>{window.innerWidth<=vr.sm?t("xs"):window.innerWidth<=vr.md?t("sm"):window.innerWidth<=vr.lg?t("md"):window.innerWidth<=vr.xl?t("lg"):window.innerWidth<=vr.xxl?t("xl"):t("xxl")},[]);return x.useEffect(()=>{const r=n;return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[n]),x.useEffect(()=>n(),[n]),e}function un(e){const t=zy();switch(e){case"xs":return!0;case"sm":switch(t){case"sm":case"md":case"lg":case"xl":case"xxl":return!0;default:return!1}case"md":switch(t){case"md":case"lg":case"xl":case"xxl":return!0;default:return!1}case"lg":switch(t){case"lg":case"xl":case"xxl":return!0;default:return!1}case"xl":switch(t){case"xl":case"xxl":return!0;default:return!1}case"xxl":switch(t){case"xxl":return!0;default:return!1}}}function YP(){const[e,t]=x.useState(()=>window.innerWidth>window.innerHeight?"landscape":"portrait"),n=x.useCallback(()=>{t(window.innerWidth>window.innerHeight?"landscape":"portrait")},[]);return x.useEffect(()=>{const r=n;return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[n]),x.useEffect(()=>n(),[n]),e}var ih={exports:{}},Ge={};/** @license React v16.13.1
28
28
  * react-is.production.min.js
29
29
  *
30
30
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -38,7 +38,7 @@ Check the top-level render call using <`+ve+">.")}return de}}function IP(L,de){{
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Uy;function ZP(){return Uy||(Uy=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S($){return typeof $=="string"||typeof $=="function"||$===r||$===u||$===a||$===i||$===f||$===d||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===h||$.$$typeof===o||$.$$typeof===l||$.$$typeof===c||$.$$typeof===y||$.$$typeof===_||$.$$typeof===b||$.$$typeof===p)}function O($){if(typeof $=="object"&&$!==null){var xe=$.$$typeof;switch(xe){case t:var Se=$.type;switch(Se){case s:case u:case r:case a:case i:case f:return Se;default:var be=Se&&Se.$$typeof;switch(be){case l:case c:case g:case h:case o:return be;default:return xe}}case n:return xe}}}var w=s,A=u,T=l,k=o,j=t,N=c,M=r,E=g,I=h,D=n,W=a,X=i,re=f,ne=!1;function ee($){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z($)||O($)===s}function z($){return O($)===u}function Z($){return O($)===l}function q($){return O($)===o}function Y($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function G($){return O($)===c}function ie($){return O($)===r}function B($){return O($)===g}function se($){return O($)===h}function K($){return O($)===n}function J($){return O($)===a}function te($){return O($)===i}function ue($){return O($)===f}Ye.AsyncMode=w,Ye.ConcurrentMode=A,Ye.ContextConsumer=T,Ye.ContextProvider=k,Ye.Element=j,Ye.ForwardRef=N,Ye.Fragment=M,Ye.Lazy=E,Ye.Memo=I,Ye.Portal=D,Ye.Profiler=W,Ye.StrictMode=X,Ye.Suspense=re,Ye.isAsyncMode=ee,Ye.isConcurrentMode=z,Ye.isContextConsumer=Z,Ye.isContextProvider=q,Ye.isElement=Y,Ye.isForwardRef=G,Ye.isFragment=ie,Ye.isLazy=B,Ye.isMemo=se,Ye.isPortal=K,Ye.isProfiler=J,Ye.isStrictMode=te,Ye.isSuspense=ue,Ye.isValidElementType=S,Ye.typeOf=O}()),Ye}process.env.NODE_ENV==="production"?ih.exports=KP():ih.exports=ZP();var Ba=ih.exports;function XP(e){function t(q,Y,G,ie,B){for(var se=0,K=0,J=0,te=0,ue,$,xe=0,Se=0,be,ge=be=ue=0,P=0,V=0,Q=0,he=0,me=G.length,ce=me-1,le,U="",oe="",Ee="",Ie="",Me;P<me;){if($=G.charCodeAt(P),P===ce&&K+te+J+se!==0&&(K!==0&&($=K===47?10:47),te=J=se=0,me++,ce++),K+te+J+se===0){if(P===ce&&(0<V&&(U=U.replace(d,"")),0<U.trim().length)){switch($){case 32:case 9:case 59:case 13:case 10:break;default:U+=G.charAt(P)}$=59}switch($){case 123:for(U=U.trim(),ue=U.charCodeAt(0),be=1,he=++P;P<me;){switch($=G.charCodeAt(P)){case 123:be++;break;case 125:be--;break;case 47:switch($=G.charCodeAt(P+1)){case 42:case 47:e:{for(ge=P+1;ge<ce;++ge)switch(G.charCodeAt(ge)){case 47:if($===42&&G.charCodeAt(ge-1)===42&&P+2!==ge){P=ge+1;break e}break;case 10:if($===47){P=ge+1;break e}}P=ge}}break;case 91:$++;case 40:$++;case 34:case 39:for(;P++<ce&&G.charCodeAt(P)!==$;);}if(be===0)break;P++}switch(be=G.substring(he,P),ue===0&&(ue=(U=U.replace(f,"").trim()).charCodeAt(0)),ue){case 64:switch(0<V&&(U=U.replace(d,"")),$=U.charCodeAt(1),$){case 100:case 109:case 115:case 45:V=Y;break;default:V=X}if(be=t(Y,V,be,$,B+1),he=be.length,0<ne&&(V=n(X,U,Q),Me=l(3,be,V,Y,I,E,he,$,B,ie),U=V.join(""),Me!==void 0&&(he=(be=Me.trim()).length)===0&&($=0,be="")),0<he)switch($){case 115:U=U.replace(A,o);case 100:case 109:case 45:be=U+"{"+be+"}";break;case 107:U=U.replace(b,"$1 $2"),be=U+"{"+be+"}",be=W===1||W===2&&a("@"+be,3)?"@-webkit-"+be+"@"+be:"@"+be;break;default:be=U+be,ie===112&&(be=(oe+=be,""))}else be="";break;default:be=t(Y,n(Y,U,Q),be,ie,B+1)}Ee+=be,be=Q=V=ge=ue=0,U="",$=G.charCodeAt(++P);break;case 125:case 59:if(U=(0<V?U.replace(d,""):U).trim(),1<(he=U.length))switch(ge===0&&(ue=U.charCodeAt(0),ue===45||96<ue&&123>ue)&&(he=(U=U.replace(" ",":")).length),0<ne&&(Me=l(1,U,Y,q,I,E,oe.length,ie,B,ie))!==void 0&&(he=(U=Me.trim()).length)===0&&(U="\0\0"),ue=U.charCodeAt(0),$=U.charCodeAt(1),ue){case 0:break;case 64:if($===105||$===99){Ie+=U+G.charAt(P);break}default:U.charCodeAt(he-1)!==58&&(oe+=i(U,ue,$,U.charCodeAt(2)))}Q=V=ge=ue=0,U="",$=G.charCodeAt(++P)}}switch($){case 13:case 10:K===47?K=0:1+ue===0&&ie!==107&&0<U.length&&(V=1,U+="\0"),0<ne*z&&l(0,U,Y,q,I,E,oe.length,ie,B,ie),E=1,I++;break;case 59:case 125:if(K+te+J+se===0){E++;break}default:switch(E++,le=G.charAt(P),$){case 9:case 32:if(te+se+K===0)switch(xe){case 44:case 58:case 9:case 32:le="";break;default:$!==32&&(le=" ")}break;case 0:le="\\0";break;case 12:le="\\f";break;case 11:le="\\v";break;case 38:te+K+se===0&&(V=Q=1,le="\f"+le);break;case 108:if(te+K+se+D===0&&0<ge)switch(P-ge){case 2:xe===112&&G.charCodeAt(P-3)===58&&(D=xe);case 8:Se===111&&(D=Se)}break;case 58:te+K+se===0&&(ge=P);break;case 44:K+J+te+se===0&&(V=1,le+="\r");break;case 34:case 39:K===0&&(te=te===$?0:te===0?$:te);break;case 91:te+K+J===0&&se++;break;case 93:te+K+J===0&&se--;break;case 41:te+K+se===0&&J--;break;case 40:if(te+K+se===0){if(ue===0)switch(2*xe+3*Se){case 533:break;default:ue=1}J++}break;case 64:K+J+te+se+ge+be===0&&(be=1);break;case 42:case 47:if(!(0<te+se+J))switch(K){case 0:switch(2*$+3*G.charCodeAt(P+1)){case 235:K=47;break;case 220:he=P,K=42}break;case 42:$===47&&xe===42&&he+2!==P&&(G.charCodeAt(he+2)===33&&(oe+=G.substring(he,P+1)),le="",K=0)}}K===0&&(U+=le)}Se=xe,xe=$,P++}if(he=oe.length,0<he){if(V=Y,0<ne&&(Me=l(2,oe,V,q,I,E,he,ie,B,ie),Me!==void 0&&(oe=Me).length===0))return Ie+oe+Ee;if(oe=V.join(",")+"{"+oe+"}",W*D!==0){switch(W!==2||a(oe,2)||(D=0),D){case 111:oe=oe.replace(O,":-moz-$1")+oe;break;case 112:oe=oe.replace(S,"::-webkit-input-$1")+oe.replace(S,"::-moz-$1")+oe.replace(S,":-ms-input-$1")+oe}D=0}}return Ie+oe+Ee}function n(q,Y,G){var ie=Y.trim().split(y);Y=ie;var B=ie.length,se=q.length;switch(se){case 0:case 1:var K=0;for(q=se===0?"":q[0]+" ";K<B;++K)Y[K]=r(q,Y[K],G).trim();break;default:var J=K=0;for(Y=[];K<B;++K)for(var te=0;te<se;++te)Y[J++]=r(q[te]+" ",ie[K],G).trim()}return Y}function r(q,Y,G){var ie=Y.charCodeAt(0);switch(33>ie&&(ie=(Y=Y.trim()).charCodeAt(0)),ie){case 38:return Y.replace(_,"$1"+q.trim());case 58:return q.trim()+Y.replace(_,"$1"+q.trim());default:if(0<1*G&&0<Y.indexOf("\f"))return Y.replace(_,(q.charCodeAt(0)===58?"":"$1")+q.trim())}return q+Y}function i(q,Y,G,ie){var B=q+";",se=2*Y+3*G+4*ie;if(se===944){q=B.indexOf(":",9)+1;var K=B.substring(q,B.length-1).trim();return K=B.substring(0,q).trim()+K+";",W===1||W===2&&a(K,1)?"-webkit-"+K+K:K}if(W===0||W===2&&!a(B,1))return B;switch(se){case 1015:return B.charCodeAt(10)===97?"-webkit-"+B+B:B;case 951:return B.charCodeAt(3)===116?"-webkit-"+B+B:B;case 963:return B.charCodeAt(5)===110?"-webkit-"+B+B:B;case 1009:if(B.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+B+B;case 978:return"-webkit-"+B+"-moz-"+B+B;case 1019:case 983:return"-webkit-"+B+"-moz-"+B+"-ms-"+B+B;case 883:if(B.charCodeAt(8)===45)return"-webkit-"+B+B;if(0<B.indexOf("image-set(",11))return B.replace(M,"$1-webkit-$2")+B;break;case 932:if(B.charCodeAt(4)===45)switch(B.charCodeAt(5)){case 103:return"-webkit-box-"+B.replace("-grow","")+"-webkit-"+B+"-ms-"+B.replace("grow","positive")+B;case 115:return"-webkit-"+B+"-ms-"+B.replace("shrink","negative")+B;case 98:return"-webkit-"+B+"-ms-"+B.replace("basis","preferred-size")+B}return"-webkit-"+B+"-ms-"+B+B;case 964:return"-webkit-"+B+"-ms-flex-"+B+B;case 1023:if(B.charCodeAt(8)!==99)break;return K=B.substring(B.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+K+"-webkit-"+B+"-ms-flex-pack"+K+B;case 1005:return g.test(B)?B.replace(h,":-webkit-")+B.replace(h,":-moz-")+B:B;case 1e3:switch(K=B.substring(13).trim(),Y=K.indexOf("-")+1,K.charCodeAt(0)+K.charCodeAt(Y)){case 226:K=B.replace(w,"tb");break;case 232:K=B.replace(w,"tb-rl");break;case 220:K=B.replace(w,"lr");break;default:return B}return"-webkit-"+B+"-ms-"+K+B;case 1017:if(B.indexOf("sticky",9)===-1)break;case 975:switch(Y=(B=q).length-10,K=(B.charCodeAt(Y)===33?B.substring(0,Y):B).substring(q.indexOf(":",7)+1).trim(),se=K.charCodeAt(0)+(K.charCodeAt(7)|0)){case 203:if(111>K.charCodeAt(8))break;case 115:B=B.replace(K,"-webkit-"+K)+";"+B;break;case 207:case 102:B=B.replace(K,"-webkit-"+(102<se?"inline-":"")+"box")+";"+B.replace(K,"-webkit-"+K)+";"+B.replace(K,"-ms-"+K+"box")+";"+B}return B+";";case 938:if(B.charCodeAt(5)===45)switch(B.charCodeAt(6)){case 105:return K=B.replace("-items",""),"-webkit-"+B+"-webkit-box-"+K+"-ms-flex-"+K+B;case 115:return"-webkit-"+B+"-ms-flex-item-"+B.replace(k,"")+B;default:return"-webkit-"+B+"-ms-flex-line-pack"+B.replace("align-content","").replace(k,"")+B}break;case 973:case 989:if(B.charCodeAt(3)!==45||B.charCodeAt(4)===122)break;case 931:case 953:if(N.test(q)===!0)return(K=q.substring(q.indexOf(":")+1)).charCodeAt(0)===115?i(q.replace("stretch","fill-available"),Y,G,ie).replace(":fill-available",":stretch"):B.replace(K,"-webkit-"+K)+B.replace(K,"-moz-"+K.replace("fill-",""))+B;break;case 962:if(B="-webkit-"+B+(B.charCodeAt(5)===102?"-ms-"+B:"")+B,G+ie===211&&B.charCodeAt(13)===105&&0<B.indexOf("transform",10))return B.substring(0,B.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+B}return B}function a(q,Y){var G=q.indexOf(Y===1?":":"{"),ie=q.substring(0,Y!==3?G:10);return G=q.substring(G+1,q.length-1),ee(Y!==2?ie:ie.replace(j,"$1"),G,Y)}function o(q,Y){var G=i(Y,Y.charCodeAt(0),Y.charCodeAt(1),Y.charCodeAt(2));return G!==Y+";"?G.replace(T," or ($1)").substring(4):"("+Y+")"}function l(q,Y,G,ie,B,se,K,J,te,ue){for(var $=0,xe=Y,Se;$<ne;++$)switch(Se=re[$].call(c,q,xe,G,ie,B,se,K,J,te,ue)){case void 0:case!1:case!0:case null:break;default:xe=Se}if(xe!==Y)return xe}function s(q){switch(q){case void 0:case null:ne=re.length=0;break;default:if(typeof q=="function")re[ne++]=q;else if(typeof q=="object")for(var Y=0,G=q.length;Y<G;++Y)s(q[Y]);else z=!!q|0}return s}function u(q){return q=q.prefix,q!==void 0&&(ee=null,q?typeof q!="function"?W=1:(W=2,ee=q):W=0),u}function c(q,Y){var G=q;if(33>G.charCodeAt(0)&&(G=G.trim()),Z=G,G=[Z],0<ne){var ie=l(-1,Y,G,G,I,E,0,0,0,0);ie!==void 0&&typeof ie=="string"&&(Y=ie)}var B=t(X,G,Y,0,0);return 0<ne&&(ie=l(-2,B,G,G,I,E,B.length,0,0,0),ie!==void 0&&(B=ie)),Z="",D=0,E=I=1,B}var f=/^\0+/g,d=/[\0\r\f]/g,h=/: */g,g=/zoo|gra/,p=/([,: ])(transform)/g,y=/,\r+?/g,_=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,S=/::(place)/g,O=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,T=/([\s\S]*?);/g,k=/-self|flex-/g,j=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,E=1,I=1,D=0,W=1,X=[],re=[],ne=0,ee=null,z=0,Z="";return c.use=s,c.set=u,e!==void 0&&u(e),c}var JP={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function QP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var e3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Hy=QP(function(e){return e3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ah=Ba,t3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},oh={};oh[ah.ForwardRef]=r3,oh[ah.Memo]=qy;function Gy(e){return ah.isMemo(e)?qy:oh[e.$$typeof]||t3}var i3=Object.defineProperty,a3=Object.getOwnPropertyNames,Yy=Object.getOwnPropertySymbols,o3=Object.getOwnPropertyDescriptor,l3=Object.getPrototypeOf,Ky=Object.prototype;function Zy(e,t,n){if(typeof t!="string"){if(Ky){var r=l3(t);r&&r!==Ky&&Zy(e,r,n)}var i=a3(t);Yy&&(i=i.concat(Yy(t)));for(var a=Gy(e),o=Gy(t),l=0;l<i.length;++l){var s=i[l];if(!n3[s]&&!(n&&n[s])&&!(o&&o[s])&&!(a&&a[s])){var u=o3(t,s);try{i3(e,s,u)}catch{}}}}return e}var s3=Zy;const Lt=Ae(s3);function Wr(){return(Wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Xy=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},lh=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!Ba.typeOf(e)},tu=Object.freeze([]),bi=Object.freeze({});function sl(e){return typeof e=="function"}function sh(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function uh(e){return e&&typeof e.styledComponentId=="string"}var Ra=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ch=typeof window<"u"&&"HTMLElement"in window,u3=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production")),c3=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
41
+ */var Uy;function ZP(){return Uy||(Uy=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S($){return typeof $=="string"||typeof $=="function"||$===r||$===u||$===a||$===i||$===f||$===d||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===h||$.$$typeof===o||$.$$typeof===l||$.$$typeof===c||$.$$typeof===y||$.$$typeof===_||$.$$typeof===b||$.$$typeof===p)}function O($){if(typeof $=="object"&&$!==null){var xe=$.$$typeof;switch(xe){case t:var Se=$.type;switch(Se){case s:case u:case r:case a:case i:case f:return Se;default:var be=Se&&Se.$$typeof;switch(be){case l:case c:case g:case h:case o:return be;default:return xe}}case n:return xe}}}var w=s,A=u,T=l,k=o,j=t,N=c,M=r,E=g,D=h,I=n,W=a,Z=i,ne=f,re=!1;function J($){return re||(re=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z($)||O($)===s}function z($){return O($)===u}function X($){return O($)===l}function H($){return O($)===o}function Y($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function G($){return O($)===c}function ie($){return O($)===r}function B($){return O($)===g}function se($){return O($)===h}function K($){return O($)===n}function Q($){return O($)===a}function te($){return O($)===i}function ue($){return O($)===f}Ye.AsyncMode=w,Ye.ConcurrentMode=A,Ye.ContextConsumer=T,Ye.ContextProvider=k,Ye.Element=j,Ye.ForwardRef=N,Ye.Fragment=M,Ye.Lazy=E,Ye.Memo=D,Ye.Portal=I,Ye.Profiler=W,Ye.StrictMode=Z,Ye.Suspense=ne,Ye.isAsyncMode=J,Ye.isConcurrentMode=z,Ye.isContextConsumer=X,Ye.isContextProvider=H,Ye.isElement=Y,Ye.isForwardRef=G,Ye.isFragment=ie,Ye.isLazy=B,Ye.isMemo=se,Ye.isPortal=K,Ye.isProfiler=Q,Ye.isStrictMode=te,Ye.isSuspense=ue,Ye.isValidElementType=S,Ye.typeOf=O}()),Ye}process.env.NODE_ENV==="production"?ih.exports=KP():ih.exports=ZP();var Ba=ih.exports;function XP(e){function t(H,Y,G,ie,B){for(var se=0,K=0,Q=0,te=0,ue,$,xe=0,Se=0,be,ge=be=ue=0,P=0,V=0,ee=0,he=0,me=G.length,ce=me-1,le,U="",oe="",Ee="",Ie="",Me;P<me;){if($=G.charCodeAt(P),P===ce&&K+te+Q+se!==0&&(K!==0&&($=K===47?10:47),te=Q=se=0,me++,ce++),K+te+Q+se===0){if(P===ce&&(0<V&&(U=U.replace(d,"")),0<U.trim().length)){switch($){case 32:case 9:case 59:case 13:case 10:break;default:U+=G.charAt(P)}$=59}switch($){case 123:for(U=U.trim(),ue=U.charCodeAt(0),be=1,he=++P;P<me;){switch($=G.charCodeAt(P)){case 123:be++;break;case 125:be--;break;case 47:switch($=G.charCodeAt(P+1)){case 42:case 47:e:{for(ge=P+1;ge<ce;++ge)switch(G.charCodeAt(ge)){case 47:if($===42&&G.charCodeAt(ge-1)===42&&P+2!==ge){P=ge+1;break e}break;case 10:if($===47){P=ge+1;break e}}P=ge}}break;case 91:$++;case 40:$++;case 34:case 39:for(;P++<ce&&G.charCodeAt(P)!==$;);}if(be===0)break;P++}switch(be=G.substring(he,P),ue===0&&(ue=(U=U.replace(f,"").trim()).charCodeAt(0)),ue){case 64:switch(0<V&&(U=U.replace(d,"")),$=U.charCodeAt(1),$){case 100:case 109:case 115:case 45:V=Y;break;default:V=Z}if(be=t(Y,V,be,$,B+1),he=be.length,0<re&&(V=n(Z,U,ee),Me=l(3,be,V,Y,D,E,he,$,B,ie),U=V.join(""),Me!==void 0&&(he=(be=Me.trim()).length)===0&&($=0,be="")),0<he)switch($){case 115:U=U.replace(A,o);case 100:case 109:case 45:be=U+"{"+be+"}";break;case 107:U=U.replace(b,"$1 $2"),be=U+"{"+be+"}",be=W===1||W===2&&a("@"+be,3)?"@-webkit-"+be+"@"+be:"@"+be;break;default:be=U+be,ie===112&&(be=(oe+=be,""))}else be="";break;default:be=t(Y,n(Y,U,ee),be,ie,B+1)}Ee+=be,be=ee=V=ge=ue=0,U="",$=G.charCodeAt(++P);break;case 125:case 59:if(U=(0<V?U.replace(d,""):U).trim(),1<(he=U.length))switch(ge===0&&(ue=U.charCodeAt(0),ue===45||96<ue&&123>ue)&&(he=(U=U.replace(" ",":")).length),0<re&&(Me=l(1,U,Y,H,D,E,oe.length,ie,B,ie))!==void 0&&(he=(U=Me.trim()).length)===0&&(U="\0\0"),ue=U.charCodeAt(0),$=U.charCodeAt(1),ue){case 0:break;case 64:if($===105||$===99){Ie+=U+G.charAt(P);break}default:U.charCodeAt(he-1)!==58&&(oe+=i(U,ue,$,U.charCodeAt(2)))}ee=V=ge=ue=0,U="",$=G.charCodeAt(++P)}}switch($){case 13:case 10:K===47?K=0:1+ue===0&&ie!==107&&0<U.length&&(V=1,U+="\0"),0<re*z&&l(0,U,Y,H,D,E,oe.length,ie,B,ie),E=1,D++;break;case 59:case 125:if(K+te+Q+se===0){E++;break}default:switch(E++,le=G.charAt(P),$){case 9:case 32:if(te+se+K===0)switch(xe){case 44:case 58:case 9:case 32:le="";break;default:$!==32&&(le=" ")}break;case 0:le="\\0";break;case 12:le="\\f";break;case 11:le="\\v";break;case 38:te+K+se===0&&(V=ee=1,le="\f"+le);break;case 108:if(te+K+se+I===0&&0<ge)switch(P-ge){case 2:xe===112&&G.charCodeAt(P-3)===58&&(I=xe);case 8:Se===111&&(I=Se)}break;case 58:te+K+se===0&&(ge=P);break;case 44:K+Q+te+se===0&&(V=1,le+="\r");break;case 34:case 39:K===0&&(te=te===$?0:te===0?$:te);break;case 91:te+K+Q===0&&se++;break;case 93:te+K+Q===0&&se--;break;case 41:te+K+se===0&&Q--;break;case 40:if(te+K+se===0){if(ue===0)switch(2*xe+3*Se){case 533:break;default:ue=1}Q++}break;case 64:K+Q+te+se+ge+be===0&&(be=1);break;case 42:case 47:if(!(0<te+se+Q))switch(K){case 0:switch(2*$+3*G.charCodeAt(P+1)){case 235:K=47;break;case 220:he=P,K=42}break;case 42:$===47&&xe===42&&he+2!==P&&(G.charCodeAt(he+2)===33&&(oe+=G.substring(he,P+1)),le="",K=0)}}K===0&&(U+=le)}Se=xe,xe=$,P++}if(he=oe.length,0<he){if(V=Y,0<re&&(Me=l(2,oe,V,H,D,E,he,ie,B,ie),Me!==void 0&&(oe=Me).length===0))return Ie+oe+Ee;if(oe=V.join(",")+"{"+oe+"}",W*I!==0){switch(W!==2||a(oe,2)||(I=0),I){case 111:oe=oe.replace(O,":-moz-$1")+oe;break;case 112:oe=oe.replace(S,"::-webkit-input-$1")+oe.replace(S,"::-moz-$1")+oe.replace(S,":-ms-input-$1")+oe}I=0}}return Ie+oe+Ee}function n(H,Y,G){var ie=Y.trim().split(y);Y=ie;var B=ie.length,se=H.length;switch(se){case 0:case 1:var K=0;for(H=se===0?"":H[0]+" ";K<B;++K)Y[K]=r(H,Y[K],G).trim();break;default:var Q=K=0;for(Y=[];K<B;++K)for(var te=0;te<se;++te)Y[Q++]=r(H[te]+" ",ie[K],G).trim()}return Y}function r(H,Y,G){var ie=Y.charCodeAt(0);switch(33>ie&&(ie=(Y=Y.trim()).charCodeAt(0)),ie){case 38:return Y.replace(_,"$1"+H.trim());case 58:return H.trim()+Y.replace(_,"$1"+H.trim());default:if(0<1*G&&0<Y.indexOf("\f"))return Y.replace(_,(H.charCodeAt(0)===58?"":"$1")+H.trim())}return H+Y}function i(H,Y,G,ie){var B=H+";",se=2*Y+3*G+4*ie;if(se===944){H=B.indexOf(":",9)+1;var K=B.substring(H,B.length-1).trim();return K=B.substring(0,H).trim()+K+";",W===1||W===2&&a(K,1)?"-webkit-"+K+K:K}if(W===0||W===2&&!a(B,1))return B;switch(se){case 1015:return B.charCodeAt(10)===97?"-webkit-"+B+B:B;case 951:return B.charCodeAt(3)===116?"-webkit-"+B+B:B;case 963:return B.charCodeAt(5)===110?"-webkit-"+B+B:B;case 1009:if(B.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+B+B;case 978:return"-webkit-"+B+"-moz-"+B+B;case 1019:case 983:return"-webkit-"+B+"-moz-"+B+"-ms-"+B+B;case 883:if(B.charCodeAt(8)===45)return"-webkit-"+B+B;if(0<B.indexOf("image-set(",11))return B.replace(M,"$1-webkit-$2")+B;break;case 932:if(B.charCodeAt(4)===45)switch(B.charCodeAt(5)){case 103:return"-webkit-box-"+B.replace("-grow","")+"-webkit-"+B+"-ms-"+B.replace("grow","positive")+B;case 115:return"-webkit-"+B+"-ms-"+B.replace("shrink","negative")+B;case 98:return"-webkit-"+B+"-ms-"+B.replace("basis","preferred-size")+B}return"-webkit-"+B+"-ms-"+B+B;case 964:return"-webkit-"+B+"-ms-flex-"+B+B;case 1023:if(B.charCodeAt(8)!==99)break;return K=B.substring(B.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+K+"-webkit-"+B+"-ms-flex-pack"+K+B;case 1005:return g.test(B)?B.replace(h,":-webkit-")+B.replace(h,":-moz-")+B:B;case 1e3:switch(K=B.substring(13).trim(),Y=K.indexOf("-")+1,K.charCodeAt(0)+K.charCodeAt(Y)){case 226:K=B.replace(w,"tb");break;case 232:K=B.replace(w,"tb-rl");break;case 220:K=B.replace(w,"lr");break;default:return B}return"-webkit-"+B+"-ms-"+K+B;case 1017:if(B.indexOf("sticky",9)===-1)break;case 975:switch(Y=(B=H).length-10,K=(B.charCodeAt(Y)===33?B.substring(0,Y):B).substring(H.indexOf(":",7)+1).trim(),se=K.charCodeAt(0)+(K.charCodeAt(7)|0)){case 203:if(111>K.charCodeAt(8))break;case 115:B=B.replace(K,"-webkit-"+K)+";"+B;break;case 207:case 102:B=B.replace(K,"-webkit-"+(102<se?"inline-":"")+"box")+";"+B.replace(K,"-webkit-"+K)+";"+B.replace(K,"-ms-"+K+"box")+";"+B}return B+";";case 938:if(B.charCodeAt(5)===45)switch(B.charCodeAt(6)){case 105:return K=B.replace("-items",""),"-webkit-"+B+"-webkit-box-"+K+"-ms-flex-"+K+B;case 115:return"-webkit-"+B+"-ms-flex-item-"+B.replace(k,"")+B;default:return"-webkit-"+B+"-ms-flex-line-pack"+B.replace("align-content","").replace(k,"")+B}break;case 973:case 989:if(B.charCodeAt(3)!==45||B.charCodeAt(4)===122)break;case 931:case 953:if(N.test(H)===!0)return(K=H.substring(H.indexOf(":")+1)).charCodeAt(0)===115?i(H.replace("stretch","fill-available"),Y,G,ie).replace(":fill-available",":stretch"):B.replace(K,"-webkit-"+K)+B.replace(K,"-moz-"+K.replace("fill-",""))+B;break;case 962:if(B="-webkit-"+B+(B.charCodeAt(5)===102?"-ms-"+B:"")+B,G+ie===211&&B.charCodeAt(13)===105&&0<B.indexOf("transform",10))return B.substring(0,B.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+B}return B}function a(H,Y){var G=H.indexOf(Y===1?":":"{"),ie=H.substring(0,Y!==3?G:10);return G=H.substring(G+1,H.length-1),J(Y!==2?ie:ie.replace(j,"$1"),G,Y)}function o(H,Y){var G=i(Y,Y.charCodeAt(0),Y.charCodeAt(1),Y.charCodeAt(2));return G!==Y+";"?G.replace(T," or ($1)").substring(4):"("+Y+")"}function l(H,Y,G,ie,B,se,K,Q,te,ue){for(var $=0,xe=Y,Se;$<re;++$)switch(Se=ne[$].call(c,H,xe,G,ie,B,se,K,Q,te,ue)){case void 0:case!1:case!0:case null:break;default:xe=Se}if(xe!==Y)return xe}function s(H){switch(H){case void 0:case null:re=ne.length=0;break;default:if(typeof H=="function")ne[re++]=H;else if(typeof H=="object")for(var Y=0,G=H.length;Y<G;++Y)s(H[Y]);else z=!!H|0}return s}function u(H){return H=H.prefix,H!==void 0&&(J=null,H?typeof H!="function"?W=1:(W=2,J=H):W=0),u}function c(H,Y){var G=H;if(33>G.charCodeAt(0)&&(G=G.trim()),X=G,G=[X],0<re){var ie=l(-1,Y,G,G,D,E,0,0,0,0);ie!==void 0&&typeof ie=="string"&&(Y=ie)}var B=t(Z,G,Y,0,0);return 0<re&&(ie=l(-2,B,G,G,D,E,B.length,0,0,0),ie!==void 0&&(B=ie)),X="",I=0,E=D=1,B}var f=/^\0+/g,d=/[\0\r\f]/g,h=/: */g,g=/zoo|gra/,p=/([,: ])(transform)/g,y=/,\r+?/g,_=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,S=/::(place)/g,O=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,T=/([\s\S]*?);/g,k=/-self|flex-/g,j=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,E=1,D=1,I=0,W=1,Z=[],ne=[],re=0,J=null,z=0,X="";return c.use=s,c.set=u,e!==void 0&&u(e),c}var JP={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function QP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var e3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Hy=QP(function(e){return e3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ah=Ba,t3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},oh={};oh[ah.ForwardRef]=r3,oh[ah.Memo]=qy;function Gy(e){return ah.isMemo(e)?qy:oh[e.$$typeof]||t3}var i3=Object.defineProperty,a3=Object.getOwnPropertyNames,Yy=Object.getOwnPropertySymbols,o3=Object.getOwnPropertyDescriptor,l3=Object.getPrototypeOf,Ky=Object.prototype;function Zy(e,t,n){if(typeof t!="string"){if(Ky){var r=l3(t);r&&r!==Ky&&Zy(e,r,n)}var i=a3(t);Yy&&(i=i.concat(Yy(t)));for(var a=Gy(e),o=Gy(t),l=0;l<i.length;++l){var s=i[l];if(!n3[s]&&!(n&&n[s])&&!(o&&o[s])&&!(a&&a[s])){var u=o3(t,s);try{i3(e,s,u)}catch{}}}}return e}var s3=Zy;const Lt=Ae(s3);function Wr(){return(Wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Xy=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},lh=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!Ba.typeOf(e)},tu=Object.freeze([]),bi=Object.freeze({});function sl(e){return typeof e=="function"}function sh(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function uh(e){return e&&typeof e.styledComponentId=="string"}var Ra=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ch=typeof window<"u"&&"HTMLElement"in window,u3=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production")),c3=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
42
42
 
43
43
  `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
44
44
 
@@ -84,7 +84,7 @@ Has styled-components' style tag been unmounted or altered by another script?
84
84
  `),r=[],i=0,a=n.length;i<a;i++){var o=n[i].trim();if(o){var l=o.match(p3);if(l){var s=0|parseInt(l[1],10),u=l[2];s!==0&&(m3(u,s),v3(e,u,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(o)}}},b3=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},Jy=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(l){for(var s=l.childNodes,u=s.length;u>=0;u--){var c=s[u];if(c&&c.nodeType===1&&c.hasAttribute(Ra))return c}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(Ra,"active"),r.setAttribute("data-styled-version","5.3.11");var o=b3();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},_3=function(){function e(n){var r=this.element=Jy(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,l=a.length;o<l;o++){var s=a[o];if(s.ownerNode===i)return s}Wa(17)}(r),this.length=0}var t=e.prototype;return t.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},t.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},t.getRule=function(n){var r=this.sheet.cssRules[n];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},e}(),x3=function(){function e(n){var r=this.element=Jy(n);this.nodes=r.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(n,r){if(n<=this.length&&n>=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},e}(),S3=function(){function e(n){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},t.deleteRule=function(n){this.rules.splice(n,1),this.length--},t.getRule=function(n){return n<this.length?this.rules[n]:""},e}(),Qy=ch,w3={isServer:!ch,useCSSOMInjection:!u3},eb=function(){function e(n,r,i){n===void 0&&(n=bi),r===void 0&&(r={}),this.options=Wr({},w3,{},n),this.gs=r,this.names=new Map(i),this.server=!!n.isServer,!this.server&&ch&&Qy&&(Qy=!1,function(a){for(var o=document.querySelectorAll(g3),l=0,s=o.length;l<s;l++){var u=o[l];u&&u.getAttribute(Ra)!=="active"&&(y3(a,u),u.parentNode&&u.parentNode.removeChild(u))}}(this))}e.registerId=function(n){return iu(n)};var t=e.prototype;return t.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new e(Wr({},this.options,{},n),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},t.getTag=function(){return this.tag||(this.tag=(i=(r=this.options).isServer,a=r.useCSSOMInjection,o=r.target,n=i?new S3(o):a?new _3(o):new x3(o),new d3(n)));var n,r,i,a,o},t.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},t.registerName=function(n,r){if(iu(n),this.names.has(n))this.names.get(n).add(r);else{var i=new Set;i.add(r),this.names.set(n,i)}},t.insertRules=function(n,r,i){this.registerName(n,r),this.getTag().insertRules(iu(n),i)},t.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},t.clearRules=function(n){this.getTag().clearGroup(iu(n)),this.clearNames(n)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(n){for(var r=n.getTag(),i=r.length,a="",o=0;o<i;o++){var l=h3(o);if(l!==void 0){var s=n.names.get(l),u=r.getGroup(o);if(s&&u&&s.size){var c=Ra+".g"+o+'[id="'+l+'"]',f="";s!==void 0&&s.forEach(function(d){d.length>0&&(f+=d+",")}),a+=""+u+c+'{content:"'+f+`"}/*!sc*/
85
85
  `}}}return a}(this)},e}(),O3=/(a)(d)/gi,tb=function(e){return String.fromCharCode(e+(e>25?39:97))};function fh(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=tb(t%52)+n;return(tb(t%52)+n).replace(O3,"$1-$2")}var Yi=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},nb=function(e){return Yi(5381,e)};function C3(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(sl(n)&&!uh(n))return!1}return!0}var A3=nb("5.3.11"),T3=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&C3(t),this.componentId=n,this.baseHash=Yi(A3,n),this.baseStyle=r,eb.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(t,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(i,this.staticRulesId))a.push(this.staticRulesId);else{var o=za(this.rules,t,n,r).join(""),l=fh(Yi(this.baseHash,o)>>>0);if(!n.hasNameForId(i,l)){var s=r(o,"."+l,void 0,i);n.insertRules(i,l,s)}a.push(l),this.staticRulesId=l}else{for(var u=this.rules.length,c=Yi(this.baseHash,r.hash),f="",d=0;d<u;d++){var h=this.rules[d];if(typeof h=="string")f+=h,process.env.NODE_ENV!=="production"&&(c=Yi(c,h+d));else if(h){var g=za(h,t,n,r),p=Array.isArray(g)?g.join(""):g;c=Yi(c,p+d),f+=p}}if(f){var y=fh(c>>>0);if(!n.hasNameForId(i,y)){var _=r(f,"."+y,void 0,i);n.insertRules(i,y,_)}a.push(y)}}return a.join(" ")},e}(),k3=/^\s*\/\/.*$/gm,E3=[":","[",".","#"];function P3(e){var t,n,r,i,a=e===void 0?bi:e,o=a.options,l=o===void 0?bi:o,s=a.plugins,u=s===void 0?tu:s,c=new XP(l),f=[],d=function(p){function y(_){if(_)try{p(_+"}")}catch{}}return function(_,b,S,O,w,A,T,k,j,N){switch(_){case 1:if(j===0&&b.charCodeAt(0)===64)return p(b+";"),"";break;case 2:if(k===0)return b+"/*|*/";break;case 3:switch(k){case 102:case 112:return p(S[0]+b),"";default:return b+(N===0?"/*|*/":"")}case-2:b.split("/*|*/}").forEach(y)}}}(function(p){f.push(p)}),h=function(p,y,_){return y===0&&E3.indexOf(_[n.length])!==-1||_.match(i)?p:"."+t};function g(p,y,_,b){b===void 0&&(b="&");var S=p.replace(k3,""),O=y&&_?_+" "+y+" { "+S+" }":S;return t=b,n=y,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),c(_||!y?"":y,O)}return c.use([].concat(u,[function(p,y,_){p===2&&_.length&&_[0].lastIndexOf(n)>0&&(_[0]=_[0].replace(r,h))},d,function(p){if(p===-2){var y=f;return f=[],y}}])),g.hash=u.length?u.reduce(function(p,y){return y.name||Wa(15),Yi(p,y.name)},5381).toString():"",g}var rb=x.createContext();rb.Consumer;var ib=x.createContext(),j3=(ib.Consumer,new eb),dh=P3();function M3(){return x.useContext(rb)||j3}function D3(){return x.useContext(ib)||dh}var ab=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=dh);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Wa(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=dh),this.name+t.hash},e}(),I3=/([A-Z])/,$3=/([A-Z])/g,L3=/^ms-/,F3=function(e){return"-"+e.toLowerCase()};function ob(e){return I3.test(e)?e.replace($3,F3).replace(L3,"-ms-"):e}var lb=function(e){return e==null||e===!1||e===""};function za(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,l=e.length;o<l;o+=1)(i=za(e[o],t,n,r))!==""&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(lb(e))return"";if(uh(e))return"."+e.styledComponentId;if(sl(e)){if(typeof(u=e)!="function"||u.prototype&&u.prototype.isReactComponent||!t)return e;var s=e(t);return process.env.NODE_ENV!=="production"&&Ba.isElement(s)&&console.warn(sh(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),za(s,t,n,r)}var u;return e instanceof ab?n?(e.inject(n,r),e.getName(r)):e:lh(e)?function c(f,d){var h,g,p=[];for(var y in f)f.hasOwnProperty(y)&&!lb(f[y])&&(Array.isArray(f[y])&&f[y].isCss||sl(f[y])?p.push(ob(y)+":",f[y],";"):lh(f[y])?p.push.apply(p,c(f[y],y)):p.push(ob(y)+": "+(h=y,(g=f[y])==null||typeof g=="boolean"||g===""?"":typeof g!="number"||g===0||h in JP||h.startsWith("--")?String(g).trim():g+"px")+";"));return d?[d+" {"].concat(p,["}"]):p}(e):e.toString()}var sb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ub(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return sl(e)||lh(e)?sb(za(Xy(tu,[e].concat(n)))):n.length===0&&e.length===1&&typeof e[0]=="string"?e:sb(za(Xy(e,n)))}var cb=/invalid hook call/i,au=new Set,N3=function(e,t){if(process.env.NODE_ENV!=="production"){var n="The component "+e+(t?' with the id of "'+t+'"':"")+` has been created dynamically.
86
86
  You may see this warning because you've called styled inside another component.
87
- To resolve this only create new StyledComponents outside of any render method and function component.`,r=console.error;try{var i=!0;console.error=function(a){if(cb.test(a))i=!1,au.delete(n);else{for(var o=arguments.length,l=new Array(o>1?o-1:0),s=1;s<o;s++)l[s-1]=arguments[s];r.apply(void 0,[a].concat(l))}},x.useRef(),i&&!au.has(n)&&(console.warn(n),au.add(n))}catch(a){cb.test(a.message)&&au.delete(n)}finally{console.error=r}}},B3=function(e,t,n){return n===void 0&&(n=bi),e.theme!==n.theme&&e.theme||t||n.theme},R3=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,W3=/(^-|-$)/g;function hh(e){return e.replace(R3,"-").replace(W3,"")}var fb=function(e){return fh(nb(e)>>>0)};function ou(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var mh=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},z3=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function V3(e,t,n){var r=e[n];mh(t)&&mh(r)?db(r,t):e[n]=t}function db(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(mh(o))for(var l in o)z3(l)&&V3(e,o[l],l)}return e}var hb=x.createContext();hb.Consumer;var gh={};function mb(e,t,n){var r=uh(e),i=!ou(e),a=t.attrs,o=a===void 0?tu:a,l=t.componentId,s=l===void 0?function(b,S){var O=typeof b!="string"?"sc":hh(b);gh[O]=(gh[O]||0)+1;var w=O+"-"+fb("5.3.11"+O+gh[O]);return S?S+"-"+w:w}(t.displayName,t.parentComponentId):l,u=t.displayName,c=u===void 0?function(b){return ou(b)?"styled."+b:"Styled("+sh(b)+")"}(e):u,f=t.displayName&&t.componentId?hh(t.displayName)+"-"+t.componentId:t.componentId||s,d=r&&e.attrs?Array.prototype.concat(e.attrs,o).filter(Boolean):o,h=t.shouldForwardProp;r&&e.shouldForwardProp&&(h=t.shouldForwardProp?function(b,S,O){return e.shouldForwardProp(b,S,O)&&t.shouldForwardProp(b,S,O)}:e.shouldForwardProp);var g,p=new T3(n,f,r?e.componentStyle:void 0),y=p.isStatic&&o.length===0,_=function(b,S){return function(O,w,A,T){var k=O.attrs,j=O.componentStyle,N=O.defaultProps,M=O.foldedComponentIds,E=O.shouldForwardProp,I=O.styledComponentId,D=O.target,W=function(ie,B,se){ie===void 0&&(ie=bi);var K=Wr({},B,{theme:ie}),J={};return se.forEach(function(te){var ue,$,xe,Se=te;for(ue in sl(Se)&&(Se=Se(K)),Se)K[ue]=J[ue]=ue==="className"?($=J[ue],xe=Se[ue],$&&xe?$+" "+xe:$||xe):Se[ue]}),[K,J]}(B3(w,x.useContext(hb),N)||bi,w,k),X=W[0],re=W[1],ne=function(ie,B,se,K){var J=M3(),te=D3(),ue=B?ie.generateAndInjectStyles(bi,J,te):ie.generateAndInjectStyles(se,J,te);return process.env.NODE_ENV!=="production"&&!B&&K&&K(ue),ue}(j,T,X,process.env.NODE_ENV!=="production"?O.warnTooManyClasses:void 0),ee=A,z=re.$as||w.$as||re.as||w.as||D,Z=ou(z),q=re!==w?Wr({},w,{},re):w,Y={};for(var G in q)G[0]!=="$"&&G!=="as"&&(G==="forwardedAs"?Y.as=q[G]:(E?E(G,Hy,z):!Z||Hy(G))&&(Y[G]=q[G]));return w.style&&re.style!==w.style&&(Y.style=Wr({},w.style,{},re.style)),Y.className=Array.prototype.concat(M,I,ne!==I?ne:null,w.className,re.className).filter(Boolean).join(" "),Y.ref=ee,x.createElement(z,Y)}(g,b,S,y)};return _.displayName=c,(g=x.forwardRef(_)).attrs=d,g.componentStyle=p,g.displayName=c,g.shouldForwardProp=h,g.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):tu,g.styledComponentId=f,g.target=r?e.target:e,g.withComponent=function(b){var S=t.componentId,O=function(A,T){if(A==null)return{};var k,j,N={},M=Object.keys(A);for(j=0;j<M.length;j++)k=M[j],T.indexOf(k)>=0||(N[k]=A[k]);return N}(t,["componentId"]),w=S&&S+"-"+(ou(b)?b:hh(sh(b)));return mb(b,Wr({},O,{attrs:d,componentId:w}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?db({},e.defaultProps,b):b}}),process.env.NODE_ENV!=="production"&&(N3(c,f),g.warnTooManyClasses=function(b,S){var O={},w=!1;return function(A){if(!w&&(O[A]=!0,Object.keys(O).length>=200)){var T=S?' with the id of "'+S+'"':"";console.warn("Over 200 classes were generated for component "+b+T+`.
87
+ To resolve this only create new StyledComponents outside of any render method and function component.`,r=console.error;try{var i=!0;console.error=function(a){if(cb.test(a))i=!1,au.delete(n);else{for(var o=arguments.length,l=new Array(o>1?o-1:0),s=1;s<o;s++)l[s-1]=arguments[s];r.apply(void 0,[a].concat(l))}},x.useRef(),i&&!au.has(n)&&(console.warn(n),au.add(n))}catch(a){cb.test(a.message)&&au.delete(n)}finally{console.error=r}}},B3=function(e,t,n){return n===void 0&&(n=bi),e.theme!==n.theme&&e.theme||t||n.theme},R3=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,W3=/(^-|-$)/g;function hh(e){return e.replace(R3,"-").replace(W3,"")}var fb=function(e){return fh(nb(e)>>>0)};function ou(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var mh=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},z3=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function V3(e,t,n){var r=e[n];mh(t)&&mh(r)?db(r,t):e[n]=t}function db(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(mh(o))for(var l in o)z3(l)&&V3(e,o[l],l)}return e}var hb=x.createContext();hb.Consumer;var gh={};function mb(e,t,n){var r=uh(e),i=!ou(e),a=t.attrs,o=a===void 0?tu:a,l=t.componentId,s=l===void 0?function(b,S){var O=typeof b!="string"?"sc":hh(b);gh[O]=(gh[O]||0)+1;var w=O+"-"+fb("5.3.11"+O+gh[O]);return S?S+"-"+w:w}(t.displayName,t.parentComponentId):l,u=t.displayName,c=u===void 0?function(b){return ou(b)?"styled."+b:"Styled("+sh(b)+")"}(e):u,f=t.displayName&&t.componentId?hh(t.displayName)+"-"+t.componentId:t.componentId||s,d=r&&e.attrs?Array.prototype.concat(e.attrs,o).filter(Boolean):o,h=t.shouldForwardProp;r&&e.shouldForwardProp&&(h=t.shouldForwardProp?function(b,S,O){return e.shouldForwardProp(b,S,O)&&t.shouldForwardProp(b,S,O)}:e.shouldForwardProp);var g,p=new T3(n,f,r?e.componentStyle:void 0),y=p.isStatic&&o.length===0,_=function(b,S){return function(O,w,A,T){var k=O.attrs,j=O.componentStyle,N=O.defaultProps,M=O.foldedComponentIds,E=O.shouldForwardProp,D=O.styledComponentId,I=O.target,W=function(ie,B,se){ie===void 0&&(ie=bi);var K=Wr({},B,{theme:ie}),Q={};return se.forEach(function(te){var ue,$,xe,Se=te;for(ue in sl(Se)&&(Se=Se(K)),Se)K[ue]=Q[ue]=ue==="className"?($=Q[ue],xe=Se[ue],$&&xe?$+" "+xe:$||xe):Se[ue]}),[K,Q]}(B3(w,x.useContext(hb),N)||bi,w,k),Z=W[0],ne=W[1],re=function(ie,B,se,K){var Q=M3(),te=D3(),ue=B?ie.generateAndInjectStyles(bi,Q,te):ie.generateAndInjectStyles(se,Q,te);return process.env.NODE_ENV!=="production"&&!B&&K&&K(ue),ue}(j,T,Z,process.env.NODE_ENV!=="production"?O.warnTooManyClasses:void 0),J=A,z=ne.$as||w.$as||ne.as||w.as||I,X=ou(z),H=ne!==w?Wr({},w,{},ne):w,Y={};for(var G in H)G[0]!=="$"&&G!=="as"&&(G==="forwardedAs"?Y.as=H[G]:(E?E(G,Hy,z):!X||Hy(G))&&(Y[G]=H[G]));return w.style&&ne.style!==w.style&&(Y.style=Wr({},w.style,{},ne.style)),Y.className=Array.prototype.concat(M,D,re!==D?re:null,w.className,ne.className).filter(Boolean).join(" "),Y.ref=J,x.createElement(z,Y)}(g,b,S,y)};return _.displayName=c,(g=x.forwardRef(_)).attrs=d,g.componentStyle=p,g.displayName=c,g.shouldForwardProp=h,g.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):tu,g.styledComponentId=f,g.target=r?e.target:e,g.withComponent=function(b){var S=t.componentId,O=function(A,T){if(A==null)return{};var k,j,N={},M=Object.keys(A);for(j=0;j<M.length;j++)k=M[j],T.indexOf(k)>=0||(N[k]=A[k]);return N}(t,["componentId"]),w=S&&S+"-"+(ou(b)?b:hh(sh(b)));return mb(b,Wr({},O,{attrs:d,componentId:w}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?db({},e.defaultProps,b):b}}),process.env.NODE_ENV!=="production"&&(N3(c,f),g.warnTooManyClasses=function(b,S){var O={},w=!1;return function(A){if(!w&&(O[A]=!0,Object.keys(O).length>=200)){var T=S?' with the id of "'+S+'"':"";console.warn("Over 200 classes were generated for component "+b+T+`.
88
88
  Consider using the attrs method, together with a style object for frequently changed styles.
89
89
  Example:
90
90
  const Component = styled.div.attrs(props => ({
@@ -129,15 +129,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
129
129
  object-assign
130
130
  (c) Sindre Sorhus
131
131
  @license MIT
132
- */var um,f1;function $L(){if(f1)return um;f1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var s=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(s.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return um=i()?Object.assign:function(a,o){for(var l,s=r(a),u,c=1;c<arguments.length;c++){l=Object(arguments[c]);for(var f in l)t.call(l,f)&&(s[f]=l[f]);if(e){u=e(l);for(var d=0;d<u.length;d++)n.call(l,u[d])&&(s[u[d]]=l[u[d]])}}return s},um}var cm,d1;function fm(){if(d1)return cm;d1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cm=e,cm}var dm,h1;function m1(){return h1||(h1=1,dm=Function.call.bind(Object.prototype.hasOwnProperty)),dm}var hm,g1;function LL(){if(g1)return hm;g1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=fm(),n={},r=m1();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,l,s,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(r(a,c)){var f;try{if(typeof a[c]!="function"){var d=Error((s||"React class")+": "+l+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[c](o,c,s,l,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((s||"React class")+": type specification of "+l+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";e("Failed "+l+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},hm=i,hm}var mm,p1;function FL(){if(p1)return mm;p1=1;var e=Ba,t=$L(),n=fm(),r=m1(),i=LL(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var s="Warning: "+l;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function o(){return null}return mm=function(l,s){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(z){var Z=z&&(u&&z[u]||z[c]);if(typeof Z=="function")return Z}var d="<<anonymous>>",h={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:b(),arrayOf:S,element:O(),elementType:w(),instanceOf:A,node:N(),objectOf:k,oneOf:T,oneOfType:j,shape:E,exact:I};function g(z,Z){return z===Z?z!==0||1/z===1/Z:z!==z&&Z!==Z}function p(z,Z){this.message=z,this.data=Z&&typeof Z=="object"?Z:{},this.stack=""}p.prototype=Error.prototype;function y(z){if(process.env.NODE_ENV!=="production")var Z={},q=0;function Y(ie,B,se,K,J,te,ue){if(K=K||d,te=te||se,ue!==n){if(s){var $=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xe=K+":"+se;!Z[xe]&&q<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Z[xe]=!0,q++)}}return B[se]==null?ie?B[se]===null?new p("The "+J+" `"+te+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new p("The "+J+" `"+te+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:z(B,se,K,J,te)}var G=Y.bind(null,!1);return G.isRequired=Y.bind(null,!0),G}function _(z){function Z(q,Y,G,ie,B,se){var K=q[Y],J=X(K);if(J!==z){var te=re(K);return new p("Invalid "+ie+" `"+B+"` of type "+("`"+te+"` supplied to `"+G+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return y(Z)}function b(){return y(o)}function S(z){function Z(q,Y,G,ie,B){if(typeof z!="function")return new p("Property `"+B+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var se=q[Y];if(!Array.isArray(se)){var K=X(se);return new p("Invalid "+ie+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an array."))}for(var J=0;J<se.length;J++){var te=z(se,J,G,ie,B+"["+J+"]",n);if(te instanceof Error)return te}return null}return y(Z)}function O(){function z(Z,q,Y,G,ie){var B=Z[q];if(!l(B)){var se=X(B);return new p("Invalid "+G+" `"+ie+"` of type "+("`"+se+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return y(z)}function w(){function z(Z,q,Y,G,ie){var B=Z[q];if(!e.isValidElementType(B)){var se=X(B);return new p("Invalid "+G+" `"+ie+"` of type "+("`"+se+"` supplied to `"+Y+"`, expected a single ReactElement type."))}return null}return y(z)}function A(z){function Z(q,Y,G,ie,B){if(!(q[Y]instanceof z)){var se=z.name||d,K=ee(q[Y]);return new p("Invalid "+ie+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected ")+("instance of `"+se+"`."))}return null}return y(Z)}function T(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function Z(q,Y,G,ie,B){for(var se=q[Y],K=0;K<z.length;K++)if(g(se,z[K]))return null;var J=JSON.stringify(z,function(ue,$){var xe=re($);return xe==="symbol"?String($):$});return new p("Invalid "+ie+" `"+B+"` of value `"+String(se)+"` "+("supplied to `"+G+"`, expected one of "+J+"."))}return y(Z)}function k(z){function Z(q,Y,G,ie,B){if(typeof z!="function")return new p("Property `"+B+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var se=q[Y],K=X(se);if(K!=="object")return new p("Invalid "+ie+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an object."));for(var J in se)if(r(se,J)){var te=z(se,J,G,ie,B+"."+J,n);if(te instanceof Error)return te}return null}return y(Z)}function j(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var Z=0;Z<z.length;Z++){var q=z[Z];if(typeof q!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ne(q)+" at index "+Z+"."),o}function Y(G,ie,B,se,K){for(var J=[],te=0;te<z.length;te++){var ue=z[te],$=ue(G,ie,B,se,K,n);if($==null)return null;$.data&&r($.data,"expectedType")&&J.push($.data.expectedType)}var xe=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new p("Invalid "+se+" `"+K+"` supplied to "+("`"+B+"`"+xe+"."))}return y(Y)}function N(){function z(Z,q,Y,G,ie){return D(Z[q])?null:new p("Invalid "+G+" `"+ie+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return y(z)}function M(z,Z,q,Y,G){return new p((z||"React class")+": "+Z+" type `"+q+"."+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function E(z){function Z(q,Y,G,ie,B){var se=q[Y],K=X(se);if(K!=="object")return new p("Invalid "+ie+" `"+B+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));for(var J in z){var te=z[J];if(typeof te!="function")return M(G,ie,B,J,re(te));var ue=te(se,J,G,ie,B+"."+J,n);if(ue)return ue}return null}return y(Z)}function I(z){function Z(q,Y,G,ie,B){var se=q[Y],K=X(se);if(K!=="object")return new p("Invalid "+ie+" `"+B+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));var J=t({},q[Y],z);for(var te in J){var ue=z[te];if(r(z,te)&&typeof ue!="function")return M(G,ie,B,te,re(ue));if(!ue)return new p("Invalid "+ie+" `"+B+"` key `"+te+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(q[Y],null," ")+`
133
- Valid keys: `+JSON.stringify(Object.keys(z),null," "));var $=ue(se,te,G,ie,B+"."+te,n);if($)return $}return null}return y(Z)}function D(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(D);if(z===null||l(z))return!0;var Z=f(z);if(Z){var q=Z.call(z),Y;if(Z!==z.entries){for(;!(Y=q.next()).done;)if(!D(Y.value))return!1}else for(;!(Y=q.next()).done;){var G=Y.value;if(G&&!D(G[1]))return!1}}else return!1;return!0;default:return!1}}function W(z,Z){return z==="symbol"?!0:Z?Z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Z instanceof Symbol:!1}function X(z){var Z=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":W(Z,z)?"symbol":Z}function re(z){if(typeof z>"u"||z===null)return""+z;var Z=X(z);if(Z==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return Z}function ne(z){var Z=re(z);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function ee(z){return!z.constructor||!z.constructor.name?d:z.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},mm}var gm,v1;function NL(){if(v1)return gm;v1=1;var e=fm();function t(){}function n(){}return n.resetWarningCache=t,gm=function(){function r(o,l,s,u,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},gm}if(process.env.NODE_ENV!=="production"){var BL=Ba,RL=!0;sm.exports=FL()(BL.isElement,RL)}else sm.exports=NL()();var WL=sm.exports;const m=Ae(WL),zL=e=>+e;function VL(e){return e*e}function UL(e){return e*(2-e)}function y1(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function HL(e){return e*e*e}function qL(e){return--e*e*e+1}function b1(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var pm=3,GL=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(pm),YL=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(pm),_1=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(pm),x1=Math.PI,S1=x1/2;function KL(e){return+e==1?1:1-Math.cos(e*S1)}function ZL(e){return Math.sin(e*S1)}function w1(e){return(1-Math.cos(x1*e))/2}function Ai(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function XL(e){return Ai(1-+e)}function JL(e){return 1-Ai(e)}function O1(e){return((e*=2)<=1?Ai(1-e):2-Ai(e-1))/2}function QL(e){return 1-Math.sqrt(1-e*e)}function e8(e){return Math.sqrt(1- --e*e)}function C1(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var vm=4/11,t8=6/11,n8=8/11,r8=3/4,i8=9/11,a8=10/11,o8=15/16,l8=21/22,s8=63/64,Wu=1/vm/vm;function u8(e){return 1-Il(1-e)}function Il(e){return(e=+e)<vm?Wu*e*e:e<n8?Wu*(e-=t8)*e+r8:e<a8?Wu*(e-=i8)*e+o8:Wu*(e-=l8)*e+s8}function c8(e){return((e*=2)<=1?1-Il(1-e):Il(e-1)+1)/2}var ym=1.70158,f8=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(ym),d8=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(ym),A1=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(ym),uo=2*Math.PI,bm=1,_m=.3,h8=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=uo);function i(a){return t*Ai(- --a)*Math.sin((r-a)/n)}return i.amplitude=function(a){return e(a,n*uo)},i.period=function(a){return e(t,a)},i}(bm,_m),T1=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=uo);function i(a){return 1-t*Ai(a=+a)*Math.sin((a+r)/n)}return i.amplitude=function(a){return e(a,n*uo)},i.period=function(a){return e(t,a)},i}(bm,_m),m8=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=uo);function i(a){return((a=a*2-1)<0?t*Ai(-a)*Math.sin((r-a)/n):2-t*Ai(a)*Math.sin((r+a)/n))/2}return i.amplitude=function(a){return e(a,n*uo)},i.period=function(a){return e(t,a)},i}(bm,_m);const g8=Object.freeze(Object.defineProperty({__proto__:null,easeBack:A1,easeBackIn:f8,easeBackInOut:A1,easeBackOut:d8,easeBounce:Il,easeBounceIn:u8,easeBounceInOut:c8,easeBounceOut:Il,easeCircle:C1,easeCircleIn:QL,easeCircleInOut:C1,easeCircleOut:e8,easeCubic:b1,easeCubicIn:HL,easeCubicInOut:b1,easeCubicOut:qL,easeElastic:T1,easeElasticIn:h8,easeElasticInOut:m8,easeElasticOut:T1,easeExp:O1,easeExpIn:XL,easeExpInOut:O1,easeExpOut:JL,easeLinear:zL,easePoly:_1,easePolyIn:GL,easePolyInOut:_1,easePolyOut:YL,easeQuad:y1,easeQuadIn:VL,easeQuadInOut:y1,easeQuadOut:UL,easeSin:w1,easeSinIn:KL,easeSinInOut:w1,easeSinOut:ZL},Symbol.toStringTag,{value:"Module"}));function p8(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var co=p8,v8=Ur,y8=ir,b8="[object Symbol]";function _8(e){return typeof e=="symbol"||y8(e)&&v8(e)==b8}var $l=_8,x8=Ft,S8=$l,w8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O8=/^\w*$/;function C8(e,t){if(x8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||S8(e)?!0:O8.test(e)||!w8.test(e)||t!=null&&e in Object(t)}var xm=C8,A8=na,T8=A8(Object,"create"),zu=T8,k1=zu;function k8(){this.__data__=k1?k1(null):{},this.size=0}var E8=k8;function P8(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var j8=P8,M8=zu,D8="__lodash_hash_undefined__",I8=Object.prototype,$8=I8.hasOwnProperty;function L8(e){var t=this.__data__;if(M8){var n=t[e];return n===D8?void 0:n}return $8.call(t,e)?t[e]:void 0}var F8=L8,N8=zu,B8=Object.prototype,R8=B8.hasOwnProperty;function W8(e){var t=this.__data__;return N8?t[e]!==void 0:R8.call(t,e)}var z8=W8,V8=zu,U8="__lodash_hash_undefined__";function H8(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=V8&&t===void 0?U8:t,this}var q8=H8,G8=E8,Y8=j8,K8=F8,Z8=z8,X8=q8;function fo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fo.prototype.clear=G8,fo.prototype.delete=Y8,fo.prototype.get=K8,fo.prototype.has=Z8,fo.prototype.set=X8;var J8=fo;function Q8(){this.__data__=[],this.size=0}var eF=Q8,tF=ia;function nF(e,t){for(var n=e.length;n--;)if(tF(e[n][0],t))return n;return-1}var Vu=nF,rF=Vu,iF=Array.prototype,aF=iF.splice;function oF(e){var t=this.__data__,n=rF(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():aF.call(t,n,1),--this.size,!0}var lF=oF,sF=Vu;function uF(e){var t=this.__data__,n=sF(t,e);return n<0?void 0:t[n][1]}var cF=uF,fF=Vu;function dF(e){return fF(this.__data__,e)>-1}var hF=dF,mF=Vu;function gF(e,t){var n=this.__data__,r=mF(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var pF=gF,vF=eF,yF=lF,bF=cF,_F=hF,xF=pF;function ho(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ho.prototype.clear=vF,ho.prototype.delete=yF,ho.prototype.get=bF,ho.prototype.has=_F,ho.prototype.set=xF;var Uu=ho,E1=J8,SF=Uu,wF=Qh;function OF(){this.size=0,this.__data__={hash:new E1,map:new(wF||SF),string:new E1}}var CF=OF;function AF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var TF=AF,kF=TF;function EF(e,t){var n=e.__data__;return kF(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Hu=EF,PF=Hu;function jF(e){var t=PF(this,e).delete(e);return this.size-=t?1:0,t}var MF=jF,DF=Hu;function IF(e){return DF(this,e).get(e)}var $F=IF,LF=Hu;function FF(e){return LF(this,e).has(e)}var NF=FF,BF=Hu;function RF(e,t){var n=BF(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var WF=RF,zF=CF,VF=MF,UF=$F,HF=NF,qF=WF;function mo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mo.prototype.clear=zF,mo.prototype.delete=VF,mo.prototype.get=UF,mo.prototype.has=HF,mo.prototype.set=qF;var Sm=mo,P1=Sm,GF="Expected a function";function wm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(GF);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(wm.Cache||P1),n}wm.Cache=P1;var j1=wm;const M1=Ae(j1);var YF=j1,KF=500;function ZF(e){var t=YF(e,function(r){return n.size===KF&&n.clear(),r}),n=t.cache;return t}var XF=ZF,JF=XF,QF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eN=/\\(\\)?/g,tN=JF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(QF,function(n,r,i,a){t.push(i?a.replace(eN,"$1"):r||n)}),t}),nN=tN,D1=oo,rN=co,iN=Ft,aN=$l,oN=1/0,I1=D1?D1.prototype:void 0,$1=I1?I1.toString:void 0;function L1(e){if(typeof e=="string")return e;if(iN(e))return rN(e,L1)+"";if(aN(e))return $1?$1.call(e):"";var t=e+"";return t=="0"&&1/e==-oN?"-0":t}var lN=L1,sN=lN;function uN(e){return e==null?"":sN(e)}var F1=uN,cN=Ft,fN=xm,dN=nN,hN=F1;function mN(e,t){return cN(e)?e:fN(e,t)?[e]:dN(hN(e))}var qu=mN,gN=$l,pN=1/0;function vN(e){if(typeof e=="string"||gN(e))return e;var t=e+"";return t=="0"&&1/e==-pN?"-0":t}var Ll=vN,yN=qu,bN=Ll;function _N(e,t){t=yN(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[bN(t[n++])];return n&&n==r?e:void 0}var Gu=_N,xN=Uu;function SN(){this.__data__=new xN,this.size=0}var wN=SN;function ON(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var CN=ON;function AN(e){return this.__data__.get(e)}var TN=AN;function kN(e){return this.__data__.has(e)}var EN=kN,PN=Uu,jN=Qh,MN=Sm,DN=200;function IN(e,t){var n=this.__data__;if(n instanceof PN){var r=n.__data__;if(!jN||r.length<DN-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new MN(r)}return n.set(e,t),this.size=n.size,this}var $N=IN,LN=Uu,FN=wN,NN=CN,BN=TN,RN=EN,WN=$N;function go(e){var t=this.__data__=new LN(e);this.size=t.size}go.prototype.clear=FN,go.prototype.delete=NN,go.prototype.get=BN,go.prototype.has=RN,go.prototype.set=WN;var Om=go,zN="__lodash_hash_undefined__";function VN(e){return this.__data__.set(e,zN),this}var UN=VN;function HN(e){return this.__data__.has(e)}var qN=HN,GN=Sm,YN=UN,KN=qN;function Yu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new GN;++t<n;)this.add(e[t])}Yu.prototype.add=Yu.prototype.push=YN,Yu.prototype.has=KN;var Cm=Yu;function ZN(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var N1=ZN;function XN(e,t){return e.has(t)}var Am=XN,JN=Cm,QN=N1,e9=Am,t9=1,n9=2;function r9(e,t,n,r,i,a){var o=n&t9,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&n9?new JN:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],p=t[f];if(r)var y=o?r(p,g,f,t,e,a):r(g,p,f,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!QN(t,function(_,b){if(!e9(h,b)&&(g===_||i(g,_,n,r,a)))return h.push(b)})){d=!1;break}}else if(!(g===p||i(g,p,n,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var B1=r9,i9=rr,a9=i9.Uint8Array,R1=a9;function o9(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var W1=o9;function l9(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Tm=l9,z1=oo,V1=R1,s9=ia,u9=B1,c9=W1,f9=Tm,d9=1,h9=2,m9="[object Boolean]",g9="[object Date]",p9="[object Error]",v9="[object Map]",y9="[object Number]",b9="[object RegExp]",_9="[object Set]",x9="[object String]",S9="[object Symbol]",w9="[object ArrayBuffer]",O9="[object DataView]",U1=z1?z1.prototype:void 0,km=U1?U1.valueOf:void 0;function C9(e,t,n,r,i,a,o){switch(n){case O9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w9:return!(e.byteLength!=t.byteLength||!a(new V1(e),new V1(t)));case m9:case g9:case y9:return s9(+e,+t);case p9:return e.name==t.name&&e.message==t.message;case b9:case x9:return e==t+"";case v9:var l=c9;case _9:var s=r&d9;if(l||(l=f9),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=h9,o.set(e,t);var c=u9(l(e),l(t),r,i,a,o);return o.delete(e),c;case S9:if(km)return km.call(e)==km.call(t)}return!1}var A9=C9;function T9(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Em=T9,k9=Em,E9=Ft;function P9(e,t,n){var r=t(e);return E9(e)?r:k9(r,n(e))}var H1=P9;function j9(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var M9=j9;function D9(){return[]}var q1=D9,I9=M9,$9=q1,L9=Object.prototype,F9=L9.propertyIsEnumerable,G1=Object.getOwnPropertySymbols,N9=G1?function(e){return e==null?[]:(e=Object(e),I9(G1(e),function(t){return F9.call(e,t)}))}:$9,Y1=N9,B9=H1,R9=Y1,W9=Ci;function z9(e){return B9(e,W9,R9)}var V9=z9,K1=V9,U9=1,H9=Object.prototype,q9=H9.hasOwnProperty;function G9(e,t,n,r,i,a){var o=n&U9,l=K1(e),s=l.length,u=K1(t),c=u.length;if(s!=c&&!o)return!1;for(var f=s;f--;){var d=l[f];if(!(o?d in t:q9.call(t,d)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var y=o;++f<s;){d=l[f];var _=e[d],b=t[d];if(r)var S=o?r(b,_,d,t,e,a):r(_,b,d,e,t,a);if(!(S===void 0?_===b||i(_,b,n,r,a):S)){p=!1;break}y||(y=d=="constructor")}if(p&&!y){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}var Y9=G9,Pm=Om,K9=B1,Z9=A9,X9=Y9,Z1=am,X1=Ft,J1=$u,J9=Fu,Q9=1,Q1="[object Arguments]",e5="[object Array]",Ku="[object Object]",eB=Object.prototype,t5=eB.hasOwnProperty;function tB(e,t,n,r,i,a){var o=X1(e),l=X1(t),s=o?e5:Z1(e),u=l?e5:Z1(t);s=s==Q1?Ku:s,u=u==Q1?Ku:u;var c=s==Ku,f=u==Ku,d=s==u;if(d&&J1(e)){if(!J1(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new Pm),o||J9(e)?K9(e,t,n,r,i,a):Z9(e,t,s,n,r,i,a);if(!(n&Q9)){var h=c&&t5.call(e,"__wrapped__"),g=f&&t5.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,y=g?t.value():t;return a||(a=new Pm),i(p,y,n,r,a)}}return d?(a||(a=new Pm),X9(e,t,n,r,i,a)):!1}var nB=tB,rB=nB,n5=ir;function r5(e,t,n,r,i){return e===t?!0:e==null||t==null||!n5(e)&&!n5(t)?e!==e&&t!==t:rB(e,t,n,r,r5,i)}var jm=r5,iB=Om,aB=jm,oB=1,lB=2;function sB(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var s=l[0],u=e[s],c=l[1];if(o&&l[2]){if(u===void 0&&!(s in e))return!1}else{var f=new iB;if(r)var d=r(u,c,s,e,t,f);if(!(d===void 0?aB(c,u,oB|lB,r,f):d))return!1}}return!0}var uB=sB,cB=xn;function fB(e){return e===e&&!cB(e)}var i5=fB,dB=i5,hB=Ci;function mB(e){for(var t=hB(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,dB(i)]}return t}var gB=mB;function pB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var a5=pB,vB=uB,yB=gB,bB=a5;function _B(e){var t=yB(e);return t.length==1&&t[0][2]?bB(t[0][0],t[0][1]):function(n){return n===e||vB(n,e,t)}}var xB=_B,SB=Gu;function wB(e,t,n){var r=e==null?void 0:SB(e,t);return r===void 0?n:r}var OB=wB;function CB(e,t){return e!=null&&t in Object(e)}var AB=CB,TB=qu,kB=El,EB=Ft,PB=Nu,jB=om,MB=Ll;function DB(e,t,n){t=TB(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=MB(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&jB(i)&&PB(o,i)&&(EB(e)||kB(e)))}var IB=DB,$B=AB,LB=IB;function FB(e,t){return e!=null&&LB(e,t,$B)}var o5=FB,NB=jm,BB=OB,RB=o5,WB=xm,zB=i5,VB=a5,UB=Ll,HB=1,qB=2;function GB(e,t){return WB(e)&&zB(t)?VB(UB(e),t):function(n){var r=BB(n,e);return r===void 0&&r===t?RB(n,e):NB(t,r,HB|qB)}}var YB=GB;function KB(e){return function(t){return t==null?void 0:t[e]}}var ZB=KB,XB=Gu;function JB(e){return function(t){return XB(t,e)}}var QB=JB,eR=ZB,tR=QB,nR=xm,rR=Ll;function iR(e){return nR(e)?eR(rR(e)):tR(e)}var l5=iR;const s5=Ae(l5);var aR=xB,oR=YB,lR=Oi,sR=Ft,uR=l5;function cR(e){return typeof e=="function"?e:e==null?lR:typeof e=="object"?sR(e)?oR(e[0],e[1]):aR(e):uR(e)}var Hr=cR;function fR(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++i];if(n(a[s],s,a)===!1)break}return t}}var dR=fR,hR=dR,mR=hR(),u5=mR,gR=u5,pR=Ci;function vR(e,t){return e&&gR(e,t,pR)}var Zu=vR,yR=_r;function bR(e,t){return function(n,r){if(n==null)return n;if(!yR(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var _R=bR,xR=Zu,SR=_R,wR=SR(xR),Mm=wR,OR=Mm,CR=_r;function AR(e,t){var n=-1,r=CR(e)?Array(e.length):[];return OR(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var TR=AR;function kR(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var ER=kR,c5=$l;function PR(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=c5(e),o=t!==void 0,l=t===null,s=t===t,u=c5(t);if(!l&&!u&&!a&&e>t||a&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!o&&i||!s)return-1}return 0}var jR=PR,MR=jR;function DR(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,l=n.length;++r<o;){var s=MR(i[r],a[r]);if(s){if(r>=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var IR=DR,Dm=co,$R=Gu,LR=Hr,FR=TR,NR=ER,BR=Pl,RR=IR,WR=Oi,zR=Ft;function VR(e,t,n){t.length?t=Dm(t,function(a){return zR(a)?function(o){return $R(o,a.length===1?a[0]:a)}:a}):t=[WR];var r=-1;t=Dm(t,BR(LR));var i=FR(e,function(a,o,l){var s=Dm(t,function(u){return u(a)});return{criteria:s,index:++r,value:a}});return NR(i,function(a,o){return RR(a,o,n)})}var UR=VR,HR=UR,f5=Ft;function qR(e,t,n,r){return e==null?[]:(f5(t)||(t=t==null?[]:[t]),n=r?void 0:n,f5(n)||(n=n==null?[]:[n]),HR(e,t,n))}var GR=qR;const po=Ae(GR);var YR=Dx,KR=YR(Object.getPrototypeOf,Object),Im=KR,ZR=Ur,XR=Im,JR=ir,QR="[object Object]",eW=Function.prototype,tW=Object.prototype,d5=eW.toString,nW=tW.hasOwnProperty,rW=d5.call(Object);function iW(e){if(!JR(e)||ZR(e)!=QR)return!1;var t=XR(e);if(t===null)return!0;var n=nW.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&d5.call(n)==rW}var h5=iW;const Qe=Ae(h5);function $m(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function m5(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Fl(){}var Nl=.7,Xu=1/Nl,vo="\\s*([+-]?\\d+)\\s*",Bl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",aW=/^#([0-9a-f]{3,8})$/,oW=new RegExp(`^rgb\\(${vo},${vo},${vo}\\)$`),lW=new RegExp(`^rgb\\(${xr},${xr},${xr}\\)$`),sW=new RegExp(`^rgba\\(${vo},${vo},${vo},${Bl}\\)$`),uW=new RegExp(`^rgba\\(${xr},${xr},${xr},${Bl}\\)$`),cW=new RegExp(`^hsl\\(${Bl},${xr},${xr}\\)$`),fW=new RegExp(`^hsla\\(${Bl},${xr},${xr},${Bl}\\)$`),g5={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};$m(Fl,Rl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:p5,formatHex:p5,formatHex8:dW,formatHsl:hW,formatRgb:v5,toString:v5});function p5(){return this.rgb().formatHex()}function dW(){return this.rgb().formatHex8()}function hW(){return S5(this).formatHsl()}function v5(){return this.rgb().formatRgb()}function Rl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=aW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?y5(t):n===3?new cn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ju(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ju(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=oW.exec(e))?new cn(t[1],t[2],t[3],1):(t=lW.exec(e))?new cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=sW.exec(e))?Ju(t[1],t[2],t[3],t[4]):(t=uW.exec(e))?Ju(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=cW.exec(e))?x5(t[1],t[2]/100,t[3]/100,1):(t=fW.exec(e))?x5(t[1],t[2]/100,t[3]/100,t[4]):g5.hasOwnProperty(e)?y5(g5[e]):e==="transparent"?new cn(NaN,NaN,NaN,0):null}function y5(e){return new cn(e>>16&255,e>>8&255,e&255,1)}function Ju(e,t,n,r){return r<=0&&(e=t=n=NaN),new cn(e,t,n,r)}function mW(e){return e instanceof Fl||(e=Rl(e)),e?(e=e.rgb(),new cn(e.r,e.g,e.b,e.opacity)):new cn}function Lm(e,t,n,r){return arguments.length===1?mW(e):new cn(e,t,n,r??1)}function cn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}$m(cn,Lm,m5(Fl,{brighter(e){return e=e==null?Xu:Math.pow(Xu,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Nl:Math.pow(Nl,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cn(oa(this.r),oa(this.g),oa(this.b),Qu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:b5,formatHex:b5,formatHex8:gW,formatRgb:_5,toString:_5}));function b5(){return`#${la(this.r)}${la(this.g)}${la(this.b)}`}function gW(){return`#${la(this.r)}${la(this.g)}${la(this.b)}${la((isNaN(this.opacity)?1:this.opacity)*255)}`}function _5(){const e=Qu(this.opacity);return`${e===1?"rgb(":"rgba("}${oa(this.r)}, ${oa(this.g)}, ${oa(this.b)}${e===1?")":`, ${e})`}`}function Qu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function la(e){return e=oa(e),(e<16?"0":"")+e.toString(16)}function x5(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ar(e,t,n,r)}function S5(e){if(e instanceof ar)return new ar(e.h,e.s,e.l,e.opacity);if(e instanceof Fl||(e=Rl(e)),!e)return new ar;if(e instanceof ar)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-t)/l+2:o=(t-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new ar(o,l,s,e.opacity)}function pW(e,t,n,r){return arguments.length===1?S5(e):new ar(e,t,n,r??1)}function ar(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$m(ar,pW,m5(Fl,{brighter(e){return e=e==null?Xu:Math.pow(Xu,e),new ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Nl:Math.pow(Nl,e),new ar(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,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 cn(Fm(e>=240?e-240:e+120,i,r),Fm(e,i,r),Fm(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ar(w5(this.h),ec(this.s),ec(this.l),Qu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Qu(this.opacity);return`${e===1?"hsl(":"hsla("}${w5(this.h)}, ${ec(this.s)*100}%, ${ec(this.l)*100}%${e===1?")":`, ${e})`}`}}));function w5(e){return e=(e||0)%360,e<0?e+360:e}function ec(e){return Math.max(0,Math.min(1,e||0))}function Fm(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Nm=e=>()=>e;function vW(e,t){return function(n){return e+n*t}}function yW(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)}}function bW(e){return(e=+e)==1?O5:function(t,n){return n-t?yW(t,n,e):Nm(isNaN(t)?n:t)}}function O5(e,t){var n=t-e;return n?vW(e,n):Nm(isNaN(e)?t:e)}const C5=function e(t){var n=bW(t);function r(i,a){var o=n((i=Lm(i)).r,(a=Lm(a)).r),l=n(i.g,a.g),s=n(i.b,a.b),u=O5(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=l(c),i.b=s(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function _W(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function xW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function SW(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Sr(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function wW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function tc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function OW(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Sr(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var Bm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rm=new RegExp(Bm.source,"g");function CW(e){return function(){return e}}function AW(e){return function(t){return e(t)+""}}function TW(e,t){var n=Bm.lastIndex=Rm.lastIndex=0,r,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=Bm.exec(e))&&(i=Rm.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:tc(r,i)})),n=Rm.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?AW(s[0].x):CW(t):(t=s.length,function(u){for(var c=0,f;c<t;++c)l[(f=s[c]).i]=f.x(u);return l.join("")})}function Sr(e,t){var n=typeof t,r;return t==null||n==="boolean"?Nm(t):(n==="number"?tc:n==="string"?(r=Rl(t))?(t=r,C5):TW:t instanceof Rl?C5:t instanceof Date?wW:xW(t)?_W:Array.isArray(t)?SW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?OW:tc)(e,t)}function Wm(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function kW(e,t){t===void 0&&(t=e,e=Sr);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[l](o-l)}}var nc=function(e){if(e!==null)switch(typeof e){case"undefined":return!1;case"number":return!isNaN(e)&&e!==Number.POSITIVE_INFINITY&&e!==Number.NEGATIVE_INFINITY;case"string":return!0;case"boolean":return!1;case"object":return e instanceof Date||Array.isArray(e)||Qe(e);case"function":return!0}return!1},A5=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return function(r){return r<n?e:t}},T5=function(e,t){return function(n){return n>=1?t:function(){var r=typeof e=="function"?e.apply(this,arguments):e,i=typeof t=="function"?t.apply(this,arguments):t;return Sr(r,i)(n)}}},k5=function(e,t){var n=function(l,s){return l===s||!nc(l)||!nc(s)?A5(l,s):typeof l=="function"||typeof s=="function"?T5(l,s):typeof l=="object"&&Qe(l)||typeof s=="object"&&Qe(s)?k5(l,s):Sr(l,s)},r=function(l){return Array.isArray(l)?po(l,"key"):l},i={},a={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?i[o]=n(r(e[o]),r(t[o])):a[o]=t[o];return function(l){for(o in i)a[o]=i[o](l);return a}},EW=function(e,t){var n=function(r){return typeof r=="string"?r.replace(/,/g,""):r};return Sr(n(e),n(t))},PW=function(e,t){return e===t||!nc(e)||!nc(t)?A5(e,t):typeof e=="function"||typeof t=="function"?T5(e,t):Qe(e)||Qe(t)?k5(e,t):typeof e=="string"||typeof t=="string"?EW(e,t):Sr(e,t)},yo=0,Wl=0,zl=0,E5=1e3,rc,Vl,ic=0,sa=0,ac=0,Ul=typeof performance=="object"&&performance.now?performance:Date,P5=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oc(){return sa||(P5(jW),sa=Ul.now()+ac)}function jW(){sa=0}function zm(){this._call=this._time=this._next=null}zm.prototype=j5.prototype={constructor:zm,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?oc():+n)+(t==null?0:+t),!this._next&&Vl!==this&&(Vl?Vl._next=this:rc=this,Vl=this),this._call=e,this._time=n,Vm()},stop:function(){this._call&&(this._call=null,this._time=1/0,Vm())}};function j5(e,t,n){var r=new zm;return r.restart(e,t,n),r}function MW(){oc(),++yo;for(var e=rc,t;e;)(t=sa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--yo}function M5(){sa=(ic=Ul.now())+ac,yo=Wl=0;try{MW()}finally{yo=0,IW(),sa=0}}function DW(){var e=Ul.now(),t=e-ic;t>E5&&(ac-=t,ic=e)}function IW(){for(var e,t=rc,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:rc=n);Vl=e,Vm(r)}function Vm(e){if(!yo){Wl&&(Wl=clearTimeout(Wl));var t=e-sa;t>24?(e<1/0&&(Wl=setTimeout(M5,e-Ul.now()-ac)),zl&&(zl=clearInterval(zl))):(zl||(ic=Ul.now(),zl=setInterval(DW,E5)),yo=1,P5(M5))}}function $W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function LW(e,t,n){return t&&D5(e.prototype,t),n&&D5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var I5=function(){function e(){var t=this;$W(this,e),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){t.subscribers.forEach(function(n){n.callback(oc()-n.startTime,n.duration)})},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}return LW(e,[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=j5(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(n,r){r=this.shouldAnimate?r:0;var i=this.subscribers.push({startTime:oc(),callback:n,duration:r});return this.activeSubscriptions++,this.start(),i}},{key:"unsubscribe",value:function(n){n!==null&&this.subscribers[n-1]&&(delete this.subscribers[n-1],this.activeSubscriptions--),this.activeSubscriptions===0&&this.stop()}}]),e}(),$5=x.createContext({transitionTimer:new I5,animationTimer:new I5});$5.displayName="TimerContext";const lc=$5;var FW=typeof Element<"u",NW=typeof Map=="function",BW=typeof Set=="function",RW=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function sc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!sc(e[r],t[r]))return!1;return!0}var a;if(NW&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!sc(r.value[1],t.get(r.value[0])))return!1;return!0}if(BW&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(RW&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(FW&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!sc(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var WW=function(t,n){try{return sc(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const fn=Ae(WW);function zW(e){return qW(e)||HW(e)||UW(e)||VW()}function VW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
132
+ */var um,f1;function $L(){if(f1)return um;f1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var s=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(s.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return um=i()?Object.assign:function(a,o){for(var l,s=r(a),u,c=1;c<arguments.length;c++){l=Object(arguments[c]);for(var f in l)t.call(l,f)&&(s[f]=l[f]);if(e){u=e(l);for(var d=0;d<u.length;d++)n.call(l,u[d])&&(s[u[d]]=l[u[d]])}}return s},um}var cm,d1;function fm(){if(d1)return cm;d1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cm=e,cm}var dm,h1;function m1(){return h1||(h1=1,dm=Function.call.bind(Object.prototype.hasOwnProperty)),dm}var hm,g1;function LL(){if(g1)return hm;g1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=fm(),n={},r=m1();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,l,s,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(r(a,c)){var f;try{if(typeof a[c]!="function"){var d=Error((s||"React class")+": "+l+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[c](o,c,s,l,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((s||"React class")+": type specification of "+l+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";e("Failed "+l+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},hm=i,hm}var mm,p1;function FL(){if(p1)return mm;p1=1;var e=Ba,t=$L(),n=fm(),r=m1(),i=LL(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var s="Warning: "+l;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function o(){return null}return mm=function(l,s){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(z){var X=z&&(u&&z[u]||z[c]);if(typeof X=="function")return X}var d="<<anonymous>>",h={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:b(),arrayOf:S,element:O(),elementType:w(),instanceOf:A,node:N(),objectOf:k,oneOf:T,oneOfType:j,shape:E,exact:D};function g(z,X){return z===X?z!==0||1/z===1/X:z!==z&&X!==X}function p(z,X){this.message=z,this.data=X&&typeof X=="object"?X:{},this.stack=""}p.prototype=Error.prototype;function y(z){if(process.env.NODE_ENV!=="production")var X={},H=0;function Y(ie,B,se,K,Q,te,ue){if(K=K||d,te=te||se,ue!==n){if(s){var $=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xe=K+":"+se;!X[xe]&&H<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),X[xe]=!0,H++)}}return B[se]==null?ie?B[se]===null?new p("The "+Q+" `"+te+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new p("The "+Q+" `"+te+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:z(B,se,K,Q,te)}var G=Y.bind(null,!1);return G.isRequired=Y.bind(null,!0),G}function _(z){function X(H,Y,G,ie,B,se){var K=H[Y],Q=Z(K);if(Q!==z){var te=ne(K);return new p("Invalid "+ie+" `"+B+"` of type "+("`"+te+"` supplied to `"+G+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return y(X)}function b(){return y(o)}function S(z){function X(H,Y,G,ie,B){if(typeof z!="function")return new p("Property `"+B+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var se=H[Y];if(!Array.isArray(se)){var K=Z(se);return new p("Invalid "+ie+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an array."))}for(var Q=0;Q<se.length;Q++){var te=z(se,Q,G,ie,B+"["+Q+"]",n);if(te instanceof Error)return te}return null}return y(X)}function O(){function z(X,H,Y,G,ie){var B=X[H];if(!l(B)){var se=Z(B);return new p("Invalid "+G+" `"+ie+"` of type "+("`"+se+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return y(z)}function w(){function z(X,H,Y,G,ie){var B=X[H];if(!e.isValidElementType(B)){var se=Z(B);return new p("Invalid "+G+" `"+ie+"` of type "+("`"+se+"` supplied to `"+Y+"`, expected a single ReactElement type."))}return null}return y(z)}function A(z){function X(H,Y,G,ie,B){if(!(H[Y]instanceof z)){var se=z.name||d,K=J(H[Y]);return new p("Invalid "+ie+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected ")+("instance of `"+se+"`."))}return null}return y(X)}function T(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function X(H,Y,G,ie,B){for(var se=H[Y],K=0;K<z.length;K++)if(g(se,z[K]))return null;var Q=JSON.stringify(z,function(ue,$){var xe=ne($);return xe==="symbol"?String($):$});return new p("Invalid "+ie+" `"+B+"` of value `"+String(se)+"` "+("supplied to `"+G+"`, expected one of "+Q+"."))}return y(X)}function k(z){function X(H,Y,G,ie,B){if(typeof z!="function")return new p("Property `"+B+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var se=H[Y],K=Z(se);if(K!=="object")return new p("Invalid "+ie+" `"+B+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an object."));for(var Q in se)if(r(se,Q)){var te=z(se,Q,G,ie,B+"."+Q,n);if(te instanceof Error)return te}return null}return y(X)}function j(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var X=0;X<z.length;X++){var H=z[X];if(typeof H!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(H)+" at index "+X+"."),o}function Y(G,ie,B,se,K){for(var Q=[],te=0;te<z.length;te++){var ue=z[te],$=ue(G,ie,B,se,K,n);if($==null)return null;$.data&&r($.data,"expectedType")&&Q.push($.data.expectedType)}var xe=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new p("Invalid "+se+" `"+K+"` supplied to "+("`"+B+"`"+xe+"."))}return y(Y)}function N(){function z(X,H,Y,G,ie){return I(X[H])?null:new p("Invalid "+G+" `"+ie+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return y(z)}function M(z,X,H,Y,G){return new p((z||"React class")+": "+X+" type `"+H+"."+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function E(z){function X(H,Y,G,ie,B){var se=H[Y],K=Z(se);if(K!=="object")return new p("Invalid "+ie+" `"+B+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));for(var Q in z){var te=z[Q];if(typeof te!="function")return M(G,ie,B,Q,ne(te));var ue=te(se,Q,G,ie,B+"."+Q,n);if(ue)return ue}return null}return y(X)}function D(z){function X(H,Y,G,ie,B){var se=H[Y],K=Z(se);if(K!=="object")return new p("Invalid "+ie+" `"+B+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));var Q=t({},H[Y],z);for(var te in Q){var ue=z[te];if(r(z,te)&&typeof ue!="function")return M(G,ie,B,te,ne(ue));if(!ue)return new p("Invalid "+ie+" `"+B+"` key `"+te+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(H[Y],null," ")+`
133
+ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var $=ue(se,te,G,ie,B+"."+te,n);if($)return $}return null}return y(X)}function I(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(I);if(z===null||l(z))return!0;var X=f(z);if(X){var H=X.call(z),Y;if(X!==z.entries){for(;!(Y=H.next()).done;)if(!I(Y.value))return!1}else for(;!(Y=H.next()).done;){var G=Y.value;if(G&&!I(G[1]))return!1}}else return!1;return!0;default:return!1}}function W(z,X){return z==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function Z(z){var X=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":W(X,z)?"symbol":X}function ne(z){if(typeof z>"u"||z===null)return""+z;var X=Z(z);if(X==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return X}function re(z){var X=ne(z);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function J(z){return!z.constructor||!z.constructor.name?d:z.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},mm}var gm,v1;function NL(){if(v1)return gm;v1=1;var e=fm();function t(){}function n(){}return n.resetWarningCache=t,gm=function(){function r(o,l,s,u,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},gm}if(process.env.NODE_ENV!=="production"){var BL=Ba,RL=!0;sm.exports=FL()(BL.isElement,RL)}else sm.exports=NL()();var WL=sm.exports;const m=Ae(WL),zL=e=>+e;function VL(e){return e*e}function UL(e){return e*(2-e)}function y1(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function HL(e){return e*e*e}function qL(e){return--e*e*e+1}function b1(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var pm=3,GL=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(pm),YL=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(pm),_1=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(pm),x1=Math.PI,S1=x1/2;function KL(e){return+e==1?1:1-Math.cos(e*S1)}function ZL(e){return Math.sin(e*S1)}function w1(e){return(1-Math.cos(x1*e))/2}function Ai(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function XL(e){return Ai(1-+e)}function JL(e){return 1-Ai(e)}function O1(e){return((e*=2)<=1?Ai(1-e):2-Ai(e-1))/2}function QL(e){return 1-Math.sqrt(1-e*e)}function e8(e){return Math.sqrt(1- --e*e)}function C1(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var vm=4/11,t8=6/11,n8=8/11,r8=3/4,i8=9/11,a8=10/11,o8=15/16,l8=21/22,s8=63/64,Wu=1/vm/vm;function u8(e){return 1-Il(1-e)}function Il(e){return(e=+e)<vm?Wu*e*e:e<n8?Wu*(e-=t8)*e+r8:e<a8?Wu*(e-=i8)*e+o8:Wu*(e-=l8)*e+s8}function c8(e){return((e*=2)<=1?1-Il(1-e):Il(e-1)+1)/2}var ym=1.70158,f8=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(ym),d8=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(ym),A1=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(ym),uo=2*Math.PI,bm=1,_m=.3,h8=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=uo);function i(a){return t*Ai(- --a)*Math.sin((r-a)/n)}return i.amplitude=function(a){return e(a,n*uo)},i.period=function(a){return e(t,a)},i}(bm,_m),T1=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=uo);function i(a){return 1-t*Ai(a=+a)*Math.sin((a+r)/n)}return i.amplitude=function(a){return e(a,n*uo)},i.period=function(a){return e(t,a)},i}(bm,_m),m8=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=uo);function i(a){return((a=a*2-1)<0?t*Ai(-a)*Math.sin((r-a)/n):2-t*Ai(a)*Math.sin((r+a)/n))/2}return i.amplitude=function(a){return e(a,n*uo)},i.period=function(a){return e(t,a)},i}(bm,_m);const g8=Object.freeze(Object.defineProperty({__proto__:null,easeBack:A1,easeBackIn:f8,easeBackInOut:A1,easeBackOut:d8,easeBounce:Il,easeBounceIn:u8,easeBounceInOut:c8,easeBounceOut:Il,easeCircle:C1,easeCircleIn:QL,easeCircleInOut:C1,easeCircleOut:e8,easeCubic:b1,easeCubicIn:HL,easeCubicInOut:b1,easeCubicOut:qL,easeElastic:T1,easeElasticIn:h8,easeElasticInOut:m8,easeElasticOut:T1,easeExp:O1,easeExpIn:XL,easeExpInOut:O1,easeExpOut:JL,easeLinear:zL,easePoly:_1,easePolyIn:GL,easePolyInOut:_1,easePolyOut:YL,easeQuad:y1,easeQuadIn:VL,easeQuadInOut:y1,easeQuadOut:UL,easeSin:w1,easeSinIn:KL,easeSinInOut:w1,easeSinOut:ZL},Symbol.toStringTag,{value:"Module"}));function p8(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var co=p8,v8=Ur,y8=ir,b8="[object Symbol]";function _8(e){return typeof e=="symbol"||y8(e)&&v8(e)==b8}var $l=_8,x8=Ft,S8=$l,w8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O8=/^\w*$/;function C8(e,t){if(x8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||S8(e)?!0:O8.test(e)||!w8.test(e)||t!=null&&e in Object(t)}var xm=C8,A8=na,T8=A8(Object,"create"),zu=T8,k1=zu;function k8(){this.__data__=k1?k1(null):{},this.size=0}var E8=k8;function P8(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var j8=P8,M8=zu,D8="__lodash_hash_undefined__",I8=Object.prototype,$8=I8.hasOwnProperty;function L8(e){var t=this.__data__;if(M8){var n=t[e];return n===D8?void 0:n}return $8.call(t,e)?t[e]:void 0}var F8=L8,N8=zu,B8=Object.prototype,R8=B8.hasOwnProperty;function W8(e){var t=this.__data__;return N8?t[e]!==void 0:R8.call(t,e)}var z8=W8,V8=zu,U8="__lodash_hash_undefined__";function H8(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=V8&&t===void 0?U8:t,this}var q8=H8,G8=E8,Y8=j8,K8=F8,Z8=z8,X8=q8;function fo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fo.prototype.clear=G8,fo.prototype.delete=Y8,fo.prototype.get=K8,fo.prototype.has=Z8,fo.prototype.set=X8;var J8=fo;function Q8(){this.__data__=[],this.size=0}var eF=Q8,tF=ia;function nF(e,t){for(var n=e.length;n--;)if(tF(e[n][0],t))return n;return-1}var Vu=nF,rF=Vu,iF=Array.prototype,aF=iF.splice;function oF(e){var t=this.__data__,n=rF(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():aF.call(t,n,1),--this.size,!0}var lF=oF,sF=Vu;function uF(e){var t=this.__data__,n=sF(t,e);return n<0?void 0:t[n][1]}var cF=uF,fF=Vu;function dF(e){return fF(this.__data__,e)>-1}var hF=dF,mF=Vu;function gF(e,t){var n=this.__data__,r=mF(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var pF=gF,vF=eF,yF=lF,bF=cF,_F=hF,xF=pF;function ho(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ho.prototype.clear=vF,ho.prototype.delete=yF,ho.prototype.get=bF,ho.prototype.has=_F,ho.prototype.set=xF;var Uu=ho,E1=J8,SF=Uu,wF=Qh;function OF(){this.size=0,this.__data__={hash:new E1,map:new(wF||SF),string:new E1}}var CF=OF;function AF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var TF=AF,kF=TF;function EF(e,t){var n=e.__data__;return kF(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Hu=EF,PF=Hu;function jF(e){var t=PF(this,e).delete(e);return this.size-=t?1:0,t}var MF=jF,DF=Hu;function IF(e){return DF(this,e).get(e)}var $F=IF,LF=Hu;function FF(e){return LF(this,e).has(e)}var NF=FF,BF=Hu;function RF(e,t){var n=BF(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var WF=RF,zF=CF,VF=MF,UF=$F,HF=NF,qF=WF;function mo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mo.prototype.clear=zF,mo.prototype.delete=VF,mo.prototype.get=UF,mo.prototype.has=HF,mo.prototype.set=qF;var Sm=mo,P1=Sm,GF="Expected a function";function wm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(GF);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(wm.Cache||P1),n}wm.Cache=P1;var j1=wm;const M1=Ae(j1);var YF=j1,KF=500;function ZF(e){var t=YF(e,function(r){return n.size===KF&&n.clear(),r}),n=t.cache;return t}var XF=ZF,JF=XF,QF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eN=/\\(\\)?/g,tN=JF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(QF,function(n,r,i,a){t.push(i?a.replace(eN,"$1"):r||n)}),t}),nN=tN,D1=oo,rN=co,iN=Ft,aN=$l,oN=1/0,I1=D1?D1.prototype:void 0,$1=I1?I1.toString:void 0;function L1(e){if(typeof e=="string")return e;if(iN(e))return rN(e,L1)+"";if(aN(e))return $1?$1.call(e):"";var t=e+"";return t=="0"&&1/e==-oN?"-0":t}var lN=L1,sN=lN;function uN(e){return e==null?"":sN(e)}var F1=uN,cN=Ft,fN=xm,dN=nN,hN=F1;function mN(e,t){return cN(e)?e:fN(e,t)?[e]:dN(hN(e))}var qu=mN,gN=$l,pN=1/0;function vN(e){if(typeof e=="string"||gN(e))return e;var t=e+"";return t=="0"&&1/e==-pN?"-0":t}var Ll=vN,yN=qu,bN=Ll;function _N(e,t){t=yN(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[bN(t[n++])];return n&&n==r?e:void 0}var Gu=_N,xN=Uu;function SN(){this.__data__=new xN,this.size=0}var wN=SN;function ON(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var CN=ON;function AN(e){return this.__data__.get(e)}var TN=AN;function kN(e){return this.__data__.has(e)}var EN=kN,PN=Uu,jN=Qh,MN=Sm,DN=200;function IN(e,t){var n=this.__data__;if(n instanceof PN){var r=n.__data__;if(!jN||r.length<DN-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new MN(r)}return n.set(e,t),this.size=n.size,this}var $N=IN,LN=Uu,FN=wN,NN=CN,BN=TN,RN=EN,WN=$N;function go(e){var t=this.__data__=new LN(e);this.size=t.size}go.prototype.clear=FN,go.prototype.delete=NN,go.prototype.get=BN,go.prototype.has=RN,go.prototype.set=WN;var Om=go,zN="__lodash_hash_undefined__";function VN(e){return this.__data__.set(e,zN),this}var UN=VN;function HN(e){return this.__data__.has(e)}var qN=HN,GN=Sm,YN=UN,KN=qN;function Yu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new GN;++t<n;)this.add(e[t])}Yu.prototype.add=Yu.prototype.push=YN,Yu.prototype.has=KN;var Cm=Yu;function ZN(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var N1=ZN;function XN(e,t){return e.has(t)}var Am=XN,JN=Cm,QN=N1,e9=Am,t9=1,n9=2;function r9(e,t,n,r,i,a){var o=n&t9,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&n9?new JN:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],p=t[f];if(r)var y=o?r(p,g,f,t,e,a):r(g,p,f,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!QN(t,function(_,b){if(!e9(h,b)&&(g===_||i(g,_,n,r,a)))return h.push(b)})){d=!1;break}}else if(!(g===p||i(g,p,n,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var B1=r9,i9=rr,a9=i9.Uint8Array,R1=a9;function o9(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var W1=o9;function l9(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Tm=l9,z1=oo,V1=R1,s9=ia,u9=B1,c9=W1,f9=Tm,d9=1,h9=2,m9="[object Boolean]",g9="[object Date]",p9="[object Error]",v9="[object Map]",y9="[object Number]",b9="[object RegExp]",_9="[object Set]",x9="[object String]",S9="[object Symbol]",w9="[object ArrayBuffer]",O9="[object DataView]",U1=z1?z1.prototype:void 0,km=U1?U1.valueOf:void 0;function C9(e,t,n,r,i,a,o){switch(n){case O9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w9:return!(e.byteLength!=t.byteLength||!a(new V1(e),new V1(t)));case m9:case g9:case y9:return s9(+e,+t);case p9:return e.name==t.name&&e.message==t.message;case b9:case x9:return e==t+"";case v9:var l=c9;case _9:var s=r&d9;if(l||(l=f9),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=h9,o.set(e,t);var c=u9(l(e),l(t),r,i,a,o);return o.delete(e),c;case S9:if(km)return km.call(e)==km.call(t)}return!1}var A9=C9;function T9(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Em=T9,k9=Em,E9=Ft;function P9(e,t,n){var r=t(e);return E9(e)?r:k9(r,n(e))}var H1=P9;function j9(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var M9=j9;function D9(){return[]}var q1=D9,I9=M9,$9=q1,L9=Object.prototype,F9=L9.propertyIsEnumerable,G1=Object.getOwnPropertySymbols,N9=G1?function(e){return e==null?[]:(e=Object(e),I9(G1(e),function(t){return F9.call(e,t)}))}:$9,Y1=N9,B9=H1,R9=Y1,W9=Ci;function z9(e){return B9(e,W9,R9)}var V9=z9,K1=V9,U9=1,H9=Object.prototype,q9=H9.hasOwnProperty;function G9(e,t,n,r,i,a){var o=n&U9,l=K1(e),s=l.length,u=K1(t),c=u.length;if(s!=c&&!o)return!1;for(var f=s;f--;){var d=l[f];if(!(o?d in t:q9.call(t,d)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var y=o;++f<s;){d=l[f];var _=e[d],b=t[d];if(r)var S=o?r(b,_,d,t,e,a):r(_,b,d,e,t,a);if(!(S===void 0?_===b||i(_,b,n,r,a):S)){p=!1;break}y||(y=d=="constructor")}if(p&&!y){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}var Y9=G9,Pm=Om,K9=B1,Z9=A9,X9=Y9,Z1=am,X1=Ft,J1=$u,J9=Fu,Q9=1,Q1="[object Arguments]",e5="[object Array]",Ku="[object Object]",eB=Object.prototype,t5=eB.hasOwnProperty;function tB(e,t,n,r,i,a){var o=X1(e),l=X1(t),s=o?e5:Z1(e),u=l?e5:Z1(t);s=s==Q1?Ku:s,u=u==Q1?Ku:u;var c=s==Ku,f=u==Ku,d=s==u;if(d&&J1(e)){if(!J1(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new Pm),o||J9(e)?K9(e,t,n,r,i,a):Z9(e,t,s,n,r,i,a);if(!(n&Q9)){var h=c&&t5.call(e,"__wrapped__"),g=f&&t5.call(t,"__wrapped__");if(h||g){var p=h?e.value():e,y=g?t.value():t;return a||(a=new Pm),i(p,y,n,r,a)}}return d?(a||(a=new Pm),X9(e,t,n,r,i,a)):!1}var nB=tB,rB=nB,n5=ir;function r5(e,t,n,r,i){return e===t?!0:e==null||t==null||!n5(e)&&!n5(t)?e!==e&&t!==t:rB(e,t,n,r,r5,i)}var jm=r5,iB=Om,aB=jm,oB=1,lB=2;function sB(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var s=l[0],u=e[s],c=l[1];if(o&&l[2]){if(u===void 0&&!(s in e))return!1}else{var f=new iB;if(r)var d=r(u,c,s,e,t,f);if(!(d===void 0?aB(c,u,oB|lB,r,f):d))return!1}}return!0}var uB=sB,cB=xn;function fB(e){return e===e&&!cB(e)}var i5=fB,dB=i5,hB=Ci;function mB(e){for(var t=hB(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,dB(i)]}return t}var gB=mB;function pB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var a5=pB,vB=uB,yB=gB,bB=a5;function _B(e){var t=yB(e);return t.length==1&&t[0][2]?bB(t[0][0],t[0][1]):function(n){return n===e||vB(n,e,t)}}var xB=_B,SB=Gu;function wB(e,t,n){var r=e==null?void 0:SB(e,t);return r===void 0?n:r}var OB=wB;function CB(e,t){return e!=null&&t in Object(e)}var AB=CB,TB=qu,kB=El,EB=Ft,PB=Nu,jB=om,MB=Ll;function DB(e,t,n){t=TB(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=MB(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&jB(i)&&PB(o,i)&&(EB(e)||kB(e)))}var IB=DB,$B=AB,LB=IB;function FB(e,t){return e!=null&&LB(e,t,$B)}var o5=FB,NB=jm,BB=OB,RB=o5,WB=xm,zB=i5,VB=a5,UB=Ll,HB=1,qB=2;function GB(e,t){return WB(e)&&zB(t)?VB(UB(e),t):function(n){var r=BB(n,e);return r===void 0&&r===t?RB(n,e):NB(t,r,HB|qB)}}var YB=GB;function KB(e){return function(t){return t==null?void 0:t[e]}}var ZB=KB,XB=Gu;function JB(e){return function(t){return XB(t,e)}}var QB=JB,eR=ZB,tR=QB,nR=xm,rR=Ll;function iR(e){return nR(e)?eR(rR(e)):tR(e)}var l5=iR;const s5=Ae(l5);var aR=xB,oR=YB,lR=Oi,sR=Ft,uR=l5;function cR(e){return typeof e=="function"?e:e==null?lR:typeof e=="object"?sR(e)?oR(e[0],e[1]):aR(e):uR(e)}var Hr=cR;function fR(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++i];if(n(a[s],s,a)===!1)break}return t}}var dR=fR,hR=dR,mR=hR(),u5=mR,gR=u5,pR=Ci;function vR(e,t){return e&&gR(e,t,pR)}var Zu=vR,yR=_r;function bR(e,t){return function(n,r){if(n==null)return n;if(!yR(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var _R=bR,xR=Zu,SR=_R,wR=SR(xR),Mm=wR,OR=Mm,CR=_r;function AR(e,t){var n=-1,r=CR(e)?Array(e.length):[];return OR(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var TR=AR;function kR(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var ER=kR,c5=$l;function PR(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=c5(e),o=t!==void 0,l=t===null,s=t===t,u=c5(t);if(!l&&!u&&!a&&e>t||a&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!o&&i||!s)return-1}return 0}var jR=PR,MR=jR;function DR(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,l=n.length;++r<o;){var s=MR(i[r],a[r]);if(s){if(r>=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var IR=DR,Dm=co,$R=Gu,LR=Hr,FR=TR,NR=ER,BR=Pl,RR=IR,WR=Oi,zR=Ft;function VR(e,t,n){t.length?t=Dm(t,function(a){return zR(a)?function(o){return $R(o,a.length===1?a[0]:a)}:a}):t=[WR];var r=-1;t=Dm(t,BR(LR));var i=FR(e,function(a,o,l){var s=Dm(t,function(u){return u(a)});return{criteria:s,index:++r,value:a}});return NR(i,function(a,o){return RR(a,o,n)})}var UR=VR,HR=UR,f5=Ft;function qR(e,t,n,r){return e==null?[]:(f5(t)||(t=t==null?[]:[t]),n=r?void 0:n,f5(n)||(n=n==null?[]:[n]),HR(e,t,n))}var GR=qR;const po=Ae(GR);var YR=Dx,KR=YR(Object.getPrototypeOf,Object),Im=KR,ZR=Ur,XR=Im,JR=ir,QR="[object Object]",eW=Function.prototype,tW=Object.prototype,d5=eW.toString,nW=tW.hasOwnProperty,rW=d5.call(Object);function iW(e){if(!JR(e)||ZR(e)!=QR)return!1;var t=XR(e);if(t===null)return!0;var n=nW.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&d5.call(n)==rW}var h5=iW;const Qe=Ae(h5);function $m(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function m5(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Fl(){}var Nl=.7,Xu=1/Nl,vo="\\s*([+-]?\\d+)\\s*",Bl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",aW=/^#([0-9a-f]{3,8})$/,oW=new RegExp(`^rgb\\(${vo},${vo},${vo}\\)$`),lW=new RegExp(`^rgb\\(${xr},${xr},${xr}\\)$`),sW=new RegExp(`^rgba\\(${vo},${vo},${vo},${Bl}\\)$`),uW=new RegExp(`^rgba\\(${xr},${xr},${xr},${Bl}\\)$`),cW=new RegExp(`^hsl\\(${Bl},${xr},${xr}\\)$`),fW=new RegExp(`^hsla\\(${Bl},${xr},${xr},${Bl}\\)$`),g5={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};$m(Fl,Rl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:p5,formatHex:p5,formatHex8:dW,formatHsl:hW,formatRgb:v5,toString:v5});function p5(){return this.rgb().formatHex()}function dW(){return this.rgb().formatHex8()}function hW(){return S5(this).formatHsl()}function v5(){return this.rgb().formatRgb()}function Rl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=aW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?y5(t):n===3?new cn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ju(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ju(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=oW.exec(e))?new cn(t[1],t[2],t[3],1):(t=lW.exec(e))?new cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=sW.exec(e))?Ju(t[1],t[2],t[3],t[4]):(t=uW.exec(e))?Ju(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=cW.exec(e))?x5(t[1],t[2]/100,t[3]/100,1):(t=fW.exec(e))?x5(t[1],t[2]/100,t[3]/100,t[4]):g5.hasOwnProperty(e)?y5(g5[e]):e==="transparent"?new cn(NaN,NaN,NaN,0):null}function y5(e){return new cn(e>>16&255,e>>8&255,e&255,1)}function Ju(e,t,n,r){return r<=0&&(e=t=n=NaN),new cn(e,t,n,r)}function mW(e){return e instanceof Fl||(e=Rl(e)),e?(e=e.rgb(),new cn(e.r,e.g,e.b,e.opacity)):new cn}function Lm(e,t,n,r){return arguments.length===1?mW(e):new cn(e,t,n,r??1)}function cn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}$m(cn,Lm,m5(Fl,{brighter(e){return e=e==null?Xu:Math.pow(Xu,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Nl:Math.pow(Nl,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cn(oa(this.r),oa(this.g),oa(this.b),Qu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:b5,formatHex:b5,formatHex8:gW,formatRgb:_5,toString:_5}));function b5(){return`#${la(this.r)}${la(this.g)}${la(this.b)}`}function gW(){return`#${la(this.r)}${la(this.g)}${la(this.b)}${la((isNaN(this.opacity)?1:this.opacity)*255)}`}function _5(){const e=Qu(this.opacity);return`${e===1?"rgb(":"rgba("}${oa(this.r)}, ${oa(this.g)}, ${oa(this.b)}${e===1?")":`, ${e})`}`}function Qu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function la(e){return e=oa(e),(e<16?"0":"")+e.toString(16)}function x5(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ar(e,t,n,r)}function S5(e){if(e instanceof ar)return new ar(e.h,e.s,e.l,e.opacity);if(e instanceof Fl||(e=Rl(e)),!e)return new ar;if(e instanceof ar)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-t)/l+2:o=(t-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new ar(o,l,s,e.opacity)}function pW(e,t,n,r){return arguments.length===1?S5(e):new ar(e,t,n,r??1)}function ar(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$m(ar,pW,m5(Fl,{brighter(e){return e=e==null?Xu:Math.pow(Xu,e),new ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Nl:Math.pow(Nl,e),new ar(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,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 cn(Fm(e>=240?e-240:e+120,i,r),Fm(e,i,r),Fm(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ar(w5(this.h),ec(this.s),ec(this.l),Qu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Qu(this.opacity);return`${e===1?"hsl(":"hsla("}${w5(this.h)}, ${ec(this.s)*100}%, ${ec(this.l)*100}%${e===1?")":`, ${e})`}`}}));function w5(e){return e=(e||0)%360,e<0?e+360:e}function ec(e){return Math.max(0,Math.min(1,e||0))}function Fm(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Nm=e=>()=>e;function vW(e,t){return function(n){return e+n*t}}function yW(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)}}function bW(e){return(e=+e)==1?O5:function(t,n){return n-t?yW(t,n,e):Nm(isNaN(t)?n:t)}}function O5(e,t){var n=t-e;return n?vW(e,n):Nm(isNaN(e)?t:e)}const C5=function e(t){var n=bW(t);function r(i,a){var o=n((i=Lm(i)).r,(a=Lm(a)).r),l=n(i.g,a.g),s=n(i.b,a.b),u=O5(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=l(c),i.b=s(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function _W(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function xW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function SW(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Sr(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function wW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function tc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function OW(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Sr(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var Bm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rm=new RegExp(Bm.source,"g");function CW(e){return function(){return e}}function AW(e){return function(t){return e(t)+""}}function TW(e,t){var n=Bm.lastIndex=Rm.lastIndex=0,r,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=Bm.exec(e))&&(i=Rm.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:tc(r,i)})),n=Rm.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?AW(s[0].x):CW(t):(t=s.length,function(u){for(var c=0,f;c<t;++c)l[(f=s[c]).i]=f.x(u);return l.join("")})}function Sr(e,t){var n=typeof t,r;return t==null||n==="boolean"?Nm(t):(n==="number"?tc:n==="string"?(r=Rl(t))?(t=r,C5):TW:t instanceof Rl?C5:t instanceof Date?wW:xW(t)?_W:Array.isArray(t)?SW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?OW:tc)(e,t)}function Wm(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function kW(e,t){t===void 0&&(t=e,e=Sr);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[l](o-l)}}var nc=function(e){if(e!==null)switch(typeof e){case"undefined":return!1;case"number":return!isNaN(e)&&e!==Number.POSITIVE_INFINITY&&e!==Number.NEGATIVE_INFINITY;case"string":return!0;case"boolean":return!1;case"object":return e instanceof Date||Array.isArray(e)||Qe(e);case"function":return!0}return!1},A5=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return function(r){return r<n?e:t}},T5=function(e,t){return function(n){return n>=1?t:function(){var r=typeof e=="function"?e.apply(this,arguments):e,i=typeof t=="function"?t.apply(this,arguments):t;return Sr(r,i)(n)}}},k5=function(e,t){var n=function(l,s){return l===s||!nc(l)||!nc(s)?A5(l,s):typeof l=="function"||typeof s=="function"?T5(l,s):typeof l=="object"&&Qe(l)||typeof s=="object"&&Qe(s)?k5(l,s):Sr(l,s)},r=function(l){return Array.isArray(l)?po(l,"key"):l},i={},a={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?i[o]=n(r(e[o]),r(t[o])):a[o]=t[o];return function(l){for(o in i)a[o]=i[o](l);return a}},EW=function(e,t){var n=function(r){return typeof r=="string"?r.replace(/,/g,""):r};return Sr(n(e),n(t))},PW=function(e,t){return e===t||!nc(e)||!nc(t)?A5(e,t):typeof e=="function"||typeof t=="function"?T5(e,t):Qe(e)||Qe(t)?k5(e,t):typeof e=="string"||typeof t=="string"?EW(e,t):Sr(e,t)},yo=0,Wl=0,zl=0,E5=1e3,rc,Vl,ic=0,sa=0,ac=0,Ul=typeof performance=="object"&&performance.now?performance:Date,P5=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oc(){return sa||(P5(jW),sa=Ul.now()+ac)}function jW(){sa=0}function zm(){this._call=this._time=this._next=null}zm.prototype=j5.prototype={constructor:zm,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?oc():+n)+(t==null?0:+t),!this._next&&Vl!==this&&(Vl?Vl._next=this:rc=this,Vl=this),this._call=e,this._time=n,Vm()},stop:function(){this._call&&(this._call=null,this._time=1/0,Vm())}};function j5(e,t,n){var r=new zm;return r.restart(e,t,n),r}function MW(){oc(),++yo;for(var e=rc,t;e;)(t=sa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--yo}function M5(){sa=(ic=Ul.now())+ac,yo=Wl=0;try{MW()}finally{yo=0,IW(),sa=0}}function DW(){var e=Ul.now(),t=e-ic;t>E5&&(ac-=t,ic=e)}function IW(){for(var e,t=rc,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:rc=n);Vl=e,Vm(r)}function Vm(e){if(!yo){Wl&&(Wl=clearTimeout(Wl));var t=e-sa;t>24?(e<1/0&&(Wl=setTimeout(M5,e-Ul.now()-ac)),zl&&(zl=clearInterval(zl))):(zl||(ic=Ul.now(),zl=setInterval(DW,E5)),yo=1,P5(M5))}}function $W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function LW(e,t,n){return t&&D5(e.prototype,t),n&&D5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var I5=function(){function e(){var t=this;$W(this,e),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){t.subscribers.forEach(function(n){n.callback(oc()-n.startTime,n.duration)})},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}return LW(e,[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=j5(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(n,r){r=this.shouldAnimate?r:0;var i=this.subscribers.push({startTime:oc(),callback:n,duration:r});return this.activeSubscriptions++,this.start(),i}},{key:"unsubscribe",value:function(n){n!==null&&this.subscribers[n-1]&&(delete this.subscribers[n-1],this.activeSubscriptions--),this.activeSubscriptions===0&&this.stop()}}]),e}(),$5=x.createContext({transitionTimer:new I5,animationTimer:new I5});$5.displayName="TimerContext";const lc=$5;var FW=typeof Element<"u",NW=typeof Map=="function",BW=typeof Set=="function",RW=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function sc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!sc(e[r],t[r]))return!1;return!0}var a;if(NW&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!sc(r.value[1],t.get(r.value[0])))return!1;return!0}if(BW&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(RW&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(FW&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!sc(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var WW=function(t,n){try{return sc(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const fn=Ae(WW);function zW(e){return qW(e)||HW(e)||UW(e)||VW()}function VW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
134
134
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UW(e,t){if(e){if(typeof e=="string")return Um(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Um(e,t)}}function HW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qW(e){if(Array.isArray(e))return Um(e)}function Um(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function YW(e,t,n){return t&&L5(e.prototype,t),n&&L5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function KW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hm(e,t)}function Hm(e,t){return Hm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Hm(e,t)}function ZW(e){var t=QW();return function(){var r=uc(e),i;if(t){var a=uc(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return XW(this,i)}}function XW(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JW(e)}function JW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QW(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uc(e){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uc(e)}var Hl=function(e){KW(n,e);var t=ZW(n);function n(r,i){var a;return GW(this,n),a=t.call(this,r,i),a.interpolator=void 0,a.queue=void 0,a.ease=void 0,a.timer=void 0,a.loopID=void 0,a.functionToBeRunEachFrame=function(o,l){l=l!==void 0?l:a.props.duration;var s=l?o/l:1;if(s>=1){a.setState({data:a.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),a.loopID&&a.timer.unsubscribe(a.loopID),a.queue.shift(),a.traverseQueue();return}a.setState({data:a.interpolator(a.ease(s)),animationInfo:{progress:s,animating:s<1}})},a.state={data:Array.isArray(a.props.data)?a.props.data[0]:a.props.data,animationInfo:{progress:0,animating:!1}},a.interpolator=null,a.queue=Array.isArray(a.props.data)?a.props.data.slice(1):[],a.ease=g8[a.toNewName(a.props.easing)],a.timer=a.context.animationTimer,a}return YW(n,[{key:"componentDidMount",value:function(){this.queue.length&&this.traverseQueue()}},{key:"componentDidUpdate",value:function(i){var a=fn(this.props,i);if(!a)if(this.interpolator&&this.state.animationInfo&&this.state.animationInfo.progress<1)this.setState({data:this.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}});else{if(this.timer.unsubscribe(this.loopID),!Array.isArray(this.props.data))this.queue.length=0,this.queue.push(this.props.data);else{var o;(o=this.queue).push.apply(o,zW(this.props.data))}this.traverseQueue()}}},{key:"componentWillUnmount",value:function(){this.loopID?this.timer.unsubscribe(this.loopID):this.timer.stop()}},{key:"toNewName",value:function(i){var a=function(o){return o&&o[0].toUpperCase()+o.slice(1)};return"ease".concat(a(i))}},{key:"traverseQueue",value:function(){var i=this;if(this.queue.length){var a=this.queue[0];this.interpolator=PW(this.state.data,a),this.props.delay?setTimeout(function(){i.loopID=i.timer.subscribe(i.functionToBeRunEachFrame,i.props.duration)},this.props.delay):this.loopID=this.timer.subscribe(this.functionToBeRunEachFrame,this.props.duration)}else this.props.onEnd&&this.props.onEnd()}},{key:"render",value:function(){return this.props.children(this.state.data,this.state.animationInfo)}}]),n}(x.Component);Hl.displayName="VictoryAnimation",Hl.propTypes={children:m.func,data:m.oneOfType([m.object,m.array]),delay:m.number,duration:m.number,easing:m.oneOf(["back","backIn","backOut","backInOut","bounce","bounceIn","bounceOut","bounceInOut","circle","circleIn","circleOut","circleInOut","linear","linearIn","linearOut","linearInOut","cubic","cubicIn","cubicOut","cubicInOut","elastic","elasticIn","elasticOut","elasticInOut","exp","expIn","expOut","expInOut","poly","polyIn","polyOut","polyInOut","quad","quadIn","quadOut","quadInOut","sin","sinIn","sinOut","sinInOut"]),onEnd:m.func},Hl.defaultProps={data:{},delay:0,duration:1e3,easing:"quadInOut"},Hl.contextType=lc;var ez=F1,tz=0;function nz(e){var t=++tz;return ez(e)+t}var rz=nz;const cc=Ae(rz);var iz=Ur,az=ir,oz="[object RegExp]";function lz(e){return az(e)&&iz(e)==oz}var sz=lz,uz=sz,cz=Pl,F5=jl,N5=F5&&F5.isRegExp,fz=N5?cz(N5):uz,dz=fz;const B5=Ae(dz);var hz=Hr,mz=_r,gz=Ci;function pz(e){return function(t,n,r){var i=Object(t);if(!mz(t)){var a=hz(n);t=gz(t),n=function(l){return a(i[l],l,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var vz=pz;function yz(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var R5=yz,bz=/\s/;function _z(e){for(var t=e.length;t--&&bz.test(e.charAt(t)););return t}var xz=_z,Sz=xz,wz=/^\s+/;function Oz(e){return e&&e.slice(0,Sz(e)+1).replace(wz,"")}var Cz=Oz,Az=Cz,W5=xn,Tz=$l,z5=0/0,kz=/^[-+]0x[0-9a-f]+$/i,Ez=/^0b[01]+$/i,Pz=/^0o[0-7]+$/i,jz=parseInt;function Mz(e){if(typeof e=="number")return e;if(Tz(e))return z5;if(W5(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=W5(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Az(e);var n=Ez.test(e);return n||Pz.test(e)?jz(e.slice(2),n?2:8):kz.test(e)?z5:+e}var qm=Mz,Dz=qm,V5=1/0,Iz=17976931348623157e292;function $z(e){if(!e)return e===0?e:0;if(e=Dz(e),e===V5||e===-V5){var t=e<0?-1:1;return t*Iz}return e===e?e:0}var U5=$z,Lz=U5;function Fz(e){var t=Lz(e),n=t%1;return t===t?n?t-n:t:0}var H5=Fz,Nz=R5,Bz=Hr,Rz=H5,Wz=Math.max;function zz(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Rz(n);return i<0&&(i=Wz(r+i,0)),Nz(e,Bz(t),i)}var Vz=zz,Uz=vz,Hz=Vz,qz=Uz(Hz),Gz=qz;const Yz=Ae(Gz);function bo(e){process.env.NODE_ENV!=="production"&&console&&console.warn&&console.warn(e)}function Kz(e){return e!==e}var Zz=Kz;function Xz(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var Jz=Xz,Qz=R5,eV=Zz,tV=Jz;function nV(e,t,n){return t===t?tV(e,t,n):Qz(e,eV,n)}var q5=nV,rV=Ur,iV=Ft,aV=ir,oV="[object String]";function lV(e){return typeof e=="string"||!iV(e)&&aV(e)&&rV(e)==oV}var G5=lV;const sV=Ae(G5);var uV=co;function cV(e,t){return uV(t,function(n){return e[n]})}var fV=cV,dV=fV,hV=Ci;function mV(e){return e==null?[]:dV(e,hV(e))}var Y5=mV;const fc=Ae(Y5);var gV=q5,pV=_r,vV=G5,yV=H5,bV=Y5,_V=Math.max;function xV(e,t,n,r){e=pV(e)?e:bV(e),n=n&&!r?yV(n):0;var i=e.length;return n<0&&(n=_V(i+n,0)),vV(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&gV(e,t,n)>-1}var SV=xV;const qr=Ae(SV);var wV=lm,OV=qu,CV=Nu,K5=xn,AV=Ll;function TV(e,t,n,r){if(!K5(e))return e;t=OV(t,e);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=AV(t[i]),u=n;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(i!=o){var c=l[s];u=r?r(c,s,l):void 0,u===void 0&&(u=K5(c)?c:CV(t[i+1])?[]:{})}wV(l,s,u),l=l[s]}return e}var kV=TV,EV=Gu,PV=kV,jV=qu;function MV(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],l=EV(e,o);n(l,o)&&PV(a,jV(o,e),l)}return a}var Z5=MV,DV=Z5,IV=o5;function $V(e,t){return DV(e,t,function(n,r){return IV(e,r)})}var LV=$V,X5=oo,FV=El,NV=Ft,J5=X5?X5.isConcatSpreadable:void 0;function BV(e){return NV(e)||FV(e)||!!(J5&&e&&e[J5])}var RV=BV,WV=Em,zV=RV;function Q5(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=zV),i||(i=[]);++a<o;){var l=e[a];t>0&&n(l)?t>1?Q5(l,t-1,n,r,i):WV(i,l):r||(i[i.length]=l)}return i}var e2=Q5,VV=e2;function UV(e){var t=e==null?0:e.length;return t?VV(e,1):[]}var t2=UV;const ql=Ae(t2);var HV=t2,qV=i1,GV=l1;function YV(e){return GV(qV(e,void 0,HV),e+"")}var n2=YV,KV=LV,ZV=n2,XV=ZV(function(e,t){return e==null?{}:KV(e,t)}),JV=XV;const Gl=Ae(JV);function QV(e,t){var n=t!=="x",r=lt(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}function eU(e,t){if(t==="x"){var n=st(e.startAngle||0),r=st(e.endAngle||360);return[n,r]}return[e.innerRadius||0,wr(e)]}function _o(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Gm(e){var t=function(h){return h!==void 0},n=e._x,r=e._x1,i=e._x0,a=e._voronoiX,o=e._y,l=e._y1,s=e._y0,u=e._voronoiY,c=t(r)?r:n,f=t(l)?l:o,d={x:t(a)?a:c,x0:t(i)?i:n,y:t(u)?u:f,y0:t(s)?s:o};return ae({},d,e)}function xo(e,t){var n=e.scale,r=e.polar,i=e.horizontal,a=Gm(t),o=e.origin||{x:0,y:0},l=i?n.y(a.y):n.x(a.x),s=i?n.y(a.y0):n.x(a.x0),u=i?n.x(a.x):n.y(a.y),c=i?n.x(a.x0):n.y(a.y0);return{x:r?u*Math.cos(l)+o.x:l,x0:r?c*Math.cos(s)+o.x:s,y:r?-u*Math.sin(l)+o.y:u,y0:r?-c*Math.sin(s)+o.x:c}}function lt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"padding",n=e[t],r=typeof n=="number"?n:0,i=typeof n=="object"?n:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function dc(e){var t=e&&e.type&&e.type.role;return t==="tooltip"}function hc(e,t){var n=e.theme,r=n===void 0?{}:n,i=e.labelComponent,a=r[t]&&r[t].style||{};if(!dc(i))return a;var o=r.tooltip&&r.tooltip.style||{},l=ae({},o,a.labels);return ae({},{labels:l},a)}function Yl(e,t){var n="100%",r="100%";if(!e)return ae({parent:{height:r,width:n}},t);var i=e.data,a=e.labels,o=e.parent,l=t&&t.parent||{},s=t&&t.labels||{},u=t&&t.data||{};return{parent:ae({},o,l,{width:n,height:r}),labels:ae({},a,s),data:ae({},i,u)}}function fe(e,t){return Oe(e)?e(t):e}function Ze(e,t){return t.disableInlineStyles?{}:!e||!Ke(e).some(function(n){return Oe(e[n])})?e:Ke(e).reduce(function(n,r){return n[r]=fe(e[r],t),n},{})}function st(e){return typeof e=="number"?e*(Math.PI/180):e}function Gr(e){return typeof e=="number"?e/(Math.PI/180):e}function wr(e){var t=lt(e),n=t.left,r=t.right,i=t.top,a=t.bottom,o=e.width,l=e.height;return Math.min(o-n-r,l-i-a)/2}function Kl(e){var t=e.width,n=e.height,r=lt(e),i=r.top,a=r.bottom,o=r.left,l=r.right,s=Math.min(t-o-l,n-i-a)/2,u=t/2+o-l,c=n/2+i-a;return{x:u+s>t?s+o-l:u,y:c+s>n?s+i-a:c}}function xt(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?eU(e,t):QV(e,t)}function mc(e){return Oe(e)?e:e==null?function(t){return t}:s5(e)}function St(e,t,n){var r=e.theme&&e.theme[n]?e.theme[n]:{},i=_o(r,["style"]),a=nU(e),o=a===void 0?{}:{horizontal:a};return ae(o,e,i,t)}function tU(e,t){var n=e==="x"?"y":"x";return t?n:e}function Ti(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(s,u){return s.concat(u)},a=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],o=function(s,u,c){return s.reduce(function(f,d,h){var g=d.type&&d.type.role,p=d.props.name||"".concat(g,"-").concat(u[h]);if(d.props&&d.props.children){var y=R({},d.props,Gl(n,a)),_=d.type&&d.type.role==="stack"&&Oe(d.type.getChildren)?d.type.getChildren(y):x.Children.toArray(d.props.children).map(function(w){var A=R({},w.props,Gl(y,a));return x.cloneElement(w,A)}),b=_.map(function(w,A){return"".concat(p,"-").concat(A)}),S=o(_,b,d);f=i(f,S)}else{var O=t(d,p,c);O&&(f=i(f,O))}return f},r)},l=e.map(function(s,u){return u});return o(e,l)}function nU(e){if(e.horizontal!==void 0||!e.children)return e.horizontal;var t=function(n){return n.reduce(function(r,i){var a=i.props||{};return r||a.horizontal||!a.children?(r=r||a.horizontal,r):t(x.Children.toArray(a.children))},!1)};return t(x.Children.toArray(e.children))}function gc(e){return oU(e)||aU(e)||iU(e)||rU()}function rU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
135
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iU(e,t){if(e){if(typeof e=="string")return Ym(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ym(e,t)}}function aU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oU(e){if(Array.isArray(e))return Ym(e)}function Ym(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r2(e){return Array.isArray(e)&&e.length>0}function pc(e){return Array.isArray(e)&&e.some(function(t){return typeof t=="string"})}function $n(e){return Array.isArray(e)&&e.some(function(t){return t instanceof Date})}function lU(e){return r2(e)&&e.every(function(t){return typeof t=="string"})}function i2(e){return r2(e)&&e.every(Array.isArray)}function a2(e){return e.filter(function(t){return t!==void 0})}function Ln(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e.concat(n);return $n(i)?new Date(Math.max.apply(Math,gc(i))):Math.max.apply(Math,gc(i))}function dn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e.concat(n);return $n(i)?new Date(Math.min.apply(Math,gc(i))):Math.min.apply(Math,gc(i))}function ki(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sU(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Km(e){let t,n,r;e.length!==2?(t=ki,n=(l,s)=>ki(e(l),s),r=(l,s)=>e(l)-s):(t=e===ki||e===sU?e:uU,n=e,r=e);function i(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<0?u=f+1:c=f}while(u<c)}return u}function a(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<=0?u=f+1:c=f}while(u<c)}return u}function o(l,s,u=0,c=l.length){const f=i(l,s,u,c-1);return f>u&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:i,center:o,right:a}}function uU(){return 0}function o2(e){return e===null?NaN:+e}function*cU(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const fU=Km(ki).right;Km(o2).center;const Zl=fU;class l2 extends Map{constructor(t,n=mU){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(s2(this,t))}has(t){return super.has(s2(this,t))}set(t,n){return super.set(dU(this,t),n)}delete(t){return super.delete(hU(this,t))}}function s2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function dU({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function hU({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function mU(e){return e!==null&&typeof e=="object"?e.valueOf():e}function gU(e=ki){if(e===ki)return u2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function u2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var Zm=Math.sqrt(50),Xm=Math.sqrt(10),Jm=Math.sqrt(2);function Qm(e,t,n){var r,i=-1,a,o,l;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(a=e,e=t,t=a),(l=c2(e,t,n))===0||!isFinite(l))return[];if(l>0){let s=Math.round(e/l),u=Math.round(t/l);for(s*l<e&&++s,u*l>t&&--u,o=new Array(a=u-s+1);++i<a;)o[i]=(s+i)*l}else{l=-l;let s=Math.round(e*l),u=Math.round(t*l);for(s/l<e&&++s,u/l>t&&--u,o=new Array(a=u-s+1);++i<a;)o[i]=(s+i)/l}return r&&o.reverse(),o}function c2(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=Zm?10:a>=Xm?5:a>=Jm?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Zm?10:a>=Xm?5:a>=Jm?2:1)}function e0(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Zm?i*=10:a>=Xm?i*=5:a>=Jm&&(i*=2),t<e?-i:i}function f2(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function d2(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function h2(e,t,n=0,r=e.length-1,i){for(i=i===void 0?u2:gU(i);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,c=Math.log(s),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(s-f)/s)*(u-s/2<0?-1:1),h=Math.max(n,Math.floor(t-u*f/s+d)),g=Math.min(r,Math.floor(t+(s-u)*f/s+d));h2(e,t,h,g,i)}const a=e[t];let o=n,l=r;for(Xl(e,n,t),i(e[r],a)>0&&Xl(e,n,r);o<l;){for(Xl(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?Xl(e,n,l):(++l,Xl(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Xl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function pU(e,t,n){if(e=Float64Array.from(cU(e,n)),!!(r=e.length)){if((t=+t)<=0||r<2)return d2(e);if(t>=1)return f2(e);var r,i=(r-1)*t,a=Math.floor(i),o=f2(h2(e,a).subarray(0,a+1)),l=d2(e.subarray(a+1));return o+(l-o)*(i-a)}}function vU(e,t,n=o2){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function yU(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=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function Fn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Yr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const t0=Symbol("implicit");function n0(){var e=new l2,t=[],n=[],r=t0;function i(a){let o=e.get(a);if(o===void 0){if(r!==t0)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new l2;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return n0(t,n).unknown(r)},Fn.apply(i,arguments),i}function r0(){var e=n0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,l=!1,s=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,h=i<r,g=h?i:r,p=h?r:i;a=(p-g)/Math.max(1,d-s+u*2),l&&(a=Math.floor(a)),g+=(p-g-a*(d-s))*c,o=a*(1-s),l&&(g=Math.round(g),o=Math.round(o));var y=yU(d).map(function(_){return g+a*_});return n(h?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([r,i]=d,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(d){return[r,i]=d,r=+r,i=+i,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(l=!!d,f()):l},e.padding=function(d){return arguments.length?(s=Math.min(1,u=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return r0(t(),[r,i]).round(l).paddingInner(s).paddingOuter(u).align(c)},Fn.apply(f(),arguments)}function m2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return m2(t())},e}function bU(){return m2(r0.apply(null,arguments).paddingInner(1))}function _U(e){return function(){return e}}function vc(e){return+e}var g2=[0,1];function Qt(e){return e}function i0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:_U(isNaN(t)?NaN:.5)}function xU(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function SU(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=i0(i,r),a=n(o,a)):(r=i0(r,i),a=n(a,o)),function(l){return a(r(l))}}function wU(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=i0(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var s=Zl(e,l,1,r)-1;return a[s](i[s](l))}}function Jl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yc(){var e=g2,t=g2,n=Sr,r,i,a,o=Qt,l,s,u;function c(){var d=Math.min(e.length,t.length);return o!==Qt&&(o=xU(e[0],e[d-1])),l=d>2?wU:SU,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=l(e.map(r),t,n)))(r(o(d)))}return f.invert=function(d){return o(i((u||(u=l(t,e.map(r),tc)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,vc),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=Wm,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Qt,c()):o!==Qt},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return r=d,i=h,c()}}function a0(){return yc()(Qt,Qt)}function OU(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function bc(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)]}function So(e){return e=bc(Math.abs(e)),e?e[1]:NaN}function CU(e,t){return function(n,r){for(var i=n.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(n.substring(i-=l,i+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function AU(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var TU=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ql(e){if(!(t=TU.exec(e)))throw new Error("invalid format: "+e);var t;return new o0({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]})}Ql.prototype=o0.prototype;function o0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}o0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function kU(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var p2;function EU(e,t){var n=bc(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(p2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+bc(e,Math.max(0,t+a-1))[0]}function v2(e,t){var n=bc(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")}const y2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:OU,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>v2(e*100,t),r:v2,s:EU,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function b2(e){return e}var _2=Array.prototype.map,x2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function PU(e){var t=e.grouping===void 0||e.thousands===void 0?b2:CU(_2.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?b2:AU(_2.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Ql(f);var d=f.fill,h=f.align,g=f.sign,p=f.symbol,y=f.zero,_=f.width,b=f.comma,S=f.precision,O=f.trim,w=f.type;w==="n"?(b=!0,w="g"):y2[w]||(S===void 0&&(S=12),O=!0,w="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var A=p==="$"?n:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",T=p==="$"?r:/[%p]/.test(w)?o:"",k=y2[w],j=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function N(M){var E=A,I=T,D,W,X;if(w==="c")I=k(M)+I,M="";else{M=+M;var re=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),S),O&&(M=kU(M)),re&&+M==0&&g!=="+"&&(re=!1),E=(re?g==="("?g:l:g==="-"||g==="("?"":g)+E,I=(w==="s"?x2[8+p2/3]:"")+I+(re&&g==="("?")":""),j){for(D=-1,W=M.length;++D<W;)if(X=M.charCodeAt(D),48>X||X>57){I=(X===46?i+M.slice(D+1):M.slice(D))+I,M=M.slice(0,D);break}}}b&&!y&&(M=t(M,1/0));var ne=E.length+M.length+I.length,ee=ne<_?new Array(_-ne+1).join(d):"";switch(b&&y&&(M=t(ee+M,ee.length?_-I.length:1/0),ee=""),h){case"<":M=E+M+I+ee;break;case"=":M=E+ee+M+I;break;case"^":M=ee.slice(0,ne=ee.length>>1)+E+M+I+ee.slice(ne);break;default:M=ee+E+M+I;break}return a(M)}return N.toString=function(){return f+""},N}function c(f,d){var h=u((f=Ql(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(So(d)/3)))*3,p=Math.pow(10,-g),y=x2[8+g/3];return function(_){return h(p*_)+y}}return{format:u,formatPrefix:c}}var _c,l0,S2;jU({thousands:",",grouping:[3],currency:["$",""]});function jU(e){return _c=PU(e),l0=_c.format,S2=_c.formatPrefix,_c}function MU(e){return Math.max(0,-So(Math.abs(e)))}function DU(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(So(t)/3)))*3-So(Math.abs(e)))}function IU(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,So(t)-So(e))+1}function w2(e,t,n,r){var i=e0(e,t,n),a;switch(r=Ql(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=DU(i,o))&&(r.precision=a),S2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=IU(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=MU(i))&&(r.precision=a-(r.type==="%")*2);break}}return l0(r)}function Ei(e){var t=e.domain;return e.ticks=function(n){var r=t();return Qm(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return w2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],l=r[a],s,u,c=10;for(l<o&&(u=o,o=l,l=u,u=i,i=a,a=u);c-- >0;){if(u=c2(o,l,n),u===s)return r[i]=o,r[a]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function s0(){var e=a0();return e.copy=function(){return Jl(e,s0())},Fn.apply(e,arguments),Ei(e)}function O2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,vc),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return O2(e).unknown(t)},e=arguments.length?Array.from(e,vc):[0,1],Ei(n)}function C2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function A2(e){return Math.log(e)}function T2(e){return Math.exp(e)}function $U(e){return-Math.log(-e)}function LU(e){return-Math.exp(-e)}function FU(e){return isFinite(e)?+("1e"+e):e<0?0:e}function NU(e){return e===10?FU:e===Math.E?Math.exp:t=>Math.pow(e,t)}function BU(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function k2(e){return(t,n)=>-e(-t,n)}function u0(e){const t=e(A2,T2),n=t.domain;let r=10,i,a;function o(){return i=BU(r),a=NU(r),n()[0]<0?(i=k2(i),a=k2(a),e($U,LU)):e(A2,T2),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const s=n();let u=s[0],c=s[s.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),h=i(c),g,p;const y=l==null?10:+l;let _=[];if(!(r%1)&&h-d<y){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(g=1;g<r;++g)if(p=d<0?g/a(-d):g*a(d),!(p<u)){if(p>c)break;_.push(p)}}else for(;d<=h;++d)for(g=r-1;g>=1;--g)if(p=d>0?g/a(-d):g*a(d),!(p<u)){if(p>c)break;_.push(p)}_.length*2<y&&(_=Qm(u,c,y))}else _=Qm(d,h,Math.min(h-d,y)).map(a);return f?_.reverse():_},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=Ql(s)).precision==null&&(s.trim=!0),s=l0(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*r<r-.5&&(f*=r),f<=u?s(c):""}},t.nice=()=>n(C2(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function E2(){const e=u0(yc()).domain([1,10]);return e.copy=()=>Jl(e,E2()).base(e.base()),Fn.apply(e,arguments),e}function P2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function j2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function c0(e){var t=1,n=e(P2(t),j2(t));return n.constant=function(r){return arguments.length?e(P2(t=+r),j2(t)):t},Ei(n)}function M2(){var e=c0(yc());return e.copy=function(){return Jl(e,M2()).constant(e.constant())},Fn.apply(e,arguments)}function D2(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function RU(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function WU(e){return e<0?-e*e:e*e}function f0(e){var t=e(Qt,Qt),n=1;function r(){return n===1?e(Qt,Qt):n===.5?e(RU,WU):e(D2(n),D2(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Ei(t)}function d0(){var e=f0(yc());return e.copy=function(){return Jl(e,d0()).exponent(e.exponent())},Fn.apply(e,arguments),e}function zU(){return d0.apply(null,arguments).exponent(.5)}function I2(e){return Math.sign(e)*e*e}function VU(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function $2(){var e=a0(),t=[0,1],n=!1,r;function i(a){var o=VU(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(I2(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,vc)).map(I2)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return $2(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Fn.apply(i,arguments),Ei(i)}function L2(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=vU(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?r:t[Zl(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ki),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return L2().domain(e).range(t).unknown(r)},Fn.apply(a,arguments)}function F2(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Zl(r,s,0,n)]:a}function l(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(n=(i=Array.from(s)).length-1,l()):i.slice()},o.invertExtent=function(s){var u=i.indexOf(s);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return F2().domain([e,t]).range(i).unknown(a)},Fn.apply(Ei(o),arguments)}function N2(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Zl(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return N2().domain(e).range(t).unknown(n)},Fn.apply(i,arguments)}const h0=new Date,m0=new Date;function Et(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const s=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;let u;do s.push(u=new Date(+a)),t(a,l),e(a);while(u<a&&a<o);return s},i.filter=a=>Et(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(h0.setTime(+a),m0.setTime(+o),e(h0),e(m0),Math.floor(n(h0,m0))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const xc=Et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);xc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):xc),xc.range;const Kr=1e3,Nn=Kr*60,Zr=Nn*60,Xr=Zr*24,g0=Xr*7,B2=Xr*30,p0=Xr*365,ua=Et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Kr)},(e,t)=>(t-e)/Kr,e=>e.getUTCSeconds());ua.range;const v0=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Kr)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getMinutes());v0.range;const y0=Et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getUTCMinutes());y0.range;const b0=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Kr-e.getMinutes()*Nn)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getHours());b0.range;const _0=Et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getUTCHours());_0.range;const es=Et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nn)/Xr,e=>e.getDate()-1);es.range;const Sc=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Xr,e=>e.getUTCDate()-1);Sc.range;const R2=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Xr,e=>Math.floor(e/Xr));R2.range;function ca(e){return Et(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nn)/g0)}const wc=ca(0),Oc=ca(1),UU=ca(2),HU=ca(3),wo=ca(4),qU=ca(5),GU=ca(6);wc.range,Oc.range,UU.range,HU.range,wo.range,qU.range,GU.range;function fa(e){return Et(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/g0)}const Cc=fa(0),Ac=fa(1),YU=fa(2),KU=fa(3),Oo=fa(4),ZU=fa(5),XU=fa(6);Cc.range,Ac.range,YU.range,KU.range,Oo.range,ZU.range,XU.range;const x0=Et(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());x0.range;const S0=Et(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());S0.range;const Jr=Et(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Jr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Jr.range;const Qr=Et(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Qr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Qr.range;function W2(e,t,n,r,i,a){const o=[[ua,1,Kr],[ua,5,5*Kr],[ua,15,15*Kr],[ua,30,30*Kr],[a,1,Nn],[a,5,5*Nn],[a,15,15*Nn],[a,30,30*Nn],[i,1,Zr],[i,3,3*Zr],[i,6,6*Zr],[i,12,12*Zr],[r,1,Xr],[r,2,2*Xr],[n,1,g0],[t,1,B2],[t,3,3*B2],[e,1,p0]];function l(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const h=f&&typeof f.range=="function"?f:s(u,c,f),g=h?h.range(u,+c+1):[];return d?g.reverse():g}function s(u,c,f){const d=Math.abs(c-u)/f,h=Km(([,,y])=>y).right(o,d);if(h===o.length)return e.every(e0(u/p0,c/p0,f));if(h===0)return xc.every(Math.max(e0(u,c,f),1));const[g,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return g.every(p)}return[l,s]}const[JU,QU]=W2(Qr,S0,Cc,R2,_0,y0),[eH,tH]=W2(Jr,x0,wc,es,b0,v0);function w0(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 O0(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 ts(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function nH(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=ns(i),c=rs(i),f=ns(a),d=rs(a),h=ns(o),g=rs(o),p=ns(l),y=rs(l),_=ns(s),b=rs(s),S={a:re,A:ne,b:ee,B:z,c:null,d:G2,e:G2,f:CH,g:$H,G:FH,H:SH,I:wH,j:OH,L:Y2,m:AH,M:TH,p:Z,q,Q:eS,s:tS,S:kH,u:EH,U:PH,V:jH,w:MH,W:DH,x:null,X:null,y:IH,Y:LH,Z:NH,"%":Q2},O={a:Y,A:G,b:ie,B,c:null,d:Z2,e:Z2,f:zH,g:JH,G:eq,H:BH,I:RH,j:WH,L:X2,m:VH,M:UH,p:se,q:K,Q:eS,s:tS,S:HH,u:qH,U:GH,V:YH,w:KH,W:ZH,x:null,X:null,y:XH,Y:QH,Z:tq,"%":Q2},w={a:N,A:M,b:E,B:I,c:D,d:H2,e:H2,f:yH,g:U2,G:V2,H:q2,I:q2,j:mH,L:vH,m:hH,M:gH,p:j,q:dH,Q:_H,s:xH,S:pH,u:lH,U:sH,V:uH,w:oH,W:cH,x:W,X,y:U2,Y:V2,Z:fH,"%":bH};S.x=A(n,S),S.X=A(r,S),S.c=A(t,S),O.x=A(n,O),O.X=A(r,O),O.c=A(t,O);function A(J,te){return function(ue){var $=[],xe=-1,Se=0,be=J.length,ge,P,V;for(ue instanceof Date||(ue=new Date(+ue));++xe<be;)J.charCodeAt(xe)===37&&($.push(J.slice(Se,xe)),(P=z2[ge=J.charAt(++xe)])!=null?ge=J.charAt(++xe):P=ge==="e"?" ":"0",(V=te[ge])&&(ge=V(ue,P)),$.push(ge),Se=xe+1);return $.push(J.slice(Se,xe)),$.join("")}}function T(J,te){return function(ue){var $=ts(1900,void 0,1),xe=k($,J,ue+="",0),Se,be;if(xe!=ue.length)return null;if("Q"in $)return new Date($.Q);if("s"in $)return new Date($.s*1e3+("L"in $?$.L:0));if(te&&!("Z"in $)&&($.Z=0),"p"in $&&($.H=$.H%12+$.p*12),$.m===void 0&&($.m="q"in $?$.q:0),"V"in $){if($.V<1||$.V>53)return null;"w"in $||($.w=1),"Z"in $?(Se=O0(ts($.y,0,1)),be=Se.getUTCDay(),Se=be>4||be===0?Ac.ceil(Se):Ac(Se),Se=Sc.offset(Se,($.V-1)*7),$.y=Se.getUTCFullYear(),$.m=Se.getUTCMonth(),$.d=Se.getUTCDate()+($.w+6)%7):(Se=w0(ts($.y,0,1)),be=Se.getDay(),Se=be>4||be===0?Oc.ceil(Se):Oc(Se),Se=es.offset(Se,($.V-1)*7),$.y=Se.getFullYear(),$.m=Se.getMonth(),$.d=Se.getDate()+($.w+6)%7)}else("W"in $||"U"in $)&&("w"in $||($.w="u"in $?$.u%7:"W"in $?1:0),be="Z"in $?O0(ts($.y,0,1)).getUTCDay():w0(ts($.y,0,1)).getDay(),$.m=0,$.d="W"in $?($.w+6)%7+$.W*7-(be+5)%7:$.w+$.U*7-(be+6)%7);return"Z"in $?($.H+=$.Z/100|0,$.M+=$.Z%100,O0($)):w0($)}}function k(J,te,ue,$){for(var xe=0,Se=te.length,be=ue.length,ge,P;xe<Se;){if($>=be)return-1;if(ge=te.charCodeAt(xe++),ge===37){if(ge=te.charAt(xe++),P=w[ge in z2?te.charAt(xe++):ge],!P||($=P(J,ue,$))<0)return-1}else if(ge!=ue.charCodeAt($++))return-1}return $}function j(J,te,ue){var $=u.exec(te.slice(ue));return $?(J.p=c.get($[0].toLowerCase()),ue+$[0].length):-1}function N(J,te,ue){var $=h.exec(te.slice(ue));return $?(J.w=g.get($[0].toLowerCase()),ue+$[0].length):-1}function M(J,te,ue){var $=f.exec(te.slice(ue));return $?(J.w=d.get($[0].toLowerCase()),ue+$[0].length):-1}function E(J,te,ue){var $=_.exec(te.slice(ue));return $?(J.m=b.get($[0].toLowerCase()),ue+$[0].length):-1}function I(J,te,ue){var $=p.exec(te.slice(ue));return $?(J.m=y.get($[0].toLowerCase()),ue+$[0].length):-1}function D(J,te,ue){return k(J,t,te,ue)}function W(J,te,ue){return k(J,n,te,ue)}function X(J,te,ue){return k(J,r,te,ue)}function re(J){return o[J.getDay()]}function ne(J){return a[J.getDay()]}function ee(J){return s[J.getMonth()]}function z(J){return l[J.getMonth()]}function Z(J){return i[+(J.getHours()>=12)]}function q(J){return 1+~~(J.getMonth()/3)}function Y(J){return o[J.getUTCDay()]}function G(J){return a[J.getUTCDay()]}function ie(J){return s[J.getUTCMonth()]}function B(J){return l[J.getUTCMonth()]}function se(J){return i[+(J.getUTCHours()>=12)]}function K(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var te=A(J+="",S);return te.toString=function(){return J},te},parse:function(J){var te=T(J+="",!1);return te.toString=function(){return J},te},utcFormat:function(J){var te=A(J+="",O);return te.toString=function(){return J},te},utcParse:function(J){var te=T(J+="",!0);return te.toString=function(){return J},te}}}var z2={"-":"",_:" ",0:"0"},Nt=/^\s*\d+/,rH=/^%/,iH=/[\\^$*+?|[\]().{}]/g;function We(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function aH(e){return e.replace(iH,"\\$&")}function ns(e){return new RegExp("^(?:"+e.map(aH).join("|")+")","i")}function rs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function oH(e,t,n){var r=Nt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function lH(e,t,n){var r=Nt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function sH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function uH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function cH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function V2(e,t,n){var r=Nt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function U2(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function fH(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 dH(e,t,n){var r=Nt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function hH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function H2(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function mH(e,t,n){var r=Nt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function q2(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function gH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function pH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function vH(e,t,n){var r=Nt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function yH(e,t,n){var r=Nt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function bH(e,t,n){var r=rH.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _H(e,t,n){var r=Nt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xH(e,t,n){var r=Nt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function G2(e,t){return We(e.getDate(),t,2)}function SH(e,t){return We(e.getHours(),t,2)}function wH(e,t){return We(e.getHours()%12||12,t,2)}function OH(e,t){return We(1+es.count(Jr(e),e),t,3)}function Y2(e,t){return We(e.getMilliseconds(),t,3)}function CH(e,t){return Y2(e,t)+"000"}function AH(e,t){return We(e.getMonth()+1,t,2)}function TH(e,t){return We(e.getMinutes(),t,2)}function kH(e,t){return We(e.getSeconds(),t,2)}function EH(e){var t=e.getDay();return t===0?7:t}function PH(e,t){return We(wc.count(Jr(e)-1,e),t,2)}function K2(e){var t=e.getDay();return t>=4||t===0?wo(e):wo.ceil(e)}function jH(e,t){return e=K2(e),We(wo.count(Jr(e),e)+(Jr(e).getDay()===4),t,2)}function MH(e){return e.getDay()}function DH(e,t){return We(Oc.count(Jr(e)-1,e),t,2)}function IH(e,t){return We(e.getFullYear()%100,t,2)}function $H(e,t){return e=K2(e),We(e.getFullYear()%100,t,2)}function LH(e,t){return We(e.getFullYear()%1e4,t,4)}function FH(e,t){var n=e.getDay();return e=n>=4||n===0?wo(e):wo.ceil(e),We(e.getFullYear()%1e4,t,4)}function NH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+We(t/60|0,"0",2)+We(t%60,"0",2)}function Z2(e,t){return We(e.getUTCDate(),t,2)}function BH(e,t){return We(e.getUTCHours(),t,2)}function RH(e,t){return We(e.getUTCHours()%12||12,t,2)}function WH(e,t){return We(1+Sc.count(Qr(e),e),t,3)}function X2(e,t){return We(e.getUTCMilliseconds(),t,3)}function zH(e,t){return X2(e,t)+"000"}function VH(e,t){return We(e.getUTCMonth()+1,t,2)}function UH(e,t){return We(e.getUTCMinutes(),t,2)}function HH(e,t){return We(e.getUTCSeconds(),t,2)}function qH(e){var t=e.getUTCDay();return t===0?7:t}function GH(e,t){return We(Cc.count(Qr(e)-1,e),t,2)}function J2(e){var t=e.getUTCDay();return t>=4||t===0?Oo(e):Oo.ceil(e)}function YH(e,t){return e=J2(e),We(Oo.count(Qr(e),e)+(Qr(e).getUTCDay()===4),t,2)}function KH(e){return e.getUTCDay()}function ZH(e,t){return We(Ac.count(Qr(e)-1,e),t,2)}function XH(e,t){return We(e.getUTCFullYear()%100,t,2)}function JH(e,t){return e=J2(e),We(e.getUTCFullYear()%100,t,2)}function QH(e,t){return We(e.getUTCFullYear()%1e4,t,4)}function eq(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Oo(e):Oo.ceil(e),We(e.getUTCFullYear()%1e4,t,4)}function tq(){return"+0000"}function Q2(){return"%"}function eS(e){return+e}function tS(e){return Math.floor(+e/1e3)}var Co,nS,rS;nq({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"]});function nq(e){return Co=nH(e),nS=Co.format,Co.parse,rS=Co.utcFormat,Co.utcParse,Co}function rq(e){return new Date(e)}function iq(e){return e instanceof Date?+e:+new Date(+e)}function C0(e,t,n,r,i,a,o,l,s,u){var c=a0(),f=c.invert,d=c.domain,h=u(".%L"),g=u(":%S"),p=u("%I:%M"),y=u("%I %p"),_=u("%a %d"),b=u("%b %d"),S=u("%B"),O=u("%Y");function w(A){return(s(A)<A?h:l(A)<A?g:o(A)<A?p:a(A)<A?y:r(A)<A?i(A)<A?_:b:n(A)<A?S:O)(A)}return c.invert=function(A){return new Date(f(A))},c.domain=function(A){return arguments.length?d(Array.from(A,iq)):d().map(rq)},c.ticks=function(A){var T=d();return e(T[0],T[T.length-1],A??10)},c.tickFormat=function(A,T){return T==null?w:u(T)},c.nice=function(A){var T=d();return(!A||typeof A.range!="function")&&(A=t(T[0],T[T.length-1],A??10)),A?d(C2(T,A)):c},c.copy=function(){return Jl(c,C0(e,t,n,r,i,a,o,l,s,u))},c}function aq(){return Fn.apply(C0(eH,tH,Jr,x0,wc,es,b0,v0,ua,nS).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function oq(){return Fn.apply(C0(JU,QU,Qr,S0,Cc,Sc,_0,y0,ua,rS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Tc(){var e=0,t=1,n,r,i,a,o=Qt,l=!1,s;function u(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-n)*i,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var h,g;return arguments.length?([h,g]=d,o=f(h,g),u):[o(0),o(1)]}}return u.range=c(Sr),u.rangeRound=c(Wm),u.unknown=function(f){return arguments.length?(s=f,u):s},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),u}}function Pi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function iS(){var e=Ei(Tc()(Qt));return e.copy=function(){return Pi(e,iS())},Yr.apply(e,arguments)}function aS(){var e=u0(Tc()).domain([1,10]);return e.copy=function(){return Pi(e,aS()).base(e.base())},Yr.apply(e,arguments)}function oS(){var e=c0(Tc());return e.copy=function(){return Pi(e,oS()).constant(e.constant())},Yr.apply(e,arguments)}function A0(){var e=f0(Tc());return e.copy=function(){return Pi(e,A0()).exponent(e.exponent())},Yr.apply(e,arguments)}function lq(){return A0.apply(null,arguments).exponent(.5)}function lS(){var e=[],t=Qt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Zl(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ki),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>pU(e,a/r))},n.copy=function(){return lS(t).domain(e)},Yr.apply(n,arguments)}function kc(){var e=0,t=.5,n=1,r=1,i,a,o,l,s,u=Qt,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-a)*(r*p<r*a?l:s),u(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,n]=p,i=c(e=+e),a=c(t=+t),o=c(n=+n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,h):[e,t,n]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(u=p,h):u};function g(p){return function(y){var _,b,S;return arguments.length?([_,b,S]=y,u=kW(p,[_,b,S]),h):[u(0),u(.5),u(1)]}}return h.range=g(Sr),h.rangeRound=g(Wm),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return c=p,i=p(e),a=p(t),o=p(n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,h}}function sS(){var e=Ei(kc()(Qt));return e.copy=function(){return Pi(e,sS())},Yr.apply(e,arguments)}function uS(){var e=u0(kc()).domain([.1,1,10]);return e.copy=function(){return Pi(e,uS()).base(e.base())},Yr.apply(e,arguments)}function cS(){var e=c0(kc());return e.copy=function(){return Pi(e,cS()).constant(e.constant())},Yr.apply(e,arguments)}function T0(){var e=f0(kc());return e.copy=function(){return Pi(e,T0()).exponent(e.exponent())},Yr.apply(e,arguments)}function sq(){return T0.apply(null,arguments).exponent(.5)}const uq=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:r0,scaleDiverging:sS,scaleDivergingLog:uS,scaleDivergingPow:T0,scaleDivergingSqrt:sq,scaleDivergingSymlog:cS,scaleIdentity:O2,scaleImplicit:t0,scaleLinear:s0,scaleLog:E2,scaleOrdinal:n0,scalePoint:bU,scalePow:d0,scaleQuantile:L2,scaleQuantize:F2,scaleRadial:$2,scaleSequential:iS,scaleSequentialLog:aS,scaleSequentialPow:A0,scaleSequentialQuantile:lS,scaleSequentialSqrt:lq,scaleSequentialSymlog:oS,scaleSqrt:zU,scaleSymlog:M2,scaleThreshold:N2,scaleTime:aq,scaleUtc:oq,tickFormat:w2},Symbol.toStringTag,{value:"Module"}));var cq=["linear","time","log","sqrt"];function fq(e){var t=function(n){return n&&n[0].toUpperCase()+n.slice(1)};return"scale".concat(t(e))}function k0(e){return typeof e=="function"?Oe(e.copy)&&Oe(e.domain)&&Oe(e.range):typeof e=="string"?qr(cq,e):!1}function fS(e,t){if(e.scale){if(e.scale.x||e.scale.y)return!!e.scale[t]}else return!1;return!0}function dq(e,t){if(fS(e,t)){var n=e.scale[t]||e.scale;return typeof n=="string"?n:hS(n)}}function hq(e,t){var n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),!!n)return $n(n)?"time":"linear"}function dS(e,t){if(!e.data)return"linear";var n=mc(e[t]),r=e.data.map(function(i){var a=Qe(n(i))?n(i)[t]:n(i);return a!==void 0?a:i[t]});return $n(r)?"time":"linear"}function is(e){if(k0(e)){var t=fq(e);return uq[t]()}return s0()}function Bn(e,t){var n=as(e,t);if(n)return typeof n=="string"?is(n):n;var r=hq(e,t)||dS(e,t);return is(r)}function as(e,t){if(fS(e,t)){var n=e.scale[t]||e.scale;if(k0(n))return Oe(n)?n:is(n)}}function Ec(e,t){return dq(e,t)||dS(e,t)}var mq=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function hS(e){if(typeof e=="string")return e;var t=mq.filter(function(n){return e[n.method]!==void 0})[0];return t?t.name:void 0}function gq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ei=function(e){var t=function(r){return function(i,a,o){var l=i[a];if(l==null)return r?new Error("Required `".concat(a,"` was not specified in `").concat(o,"`.")):null;for(var s=arguments.length,u=new Array(s>3?s-3:0),c=3;c<s;c++)u[c-3]=arguments[c];return e.apply(void 0,[i,a,o].concat(u))}},n=Object.assign(t(!1),{isRequired:t(!0)});return n},pq=function(){return null},vq=function(){},mS=function(e){return e===void 0?vq:e===null?pq:e.constructor},gS=function(e){return e===void 0?"undefined":e===null?"null":Object.prototype.toString.call(e).slice(8,-1)};function pS(e,t){return function(n,r,i){var a=n[r];return a!=null&&bo('"'.concat(r,'" property of "').concat(i,'" has been deprecated ').concat(t)),m.checkPropTypes(gq({},r,e),n,r,i),null}}function ct(e){return ei(function(t,n,r){for(var i=arguments.length,a=new Array(i>3?i-3:0),o=3;o<i;o++)a[o-3]=arguments[o];return e.reduce(function(l,s){return l||s.apply(void 0,[t,n,r].concat(a))},null)})}var _e=ei(function(e,t,n){var r=e[t];return typeof r!="number"||r<0?new Error("`".concat(t,"` in `").concat(n,"` must be a non-negative number.")):null}),ut=ei(function(e,t,n){var r=e[t];return typeof r!="number"||r%1!==0?new Error("`".concat(t,"` in `").concat(n,"` must be an integer.")):null}),vS=ei(function(e,t,n){var r=e[t];return typeof r!="number"||r<=0?new Error("`".concat(t,"` in `").concat(n,"` must be a number greater than zero.")):null}),ji=ei(function(e,t,n){var r=e[t];return!Array.isArray(r)||r.length!==2||r[1]===r[0]?new Error("`".concat(t,"` in `").concat(n,"` must be an array of two unique numeric values.")):null}),Or=ei(function(e,t,n){var r=e[t];return k0(r)?null:new Error("`".concat(t,"` in `").concat(n,"` must be a d3 scale."))}),Pc=ei(function(e,t,n){var r=e[t];if(!Array.isArray(r))return new Error("`".concat(t,"` in `").concat(n,"` must be an array."));if(r.length<2)return null;var i=mS(r[0]),a=Yz(r,function(s){return i!==mS(s)});if(a){var o=gS(r[0]),l=gS(a);return new Error("Expected `".concat(t,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(o,"` and ")+"`".concat(l,"`."))}return null});ei(function(e,t){return e[t]&&Array.isArray(e[t])&&e[t].length!==e.data.length?new Error("Length of data and ".concat(t," arrays must match.")):null});var yq=ei(function(e,t,n){return e[t]&&!B5(e[t])?new Error("`".concat(t,"` in `").concat(n,"` must be a regular expression.")):null});function bq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _q(e,t,n){return t&&yS(e.prototype,t),n&&yS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E0(e,t)}function E0(e,t){return E0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},E0(e,t)}function Sq(e){var t=Cq();return function(){var r=jc(e),i;if(t){var a=jc(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return wq(this,i)}}function wq(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oq(e)}function Oq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cq(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jc(e){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jc(e)}var P0=function(e){xq(n,e);var t=Sq(n);function n(r){var i;return bq(this,n),i=t.call(this,r),i.map=void 0,i.index=void 0,i.portalRegister=function(){return++i.index},i.portalUpdate=function(a,o){i.map[a]=o,i.forceUpdate()},i.portalDeregister=function(a){delete i.map[a],i.forceUpdate()},i.map={},i.index=1,i}return _q(n,[{key:"getChildren",value:function(){var i=this;return Ke(this.map).map(function(a){var o=i.map[a];return o&&x.cloneElement(o,{key:a})})}},{key:"render",value:function(){return x.createElement("svg",this.props,this.getChildren())}}]),n}(x.Component);P0.displayName="Portal",P0.propTypes={className:m.string,height:_e,style:m.object,viewBox:m.string,width:_e};var j0=x.createContext({});j0.displayName="PortalContext";function bS(e,t){return Eq(e)||kq(e,t)||Tq(e,t)||Aq()}function Aq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
135
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iU(e,t){if(e){if(typeof e=="string")return Ym(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ym(e,t)}}function aU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oU(e){if(Array.isArray(e))return Ym(e)}function Ym(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r2(e){return Array.isArray(e)&&e.length>0}function pc(e){return Array.isArray(e)&&e.some(function(t){return typeof t=="string"})}function $n(e){return Array.isArray(e)&&e.some(function(t){return t instanceof Date})}function lU(e){return r2(e)&&e.every(function(t){return typeof t=="string"})}function i2(e){return r2(e)&&e.every(Array.isArray)}function a2(e){return e.filter(function(t){return t!==void 0})}function Ln(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e.concat(n);return $n(i)?new Date(Math.max.apply(Math,gc(i))):Math.max.apply(Math,gc(i))}function dn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e.concat(n);return $n(i)?new Date(Math.min.apply(Math,gc(i))):Math.min.apply(Math,gc(i))}function ki(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sU(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Km(e){let t,n,r;e.length!==2?(t=ki,n=(l,s)=>ki(e(l),s),r=(l,s)=>e(l)-s):(t=e===ki||e===sU?e:uU,n=e,r=e);function i(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<0?u=f+1:c=f}while(u<c)}return u}function a(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<=0?u=f+1:c=f}while(u<c)}return u}function o(l,s,u=0,c=l.length){const f=i(l,s,u,c-1);return f>u&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:i,center:o,right:a}}function uU(){return 0}function o2(e){return e===null?NaN:+e}function*cU(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const fU=Km(ki).right;Km(o2).center;const Zl=fU;class l2 extends Map{constructor(t,n=mU){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(s2(this,t))}has(t){return super.has(s2(this,t))}set(t,n){return super.set(dU(this,t),n)}delete(t){return super.delete(hU(this,t))}}function s2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function dU({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function hU({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function mU(e){return e!==null&&typeof e=="object"?e.valueOf():e}function gU(e=ki){if(e===ki)return u2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function u2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var Zm=Math.sqrt(50),Xm=Math.sqrt(10),Jm=Math.sqrt(2);function Qm(e,t,n){var r,i=-1,a,o,l;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(a=e,e=t,t=a),(l=c2(e,t,n))===0||!isFinite(l))return[];if(l>0){let s=Math.round(e/l),u=Math.round(t/l);for(s*l<e&&++s,u*l>t&&--u,o=new Array(a=u-s+1);++i<a;)o[i]=(s+i)*l}else{l=-l;let s=Math.round(e*l),u=Math.round(t*l);for(s/l<e&&++s,u/l>t&&--u,o=new Array(a=u-s+1);++i<a;)o[i]=(s+i)/l}return r&&o.reverse(),o}function c2(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=Zm?10:a>=Xm?5:a>=Jm?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Zm?10:a>=Xm?5:a>=Jm?2:1)}function e0(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Zm?i*=10:a>=Xm?i*=5:a>=Jm&&(i*=2),t<e?-i:i}function f2(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function d2(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function h2(e,t,n=0,r=e.length-1,i){for(i=i===void 0?u2:gU(i);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,c=Math.log(s),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(s-f)/s)*(u-s/2<0?-1:1),h=Math.max(n,Math.floor(t-u*f/s+d)),g=Math.min(r,Math.floor(t+(s-u)*f/s+d));h2(e,t,h,g,i)}const a=e[t];let o=n,l=r;for(Xl(e,n,t),i(e[r],a)>0&&Xl(e,n,r);o<l;){for(Xl(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?Xl(e,n,l):(++l,Xl(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Xl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function pU(e,t,n){if(e=Float64Array.from(cU(e,n)),!!(r=e.length)){if((t=+t)<=0||r<2)return d2(e);if(t>=1)return f2(e);var r,i=(r-1)*t,a=Math.floor(i),o=f2(h2(e,a).subarray(0,a+1)),l=d2(e.subarray(a+1));return o+(l-o)*(i-a)}}function vU(e,t,n=o2){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function yU(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=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function Fn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Yr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const t0=Symbol("implicit");function n0(){var e=new l2,t=[],n=[],r=t0;function i(a){let o=e.get(a);if(o===void 0){if(r!==t0)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new l2;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return n0(t,n).unknown(r)},Fn.apply(i,arguments),i}function r0(){var e=n0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,l=!1,s=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,h=i<r,g=h?i:r,p=h?r:i;a=(p-g)/Math.max(1,d-s+u*2),l&&(a=Math.floor(a)),g+=(p-g-a*(d-s))*c,o=a*(1-s),l&&(g=Math.round(g),o=Math.round(o));var y=yU(d).map(function(_){return g+a*_});return n(h?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([r,i]=d,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(d){return[r,i]=d,r=+r,i=+i,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(l=!!d,f()):l},e.padding=function(d){return arguments.length?(s=Math.min(1,u=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return r0(t(),[r,i]).round(l).paddingInner(s).paddingOuter(u).align(c)},Fn.apply(f(),arguments)}function m2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return m2(t())},e}function bU(){return m2(r0.apply(null,arguments).paddingInner(1))}function _U(e){return function(){return e}}function vc(e){return+e}var g2=[0,1];function Qt(e){return e}function i0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:_U(isNaN(t)?NaN:.5)}function xU(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function SU(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=i0(i,r),a=n(o,a)):(r=i0(r,i),a=n(a,o)),function(l){return a(r(l))}}function wU(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=i0(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var s=Zl(e,l,1,r)-1;return a[s](i[s](l))}}function Jl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yc(){var e=g2,t=g2,n=Sr,r,i,a,o=Qt,l,s,u;function c(){var d=Math.min(e.length,t.length);return o!==Qt&&(o=xU(e[0],e[d-1])),l=d>2?wU:SU,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=l(e.map(r),t,n)))(r(o(d)))}return f.invert=function(d){return o(i((u||(u=l(t,e.map(r),tc)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,vc),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=Wm,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Qt,c()):o!==Qt},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return r=d,i=h,c()}}function a0(){return yc()(Qt,Qt)}function OU(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function bc(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)]}function So(e){return e=bc(Math.abs(e)),e?e[1]:NaN}function CU(e,t){return function(n,r){for(var i=n.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(n.substring(i-=l,i+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function AU(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var TU=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ql(e){if(!(t=TU.exec(e)))throw new Error("invalid format: "+e);var t;return new o0({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]})}Ql.prototype=o0.prototype;function o0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}o0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function kU(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var p2;function EU(e,t){var n=bc(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(p2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+bc(e,Math.max(0,t+a-1))[0]}function v2(e,t){var n=bc(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")}const y2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:OU,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>v2(e*100,t),r:v2,s:EU,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function b2(e){return e}var _2=Array.prototype.map,x2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function PU(e){var t=e.grouping===void 0||e.thousands===void 0?b2:CU(_2.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?b2:AU(_2.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Ql(f);var d=f.fill,h=f.align,g=f.sign,p=f.symbol,y=f.zero,_=f.width,b=f.comma,S=f.precision,O=f.trim,w=f.type;w==="n"?(b=!0,w="g"):y2[w]||(S===void 0&&(S=12),O=!0,w="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var A=p==="$"?n:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",T=p==="$"?r:/[%p]/.test(w)?o:"",k=y2[w],j=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function N(M){var E=A,D=T,I,W,Z;if(w==="c")D=k(M)+D,M="";else{M=+M;var ne=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),S),O&&(M=kU(M)),ne&&+M==0&&g!=="+"&&(ne=!1),E=(ne?g==="("?g:l:g==="-"||g==="("?"":g)+E,D=(w==="s"?x2[8+p2/3]:"")+D+(ne&&g==="("?")":""),j){for(I=-1,W=M.length;++I<W;)if(Z=M.charCodeAt(I),48>Z||Z>57){D=(Z===46?i+M.slice(I+1):M.slice(I))+D,M=M.slice(0,I);break}}}b&&!y&&(M=t(M,1/0));var re=E.length+M.length+D.length,J=re<_?new Array(_-re+1).join(d):"";switch(b&&y&&(M=t(J+M,J.length?_-D.length:1/0),J=""),h){case"<":M=E+M+D+J;break;case"=":M=E+J+M+D;break;case"^":M=J.slice(0,re=J.length>>1)+E+M+D+J.slice(re);break;default:M=J+E+M+D;break}return a(M)}return N.toString=function(){return f+""},N}function c(f,d){var h=u((f=Ql(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(So(d)/3)))*3,p=Math.pow(10,-g),y=x2[8+g/3];return function(_){return h(p*_)+y}}return{format:u,formatPrefix:c}}var _c,l0,S2;jU({thousands:",",grouping:[3],currency:["$",""]});function jU(e){return _c=PU(e),l0=_c.format,S2=_c.formatPrefix,_c}function MU(e){return Math.max(0,-So(Math.abs(e)))}function DU(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(So(t)/3)))*3-So(Math.abs(e)))}function IU(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,So(t)-So(e))+1}function w2(e,t,n,r){var i=e0(e,t,n),a;switch(r=Ql(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=DU(i,o))&&(r.precision=a),S2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=IU(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=MU(i))&&(r.precision=a-(r.type==="%")*2);break}}return l0(r)}function Ei(e){var t=e.domain;return e.ticks=function(n){var r=t();return Qm(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return w2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],l=r[a],s,u,c=10;for(l<o&&(u=o,o=l,l=u,u=i,i=a,a=u);c-- >0;){if(u=c2(o,l,n),u===s)return r[i]=o,r[a]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function s0(){var e=a0();return e.copy=function(){return Jl(e,s0())},Fn.apply(e,arguments),Ei(e)}function O2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,vc),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return O2(e).unknown(t)},e=arguments.length?Array.from(e,vc):[0,1],Ei(n)}function C2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function A2(e){return Math.log(e)}function T2(e){return Math.exp(e)}function $U(e){return-Math.log(-e)}function LU(e){return-Math.exp(-e)}function FU(e){return isFinite(e)?+("1e"+e):e<0?0:e}function NU(e){return e===10?FU:e===Math.E?Math.exp:t=>Math.pow(e,t)}function BU(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function k2(e){return(t,n)=>-e(-t,n)}function u0(e){const t=e(A2,T2),n=t.domain;let r=10,i,a;function o(){return i=BU(r),a=NU(r),n()[0]<0?(i=k2(i),a=k2(a),e($U,LU)):e(A2,T2),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const s=n();let u=s[0],c=s[s.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),h=i(c),g,p;const y=l==null?10:+l;let _=[];if(!(r%1)&&h-d<y){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(g=1;g<r;++g)if(p=d<0?g/a(-d):g*a(d),!(p<u)){if(p>c)break;_.push(p)}}else for(;d<=h;++d)for(g=r-1;g>=1;--g)if(p=d>0?g/a(-d):g*a(d),!(p<u)){if(p>c)break;_.push(p)}_.length*2<y&&(_=Qm(u,c,y))}else _=Qm(d,h,Math.min(h-d,y)).map(a);return f?_.reverse():_},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=Ql(s)).precision==null&&(s.trim=!0),s=l0(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*r<r-.5&&(f*=r),f<=u?s(c):""}},t.nice=()=>n(C2(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function E2(){const e=u0(yc()).domain([1,10]);return e.copy=()=>Jl(e,E2()).base(e.base()),Fn.apply(e,arguments),e}function P2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function j2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function c0(e){var t=1,n=e(P2(t),j2(t));return n.constant=function(r){return arguments.length?e(P2(t=+r),j2(t)):t},Ei(n)}function M2(){var e=c0(yc());return e.copy=function(){return Jl(e,M2()).constant(e.constant())},Fn.apply(e,arguments)}function D2(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function RU(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function WU(e){return e<0?-e*e:e*e}function f0(e){var t=e(Qt,Qt),n=1;function r(){return n===1?e(Qt,Qt):n===.5?e(RU,WU):e(D2(n),D2(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Ei(t)}function d0(){var e=f0(yc());return e.copy=function(){return Jl(e,d0()).exponent(e.exponent())},Fn.apply(e,arguments),e}function zU(){return d0.apply(null,arguments).exponent(.5)}function I2(e){return Math.sign(e)*e*e}function VU(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function $2(){var e=a0(),t=[0,1],n=!1,r;function i(a){var o=VU(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(I2(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,vc)).map(I2)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return $2(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Fn.apply(i,arguments),Ei(i)}function L2(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=vU(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?r:t[Zl(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ki),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return L2().domain(e).range(t).unknown(r)},Fn.apply(a,arguments)}function F2(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Zl(r,s,0,n)]:a}function l(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(n=(i=Array.from(s)).length-1,l()):i.slice()},o.invertExtent=function(s){var u=i.indexOf(s);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return F2().domain([e,t]).range(i).unknown(a)},Fn.apply(Ei(o),arguments)}function N2(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Zl(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return N2().domain(e).range(t).unknown(n)},Fn.apply(i,arguments)}const h0=new Date,m0=new Date;function Et(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const s=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;let u;do s.push(u=new Date(+a)),t(a,l),e(a);while(u<a&&a<o);return s},i.filter=a=>Et(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(h0.setTime(+a),m0.setTime(+o),e(h0),e(m0),Math.floor(n(h0,m0))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const xc=Et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);xc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):xc),xc.range;const Kr=1e3,Nn=Kr*60,Zr=Nn*60,Xr=Zr*24,g0=Xr*7,B2=Xr*30,p0=Xr*365,ua=Et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Kr)},(e,t)=>(t-e)/Kr,e=>e.getUTCSeconds());ua.range;const v0=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Kr)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getMinutes());v0.range;const y0=Et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getUTCMinutes());y0.range;const b0=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Kr-e.getMinutes()*Nn)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getHours());b0.range;const _0=Et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getUTCHours());_0.range;const es=Et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nn)/Xr,e=>e.getDate()-1);es.range;const Sc=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Xr,e=>e.getUTCDate()-1);Sc.range;const R2=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Xr,e=>Math.floor(e/Xr));R2.range;function ca(e){return Et(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nn)/g0)}const wc=ca(0),Oc=ca(1),UU=ca(2),HU=ca(3),wo=ca(4),qU=ca(5),GU=ca(6);wc.range,Oc.range,UU.range,HU.range,wo.range,qU.range,GU.range;function fa(e){return Et(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/g0)}const Cc=fa(0),Ac=fa(1),YU=fa(2),KU=fa(3),Oo=fa(4),ZU=fa(5),XU=fa(6);Cc.range,Ac.range,YU.range,KU.range,Oo.range,ZU.range,XU.range;const x0=Et(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());x0.range;const S0=Et(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());S0.range;const Jr=Et(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Jr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Jr.range;const Qr=Et(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Qr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Qr.range;function W2(e,t,n,r,i,a){const o=[[ua,1,Kr],[ua,5,5*Kr],[ua,15,15*Kr],[ua,30,30*Kr],[a,1,Nn],[a,5,5*Nn],[a,15,15*Nn],[a,30,30*Nn],[i,1,Zr],[i,3,3*Zr],[i,6,6*Zr],[i,12,12*Zr],[r,1,Xr],[r,2,2*Xr],[n,1,g0],[t,1,B2],[t,3,3*B2],[e,1,p0]];function l(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const h=f&&typeof f.range=="function"?f:s(u,c,f),g=h?h.range(u,+c+1):[];return d?g.reverse():g}function s(u,c,f){const d=Math.abs(c-u)/f,h=Km(([,,y])=>y).right(o,d);if(h===o.length)return e.every(e0(u/p0,c/p0,f));if(h===0)return xc.every(Math.max(e0(u,c,f),1));const[g,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return g.every(p)}return[l,s]}const[JU,QU]=W2(Qr,S0,Cc,R2,_0,y0),[eH,tH]=W2(Jr,x0,wc,es,b0,v0);function w0(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 O0(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 ts(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function nH(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=ns(i),c=rs(i),f=ns(a),d=rs(a),h=ns(o),g=rs(o),p=ns(l),y=rs(l),_=ns(s),b=rs(s),S={a:ne,A:re,b:J,B:z,c:null,d:G2,e:G2,f:CH,g:$H,G:FH,H:SH,I:wH,j:OH,L:Y2,m:AH,M:TH,p:X,q:H,Q:eS,s:tS,S:kH,u:EH,U:PH,V:jH,w:MH,W:DH,x:null,X:null,y:IH,Y:LH,Z:NH,"%":Q2},O={a:Y,A:G,b:ie,B,c:null,d:Z2,e:Z2,f:zH,g:JH,G:eq,H:BH,I:RH,j:WH,L:X2,m:VH,M:UH,p:se,q:K,Q:eS,s:tS,S:HH,u:qH,U:GH,V:YH,w:KH,W:ZH,x:null,X:null,y:XH,Y:QH,Z:tq,"%":Q2},w={a:N,A:M,b:E,B:D,c:I,d:H2,e:H2,f:yH,g:U2,G:V2,H:q2,I:q2,j:mH,L:vH,m:hH,M:gH,p:j,q:dH,Q:_H,s:xH,S:pH,u:lH,U:sH,V:uH,w:oH,W:cH,x:W,X:Z,y:U2,Y:V2,Z:fH,"%":bH};S.x=A(n,S),S.X=A(r,S),S.c=A(t,S),O.x=A(n,O),O.X=A(r,O),O.c=A(t,O);function A(Q,te){return function(ue){var $=[],xe=-1,Se=0,be=Q.length,ge,P,V;for(ue instanceof Date||(ue=new Date(+ue));++xe<be;)Q.charCodeAt(xe)===37&&($.push(Q.slice(Se,xe)),(P=z2[ge=Q.charAt(++xe)])!=null?ge=Q.charAt(++xe):P=ge==="e"?" ":"0",(V=te[ge])&&(ge=V(ue,P)),$.push(ge),Se=xe+1);return $.push(Q.slice(Se,xe)),$.join("")}}function T(Q,te){return function(ue){var $=ts(1900,void 0,1),xe=k($,Q,ue+="",0),Se,be;if(xe!=ue.length)return null;if("Q"in $)return new Date($.Q);if("s"in $)return new Date($.s*1e3+("L"in $?$.L:0));if(te&&!("Z"in $)&&($.Z=0),"p"in $&&($.H=$.H%12+$.p*12),$.m===void 0&&($.m="q"in $?$.q:0),"V"in $){if($.V<1||$.V>53)return null;"w"in $||($.w=1),"Z"in $?(Se=O0(ts($.y,0,1)),be=Se.getUTCDay(),Se=be>4||be===0?Ac.ceil(Se):Ac(Se),Se=Sc.offset(Se,($.V-1)*7),$.y=Se.getUTCFullYear(),$.m=Se.getUTCMonth(),$.d=Se.getUTCDate()+($.w+6)%7):(Se=w0(ts($.y,0,1)),be=Se.getDay(),Se=be>4||be===0?Oc.ceil(Se):Oc(Se),Se=es.offset(Se,($.V-1)*7),$.y=Se.getFullYear(),$.m=Se.getMonth(),$.d=Se.getDate()+($.w+6)%7)}else("W"in $||"U"in $)&&("w"in $||($.w="u"in $?$.u%7:"W"in $?1:0),be="Z"in $?O0(ts($.y,0,1)).getUTCDay():w0(ts($.y,0,1)).getDay(),$.m=0,$.d="W"in $?($.w+6)%7+$.W*7-(be+5)%7:$.w+$.U*7-(be+6)%7);return"Z"in $?($.H+=$.Z/100|0,$.M+=$.Z%100,O0($)):w0($)}}function k(Q,te,ue,$){for(var xe=0,Se=te.length,be=ue.length,ge,P;xe<Se;){if($>=be)return-1;if(ge=te.charCodeAt(xe++),ge===37){if(ge=te.charAt(xe++),P=w[ge in z2?te.charAt(xe++):ge],!P||($=P(Q,ue,$))<0)return-1}else if(ge!=ue.charCodeAt($++))return-1}return $}function j(Q,te,ue){var $=u.exec(te.slice(ue));return $?(Q.p=c.get($[0].toLowerCase()),ue+$[0].length):-1}function N(Q,te,ue){var $=h.exec(te.slice(ue));return $?(Q.w=g.get($[0].toLowerCase()),ue+$[0].length):-1}function M(Q,te,ue){var $=f.exec(te.slice(ue));return $?(Q.w=d.get($[0].toLowerCase()),ue+$[0].length):-1}function E(Q,te,ue){var $=_.exec(te.slice(ue));return $?(Q.m=b.get($[0].toLowerCase()),ue+$[0].length):-1}function D(Q,te,ue){var $=p.exec(te.slice(ue));return $?(Q.m=y.get($[0].toLowerCase()),ue+$[0].length):-1}function I(Q,te,ue){return k(Q,t,te,ue)}function W(Q,te,ue){return k(Q,n,te,ue)}function Z(Q,te,ue){return k(Q,r,te,ue)}function ne(Q){return o[Q.getDay()]}function re(Q){return a[Q.getDay()]}function J(Q){return s[Q.getMonth()]}function z(Q){return l[Q.getMonth()]}function X(Q){return i[+(Q.getHours()>=12)]}function H(Q){return 1+~~(Q.getMonth()/3)}function Y(Q){return o[Q.getUTCDay()]}function G(Q){return a[Q.getUTCDay()]}function ie(Q){return s[Q.getUTCMonth()]}function B(Q){return l[Q.getUTCMonth()]}function se(Q){return i[+(Q.getUTCHours()>=12)]}function K(Q){return 1+~~(Q.getUTCMonth()/3)}return{format:function(Q){var te=A(Q+="",S);return te.toString=function(){return Q},te},parse:function(Q){var te=T(Q+="",!1);return te.toString=function(){return Q},te},utcFormat:function(Q){var te=A(Q+="",O);return te.toString=function(){return Q},te},utcParse:function(Q){var te=T(Q+="",!0);return te.toString=function(){return Q},te}}}var z2={"-":"",_:" ",0:"0"},Nt=/^\s*\d+/,rH=/^%/,iH=/[\\^$*+?|[\]().{}]/g;function We(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function aH(e){return e.replace(iH,"\\$&")}function ns(e){return new RegExp("^(?:"+e.map(aH).join("|")+")","i")}function rs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function oH(e,t,n){var r=Nt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function lH(e,t,n){var r=Nt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function sH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function uH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function cH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function V2(e,t,n){var r=Nt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function U2(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function fH(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 dH(e,t,n){var r=Nt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function hH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function H2(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function mH(e,t,n){var r=Nt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function q2(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function gH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function pH(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function vH(e,t,n){var r=Nt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function yH(e,t,n){var r=Nt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function bH(e,t,n){var r=rH.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _H(e,t,n){var r=Nt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xH(e,t,n){var r=Nt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function G2(e,t){return We(e.getDate(),t,2)}function SH(e,t){return We(e.getHours(),t,2)}function wH(e,t){return We(e.getHours()%12||12,t,2)}function OH(e,t){return We(1+es.count(Jr(e),e),t,3)}function Y2(e,t){return We(e.getMilliseconds(),t,3)}function CH(e,t){return Y2(e,t)+"000"}function AH(e,t){return We(e.getMonth()+1,t,2)}function TH(e,t){return We(e.getMinutes(),t,2)}function kH(e,t){return We(e.getSeconds(),t,2)}function EH(e){var t=e.getDay();return t===0?7:t}function PH(e,t){return We(wc.count(Jr(e)-1,e),t,2)}function K2(e){var t=e.getDay();return t>=4||t===0?wo(e):wo.ceil(e)}function jH(e,t){return e=K2(e),We(wo.count(Jr(e),e)+(Jr(e).getDay()===4),t,2)}function MH(e){return e.getDay()}function DH(e,t){return We(Oc.count(Jr(e)-1,e),t,2)}function IH(e,t){return We(e.getFullYear()%100,t,2)}function $H(e,t){return e=K2(e),We(e.getFullYear()%100,t,2)}function LH(e,t){return We(e.getFullYear()%1e4,t,4)}function FH(e,t){var n=e.getDay();return e=n>=4||n===0?wo(e):wo.ceil(e),We(e.getFullYear()%1e4,t,4)}function NH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+We(t/60|0,"0",2)+We(t%60,"0",2)}function Z2(e,t){return We(e.getUTCDate(),t,2)}function BH(e,t){return We(e.getUTCHours(),t,2)}function RH(e,t){return We(e.getUTCHours()%12||12,t,2)}function WH(e,t){return We(1+Sc.count(Qr(e),e),t,3)}function X2(e,t){return We(e.getUTCMilliseconds(),t,3)}function zH(e,t){return X2(e,t)+"000"}function VH(e,t){return We(e.getUTCMonth()+1,t,2)}function UH(e,t){return We(e.getUTCMinutes(),t,2)}function HH(e,t){return We(e.getUTCSeconds(),t,2)}function qH(e){var t=e.getUTCDay();return t===0?7:t}function GH(e,t){return We(Cc.count(Qr(e)-1,e),t,2)}function J2(e){var t=e.getUTCDay();return t>=4||t===0?Oo(e):Oo.ceil(e)}function YH(e,t){return e=J2(e),We(Oo.count(Qr(e),e)+(Qr(e).getUTCDay()===4),t,2)}function KH(e){return e.getUTCDay()}function ZH(e,t){return We(Ac.count(Qr(e)-1,e),t,2)}function XH(e,t){return We(e.getUTCFullYear()%100,t,2)}function JH(e,t){return e=J2(e),We(e.getUTCFullYear()%100,t,2)}function QH(e,t){return We(e.getUTCFullYear()%1e4,t,4)}function eq(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Oo(e):Oo.ceil(e),We(e.getUTCFullYear()%1e4,t,4)}function tq(){return"+0000"}function Q2(){return"%"}function eS(e){return+e}function tS(e){return Math.floor(+e/1e3)}var Co,nS,rS;nq({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"]});function nq(e){return Co=nH(e),nS=Co.format,Co.parse,rS=Co.utcFormat,Co.utcParse,Co}function rq(e){return new Date(e)}function iq(e){return e instanceof Date?+e:+new Date(+e)}function C0(e,t,n,r,i,a,o,l,s,u){var c=a0(),f=c.invert,d=c.domain,h=u(".%L"),g=u(":%S"),p=u("%I:%M"),y=u("%I %p"),_=u("%a %d"),b=u("%b %d"),S=u("%B"),O=u("%Y");function w(A){return(s(A)<A?h:l(A)<A?g:o(A)<A?p:a(A)<A?y:r(A)<A?i(A)<A?_:b:n(A)<A?S:O)(A)}return c.invert=function(A){return new Date(f(A))},c.domain=function(A){return arguments.length?d(Array.from(A,iq)):d().map(rq)},c.ticks=function(A){var T=d();return e(T[0],T[T.length-1],A??10)},c.tickFormat=function(A,T){return T==null?w:u(T)},c.nice=function(A){var T=d();return(!A||typeof A.range!="function")&&(A=t(T[0],T[T.length-1],A??10)),A?d(C2(T,A)):c},c.copy=function(){return Jl(c,C0(e,t,n,r,i,a,o,l,s,u))},c}function aq(){return Fn.apply(C0(eH,tH,Jr,x0,wc,es,b0,v0,ua,nS).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function oq(){return Fn.apply(C0(JU,QU,Qr,S0,Cc,Sc,_0,y0,ua,rS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Tc(){var e=0,t=1,n,r,i,a,o=Qt,l=!1,s;function u(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-n)*i,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var h,g;return arguments.length?([h,g]=d,o=f(h,g),u):[o(0),o(1)]}}return u.range=c(Sr),u.rangeRound=c(Wm),u.unknown=function(f){return arguments.length?(s=f,u):s},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),u}}function Pi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function iS(){var e=Ei(Tc()(Qt));return e.copy=function(){return Pi(e,iS())},Yr.apply(e,arguments)}function aS(){var e=u0(Tc()).domain([1,10]);return e.copy=function(){return Pi(e,aS()).base(e.base())},Yr.apply(e,arguments)}function oS(){var e=c0(Tc());return e.copy=function(){return Pi(e,oS()).constant(e.constant())},Yr.apply(e,arguments)}function A0(){var e=f0(Tc());return e.copy=function(){return Pi(e,A0()).exponent(e.exponent())},Yr.apply(e,arguments)}function lq(){return A0.apply(null,arguments).exponent(.5)}function lS(){var e=[],t=Qt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Zl(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ki),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>pU(e,a/r))},n.copy=function(){return lS(t).domain(e)},Yr.apply(n,arguments)}function kc(){var e=0,t=.5,n=1,r=1,i,a,o,l,s,u=Qt,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-a)*(r*p<r*a?l:s),u(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,n]=p,i=c(e=+e),a=c(t=+t),o=c(n=+n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,h):[e,t,n]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(u=p,h):u};function g(p){return function(y){var _,b,S;return arguments.length?([_,b,S]=y,u=kW(p,[_,b,S]),h):[u(0),u(.5),u(1)]}}return h.range=g(Sr),h.rangeRound=g(Wm),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return c=p,i=p(e),a=p(t),o=p(n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,h}}function sS(){var e=Ei(kc()(Qt));return e.copy=function(){return Pi(e,sS())},Yr.apply(e,arguments)}function uS(){var e=u0(kc()).domain([.1,1,10]);return e.copy=function(){return Pi(e,uS()).base(e.base())},Yr.apply(e,arguments)}function cS(){var e=c0(kc());return e.copy=function(){return Pi(e,cS()).constant(e.constant())},Yr.apply(e,arguments)}function T0(){var e=f0(kc());return e.copy=function(){return Pi(e,T0()).exponent(e.exponent())},Yr.apply(e,arguments)}function sq(){return T0.apply(null,arguments).exponent(.5)}const uq=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:r0,scaleDiverging:sS,scaleDivergingLog:uS,scaleDivergingPow:T0,scaleDivergingSqrt:sq,scaleDivergingSymlog:cS,scaleIdentity:O2,scaleImplicit:t0,scaleLinear:s0,scaleLog:E2,scaleOrdinal:n0,scalePoint:bU,scalePow:d0,scaleQuantile:L2,scaleQuantize:F2,scaleRadial:$2,scaleSequential:iS,scaleSequentialLog:aS,scaleSequentialPow:A0,scaleSequentialQuantile:lS,scaleSequentialSqrt:lq,scaleSequentialSymlog:oS,scaleSqrt:zU,scaleSymlog:M2,scaleThreshold:N2,scaleTime:aq,scaleUtc:oq,tickFormat:w2},Symbol.toStringTag,{value:"Module"}));var cq=["linear","time","log","sqrt"];function fq(e){var t=function(n){return n&&n[0].toUpperCase()+n.slice(1)};return"scale".concat(t(e))}function k0(e){return typeof e=="function"?Oe(e.copy)&&Oe(e.domain)&&Oe(e.range):typeof e=="string"?qr(cq,e):!1}function fS(e,t){if(e.scale){if(e.scale.x||e.scale.y)return!!e.scale[t]}else return!1;return!0}function dq(e,t){if(fS(e,t)){var n=e.scale[t]||e.scale;return typeof n=="string"?n:hS(n)}}function hq(e,t){var n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),!!n)return $n(n)?"time":"linear"}function dS(e,t){if(!e.data)return"linear";var n=mc(e[t]),r=e.data.map(function(i){var a=Qe(n(i))?n(i)[t]:n(i);return a!==void 0?a:i[t]});return $n(r)?"time":"linear"}function is(e){if(k0(e)){var t=fq(e);return uq[t]()}return s0()}function Bn(e,t){var n=as(e,t);if(n)return typeof n=="string"?is(n):n;var r=hq(e,t)||dS(e,t);return is(r)}function as(e,t){if(fS(e,t)){var n=e.scale[t]||e.scale;if(k0(n))return Oe(n)?n:is(n)}}function Ec(e,t){return dq(e,t)||dS(e,t)}var mq=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function hS(e){if(typeof e=="string")return e;var t=mq.filter(function(n){return e[n.method]!==void 0})[0];return t?t.name:void 0}function gq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ei=function(e){var t=function(r){return function(i,a,o){var l=i[a];if(l==null)return r?new Error("Required `".concat(a,"` was not specified in `").concat(o,"`.")):null;for(var s=arguments.length,u=new Array(s>3?s-3:0),c=3;c<s;c++)u[c-3]=arguments[c];return e.apply(void 0,[i,a,o].concat(u))}},n=Object.assign(t(!1),{isRequired:t(!0)});return n},pq=function(){return null},vq=function(){},mS=function(e){return e===void 0?vq:e===null?pq:e.constructor},gS=function(e){return e===void 0?"undefined":e===null?"null":Object.prototype.toString.call(e).slice(8,-1)};function pS(e,t){return function(n,r,i){var a=n[r];return a!=null&&bo('"'.concat(r,'" property of "').concat(i,'" has been deprecated ').concat(t)),m.checkPropTypes(gq({},r,e),n,r,i),null}}function ct(e){return ei(function(t,n,r){for(var i=arguments.length,a=new Array(i>3?i-3:0),o=3;o<i;o++)a[o-3]=arguments[o];return e.reduce(function(l,s){return l||s.apply(void 0,[t,n,r].concat(a))},null)})}var _e=ei(function(e,t,n){var r=e[t];return typeof r!="number"||r<0?new Error("`".concat(t,"` in `").concat(n,"` must be a non-negative number.")):null}),ut=ei(function(e,t,n){var r=e[t];return typeof r!="number"||r%1!==0?new Error("`".concat(t,"` in `").concat(n,"` must be an integer.")):null}),vS=ei(function(e,t,n){var r=e[t];return typeof r!="number"||r<=0?new Error("`".concat(t,"` in `").concat(n,"` must be a number greater than zero.")):null}),ji=ei(function(e,t,n){var r=e[t];return!Array.isArray(r)||r.length!==2||r[1]===r[0]?new Error("`".concat(t,"` in `").concat(n,"` must be an array of two unique numeric values.")):null}),Or=ei(function(e,t,n){var r=e[t];return k0(r)?null:new Error("`".concat(t,"` in `").concat(n,"` must be a d3 scale."))}),Pc=ei(function(e,t,n){var r=e[t];if(!Array.isArray(r))return new Error("`".concat(t,"` in `").concat(n,"` must be an array."));if(r.length<2)return null;var i=mS(r[0]),a=Yz(r,function(s){return i!==mS(s)});if(a){var o=gS(r[0]),l=gS(a);return new Error("Expected `".concat(t,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(o,"` and ")+"`".concat(l,"`."))}return null});ei(function(e,t){return e[t]&&Array.isArray(e[t])&&e[t].length!==e.data.length?new Error("Length of data and ".concat(t," arrays must match.")):null});var yq=ei(function(e,t,n){return e[t]&&!B5(e[t])?new Error("`".concat(t,"` in `").concat(n,"` must be a regular expression.")):null});function bq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _q(e,t,n){return t&&yS(e.prototype,t),n&&yS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E0(e,t)}function E0(e,t){return E0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},E0(e,t)}function Sq(e){var t=Cq();return function(){var r=jc(e),i;if(t){var a=jc(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return wq(this,i)}}function wq(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oq(e)}function Oq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cq(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jc(e){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jc(e)}var P0=function(e){xq(n,e);var t=Sq(n);function n(r){var i;return bq(this,n),i=t.call(this,r),i.map=void 0,i.index=void 0,i.portalRegister=function(){return++i.index},i.portalUpdate=function(a,o){i.map[a]=o,i.forceUpdate()},i.portalDeregister=function(a){delete i.map[a],i.forceUpdate()},i.map={},i.index=1,i}return _q(n,[{key:"getChildren",value:function(){var i=this;return Ke(this.map).map(function(a){var o=i.map[a];return o&&x.cloneElement(o,{key:a})})}},{key:"render",value:function(){return x.createElement("svg",this.props,this.getChildren())}}]),n}(x.Component);P0.displayName="Portal",P0.propTypes={className:m.string,height:_e,style:m.object,viewBox:m.string,width:_e};var j0=x.createContext({});j0.displayName="PortalContext";function bS(e,t){return Eq(e)||kq(e,t)||Tq(e,t)||Aq()}function Aq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
136
136
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tq(e,t){if(e){if(typeof e=="string")return _S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _S(e,t)}}function _S(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function Eq(e){if(Array.isArray(e))return e}function xS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xS(Object(n),!0).forEach(function(r){jq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SS={startsWith:["data-","aria-"],exactMatch:[]},Mq=function(e){var t=!1;return SS.startsWith.forEach(function(n){var r=new RegExp("\\b(".concat(n,")(\\w|-)+"),"g");r.test(e)&&(t=!0)}),t},Dq=function(e){return SS.exactMatch.includes(e)},Iq=function(e){return!!(Mq(e)||Dq(e))},$q=function(e,t){return typeof e=="function"?e(t):e},or=function(e){var t=Pq({},e);return Object.fromEntries(Object.entries(t).filter(function(n){var r=bS(n,1),i=r[0];return Iq(i)}).map(function(n){var r=bS(n,2),i=r[0],a=r[1];return[i,$q(a,e)]}))},Mc=function(e,t){return F.cloneElement(e,or(t))};function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(this,arguments)}function wS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wS(Object(n),!0).forEach(function(r){Lq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nq(e,t,n){return t&&OS(e.prototype,t),n&&OS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M0(e,t)}function M0(e,t){return M0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},M0(e,t)}function Rq(e){var t=Vq();return function(){var r=Ic(e),i;if(t){var a=Ic(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Wq(this,i)}}function Wq(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zq(e)}function zq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vq(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ic(e){return Ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ic(e)}var ze=function(e){Bq(n,e);var t=Rq(n);function n(r){var i;return Fq(this,n),i=t.call(this,r),i.containerId=void 0,i.portalRef=void 0,i.containerRef=void 0,i.shouldHandleWheel=void 0,i.savePortalRef=function(a){return i.portalRef=a,a},i.portalUpdate=function(a,o){return i.portalRef.portalUpdate(a,o)},i.portalRegister=function(){return i.portalRef.portalRegister()},i.portalDeregister=function(a){return i.portalRef.portalDeregister(a)},i.saveContainerRef=function(a){return Oe(i.props.containerRef)&&i.props.containerRef(a),i.containerRef=a,a},i.handleWheel=function(a){return a.preventDefault()},i.containerId=!lo(r)||r.containerId===void 0?cc("victory-container-"):r.containerId,i.shouldHandleWheel=!!(r&&r.events&&r.events.onWheel),i}return Nq(n,[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(i){return"".concat(this.containerId,"-").concat(i)}},{key:"getChildren",value:function(i){return i.children}},{key:"getOUIAProps",value:function(i){var a=i.ouiaId,o=i.ouiaSafe,l=i.ouiaType;return Ao(Ao(Ao({},a&&{"data-ouia-component-id":a}),l&&{"data-ouia-component-type":l}),o!==void 0&&{"data-ouia-safe":o})}},{key:"renderContainer",value:function(i,a,o){var l=i.title,s=i.desc,u=i.portalComponent,c=i.className,f=i.width,d=i.height,h=i.portalZIndex,g=i.responsive,p=this.getChildren(i),y=g?{width:"100%",height:"100%"}:{width:f,height:d},_=R({pointerEvents:"none",touchAction:"none",position:"relative"},y),b=R({zIndex:h,position:"absolute",top:0,left:0},y),S=R({pointerEvents:"all"},y),O=R({overflow:"visible"},y),w={width:f,height:d,viewBox:a.viewBox,preserveAspectRatio:a.preserveAspectRatio,style:O};return x.createElement(j0.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},x.createElement("div",Dc({style:ae({},o,_),className:c,ref:this.saveContainerRef},this.getOUIAProps(i)),x.createElement("svg",Dc({},a,{style:S}),l?x.createElement("title",{id:this.getIdForElement("title")},l):null,s?x.createElement("desc",{id:this.getIdForElement("desc")},s):null,p),x.createElement("div",{style:b},x.cloneElement(u,Ao(Ao({},w),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var i=this.props,a=i.width,o=i.height,l=i.responsive,s=i.events,u=i.title,c=i.desc,f=i.tabIndex,d=i.preserveAspectRatio,h=i.role,g=l?this.props.style:_o(this.props.style,["height","width"]),p=or(this.props),y=R(Ao({width:a,height:o,tabIndex:f,role:h,"aria-labelledby":[u&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[c&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:l?"0 0 ".concat(a," ").concat(o):void 0,preserveAspectRatio:l?d:void 0},p),s);return this.renderContainer(this.props,y,g)}}]),n}(x.Component);ze.displayName="VictoryContainer",ze.role="container",ze.propTypes={"aria-describedby":m.string,"aria-labelledby":m.string,children:m.oneOfType([m.arrayOf(m.node),m.node]),className:m.string,containerId:m.oneOfType([m.number,m.string]),containerRef:m.func,desc:m.string,events:m.object,height:_e,name:m.string,origin:m.shape({x:_e,y:_e}),ouiaId:m.oneOfType([m.number,m.string]),ouiaSafe:m.bool,ouiaType:m.string,polar:m.bool,portalComponent:m.element,portalZIndex:ut,preserveAspectRatio:m.string,responsive:m.bool,role:m.string,style:m.object,tabIndex:m.number,theme:m.object,title:m.string,width:_e},ze.defaultProps={className:"VictoryContainer",portalComponent:x.createElement(P0,null),portalZIndex:99,responsive:!0,role:"img"},ze.contextType=lc;function Uq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hq(e,t,n){return t&&CS(e.prototype,t),n&&CS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D0(e,t)}function D0(e,t){return D0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},D0(e,t)}function Gq(e){var t=Zq();return function(){var r=$c(e),i;if(t){var a=$c(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Yq(this,i)}}function Yq(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kq(e)}function Kq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zq(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $c(e){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$c(e)}var ti=function(e){qq(n,e);var t=Gq(n);function n(){var r;Uq(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),r.checkedContext=void 0,r.renderInPlace=void 0,r.element=void 0,r.portalKey=void 0,r}return Hq(n,[{key:"componentDidMount",value:function(){if(!this.checkedContext){if(typeof this.context.portalUpdate!="function"){var i="`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place";bo(i),this.renderInPlace=!0}this.checkedContext=!0}this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(i){return this.renderInPlace?i:(this.element=i,null)}},{key:"render",value:function(){var i=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,a=this.props.groupComponent,o=i&&i.props||{},l=o.groupComponent?{groupComponent:a,standalone:!1}:{},s=ae(l,o,_o(this.props,["children","groupComponent"])),u=i&&x.cloneElement(i,s);return this.renderPortal(u)}}]),n}(x.Component);ti.displayName="VictoryPortal",ti.role="portal",ti.propTypes={children:m.node,groupComponent:m.element},ti.defaultProps={groupComponent:x.createElement("g",null)},ti.contextType=j0;var Xq=["desc"];function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lc.apply(this,arguments)}function Jq(e,t){if(e==null)return{};var n=Qq(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qq(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var da=function(e){var t=e.desc,n=Jq(e,Xq);return t?x.createElement("rect",Lc({vectorEffect:"non-scaling-stroke"},n),x.createElement("desc",null,t)):x.createElement("rect",Lc({vectorEffect:"non-scaling-stroke"},n))},eG=["children","title","desc"];function tG(e,t){if(e==null)return{};var n=nG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nG(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var AS=function(e){var t=e.children,n=e.title,r=e.desc,i=tG(e,eG);return x.createElement("text",i,n&&x.createElement("title",null,n),r&&x.createElement("desc",null,r),t)};AS.propTypes={children:m.node,desc:m.string,title:m.string};var rG=function(e){return x.createElement("tspan",e)};function iG(e,t){t=t||{};var n=t._y>=0?1:-1,r=e.style&&e.style.labels||{};return t.verticalAnchor||r.verticalAnchor?t.verticalAnchor||r.verticalAnchor:e.horizontal?"middle":n>=0?"end":"start"}function aG(e,t){t=t||{};var n=e.style,r=e.horizontal,i=t._y>=0?1:-1,a=n&&n.labels||{};return t.verticalAnchor||a.verticalAnchor?t.verticalAnchor||a.verticalAnchor:r?i>=0?"start":"end":"middle"}function oG(e,t){t=t||{};var n=e.style&&e.style.labels||{};return t.angle===void 0?n.angle:t.angle}function lG(e,t){t=t||{};var n=e.horizontal,r=e.style,i=r.labels||{},a=fe(i.padding,e)||0,o=t._y<0?-1:1;return{x:n?o*a:0,y:n?0:-1*o*a}}function sG(e,t){if(e.polar)return{};var n=lG(e,t);return{dx:n.x,dy:n.y}}function uG(e,t){var n=e.polar,r=xo(e,t),i=r.x,a=r.y;if(!n)return{x:i,y:a};var o=cG(e,t);return{x:i+o.x,y:a+o.y}}function cG(e,t){var n=e.style,r=os(e,t),i=n.labels||{},a=fe(i.padding,e)||0,o=st(r);return{x:a*Math.cos(o),y:-a*Math.sin(o)}}function I0(e){var t=e.labelComponent,n=e.labelPlacement,r=e.polar,i=r?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||i}function fG(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}function Fc(e,t,n){return t=t||{},t.label!==void 0?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function $0(e,t){var n=I0(e);return n==="perpendicular"||n==="vertical"&&(t===90||t===270)?"middle":t<=90||t>270?"start":"end"}function TS(e,t){var n=I0(e),r=fG(t);return n==="parallel"||r==="left"||r==="right"?"middle":r==="top"?"end":"start"}function L0(e,t){var n=e.labelPlacement,r=e.datum;if(!n||n==="vertical")return 0;var i=t!==void 0?t%360:os(e,r),a=i>90&&i<180||i>270?1:-1,o=0;i===0||i===180?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i);var l=n==="perpendicular"?0:90;return o+a*l}function os(e,t){var n=Gm(t),r=n.x;return Gr(e.scale.x(r))%360}function F0(e,t){var n=e.scale,r=e.data,i=e.style,a=e.horizontal,o=e.polar,l=e.width,s=e.height,u=e.theme,c=e.labelComponent,f=e.disableInlineStyles,d=r[t],h=os(e,d),g=o?$0(e,h):aG(e,d),p=o?TS(e,h):iG(e,d),y=oG(e,d),_=Fc(e,d,t),b=I0(e),S=uG(e,d),O=S.x,w=S.y,A=sG(e,d),T=A.dx,k=A.dy,j={angle:y,data:r,datum:d,disableInlineStyles:f,horizontal:a,index:t,polar:o,scale:n,labelPlacement:b,text:_,textAnchor:g,verticalAnchor:p,x:O,y:w,dx:T,dy:k,width:l,height:s,style:i.labels};if(!dc(c))return j;var N=u&&u.tooltip||{};return ae({},j,_o(N,["style"]))}var N0=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce(function(l,s){return[l,N0(s)].join(" ")},N0(e)).trim();if(e==null||typeof e=="string")return e;var i=[];for(var a in e)if(e.hasOwnProperty(a)){var o=e[a];i.push("".concat(a,"(").concat(o,")"))}return i.join(" ").trim()};function B0(e){var t={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return e?t[e]:t.grayscale}function dG(e,t){return gG(e)||mG(e,t)||kS(e,t)||hG()}function hG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
137
137
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function gG(e){if(Array.isArray(e))return e}function pG(e){return bG(e)||yG(e)||kS(e)||vG()}function vG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
138
138
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kS(e,t){if(e){if(typeof e=="string")return R0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R0(e,t)}}function yG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bG(e){if(Array.isArray(e))return R0(e)}function R0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ES={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},PS={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},jS={em:1,ex:.5},MS={heightOverlapCoef:1.05,lineCapitalCoef:1.15},DS={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},_G=function(e){return e*Math.PI/180},xG=function(e){var t=e.split(",").map(function(r){return r.replace(/'|"/g,"")}),n=t.find(function(r){return ES[r]})||"Helvetica";return ES[n]},W0=function(e){return Array.isArray(e)?e:e.toString().split(/\r\n|\r|\n/g)},Nc=function(e,t,n){var r=_G(n);return Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t)},z0=function(e,t){var n,r=(n=e.match(/[a-zA-Z%]+/))===null||n===void 0?void 0:n[0],i=Number(e.match(/[0-9.,]+/)),a;return r?PS.hasOwnProperty(r)?a=i*PS[r]:jS.hasOwnProperty(r)?a=(t?i*t:i*DS.fontSize)*jS[r]:a=i:a=i||0,a},V0=function(e,t){var n=Array.isArray(e)?e[t]:e,r=ae({},n,DS);return R({},r,{fontFamily:r.fontFamily,letterSpacing:typeof r.letterSpacing=="number"?r.letterSpacing:z0(String(r.letterSpacing),r.fontSize),fontSize:typeof r.fontSize=="number"?r.fontSize:z0(String(r.fontSize))})},SG=function(e,t){if(e===void 0||e===""||e===null)return 0;var n=W0(e).map(function(r,i){var a=r.toString().length,o=V0(t,i),l=o.fontSize,s=o.letterSpacing,u=o.fontFamily,c=xG(u),f=r.toString().split("").map(function(d){return d.charCodeAt(0)<c.widths.length?c.widths[d.charCodeAt(0)]:c.avg}).reduce(function(d,h){return h+d},0)*l;return f+s*Math.max(a-1,0)});return Math.max.apply(Math,pG(n))},wG=function(e,t){return e===void 0||e===""||e===null?0:W0(e).reduce(function(n,r,i){var a=V0(t,i),o=r.toString().match(/[(A-Z)(0-9)]/),l=o?a.fontSize*MS.lineCapitalCoef:a.fontSize;return n+a.lineHeight*l},0)},OG=function(e,t){var n=Array.isArray(t)?t[0]&&t[0].angle:t&&t.angle,r=wG(e,t),i=SG(e,t),a=n?Nc(i,r,n):i,o=n?Nc(r,i,n):r;return{width:a,height:o*MS.heightOverlapCoef}},CG=M1(function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("xlink","http://www.w3.org/1999/xlink"),e.setAttribute("width","300"),e.setAttribute("height","300"),e.setAttribute("viewBox","0 0 300 300");var t=document.createElementNS("http://www.w3.org/2000/svg","text");return e.appendChild(t),e.style.position="fixed",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e),t}),IS=function(e){return e?"".concat(e.angle,":").concat(e.fontFamily,":").concat(e.fontSize,":").concat(e.letterSpacing,":").concat(e.lineHeight):"null"},AG=M1(function(e,t){var n=CG(),r=W0(e),i=0;for(var a of r.entries()){var o=dG(a,2),l=o[0],s=o[1],u=document.createElementNS("http://www.w3.org/2000/svg","tspan"),c=V0(t,l);u.style.fontFamily=c.fontFamily,u.style.fontSize="".concat(c.fontSize,"px"),u.style.lineHeight=c.lineHeight,u.style.fontFamily=c.fontFamily,u.style.letterSpacing=c.letterSpacing,u.textContent=s,u.setAttribute("x","0"),u.setAttribute("y","".concat(i)),n.appendChild(u),i+=c.lineHeight*u.getBoundingClientRect().height}var f=n.getBoundingClientRect(),d=f.width;return n.innerHTML="",{width:t!=null&&t.angle?Nc(d,i,t==null?void 0:t.angle):d,height:t!=null&&t.angle?Nc(i,d,t==null?void 0:t.angle):i}},function(e,t){var n=Array.isArray(e)?e.join():e,r=Array.isArray(t)?t.map(IS).join():IS(t);return"".concat(n,"::").concat(r)}),TG={impl:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";return!r||n?OG(e,t):AG(e,t)}},ha=function(e,t){return TG.impl(e,t)};function $S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$S(Object(n),!0).forEach(function(r){kG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$S(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ls(e){return MG(e)||jG(e)||PG(e)||EG()}function EG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
139
139
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PG(e,t){if(e){if(typeof e=="string")return U0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U0(e,t)}}function jG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MG(e){if(Array.isArray(e))return U0(e)}function U0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ma={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},FS=function(e,t){if(!e.datum)return 0;var n=xo(e,e.datum);return n[t]},NS=function(e){var t=e&&e.fontSize;if(typeof t=="number")return t;if(t==null)return ma.fontSize;if(typeof t=="string"){var n=Number(t.replace("px",""));return isNaN(n)?(bo("fontSize should be expressed as a number of pixels"),ma.fontSize):n}return ma.fontSize},en=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(e)?e[t]||e[0]:e},BS=function(e){var t=e.backgroundStyle,n=e.backgroundPadding;return Array.isArray(t)&&!rt(t)||Array.isArray(n)&&!rt(n)},DG=function(e,t){if(t.disableInlineStyles){var n=Ze(e,t);return{fontSize:NS(n)}}var r=function(i){i=i?ae({},i,ma):ma;var a=Ze(i,t);return R({},a,{fontSize:NS(a)})};return Array.isArray(e)&&!rt(e)?e.map(function(i){return r(i)}):r(e)},IG=function(e,t){if(e)return Array.isArray(e)&&!rt(e)?e.map(function(n){return Ze(n,t)}):Ze(e,t)},$G=function(e){if(e.backgroundPadding&&Array.isArray(e.backgroundPadding))return e.backgroundPadding.map(function(n){var r=fe(n,e);return lt({padding:r})});var t=fe(e.backgroundPadding,e);return lt({padding:t})},LG=function(e){var t=fe(e.lineHeight,e);return Array.isArray(t)&&rt(t)?[1]:t},FG=function(e,t){if(e!=null){if(Array.isArray(e))return e.map(function(r){return fe(r,t)});var n=fe(e,t);if(n!=null)return Array.isArray(n)?n:"".concat(n).split(`
140
- `)}},NG=function(e,t,n){var r=e.dy?fe(e.dy,e):0,i=e.inline?1:e.text.length,a=fe(e.capHeight,e),o=t?fe(t,e):"middle",l=ls(Array(i).keys()).map(function(c){return en(e.style,c).fontSize}),s=ls(Array(i).keys()).map(function(c){return en(n,c)});if(o==="start")return r+(a/2+s[0]/2)*l[0];if(e.inline)return o==="end"?r+(a/2-s[0]/2)*l[0]:r+a/2*l[0];if(i===1)return o==="end"?r+(a/2+(.5-i)*s[0])*l[0]:r+(a/2+(.5-i/2)*s[0])*l[0];var u=ls(Array(i).keys()).reduce(function(c,f){return c+(a/2+(.5-i)*s[f])*l[f]/i},0);return o==="end"?r+u:r+u/2+a/2*s[i-1]*l[i-1]},BG=function(e,t,n){var r=e.polar,i=en(e.style),a=r?L0(e):0,o=i.angle===void 0?fe(e.angle,e):i.angle,l=o===void 0?a:o,s=e.transform||i.transform,u=s&&fe(s,e),c=l&&{rotate:[l,t,n]};return u||l?N0(u,c):void 0},RS=function(e,t){var n=e.direction,r=e.textAnchor,i=e.x,a=e.dx;if(n==="rtl")return i-t;switch(r){case"middle":return Math.round(i-t/2);case"end":return Math.round(i-t);default:return i+(a||0)}},WS=function(e,t){var n=e.verticalAnchor,r=e.y,i=e.originalDy,a=i===void 0?0:i,o=r+a;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:return Math.floor(o-t/2)}},RG=function(e,t){var n=e.dx,r=n===void 0?0:n,i=e.transform,a=e.backgroundComponent,o=e.backgroundStyle,l=e.inline,s=e.backgroundPadding,u=e.capHeight,c=t.map(function(y){return y.textSize}),f=l?Math.max.apply(Math,ls(c.map(function(y){return y.height}))):c.reduce(function(y,_,b){var S=b?0:u/2;return y+_.height*(t[b].lineHeight-S)},0),d=l?c.reduce(function(y,_,b){var S=b?r:0;return y+_.width+S},0):Math.max.apply(Math,ls(c.map(function(y){return y.width}))),h=RS(e,d),g=WS(e,f),p={key:"background",height:f+s.top+s.bottom,style:o,transform:i,width:d+s.left+s.right,x:l?h-s.left:h+r-s.left,y:g};return x.cloneElement(a,ae({},a.props,p))},WG=function(e,t,n){var r=e.textAnchor,i=t.map(function(l){return l.widthWithPadding}),a=i.reduce(function(l,s){return l+s},0),o=-a/2;switch(r){case"start":return i.reduce(function(l,s,u){return l=u<n?l+s:l,l},0);case"end":return i.reduce(function(l,s,u){return l=u>n?l-s:l,l},0);default:return i.reduce(function(l,s,u){var c=u<n?s:0;return l=u===n?l+s/2:l+c,l},o)}},zG=function(e,t){var n=e.dy,r=e.dx,i=e.transform,a=e.backgroundStyle,o=e.backgroundPadding,l=e.backgroundComponent,s=e.inline,u=e.y,c=t.map(function(f,d){var h=en(t,d-1),g=f.textSize,p=f.fontSize*f.lineHeight,y=Math.ceil(p),_=en(o,d),b=en(o,d-1),S=s&&r||0,O=d&&!s?h.fontSize*h.lineHeight+b.top+b.bottom:n-p*.5-(f.fontSize-f.capHeight);return{textHeight:y,labelSize:g,heightWithPadding:y+_.top+_.bottom,widthWithPadding:g.width+_.left+_.right+S,y:u,fontSize:f.fontSize,dy:O}});return c.map(function(f,d){var h=RS(e,f.labelSize.width),g=c.slice(0,d+1).reduce(function(O,w){return O+w.dy},u),p=en(o,d),y=f.heightWithPadding,_=s?WG(e,c,d)+h-p.left:h,b=s?WS(e,y)-p.top:g,S={key:"tspan-background-".concat(d),height:y,style:en(a,d),width:f.widthWithPadding,transform:i,x:_-p.left,y:b};return x.cloneElement(l,ae({},l.props,S))})},VG=function(e,t){return BS(e)?zG(e,t):RG(e,t)},UG=function(e,t,n){var r=en(e,t),i=en(e,t-1),a=i.fontSize*i.lineHeight,o=r.fontSize*r.lineHeight,l=i.fontSize-i.capHeight,s=r.fontSize-r.capHeight,u=a-i.fontSize/2+r.fontSize/2-a/2+o/2-s/2+l/2;return BS(n)?u+r.backgroundPadding.top+i.backgroundPadding.bottom:u},HG=function(e,t,n){var r=t.inline,i=en(e,n);return n&&!r?UG(e,n,t):r?n===0?i.backgroundPadding.top:void 0:i.backgroundPadding.top},qG=function(e){var t=FG(e.text,e),n=DG(e.style,R({},e,{text:t})),r=IG(e.backgroundStyle,R({},e,{text:t,style:n})),i=$G(R({},e,{text:t,style:n,backgroundStyle:r})),a=fe(e.id,e);return R({},e,{backgroundStyle:r,backgroundPadding:i,style:n,text:t,id:a})},GG=function(e){var t=fe(e.ariaLabel,e),n=en(e.style),r=LG(e),i=e.direction?fe(e.direction,e):"inherit",a=e.textAnchor?fe(e.textAnchor,e):n.textAnchor||"start",o=e.verticalAnchor?fe(e.verticalAnchor,e):n.verticalAnchor||"middle",l=e.dx?fe(e.dx,e):0,s=NG(e,o,r),u=e.x!==void 0?e.x:FS(e,"x"),c=e.y!==void 0?e.y:FS(e,"y"),f=BG(e,u,c);return R({},e,{ariaLabel:t,lineHeight:r,direction:i,textAnchor:a,verticalAnchor:o,dx:l,dy:s,originalDy:e.dy,transform:f,x:u,y:c})},YG=function(e,t){var n=e.ariaLabel,r=e.inline,i=e.className,a=e.title,o=e.events,l=e.direction,s=e.text,u=e.textAnchor,c=e.dx,f=e.dy,d=e.transform,h=e.x,g=e.y,p=e.desc,y=e.id,_=e.tabIndex,b=e.tspanComponent,S=e.textComponent,O=or(e),w=LS(LS({"aria-label":n,key:"text"},o),{},{direction:l,dx:c,x:h,y:g+f,transform:d,className:i,title:a,desc:fe(p,e),tabIndex:fe(_,e),id:y},O),A=s.map(function(T,k){var j=t[k].style,N={key:"".concat(y,"-key-").concat(k),x:r?void 0:h,dx:r?c+t[k].backgroundPadding.left:c,dy:HG(t,e,k),textAnchor:j.textAnchor||u,style:j,children:T};return x.cloneElement(b,N)});return x.cloneElement(S,w,A)},wt=function(e){if(e=qG(e),e.text===null||e.text===void 0)return null;var t=GG(e),n=t.text,r=t.style,i=t.capHeight,a=t.backgroundPadding,o=t.lineHeight,l=n.map(function(d,h){var g=en(r,h),p=z0("".concat(i,"em"),g.fontSize),y=en(o,h);return{style:g,fontSize:g.fontSize||ma.fontSize,capHeight:p,text:d,textSize:ha(d,g),lineHeight:y,backgroundPadding:en(a,h)}}),s=YG(t,l);if(e.backgroundStyle){var u=VG(t,l),c=[u,s],f=x.cloneElement(e.groupComponent,{},c);return e.renderInPortal?x.createElement(ti,null,f):f}return e.renderInPortal?x.createElement(ti,null,s):s};wt.displayName="VictoryLabel",wt.role="label",wt.defaultStyles=ma,wt.propTypes={active:m.bool,angle:m.oneOfType([m.string,m.number,m.func]),ariaLabel:m.oneOfType([m.string,m.func]),backgroundComponent:m.element,backgroundPadding:m.oneOfType([m.number,m.object,m.array]),backgroundStyle:m.oneOfType([m.object,m.array]),capHeight:m.oneOfType([m.string,_e,m.func]),className:m.string,data:m.array,datum:m.any,desc:m.oneOfType([m.string,m.func]),direction:m.oneOf(["rtl","ltr","inherit"]),dx:m.oneOfType([m.number,m.string,m.func]),dy:m.oneOfType([m.number,m.string,m.func]),events:m.object,groupComponent:m.element,id:m.oneOfType([m.number,m.string,m.func]),index:m.oneOfType([m.number,m.string]),inline:m.bool,labelPlacement:m.oneOf(["parallel","perpendicular","vertical"]),lineHeight:m.oneOfType([m.string,_e,m.func,m.array]),origin:m.shape({x:_e.isRequired,y:_e.isRequired}),polar:m.bool,renderInPortal:m.bool,scale:m.shape({x:Or,y:Or}),style:m.oneOfType([m.object,m.array]),tabIndex:m.oneOfType([m.number,m.func]),text:m.oneOfType([m.string,m.number,m.func,m.array]),textAnchor:m.oneOfType([m.oneOf(["start","middle","end","inherit"]),m.func]),textComponent:m.element,title:m.string,transform:m.oneOfType([m.string,m.object,m.func]),tspanComponent:m.element,verticalAnchor:m.oneOfType([m.oneOf(["start","middle","end"]),m.func]),x:m.oneOfType([m.number,m.string]),y:m.oneOfType([m.number,m.string])},wt.defaultProps={backgroundComponent:x.createElement(da,null),groupComponent:x.createElement("g",null),direction:"inherit",textComponent:x.createElement(AS,null),tspanComponent:x.createElement(rG,null),capHeight:.71,lineHeight:1};function zS(e,t){return(e.key||t).toString()}function VS(e){return e.reduce(function(t,n,r){var i=zS(n,r);return t[i]=n,t},{})}function US(e,t){var n=!1,r=Ke(e).reduce(function(i,a){return a in t||(n=!0,i[a]=!0),i},{});return n&&r}function KG(e,t){var n=e&&VS(e),r=t&&VS(t);return{entering:n&&US(r,n),exiting:r&&US(n,r)}}function H0(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function HS(e,t){var n=!1,r=!1,i=function(l,s){if(!s||l.type!==s.type)return{};var u=KG(H0(l),H0(s))||{},c=u.entering,f=u.exiting;return n=n||!!f,r=r||!!c,{entering:c||!1,exiting:f||!1}},a=function(l,s){return l.map(function(u,c){return u&&u.props&&u.props.children&&s[c]?a(x.Children.toArray(l[c].props.children),x.Children.toArray(s[c].props.children)):i(u,s[c])})},o=a(x.Children.toArray(e),x.Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:o,nodesShouldEnter:!1}}function ZG(e,t){var n=e.onEnter&&e.onEnter.after?e.onEnter.after:aa;return{data:t.map(function(r,i){return R({},r,n(r,i,t))})}}function XG(e,t,n,r){if(e=R({},e,{onEnd:r}),e&&e.onLoad&&!e.onLoad.duration)return{animate:e,data:n};var i=e.onLoad&&e.onLoad.before?e.onLoad.before:aa;return n=n.map(function(a,o){return R({},a,i(a,o,n))}),{animate:e,data:n,clipWidth:0}}function JG(e,t,n){if(e=R({},e,{onEnd:n}),e&&e.onLoad&&!e.onLoad.duration)return{animate:e,data:t};var r=e.onLoad&&e.onLoad.after?e.onLoad.after:aa;return t=t.map(function(i,a){return R({},i,r(i,a,t))}),{animate:e,data:t}}function QG(e,t,n,r,i){var a=e&&e.onExit;if(e=R({},e,a),r){e.onEnd=i;var o=e.onExit&&e.onExit.before?e.onExit.before:aa;n=n.map(function(l,s){var u=(l.key||s).toString();return r[u]?R({},l,o(l,s,n)):l})}return{animate:e,data:n}}function eY(e,t,n,r,i){if(r){e=R({},e,{onEnd:i});var a=e.onEnter&&e.onEnter.before?e.onEnter.before:aa;n=n.map(function(o,l){var s=(o.key||l).toString();return r[s]?R({},o,a(o,l,n)):o})}return{animate:e,data:n}}function tY(e,t,n,r){var i=e&&e.onEnter;if(e=R({},e,i),n){e.onEnd=r;var a=e.onEnter&&e.onEnter.after?e.onEnter.after:aa;t=t.map(function(o,l){var s=zS(o,l);return n[s]?R({},o,a(o,l,t)):o})}return{animate:e,data:t}}function qS(e,t,n){var r=t&&t.nodesWillExit,i=t&&t.nodesWillEnter,a=t&&t.nodesShouldEnter,o=t&&t.nodesShouldLoad,l=t&&t.nodesDoneLoad,s=t&&t.childrenTransitions||[],u={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},c=function(g,p,y){return o?JG(y,p,function(){n({nodesShouldLoad:!1,nodesDoneLoad:!0})}):XG(y,g,p,function(){n({nodesDoneLoad:!0})})},f=function(g,p,y,_){return QG(_,p,y,g,function(){n({nodesWillExit:!1})})},d=function(g,p,y,_){return a?tY(_,y,g,function(){n({nodesWillEnter:!1})}):eY(_,p,y,g,function(){n({nodesShouldEnter:!0})})},h=function(g,p){var y=g.props.animate;if(!g.type)return{};var _=g.props&&g.props.polar&&g.type.defaultPolarTransitions||g.type.defaultTransitions;if(_){var b=y[p]&&y[p].duration;return b!==void 0?b:_[p]&&_[p].duration}return{}};return function(p,y){var _=H0(p)||[],b=ae({},e.animate,p.props.animate),S=p.props.polar&&p.type.defaultPolarTransitions||p.type.defaultTransitions;b.onExit=ae({},b.onExit,S&&S.onExit),b.onEnter=ae({},b.onEnter,S&&S.onEnter),b.onLoad=ae({},b.onLoad,S&&S.onLoad);var O=s[y]||s[0];if(l){if(r){var T=O&&O.exiting,k=u.exit!==void 0?u.exit:h(p,"onExit"),j=T?{duration:k}:{delay:k};return f(T,p,_,R({},b,j))}else if(i){var N=O&&O.entering,M=u.enter!==void 0?u.enter:h(p,"onEnter"),E=u.move!==void 0?u.move:p.props.animate&&p.props.animate.duration,I={duration:a&&N?M:E};return d(N,p,_,R({},b,I))}else if(!t&&b&&b.onExit)return ZG(b,_)}else{var w=u.load!==void 0?u.load:h(p,"onLoad"),A={duration:w};return c(p,_,R({},b,A))}return{animate:b,data:_}}}function q0(){return q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q0.apply(this,arguments)}function nY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rY(e,t,n){return t&&GS(e.prototype,t),n&&GS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function iY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G0(e,t)}function G0(e,t){return G0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},G0(e,t)}function aY(e){var t=sY();return function(){var r=Bc(e),i;if(t){var a=Bc(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return oY(this,i)}}function oY(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lY(e)}function lY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bc(e){return Bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bc(e)}var Rc=function(e){iY(n,e);var t=aY(n);function n(r,i){var a;nY(this,n),a=t.call(this,r,i),a.continuous=void 0,a.timer=void 0,a.transitionProps=void 0,a.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var o=a.props.children,l=o.props.polar;return a.continuous=!l&&o.type&&o.type.continuous===!0,a.timer=a.context.transitionTimer,a}return rY(n,[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(i){var a=this;return fn(this.props,i)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,i),function(){return a.timer.resumeAnimation()})),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(i,a){var o=i.animate;if(o){if(o.parentState){var l=o.parentState,s=l.nodesWillExit?i:null;return{oldProps:s,nextProps:a}}}else return{};var u=x.Children.toArray(i.children),c=x.Children.toArray(a.children),f=HS(u,c),d=f.nodesWillExit,h=f.nodesWillEnter,g=f.childrenTransitions,p=f.nodesShouldEnter;return{nodesWillExit:d,nodesWillEnter:h,childrenTransitions:g,nodesShouldEnter:p,oldProps:d?i:null,nextProps:a}}},{key:"getDomainFromChildren",value:function(i,a){var o=function(f){return f.reduce(function(d,h){if(h.type&&Oe(h.type.getDomain)){var g=h.props&&h.type.getDomain(h.props,a);return g?d.concat(g):d}else if(h.props&&h.props.children)return d.concat(o(x.Children.toArray(h.props.children)));return d},[])},l=x.Children.toArray(i.children)[0],s=l.props||{},u=Array.isArray(s.domain)?s.domain:s.domain&&s.domain[a];if(!s.children&&u)return u;var c=o([l]);return c.length===0?[0,1]:[dn(c),Ln(c)]}},{key:"pickProps",value:function(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}},{key:"pickDomainProps",value:function(i){var a,o=(a=i.animate)===null||a===void 0?void 0:a.parentState;return o&&o.nodesWillExit?(this.continuous||o.continuous)&&(o.nextProps||this.state.nextProps)||i:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||i}},{key:"getClipWidth",value:function(i,a){var o=function(){var s=xt(a.props,"x");return s?Math.abs(s[1]-s[0]):i.width},l=this.transitionProps?this.transitionProps.clipWidth:void 0;return l!==void 0?l:o()}},{key:"render",value:function(){var i,a=this,o=this.pickProps(),l=(i=this.props.animate)!==null&&i!==void 0&&i.getTransitions?this.props.animate.getTransitions:qS(o,this.state,function(y){return a.setState(y)}),s=x.Children.toArray(o.children)[0],u=l(s);this.transitionProps=u;var c={x:this.getDomainFromChildren(this.pickDomainProps(o),"x"),y:this.getDomainFromChildren(o,"y")},f=this.getClipWidth(o,s),d=ae({domain:c,clipWidth:f},u,s.props),h=o.animationWhitelist||[],g=h.concat(["clipWidth"]),p=g.length?Gl(d,g):d;return x.createElement(Hl,q0({},d.animate,{data:p}),function(y){if(s.props.groupComponent){var _=a.continuous?x.cloneElement(s.props.groupComponent,{clipWidth:y.clipWidth||0}):s.props.groupComponent;return x.cloneElement(s,ae({animate:null,animating:!0,groupComponent:_},y,d))}return x.cloneElement(s,ae({animate:null,animating:!0},y,d))})}}]),n}(x.Component);Rc.displayName="VictoryTransition",Rc.propTypes={animate:m.oneOfType([m.bool,m.object]),animationWhitelist:m.array,children:m.node},Rc.contextType=lc;var YS=function(e){return x.createElement("defs",null,x.createElement("clipPath",{id:e.clipId},e.children))};YS.propTypes={children:m.oneOfType([m.arrayOf(m.node),m.node]),clipId:m.oneOfType([m.number,m.string])};var uY=["desc"];function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wc.apply(this,arguments)}function cY(e,t){if(e==null)return{};var n=fY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var KS=function(e){var t=e.desc,n=cY(e,uY);return t?x.createElement("circle",Wc({vectorEffect:"non-scaling-stroke"},n),x.createElement("desc",null,t)):x.createElement("circle",Wc({vectorEffect:"non-scaling-stroke"},n))};function ZS(e){return gY(e)||mY(e)||hY(e)||dY()}function dY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
140
+ `)}},NG=function(e,t,n){var r=e.dy?fe(e.dy,e):0,i=e.inline?1:e.text.length,a=fe(e.capHeight,e),o=t?fe(t,e):"middle",l=ls(Array(i).keys()).map(function(c){return en(e.style,c).fontSize}),s=ls(Array(i).keys()).map(function(c){return en(n,c)});if(o==="start")return r+(a/2+s[0]/2)*l[0];if(e.inline)return o==="end"?r+(a/2-s[0]/2)*l[0]:r+a/2*l[0];if(i===1)return o==="end"?r+(a/2+(.5-i)*s[0])*l[0]:r+(a/2+(.5-i/2)*s[0])*l[0];var u=ls(Array(i).keys()).reduce(function(c,f){return c+(a/2+(.5-i)*s[f])*l[f]/i},0);return o==="end"?r+u:r+u/2+a/2*s[i-1]*l[i-1]},BG=function(e,t,n){var r=e.polar,i=en(e.style),a=r?L0(e):0,o=i.angle===void 0?fe(e.angle,e):i.angle,l=o===void 0?a:o,s=e.transform||i.transform,u=s&&fe(s,e),c=l&&{rotate:[l,t,n]};return u||l?N0(u,c):void 0},RS=function(e,t){var n=e.direction,r=e.textAnchor,i=e.x,a=e.dx;if(n==="rtl")return i-t;switch(r){case"middle":return Math.round(i-t/2);case"end":return Math.round(i-t);default:return i+(a||0)}},WS=function(e,t){var n=e.verticalAnchor,r=e.y,i=e.originalDy,a=i===void 0?0:i,o=r+a;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:return Math.floor(o-t/2)}},RG=function(e,t){var n=e.dx,r=n===void 0?0:n,i=e.transform,a=e.backgroundComponent,o=e.backgroundStyle,l=e.inline,s=e.backgroundPadding,u=e.capHeight,c=t.map(function(y){return y.textSize}),f=l?Math.max.apply(Math,ls(c.map(function(y){return y.height}))):c.reduce(function(y,_,b){var S=b?0:u/2;return y+_.height*(t[b].lineHeight-S)},0),d=l?c.reduce(function(y,_,b){var S=b?r:0;return y+_.width+S},0):Math.max.apply(Math,ls(c.map(function(y){return y.width}))),h=RS(e,d),g=WS(e,f),p={key:"background",height:f+s.top+s.bottom,style:o,transform:i,width:d+s.left+s.right,x:l?h-s.left:h+r-s.left,y:g};return x.cloneElement(a,ae({},a.props,p))},WG=function(e,t,n){var r=e.textAnchor,i=t.map(function(l){return l.widthWithPadding}),a=i.reduce(function(l,s){return l+s},0),o=-a/2;switch(r){case"start":return i.reduce(function(l,s,u){return l=u<n?l+s:l,l},0);case"end":return i.reduce(function(l,s,u){return l=u>n?l-s:l,l},0);default:return i.reduce(function(l,s,u){var c=u<n?s:0;return l=u===n?l+s/2:l+c,l},o)}},zG=function(e,t){var n=e.dy,r=e.dx,i=e.transform,a=e.backgroundStyle,o=e.backgroundPadding,l=e.backgroundComponent,s=e.inline,u=e.y,c=t.map(function(f,d){var h=en(t,d-1),g=f.textSize,p=f.fontSize*f.lineHeight,y=Math.ceil(p),_=en(o,d),b=en(o,d-1),S=s&&r||0,O=d&&!s?h.fontSize*h.lineHeight+b.top+b.bottom:n-p*.5-(f.fontSize-f.capHeight);return{textHeight:y,labelSize:g,heightWithPadding:y+_.top+_.bottom,widthWithPadding:g.width+_.left+_.right+S,y:u,fontSize:f.fontSize,dy:O}});return c.map(function(f,d){var h=RS(e,f.labelSize.width),g=c.slice(0,d+1).reduce(function(O,w){return O+w.dy},u),p=en(o,d),y=f.heightWithPadding,_=s?WG(e,c,d)+h-p.left:h,b=s?WS(e,y)-p.top:g,S={key:"tspan-background-".concat(d),height:y,style:en(a,d),width:f.widthWithPadding,transform:i,x:_-p.left,y:b};return x.cloneElement(l,ae({},l.props,S))})},VG=function(e,t){return BS(e)?zG(e,t):RG(e,t)},UG=function(e,t,n){var r=en(e,t),i=en(e,t-1),a=i.fontSize*i.lineHeight,o=r.fontSize*r.lineHeight,l=i.fontSize-i.capHeight,s=r.fontSize-r.capHeight,u=a-i.fontSize/2+r.fontSize/2-a/2+o/2-s/2+l/2;return BS(n)?u+r.backgroundPadding.top+i.backgroundPadding.bottom:u},HG=function(e,t,n){var r=t.inline,i=en(e,n);return n&&!r?UG(e,n,t):r?n===0?i.backgroundPadding.top:void 0:i.backgroundPadding.top},qG=function(e){var t=FG(e.text,e),n=DG(e.style,R({},e,{text:t})),r=IG(e.backgroundStyle,R({},e,{text:t,style:n})),i=$G(R({},e,{text:t,style:n,backgroundStyle:r})),a=fe(e.id,e);return R({},e,{backgroundStyle:r,backgroundPadding:i,style:n,text:t,id:a})},GG=function(e){var t=fe(e.ariaLabel,e),n=en(e.style),r=LG(e),i=e.direction?fe(e.direction,e):"inherit",a=e.textAnchor?fe(e.textAnchor,e):n.textAnchor||"start",o=e.verticalAnchor?fe(e.verticalAnchor,e):n.verticalAnchor||"middle",l=e.dx?fe(e.dx,e):0,s=NG(e,o,r),u=e.x!==void 0?e.x:FS(e,"x"),c=e.y!==void 0?e.y:FS(e,"y"),f=BG(e,u,c);return R({},e,{ariaLabel:t,lineHeight:r,direction:i,textAnchor:a,verticalAnchor:o,dx:l,dy:s,originalDy:e.dy,transform:f,x:u,y:c})},YG=function(e,t){var n=e.ariaLabel,r=e.inline,i=e.className,a=e.title,o=e.events,l=e.direction,s=e.text,u=e.textAnchor,c=e.dx,f=e.dy,d=e.transform,h=e.x,g=e.y,p=e.desc,y=e.id,_=e.tabIndex,b=e.tspanComponent,S=e.textComponent,O=or(e),w=LS(LS({"aria-label":n,key:"text"},o),{},{direction:l,dx:c,x:h,y:g+f,transform:d,className:i,title:a,desc:fe(p,e),tabIndex:fe(_,e),id:y},O),A=s.map(function(T,k){var j=t[k].style,N={key:"".concat(y,"-key-").concat(k),x:r?void 0:h,dx:r?c+t[k].backgroundPadding.left:c,dy:HG(t,e,k),textAnchor:j.textAnchor||u,style:j,children:T};return x.cloneElement(b,N)});return x.cloneElement(S,w,A)},wt=function(e){if(e=qG(e),e.text===null||e.text===void 0)return null;var t=GG(e),n=t.text,r=t.style,i=t.capHeight,a=t.backgroundPadding,o=t.lineHeight,l=n.map(function(d,h){var g=en(r,h),p=z0("".concat(i,"em"),g.fontSize),y=en(o,h);return{style:g,fontSize:g.fontSize||ma.fontSize,capHeight:p,text:d,textSize:ha(d,g),lineHeight:y,backgroundPadding:en(a,h)}}),s=YG(t,l);if(e.backgroundStyle){var u=VG(t,l),c=[u,s],f=x.cloneElement(e.groupComponent,{},c);return e.renderInPortal?x.createElement(ti,null,f):f}return e.renderInPortal?x.createElement(ti,null,s):s};wt.displayName="VictoryLabel",wt.role="label",wt.defaultStyles=ma,wt.propTypes={active:m.bool,angle:m.oneOfType([m.string,m.number,m.func]),ariaLabel:m.oneOfType([m.string,m.func]),backgroundComponent:m.element,backgroundPadding:m.oneOfType([m.number,m.object,m.array]),backgroundStyle:m.oneOfType([m.object,m.array]),capHeight:m.oneOfType([m.string,_e,m.func]),className:m.string,data:m.array,datum:m.any,desc:m.oneOfType([m.string,m.func]),direction:m.oneOf(["rtl","ltr","inherit"]),dx:m.oneOfType([m.number,m.string,m.func]),dy:m.oneOfType([m.number,m.string,m.func]),events:m.object,groupComponent:m.element,id:m.oneOfType([m.number,m.string,m.func]),index:m.oneOfType([m.number,m.string]),inline:m.bool,labelPlacement:m.oneOf(["parallel","perpendicular","vertical"]),lineHeight:m.oneOfType([m.string,_e,m.func,m.array]),origin:m.shape({x:_e.isRequired,y:_e.isRequired}),polar:m.bool,renderInPortal:m.bool,scale:m.shape({x:Or,y:Or}),style:m.oneOfType([m.object,m.array]),tabIndex:m.oneOfType([m.number,m.func]),text:m.oneOfType([m.string,m.number,m.func,m.array]),textAnchor:m.oneOfType([m.oneOf(["start","middle","end","inherit"]),m.func]),textComponent:m.element,title:m.string,transform:m.oneOfType([m.string,m.object,m.func]),tspanComponent:m.element,verticalAnchor:m.oneOfType([m.oneOf(["start","middle","end"]),m.func]),x:m.oneOfType([m.number,m.string]),y:m.oneOfType([m.number,m.string])},wt.defaultProps={backgroundComponent:x.createElement(da,null),groupComponent:x.createElement("g",null),direction:"inherit",textComponent:x.createElement(AS,null),tspanComponent:x.createElement(rG,null),capHeight:.71,lineHeight:1};function zS(e,t){return(e.key||t).toString()}function VS(e){return e.reduce(function(t,n,r){var i=zS(n,r);return t[i]=n,t},{})}function US(e,t){var n=!1,r=Ke(e).reduce(function(i,a){return a in t||(n=!0,i[a]=!0),i},{});return n&&r}function KG(e,t){var n=e&&VS(e),r=t&&VS(t);return{entering:n&&US(r,n),exiting:r&&US(n,r)}}function H0(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function HS(e,t){var n=!1,r=!1,i=function(l,s){if(!s||l.type!==s.type)return{};var u=KG(H0(l),H0(s))||{},c=u.entering,f=u.exiting;return n=n||!!f,r=r||!!c,{entering:c||!1,exiting:f||!1}},a=function(l,s){return l.map(function(u,c){return u&&u.props&&u.props.children&&s[c]?a(x.Children.toArray(l[c].props.children),x.Children.toArray(s[c].props.children)):i(u,s[c])})},o=a(x.Children.toArray(e),x.Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:o,nodesShouldEnter:!1}}function ZG(e,t){var n=e.onEnter&&e.onEnter.after?e.onEnter.after:aa;return{data:t.map(function(r,i){return R({},r,n(r,i,t))})}}function XG(e,t,n,r){if(e=R({},e,{onEnd:r}),e&&e.onLoad&&!e.onLoad.duration)return{animate:e,data:n};var i=e.onLoad&&e.onLoad.before?e.onLoad.before:aa;return n=n.map(function(a,o){return R({},a,i(a,o,n))}),{animate:e,data:n,clipWidth:0}}function JG(e,t,n){if(e=R({},e,{onEnd:n}),e&&e.onLoad&&!e.onLoad.duration)return{animate:e,data:t};var r=e.onLoad&&e.onLoad.after?e.onLoad.after:aa;return t=t.map(function(i,a){return R({},i,r(i,a,t))}),{animate:e,data:t}}function QG(e,t,n,r,i){var a=e&&e.onExit;if(e=R({},e,a),r){e.onEnd=i;var o=e.onExit&&e.onExit.before?e.onExit.before:aa;n=n.map(function(l,s){var u=(l.key||s).toString();return r[u]?R({},l,o(l,s,n)):l})}return{animate:e,data:n}}function eY(e,t,n,r,i){if(r){e=R({},e,{onEnd:i});var a=e.onEnter&&e.onEnter.before?e.onEnter.before:aa;n=n.map(function(o,l){var s=(o.key||l).toString();return r[s]?R({},o,a(o,l,n)):o})}return{animate:e,data:n}}function tY(e,t,n,r){var i=e&&e.onEnter;if(e=R({},e,i),n){e.onEnd=r;var a=e.onEnter&&e.onEnter.after?e.onEnter.after:aa;t=t.map(function(o,l){var s=zS(o,l);return n[s]?R({},o,a(o,l,t)):o})}return{animate:e,data:t}}function qS(e,t,n){var r=t&&t.nodesWillExit,i=t&&t.nodesWillEnter,a=t&&t.nodesShouldEnter,o=t&&t.nodesShouldLoad,l=t&&t.nodesDoneLoad,s=t&&t.childrenTransitions||[],u={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},c=function(g,p,y){return o?JG(y,p,function(){n({nodesShouldLoad:!1,nodesDoneLoad:!0})}):XG(y,g,p,function(){n({nodesDoneLoad:!0})})},f=function(g,p,y,_){return QG(_,p,y,g,function(){n({nodesWillExit:!1})})},d=function(g,p,y,_){return a?tY(_,y,g,function(){n({nodesWillEnter:!1})}):eY(_,p,y,g,function(){n({nodesShouldEnter:!0})})},h=function(g,p){var y=g.props.animate;if(!g.type)return{};var _=g.props&&g.props.polar&&g.type.defaultPolarTransitions||g.type.defaultTransitions;if(_){var b=y[p]&&y[p].duration;return b!==void 0?b:_[p]&&_[p].duration}return{}};return function(p,y){var _=H0(p)||[],b=ae({},e.animate,p.props.animate),S=p.props.polar&&p.type.defaultPolarTransitions||p.type.defaultTransitions;b.onExit=ae({},b.onExit,S&&S.onExit),b.onEnter=ae({},b.onEnter,S&&S.onEnter),b.onLoad=ae({},b.onLoad,S&&S.onLoad);var O=s[y]||s[0];if(l){if(r){var T=O&&O.exiting,k=u.exit!==void 0?u.exit:h(p,"onExit"),j=T?{duration:k}:{delay:k};return f(T,p,_,R({},b,j))}else if(i){var N=O&&O.entering,M=u.enter!==void 0?u.enter:h(p,"onEnter"),E=u.move!==void 0?u.move:p.props.animate&&p.props.animate.duration,D={duration:a&&N?M:E};return d(N,p,_,R({},b,D))}else if(!t&&b&&b.onExit)return ZG(b,_)}else{var w=u.load!==void 0?u.load:h(p,"onLoad"),A={duration:w};return c(p,_,R({},b,A))}return{animate:b,data:_}}}function q0(){return q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q0.apply(this,arguments)}function nY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rY(e,t,n){return t&&GS(e.prototype,t),n&&GS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function iY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G0(e,t)}function G0(e,t){return G0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},G0(e,t)}function aY(e){var t=sY();return function(){var r=Bc(e),i;if(t){var a=Bc(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return oY(this,i)}}function oY(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lY(e)}function lY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bc(e){return Bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bc(e)}var Rc=function(e){iY(n,e);var t=aY(n);function n(r,i){var a;nY(this,n),a=t.call(this,r,i),a.continuous=void 0,a.timer=void 0,a.transitionProps=void 0,a.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var o=a.props.children,l=o.props.polar;return a.continuous=!l&&o.type&&o.type.continuous===!0,a.timer=a.context.transitionTimer,a}return rY(n,[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(i){var a=this;return fn(this.props,i)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,i),function(){return a.timer.resumeAnimation()})),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(i,a){var o=i.animate;if(o){if(o.parentState){var l=o.parentState,s=l.nodesWillExit?i:null;return{oldProps:s,nextProps:a}}}else return{};var u=x.Children.toArray(i.children),c=x.Children.toArray(a.children),f=HS(u,c),d=f.nodesWillExit,h=f.nodesWillEnter,g=f.childrenTransitions,p=f.nodesShouldEnter;return{nodesWillExit:d,nodesWillEnter:h,childrenTransitions:g,nodesShouldEnter:p,oldProps:d?i:null,nextProps:a}}},{key:"getDomainFromChildren",value:function(i,a){var o=function(f){return f.reduce(function(d,h){if(h.type&&Oe(h.type.getDomain)){var g=h.props&&h.type.getDomain(h.props,a);return g?d.concat(g):d}else if(h.props&&h.props.children)return d.concat(o(x.Children.toArray(h.props.children)));return d},[])},l=x.Children.toArray(i.children)[0],s=l.props||{},u=Array.isArray(s.domain)?s.domain:s.domain&&s.domain[a];if(!s.children&&u)return u;var c=o([l]);return c.length===0?[0,1]:[dn(c),Ln(c)]}},{key:"pickProps",value:function(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}},{key:"pickDomainProps",value:function(i){var a,o=(a=i.animate)===null||a===void 0?void 0:a.parentState;return o&&o.nodesWillExit?(this.continuous||o.continuous)&&(o.nextProps||this.state.nextProps)||i:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||i}},{key:"getClipWidth",value:function(i,a){var o=function(){var s=xt(a.props,"x");return s?Math.abs(s[1]-s[0]):i.width},l=this.transitionProps?this.transitionProps.clipWidth:void 0;return l!==void 0?l:o()}},{key:"render",value:function(){var i,a=this,o=this.pickProps(),l=(i=this.props.animate)!==null&&i!==void 0&&i.getTransitions?this.props.animate.getTransitions:qS(o,this.state,function(y){return a.setState(y)}),s=x.Children.toArray(o.children)[0],u=l(s);this.transitionProps=u;var c={x:this.getDomainFromChildren(this.pickDomainProps(o),"x"),y:this.getDomainFromChildren(o,"y")},f=this.getClipWidth(o,s),d=ae({domain:c,clipWidth:f},u,s.props),h=o.animationWhitelist||[],g=h.concat(["clipWidth"]),p=g.length?Gl(d,g):d;return x.createElement(Hl,q0({},d.animate,{data:p}),function(y){if(s.props.groupComponent){var _=a.continuous?x.cloneElement(s.props.groupComponent,{clipWidth:y.clipWidth||0}):s.props.groupComponent;return x.cloneElement(s,ae({animate:null,animating:!0,groupComponent:_},y,d))}return x.cloneElement(s,ae({animate:null,animating:!0},y,d))})}}]),n}(x.Component);Rc.displayName="VictoryTransition",Rc.propTypes={animate:m.oneOfType([m.bool,m.object]),animationWhitelist:m.array,children:m.node},Rc.contextType=lc;var YS=function(e){return x.createElement("defs",null,x.createElement("clipPath",{id:e.clipId},e.children))};YS.propTypes={children:m.oneOfType([m.arrayOf(m.node),m.node]),clipId:m.oneOfType([m.number,m.string])};var uY=["desc"];function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wc.apply(this,arguments)}function cY(e,t){if(e==null)return{};var n=fY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var KS=function(e){var t=e.desc,n=cY(e,uY);return t?x.createElement("circle",Wc({vectorEffect:"non-scaling-stroke"},n),x.createElement("desc",null,t)):x.createElement("circle",Wc({vectorEffect:"non-scaling-stroke"},n))};function ZS(e){return gY(e)||mY(e)||hY(e)||dY()}function dY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141
141
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hY(e,t){if(e){if(typeof e=="string")return Y0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y0(e,t)}}function mY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gY(e){if(Array.isArray(e))return Y0(e)}function Y0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function JS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XS(Object(n),!0).forEach(function(r){pY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yY(e,t,n){return t&&QS(e.prototype,t),n&&QS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K0(e,t)}function K0(e,t){return K0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},K0(e,t)}function _Y(e){var t=wY();return function(){var r=zc(e),i;if(t){var a=zc(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return xY(this,i)}}function xY(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SY(e)}function SY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zc(e){return zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zc(e)}var ga=function(e){bY(n,e);var t=_Y(n);function n(r){var i;return vY(this,n),i=t.call(this,r),i.clipId=void 0,i.clipId=!lo(r)||r.clipId===void 0?cc("victory-clip-"):r.clipId,i}return yY(n,[{key:"calculateAttributes",value:function(i){var a=i.polar,o=i.origin,l=i.clipWidth,s=l===void 0?0:l,u=i.clipHeight,c=u===void 0?0:u,f=i.translateX,d=f===void 0?0:f,h=i.translateY,g=h===void 0?0:h,p=lt({padding:i.clipPadding}),y=i.radius||wr(i);return{x:(a?o.x:d)-p.left,y:(a?o.y:g)-p.top,width:Math.max((a?y:s)+p.left+p.right,0),height:Math.max((a?y:c)+p.top+p.bottom,0)}}},{key:"renderClippedGroup",value:function(i,a){var o=or(i),l=i.style,s=i.events,u=i.transform,c=i.children,f=i.className,d=i.groupComponent,h=i.tabIndex,g=this.renderClipComponent(i,a),p=R({className:f,style:l,transform:u,key:"clipped-group-".concat(a),clipPath:"url(#".concat(a,")")},s);return x.cloneElement(d,JS(JS({},p),{},{tabIndex:h},o),[g].concat(ZS(x.Children.toArray(c))))}},{key:"renderGroup",value:function(i){var a=i.style,o=i.events,l=i.transform,s=i.children,u=i.className,c=i.groupComponent,f=i.tabIndex;return x.cloneElement(c,R({className:u,style:a,transform:l,"aria-label":i["aria-label"],tabIndex:f},o),s)}},{key:"renderClipComponent",value:function(i,a){var o=i.polar,l=i.origin,s=i.clipWidth,u=s===void 0?0:s,c=i.clipHeight,f=c===void 0?0:c,d=i.translateX,h=d===void 0?0:d,g=i.translateY,p=g===void 0?0:g,y=i.circleComponent,_=i.rectComponent,b=i.clipPathComponent,S=lt({padding:i.clipPadding}),O=S.top,w=S.bottom,A=S.left,T=S.right,k;if(o){var j=i.radius||wr(i),N={r:Math.max(j+A+T,j+O+w,0),cx:l.x-A,cy:l.y-O};k=x.cloneElement(y,N)}else{var M={x:h-A,y:p-O,width:Math.max(u+A+T,0),height:Math.max(f+O+w,0)};k=x.cloneElement(_,M)}return x.cloneElement(b,R({key:"clip-path-".concat(a)},i,{clipId:a}),k)}},{key:"getClipValue",value:function(i,a){var o={x:i.clipWidth,y:i.clipHeight};if(o[a]!==void 0)return o[a];var l=xt(i,a);return l&&Math.abs(l[0]-l[1])||void 0}},{key:"getTranslateValue",value:function(i,a){var o={x:i.translateX,y:i.translateY};if(o[a]!==void 0)return o[a];var l=xt(i,a);return l?Math.min.apply(Math,ZS(l)):void 0}},{key:"render",value:function(){var i=this.getClipValue(this.props,"y"),a=this.getClipValue(this.props,"x");if(a===void 0||i===void 0)return this.renderGroup(this.props);var o=this.getTranslateValue(this.props,"x"),l=this.getTranslateValue(this.props,"y"),s=ae({},this.props,{clipHeight:i,clipWidth:a,translateX:o,translateY:l});return this.renderClippedGroup(s,this.clipId)}}]),n}(x.Component);ga.displayName="VictoryClipContainer",ga.role="container",ga.propTypes={"aria-label":m.string,children:m.oneOfType([m.arrayOf(m.node),m.node]),circleComponent:m.element,className:m.string,clipHeight:_e,clipId:m.oneOfType([m.number,m.string]),clipPadding:m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number}),clipPathComponent:m.element,clipWidth:_e,events:m.object,groupComponent:m.element,origin:m.shape({x:_e,y:_e}),polar:m.bool,radius:_e,style:m.object,tabIndex:m.number,transform:m.string,translateX:m.number,translateY:m.number},ga.defaultProps={circleComponent:x.createElement(KS,null),rectComponent:x.createElement(da,null),clipPathComponent:x.createElement(YS,null),groupComponent:x.createElement("g",null)};var ss=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],tn="#252525",Z0="#969696",OY="'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",CY="normal",AY=14,Sn={width:450,height:300,padding:50,colorScale:ss},Pt={fontFamily:OY,fontSize:AY,letterSpacing:CY,padding:10,fill:tn,stroke:"transparent"},TY=R({textAnchor:"middle"},Pt),kY="round",EY="round",PY={area:R({style:{data:{fill:tn},labels:Pt}},Sn),axis:R({style:{axis:{fill:"transparent",stroke:tn,strokeWidth:1,strokeLinecap:kY,strokeLinejoin:EY},axisLabel:R({},TY,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Pt}},Sn),bar:R({style:{data:{fill:tn,padding:8,strokeWidth:0},labels:Pt}},Sn),boxplot:R({style:{max:{padding:8,stroke:tn,strokeWidth:1},maxLabels:R({},Pt,{padding:3}),median:{padding:8,stroke:tn,strokeWidth:1},medianLabels:R({},Pt,{padding:3}),min:{padding:8,stroke:tn,strokeWidth:1},minLabels:R({},Pt,{padding:3}),q1:{padding:8,fill:Z0},q1Labels:R({},Pt,{padding:3}),q3:{padding:8,fill:Z0},q3Labels:R({},Pt,{padding:3})},boxWidth:20},Sn),candlestick:R({style:{data:{stroke:tn,strokeWidth:1},labels:R({},Pt,{padding:5})},candleColors:{positive:"#ffffff",negative:tn}},Sn),chart:Sn,errorbar:R({borderWidth:8,style:{data:{fill:"transparent",stroke:tn,strokeWidth:2},labels:Pt}},Sn),group:R({colorScale:ss},Sn),histogram:R({style:{data:{fill:Z0,stroke:tn,strokeWidth:2},labels:Pt}},Sn),legend:{colorScale:ss,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Pt,title:R({},Pt,{padding:5})}},line:R({style:{data:{fill:"transparent",stroke:tn,strokeWidth:2},labels:Pt}},Sn),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:R({},Pt,{padding:20})},colorScale:ss,width:400,height:400,padding:50},scatter:R({style:{data:{fill:tn,stroke:"transparent",strokeWidth:0},labels:Pt}},Sn),stack:R({colorScale:ss},Sn),tooltip:{style:R({},Pt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:R({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:R({},Pt,{padding:5,pointerEvents:"none"}),flyout:{stroke:tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Sn)},jY="#FFF59D",MY="#F4511E",DY="#DCE775",IY="#8BC34A",$Y="#00796B",LY="#006064",Vc=[MY,jY,DY,IY,$Y,LY],ew="#ECEFF1",tw="#90A4AE",hn="#455A64",Uc="#212121",FY="'Helvetica Neue', 'Helvetica', sans-serif",NY="normal",BY=12,ni=8,mn={width:350,height:350,padding:50},jt={fontFamily:FY,fontSize:BY,letterSpacing:NY,padding:ni,fill:hn,stroke:"transparent",strokeWidth:0},RY=R({textAnchor:"middle"},jt),WY="10, 5",X0="round",J0="round",zY={area:R({style:{data:{fill:Uc},labels:jt}},mn),axis:R({style:{axis:{fill:"transparent",stroke:tw,strokeWidth:2,strokeLinecap:X0,strokeLinejoin:J0},axisLabel:R({},RY,{padding:ni,stroke:"transparent"}),grid:{fill:"none",stroke:ew,strokeDasharray:WY,strokeLinecap:X0,strokeLinejoin:J0,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:tw,strokeWidth:1,strokeLinecap:X0,strokeLinejoin:J0},tickLabels:R({},jt,{fill:hn})}},mn),polarDependentAxis:R({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:R({style:{data:{fill:hn,padding:ni,strokeWidth:0},labels:jt}},mn),boxplot:R({style:{max:{padding:ni,stroke:hn,strokeWidth:1},maxLabels:R({},jt,{padding:3}),median:{padding:ni,stroke:hn,strokeWidth:1},medianLabels:R({},jt,{padding:3}),min:{padding:ni,stroke:hn,strokeWidth:1},minLabels:R({},jt,{padding:3}),q1:{padding:ni,fill:hn},q1Labels:R({},jt,{padding:3}),q3:{padding:ni,fill:hn},q3Labels:R({},jt,{padding:3})},boxWidth:20},mn),candlestick:R({style:{data:{stroke:hn},labels:R({},jt,{padding:5})},candleColors:{positive:"#ffffff",negative:hn}},mn),chart:mn,errorbar:R({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:hn,strokeWidth:2},labels:jt}},mn),group:R({colorScale:Vc},mn),histogram:R({style:{data:{fill:hn,stroke:Uc,strokeWidth:2},labels:jt}},mn),legend:{colorScale:Vc,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:jt,title:R({},jt,{padding:5})}},line:R({style:{data:{fill:"transparent",opacity:1,stroke:hn,strokeWidth:2},labels:jt}},mn),pie:R({colorScale:Vc,style:{data:{padding:ni,stroke:ew,strokeWidth:1},labels:R({},jt,{padding:20})}},mn),scatter:R({style:{data:{fill:hn,opacity:1,stroke:"transparent",strokeWidth:0},labels:jt}},mn),stack:R({colorScale:Vc},mn),tooltip:{style:R({},jt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Uc,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:R({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:R({},jt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Uc,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},mn)},Cr={grayscale:PY,material:zY},VY={categories:m.oneOfType([m.arrayOf(m.string),m.shape({x:m.arrayOf(m.string),y:m.arrayOf(m.string)})]),data:m.oneOfType([m.array,m.object]),dataComponent:m.element,disableInlineStyles:m.bool,labelComponent:m.element,labels:m.oneOfType([m.func,m.array]),samples:_e,sortKey:m.oneOfType([m.func,ct([ut,_e]),m.string,m.arrayOf(m.string.isRequired)]),sortOrder:m.oneOf(["ascending","descending"]),style:m.shape({parent:m.object,data:m.object,labels:m.object}),x:m.oneOfType([m.func,ct([ut,_e]),m.string,m.arrayOf(m.string.isRequired)]),y:m.oneOfType([m.func,ct([ut,_e]),m.string,m.arrayOf(m.string.isRequired)]),y0:m.oneOfType([m.func,ct([ut,_e]),m.string,m.arrayOf(m.string.isRequired)])},UY={animate:m.oneOfType([m.bool,m.object]),containerComponent:m.element,domain:m.oneOfType([ji,m.shape({x:ji,y:ji})]),maxDomain:m.oneOfType([m.number,m.instanceOf(Date),m.shape({x:m.oneOfType([m.number,m.instanceOf(Date)]),y:m.oneOfType([m.number,m.instanceOf(Date)])})]),minDomain:m.oneOfType([m.number,m.instanceOf(Date),m.shape({x:m.oneOfType([m.number,m.instanceOf(Date)]),y:m.oneOfType([m.number,m.instanceOf(Date)])})]),domainPadding:m.oneOfType([m.shape({x:m.oneOfType([m.number,m.arrayOf(m.number)]),y:m.oneOfType([m.number,m.arrayOf(m.number)])}),m.number,m.arrayOf(m.number)]),eventKey:m.oneOfType([m.func,ct([ut,_e]),m.string]),events:m.arrayOf(m.shape({target:m.oneOf(["data","labels","parent"]),eventKey:m.oneOfType([m.array,ct([ut,_e]),m.string]),eventHandlers:m.object})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ct([ut,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.element,height:_e,name:m.string,origin:m.shape({x:m.number,y:m.number}),padding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),polar:m.bool,range:m.oneOfType([ji,m.shape({x:ji.isRequired,y:ji.isRequired})]),scale:m.oneOfType([Or,m.shape({x:Or.isRequired,y:Or.isRequired})]),sharedEvents:m.shape({events:m.array,getEventState:m.func}),singleQuadrantDomainPadding:m.oneOfType([m.bool,m.shape({x:m.oneOfType([m.bool]),y:m.oneOfType([m.bool])})]),standalone:m.bool,theme:m.object,width:_e},HY={active:m.bool,ariaLabel:m.oneOfType([m.string,m.func]),className:m.string,clipPath:m.string,data:m.oneOfType([m.array,m.object]),desc:m.oneOfType([m.string,m.func]),disableInlineStyles:m.bool,events:m.object,id:m.oneOfType([m.number,m.string,m.func]),index:m.oneOfType([m.number,m.string]),origin:m.shape({x:m.number,y:m.number}),polar:m.bool,role:m.string,scale:m.oneOfType([Or,m.shape({x:Or,y:Or})]),shapeRendering:m.string,style:m.object,tabIndex:m.oneOfType([m.number,m.func]),transform:m.string},Ot={dataProps:VY,baseProps:UY,primitiveProps:HY},qY=["desc"];function GY(e,t){if(e==null)return{};var n=YY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Mi=function(e){var t=e.desc,n=GY(e,qY);return t?x.createElement("path",n,x.createElement("desc",null,t)):x.createElement("path",n)};function nw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nw(Object(n),!0).forEach(function(r){KY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZY=function(e){var t=e.cx,n=e.cy,r=e.r,i=e.startAngle,a=e.endAngle,o=e.closedPath,l=Math.abs(a-i)/2+i,s=t+r*Math.cos(st(i)),u=n-r*Math.sin(st(i)),c=t+r*Math.cos(st(l)),f=n-r*Math.sin(st(l)),d=t+r*Math.cos(st(a)),h=n-r*Math.sin(st(a)),g=l-i<=180?0:1,p=a-l<=180?0:1,y=o?" M ".concat(t,", ").concat(n," L ").concat(s,", ").concat(u):"M ".concat(s,", ").concat(u),_="A ".concat(r,", ").concat(r,", 0, ").concat(g,", 0, ").concat(c,", ").concat(f),b="A ".concat(r,", ").concat(r,", 0, ").concat(p,", 0, ").concat(d,", ").concat(h),S=o?"Z":"";return"".concat(y," ").concat(_," ").concat(b," ").concat(S)},XY=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Ze(R({stroke:"black",fill:"none"},e.style),e),a=fe(e.tabIndex,e);return R({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},qc=function(e){return e=XY(e),x.cloneElement(e.pathComponent,Hc(Hc({},e.events),{},{"aria-label":e.ariaLabel,d:ZY(e),style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,transform:e.transform,clipPath:e.clipPath}))};qc.propTypes=Hc(Hc({},Ot.primitiveProps),{},{closedPath:m.bool,cx:m.number,cy:m.number,datum:m.any,endAngle:m.number,pathComponent:m.element,r:m.number,startAngle:m.number}),qc.defaultProps={pathComponent:x.createElement(Mi,null),role:"presentation",shapeRendering:"auto"};function rw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(n),!0).forEach(function(r){JY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QY=function(e){var t=fe(e.id,e);return R({},e,{id:t})},Q0=function(e){return e=QY(e),e.polar?x.cloneElement(e.circleComponent,To(To({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,cx:e.x,cy:e.y,r:e.height,className:e.className})):x.cloneElement(e.rectComponent,To(To({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,rx:e.rx,ry:e.ry,width:e.width,height:e.height,className:e.className}))};Q0.propTypes=To(To({},Ot.primitiveProps),{},{circleComponent:m.element,height:m.number,rectComponent:m.element,rx:m.number,ry:m.number,width:m.number,x:m.number,y:m.number}),Q0.defaultProps={circleComponent:x.createElement(KS,null),rectComponent:x.createElement(da,null),role:"presentation",shapeRendering:"auto"};function iw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iw(Object(n),!0).forEach(function(r){eK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tK=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Ze(R({fill:"none"},e.style),e),a=fe(e.tabIndex,e);return R({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},eg=function(e){return e=tK(e),x.cloneElement(e.rectComponent,Gc(Gc({},e.events),{},{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,transform:e.transform,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,width:e.width,height:e.height,clipPath:e.clipPath}))};eg.propTypes=Gc(Gc({},Ot.primitiveProps),{},{height:m.number,rectComponent:m.element,width:m.number,x:m.number,y:m.number}),eg.defaultProps={rectComponent:x.createElement(da,null),role:"presentation",shapeRendering:"auto"};var nK=["desc"];function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yc.apply(this,arguments)}function rK(e,t){if(e==null)return{};var n=iK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iK(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var aK=function(e){var t=e.desc,n=rK(e,nK);return t?x.createElement("line",Yc({vectorEffect:"non-scaling-stroke"},n),x.createElement("desc",null,t)):x.createElement("line",Yc({vectorEffect:"non-scaling-stroke"},n))};function aw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(n),!0).forEach(function(r){oK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lK=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Ze(R({stroke:"black"},e.style),e),a=fe(e.tabIndex,e);return R({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},Ar=function(e){return e=lK(e),x.cloneElement(e.lineComponent,Kc(Kc({},e.events),{},{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,transform:e.transform,clipPath:e.clipPath}))};Ar.propTypes=Kc(Kc({},Ot.primitiveProps),{},{datum:m.any,lineComponent:m.element,x1:m.number,x2:m.number,y1:m.number,y2:m.number}),Ar.defaultProps={lineComponent:x.createElement(aK,null),role:"presentation",shapeRendering:"auto"};var sK=Math.ceil,uK=Math.max;function cK(e,t,n,r){for(var i=-1,a=uK(sK((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var fK=cK,dK=fK,hK=Bu,tg=U5;function mK(e){return function(t,n,r){return r&&typeof r!="number"&&hK(t,n,r)&&(n=r=void 0),t=tg(t),n===void 0?(n=t,t=0):n=tg(n),r=r===void 0?t<n?1:-1:tg(r),dK(t,n,r,e)}}var gK=mK,pK=gK,vK=pK(),yK=vK;const us=Ae(yK);function bK(e,t,n){return"M ".concat(e,", ").concat(t,`
142
142
  m `).concat(-n,`, 0
143
143
  a `).concat(n,", ").concat(n," 0 1,0 ").concat(n*2,`,0
@@ -193,14 +193,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
193
193
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tJ(e,t){if(e){if(typeof e=="string")return ug(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ug(e,t)}}function nJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rJ(e){if(Array.isArray(e))return ug(e)}function ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cg(e){var t={errorX:!0,errorY:!0};return JX(e)?Pw(e,t):e}function jw(e){return fs(e)?e.size:e.length}function Mw(e,t){var n=Qe(e.domain)?e.domain[t]:e.domain,r=n||Bn(e,t).domain(),i=e.samples||1,a=Math.max.apply(Math,ds(r)),o=Math.min.apply(Math,ds(r)),l=(a-o)/i,s=us(o,a,l);return GX(s)===a?s:s.concat(a)}function Dw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ascending";if(!t)return e;(t==="x"||t==="y")&&(t="_".concat(t));var r=n==="ascending"?"asc":"desc";return po(e,t,r)}function iJ(e,t){var n=1/Number.MAX_SAFE_INTEGER,r={x:Ec(t,"x"),y:Ec(t,"y")};if(r.x!=="log"&&r.y!=="log")return e;var i=function(o,l){return r[l]==="log"?o["_".concat(l)]!==0:!0},a=function(o){var l=i(o,"x")?o._x:n,s=i(o,"y")?o._y:n,u=i(o,"y0")?o._y0:n;return R({},o,{_x:l,_y:s,_y0:u})};return e.map(function(o){return i(o,"x")&&i(o,"y")&&i(o,"y0")?o:a(o)})}function aJ(e){return Oe(e)?e:e==null?function(){}:s5(e)}function oJ(e,t){var n=!!e.eventKey,r=aJ(e.eventKey);return t.map(function(i,a){if(i.eventKey!==void 0)return i;if(n){var o=r(i,a);return o!==void 0?R({eventKey:o},i):i}return i})}function lJ(e,t,n){var r=function(g){return g!==void 0},i=dn(t.x),a=Ln(t.x),o=dn(t.y),l=Ln(t.y),s=function(g){return function(p){return r(p)&&p<g}},u=function(g){return function(p){return r(p)&&p>g}},c=s(i),f=s(o),d=u(a),h=u(l);return e.map(function(g){var p=g._x,y=g._y,_=g._y0,b=g._y1;(c(p)||d(p))&&(p=null);var S=r(_)?_:n,O=r(b)?b:y;return r(O)?(!r(S)&&(f(O)||h(O))&&(y=null),(f(S)&&f(O)||h(S)&&h(O))&&(y=_=b=null),f(S)&&!f(O)&&(_=o),h(S)&&!h(O)&&(_=l),R({},g,mw({_x:p,_y:y,_y0:_,_y1:b},RX))):g})}function fg(e,t){var n=Iw(e,t),r=$w(e,t),i=cJ(e,t),a=va([].concat(ds(n),ds(r),ds(i)));return a.length===0?null:a.reduce(function(o,l,s){return o[l]=s+1,o},{})}function sJ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=jw(e);if(r>t){var i=Math.pow(2,Math.ceil(Math.log2(r/t)));return e.filter(function(a,o){return(o+n)%i===0})}return e}function dg(e,t,n){var r=Array.isArray(e)||fs(e);if(!r||jw(e)<1)return[];var i=["x","y","y0"];n=Array.isArray(n)?n:i;var a=function(d){return mc(t[d]!==void 0?t[d]:d)},o=n.reduce(function(d,h){return d[h]=a(h),d},{}),l=UX(n,i)&&t.x==="_x"&&t.y==="_y"&&t.y0==="_y0",s;l===!1&&(s={x:n.indexOf("x")!==-1?fg(t,"x"):void 0,y:n.indexOf("y")!==-1?fg(t,"y"):void 0,y0:n.indexOf("y0")!==-1?fg(t,"y"):void 0});var u=l?e:e.reduce(function(d,h,g){h=cg(h);var p={x:g,y:h},y=n.reduce(function(b,S){var O=o[S](h),w=O!==void 0?O:p[S];return w!==void 0&&(typeof w=="string"&&s[S]?(b["".concat(S,"Name")]=w,b["_".concat(S)]=s[S][w]):b["_".concat(S)]=w),b},{}),_=R({},y,h);return rt(_)||d.push(_),d},[]),c=Dw(u,t.sortKey,t.sortOrder),f=iJ(c,t);return oJ(t,f)}function uJ(e){var t=Mw(e,"x"),n=Mw(e,"y"),r=t.map(function(i,a){return{x:i,y:n[a]}});return r}function hg(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function Gt(e){return e.data?dg(e.data,e):dg(uJ(e),e)}function Iw(e,t){var n=e.tickValues,r=e.tickFormat,i;return!n||!Array.isArray(n)&&!n[t]?i=r&&Array.isArray(r)?r:[]:i=n[t]||n,i.filter(function(a){return typeof a=="string"})}function $w(e,t){if(!e.categories)return[];var n=hg(e,t),r=n&&n.filter(function(i){return typeof i=="string"});return r?a2(r):[]}function cJ(e,t){var n=Array.isArray(e.data)||fs(e.data);if(!n)return[];var r=e[t]===void 0?t:e[t],i=mc(r),a=e.data.reduce(function(s,u){return s.push(cg(u)),s},[]),o=Dw(a,e.sortKey,e.sortOrder),l=o.reduce(function(s,u){return u=cg(u),s.push(i(u)),s},[]).filter(function(s){return typeof s=="string"});return l.reduce(function(s,u){return u!=null&&s.indexOf(u)===-1&&s.push(u),s},[])}function ko(e){var t=function(a){return a&&a.type?a.type.role:""},n=t(e);if(n==="portal"){var r=x.Children.toArray(e.props.children);n=r.length?t(r[0]):""}var i=["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"];return qr(i,n)}function Lw(e){return mJ(e)||hJ(e)||dJ(e)||fJ()}function fJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
194
194
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dJ(e,t){if(e){if(typeof e=="string")return mg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mg(e,t)}}function hJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mJ(e){if(Array.isArray(e))return mg(e)}function mg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gJ(e,t,n){var r=Ec(t,n);if(r!=="log")return e;var i=function(a){var o=a[0]<0||a[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,l=a[0]===0?o:a[0],s=a[1]===0?o:a[1];return[l,s]};return i(e)}function pJ(e,t){var n=function(r){return Array.isArray(r)?{left:r[0],right:r[1]}:{left:r,right:r}};return Qe(e.domainPadding)?n(e.domainPadding[t]):n(e.domainPadding)}function vJ(e,t){var n="_".concat(t);return ql(e).map(function(r){return r[n]&&r[n][1]!==void 0?r[n][1]:r[n]})}function Fw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"min",r=function(l){return n==="max"?Math.max.apply(Math,Lw(l)):Math.min.apply(Math,Lw(l))},i=n==="max"?-1/0:1/0,a=!1,o=ql(e).reduce(function(l,s){var u=s["_".concat(t,"0")]!==void 0?s["_".concat(t,"0")]:s["_".concat(t)],c=s["_".concat(t,"1")]!==void 0?s["_".concat(t,"1")]:s["_".concat(t)],f=r([u,c]);return a=a||u instanceof Date||c instanceof Date,r([l,f])},i);return a?new Date(o):o}function yJ(e,t,n){if(!t.domainPadding)return e;var r=xa(t,n),i=_a(t,n),a=pJ(t,n);if(!a.left&&!a.right)return e;var o=dn(e),l=Ln(e),s=tU(n,t.horizontal),u=xt(t,s),c=Math.abs(u[0]-u[1]),f=Math.max(c-a.left-a.right,1),d=Math.abs(l.valueOf()-o.valueOf())/f*c,h={left:d*a.left/c,right:d*a.right/c},g={min:o.valueOf()-h.left,max:l.valueOf()+h.right},p=Qe(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,y=o>=0&&g.min<=0||l<=0&&g.max>=0,_=function(A,T){var k=T==="min"&&o>=0&&A<=0||T==="max"&&l<=0&&A>=0;return k?0:A};if(y&&p!==!1){var b={left:Math.abs(l-o)*a.left/c,right:Math.abs(l-o)*a.right/c},S={min:_(o.valueOf()-b.left,"min"),max:_(l.valueOf()+b.right,"max")},O={left:Math.abs(S.max-S.min)*a.left/c,right:Math.abs(S.max-S.min)*a.right/c};g={min:_(o.valueOf()-O.left,"min"),max:_(l.valueOf()+O.right,"max")}}var w={min:r!==void 0?r:g.min,max:i!==void 0?i:g.max};return o instanceof Date||l instanceof Date?ri(new Date(w.min),new Date(w.max)):ri(w.min,w.max)}function gg(e,t){return e=Oe(e)?e:vg,t=Oe(t)?t:pg,function(n,r){var i=yg(n,r);if(i)return t(i,n,r);var a=hg(n,r),o=a?bJ(n,r,a):e(n,r);return o?t(o,n,r):void 0}}function pg(e,t,n){return gJ(yJ(e,t,n),t,n)}function ba(e,t){return gg()(e,t)}function bJ(e,t,n){n=n||hg(e,t);var r=e.polar,i=e.startAngle,a=i===void 0?0:i,o=e.endAngle,l=o===void 0?360:o;if(n){var s=xa(e,t),u=_a(e,t),c=pc(n)?$w(e,t):[],f=c.length===0?null:c.reduce(function(y,_,b){return y[_]=b+1,y},{}),d=f?n.map(function(y){return f[y]}):n,h=s!==void 0?s:dn(d),g=u!==void 0?u:Ln(d),p=ri(h,g);return r&&t==="x"&&Math.abs(a-l)===360?_g(p,d):p}}function vg(e,t,n){n=n||Gt(e);var r=e.polar,i=e.startAngle,a=i===void 0?0:i,o=e.endAngle,l=o===void 0?360:o,s=xa(e,t),u=_a(e,t);if(n.length<1)return s!==void 0&&u!==void 0?ri(s,u):void 0;var c=s!==void 0?s:Fw(n,t,"min"),f=u!==void 0?u:Fw(n,t,"max"),d=ri(c,f);return r&&t==="x"&&Math.abs(a-l)===360?_g(d,vJ(n,t)):d}function ri(e,t){var n=function(r){var i=r===0?2*Math.pow(10,-10):Math.pow(10,-10),a=1,o=r instanceof Date?new Date(Number(r)-a):Number(r)-i,l=r instanceof Date?new Date(Number(r)+a):Number(r)+i;return r===0?[0,l]:[o,l]};return Number(e)===Number(t)?n(t):[e,t]}function yg(e,t){var n=xa(e,t),r=_a(e,t);if(Qe(e.domain)&&e.domain[t])return e.domain[t];if(Array.isArray(e.domain))return e.domain;if(n!==void 0&&r!==void 0)return ri(n,r)}function bg(e,t){var n=yg(e,t);if(n)return n;var r=Gt(e),i=r.reduce(function(s,u){return u._y0<s?u._y0:s},1/0),a=function(s){if(t==="x")return s;var u=i!==1/0?i:0,c=_a(e,t),f=xa(e,t),d=c!==void 0?c:Ln(s,u),h=f!==void 0?f:dn(s,u);return ri(h,d)},o=function(){return vg(e,t,r)},l=function(s){return pg(a(s),e,t)};return gg(o,l)(e,t)}function _a(e,t){return Qe(e.maxDomain)&&e.maxDomain[t]!==void 0?e.maxDomain[t]:typeof e.maxDomain=="number"||Ew(e.maxDomain)?e.maxDomain:void 0}function xa(e,t){return Qe(e.minDomain)&&e.minDomain[t]!==void 0?e.minDomain[t]:typeof e.minDomain=="number"||Ew(e.minDomain)?e.minDomain:void 0}function _g(e,t){var n=FX(t.sort(function(i,a){return i-a})),r=n[1]-n[0];return[e[0],e[1]+r]}function Nw(e){var t=function(a){return a&&a.type?a.type.role:""},n=t(e);if(n==="portal"){var r=x.Children.toArray(e.props.children);n=r.length?t(r[0]):""}var i=["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"];return qr(i,n)}function Eo(e){return wJ(e)||SJ(e)||xJ(e)||_J()}function _J(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
195
195
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xJ(e,t){if(e){if(typeof e=="string")return xg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xg(e,t)}}function SJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wJ(e){if(Array.isArray(e))return xg(e)}function xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rn(e){var t=e.dependentAxis;return t?"y":"x"}function Bw(e,t){t=t||aa;var n=function(r){return r.reduce(function(i,a){return a.type&&a.type.role==="axis"&&t(a)?i.concat(a):a.props&&a.props.children?i.concat(n(x.Children.toArray(a.props.children))):i},[])};return n(e)}function Rw(e,t){var n=function(r){var i=r.type.getAxis(r.props);return i===t};return Bw(e,n)[0]}function Ww(e,t){var n=function(i){return t==="dependent"?i.props.dependentAxis:!i.props.dependentAxis},r=function(i){return i.reduce(function(a,o){if(o.type&&o.type.role==="axis"&&n(o))return a.concat(o);if(o.props&&o.props.children){var l=r(x.Children.toArray(o.props.children));return l.length>0?a.concat(o):a}return a},[])};return r(e)}function zw(e){var t=function(n){var r=Math.min.apply(Math,Eo(n)),i=Math.max.apply(Math,Eo(n));return i<0?i:Math.max(0,r)};return{x:$n(e.x)?new Date(Math.min.apply(Math,Eo(e.x))):t(e.x),y:$n(e.y)?new Date(Math.min.apply(Math,Eo(e.y))):t(e.y)}}function Vw(e,t){var n=function(){return e<=0&&Math.max.apply(Math,Eo(t))<=0?"negative":"positive"};return $n(t)?"positive":n()}function of(e){var t=e.orientation||(e.dependentAxis?"left":"bottom"),n={top:!1,bottom:!1,left:!0,right:!0};return n[t]}function lf(e){return e.tickValues!==void 0&&pc(e.tickValues)}function OJ(e){var t=e.tickValues,n=Rn(e),r=e.stringMap&&e.stringMap[n],i=t&&!$n(t)?function(u){return u}:void 0;if(!r)return lf(e)?function(u,c){return t[c]}:i;var a=r&&Aw(r),o=po(fc(r),function(u){return u}),l=o.map(function(u){return a[u]}),s=[""].concat(Eo(l),[""]);return function(u){return s[u]}}function CJ(e){var t=Rn(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],i=r&&lU(r)?r.map(function(o){return n[o]}):void 0,a=n&&fc(n);return i&&i.length!==0?i:a}function Sg(e){var t=e.tickValues,n=e.tickFormat,r=Rn(e),i=e.stringMap&&e.stringMap[r],a=function(){if(!(!n||!Array.isArray(n)))return pc(n)?n.map(function(u,c){return c}):n},o=t;i&&(o=CJ(e)),t&&pc(t)&&(o=i?t.map(function(u){return i[u]}):us(1,t.length+1));var l=o?va(o):a(),s=function(u){var c=[],f=e.domain&&e.domain[r]||e.domain;if(u)return u.forEach(function(d,h){Array.isArray(f)?d>=dn(f)&&d<=Ln(f)&&c.push({value:d,index:h}):c.push({value:d,index:h})}),c};return Array.isArray(l)&&l.length?s(l):void 0}function Uw(e,t){var n=e.tickFormat,r=Rn(e),i=e.stringMap&&e.stringMap[r];if(n){if(n&&Array.isArray(n)){var l=Sg(e),s=l==null?void 0:l.map(function(f){return f.index}),u=n.filter(function(f,d){return s==null?void 0:s.includes(d)});return function(f,d){return u[d]}}else if(n&&Oe(n)){var c=function(f,d,h){var g=Aw(i),p=h.map(function(y){return g[y]});return e.tickFormat(g[f],d,p)};return i?c:n}}else{var a=OJ(e),o=t.tickFormat&&Oe(t.tickFormat)?t.tickFormat():function(f){return f};return a||o}return function(f){return f}}function Hw(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;var n=Math.floor(e.length/t);return e.filter(function(r,i){return i%n===0})}function qw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.tickCount,i=Sg(e),a=i?i.map(function(f){return f.value}):void 0;if(a)return Hw(a,r);if(t.ticks&&Oe(t.ticks)){var o=r||5,l=t.ticks(o),s=Array.isArray(l)&&l.length?l:t.domain(),u=Hw(s,r);if(n){var c=qr(u,0)?cs(u,0):u;return c.length?c:u}return u}return t.domain()}function AJ(e,t){var n=e.polar,r=e.startAngle,i=r===void 0?0:r,a=e.endAngle,o=a===void 0?360:a,l=Sg(e),s=l?l.map(function(S){return S.value}):void 0;if(Array.isArray(s)){var u=xa(e,t),c=_a(e,t),f=lf(e),d=s.map(function(S){return Number(S)}),h=f?1:dn(d),g=f?s.length:Ln(d),p=u!==void 0?u:h,y=c!==void 0?c:g,_=ri(p,y),b=n&&t==="x"&&Math.abs(i-o)===360?_g(_,d):_;return of(e)&&!n&&b.reverse(),b}}function Po(e,t){var n=Rn(e);if(!(t&&t!==n))return gg(AJ)(e,n)}function Gw(e,t){if(e.axisValue){var n=t==="x"?"y":"x",r=lo(e.scale)&&Oe(e.scale[n])?e.scale[n]:void 0;if(r){var i=t==="x"?"y":"x",a=lo(e.stringMap)&&e.stringMap[i],o=a&&typeof e.axisValue=="string"?a[e.axisValue]:e.axisValue;return r(o)}}}function sf(e,t){if(!lo(e.theme))return St(e,t,"axis");var n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),n==="axis")return St(e,t,"axis");var r=ae({},e.theme[n],e.theme.axis),i=R({},e.theme,{axis:r});return St(R({},e,{theme:i}),t,"axis")}function Yw(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function Kw(){return{onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}},onExit:{duration:500,before:function(e,t,n){var r=function(i){var a=t===0?n[t+1]:n[t-1];return a[i]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(e,t,n){var r=function(i){var a=t===0?n[t+1]:n[t-1];return a[i]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(e){return{_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0}}}}}function TJ(){return{onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(e){return e}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(e){return e}}}}function Zw(e){var t=x.useRef();return x.useEffect(function(){t.current=e}),t.current}var kJ=Mm;function EJ(e,t){var n;return kJ(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var PJ=EJ,jJ=N1,MJ=Hr,DJ=PJ,IJ=Ft,$J=Bu;function LJ(e,t,n){var r=IJ(e)?jJ:DJ;return n&&$J(e,t,n)&&(t=void 0),r(e,MJ(t))}var FJ=LJ;const Xw=Ae(FJ);function Jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jw(Object(n),!0).forEach(function(r){NJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BJ(e,t){return VJ(e)||zJ(e,t)||WJ(e,t)||RJ()}function RJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
196
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WJ(e,t){if(e){if(typeof e=="string")return eO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eO(e,t)}}function eO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function VJ(e){if(Array.isArray(e))return e}var UJ={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},tO=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:UJ,t=x.useState(e),n=BJ(t,2),r=n[0],i=n[1],a=x.useCallback(function(u){i(function(c){return Qw(Qw({},c),u)})},[i]),o=x.useCallback(function(u,c,f){if(!(u!=null&&u.animate))return c.props.animate;var d=function(){var _=r&&r.childrenTransitions;return _=i2(_)?_[f]:_,ae({childrenTransitions:_},r)},h=u.animate&&u.animate.getTransitions,g=d(),p=u.animate&&u.animate.parentState||g;if(!h){var y=qS(u,g,function(_){return a(_)});h=function(_){return y(_,f)}}return ae({getTransitions:h,parentState:p},u.animate,c.props.animate)},[r,a]),l=x.useCallback(function(u,c){if(u!=null&&u.animate)if(u.animate.parentState){var f=u.animate.parentState.nodesWillExit,d=f?u:null,h=ae({oldProps:d,nextProps:c},u.animate.parentState);a(h)}else{var g=x.Children.toArray(u.children),p=x.Children.toArray(c.children),y=function(T){var k=function(j){return j.type&&j.type.continuous};return Array.isArray(T)?Xw(T,k):k(T)},_=!u.polar&&Xw(g,function(T){return y(T)||T.props.children&&y(T.props.children)}),b=HS(g,p),S=b.nodesWillExit,O=b.nodesWillEnter,w=b.childrenTransitions,A=b.nodesShouldEnter;a({nodesWillExit:S,nodesWillEnter:O,nodesShouldEnter:A,childrenTransitions:i2(w)?w[0]:w,oldProps:S?u:void 0,nextProps:c,continuous:_})}},[a]),s=x.useCallback(function(u){return r&&r.nodesWillExit&&r.oldProps||u},[r]);return{state:r,setState:a,getAnimationProps:o,setAnimationState:l,getProps:s}};const wg=Math.PI,Og=2*wg,Sa=1e-6,HJ=Og-Sa;function nO(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function qJ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return nO;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class rO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?nO:qJ(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,s=r-t,u=i-n,c=o-t,f=l-n,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>Sa)if(!(Math.abs(f*s-u*c)>Sa)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,g=i-l,p=s*s+u*u,y=h*h+g*g,_=Math.sqrt(p),b=Math.sqrt(d),S=a*Math.tan((wg-Math.acos((p+d-y)/(2*_*b)))/2),O=S/b,w=S/_;Math.abs(O-1)>Sa&&this._append`L${t+O*c},${n+O*f}`,this._append`A${a},${a},0,0,${+(f*h>c*g)},${this._x1=t+w*s},${this._y1=n+w*u}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),s=r*Math.sin(i),u=t+l,c=n+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Sa||Math.abs(this._y1-c)>Sa)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%Og+Og),d>HJ?this._append`A${r},${r},0,1,${f},${t-l},${n-s}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:d>Sa&&this._append`A${r},${r},0,${+(d>=wg)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function jo(){return new rO}jo.prototype=rO.prototype;function Pe(e){return function(){return e}}const iO=Math.abs,Yt=Math.atan2,ii=Math.cos,GJ=Math.max,Mo=Math.min,gn=Math.sin,it=Math.sqrt,Kt=1e-12,Di=Math.PI,uf=Di/2,Ii=2*Di;function YJ(e){return e>1?0:e<-1?Di:Math.acos(e)}function aO(e){return e>=1?uf:e<=-1?-uf:Math.asin(e)}function KJ(e){return e.innerRadius}function ZJ(e){return e.outerRadius}function XJ(e){return e.startAngle}function JJ(e){return e.endAngle}function QJ(e){return e&&e.padAngle}function eQ(e,t,n,r,i,a,o,l){var s=n-e,u=r-t,c=o-i,f=l-a,d=f*s-c*u;if(!(d*d<Kt))return d=(c*(t-a)-f*(e-i))/d,[e+d*s,t+d*u]}function cf(e,t,n,r,i,a,o){var l=e-n,s=t-r,u=(o?a:-a)/it(l*l+s*s),c=u*s,f=-u*l,d=e+c,h=t+f,g=n+c,p=r+f,y=(d+g)/2,_=(h+p)/2,b=g-d,S=p-h,O=b*b+S*S,w=i-a,A=d*p-g*h,T=(S<0?-1:1)*it(GJ(0,w*w*O-A*A)),k=(A*S-b*T)/O,j=(-A*b-S*T)/O,N=(A*S+b*T)/O,M=(-A*b+S*T)/O,E=k-y,I=j-_,D=N-y,W=M-_;return E*E+I*I>D*D+W*W&&(k=N,j=M),{cx:k,cy:j,x01:-c,y01:-f,x11:k*(i/w-1),y11:j*(i/w-1)}}function Cg(){var e=KJ,t=ZJ,n=Pe(0),r=null,i=XJ,a=JJ,o=QJ,l=null;function s(){var u,c,f=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-uf,g=a.apply(this,arguments)-uf,p=iO(g-h),y=g>h;if(l||(l=u=jo()),d<f&&(c=d,d=f,f=c),!(d>Kt))l.moveTo(0,0);else if(p>Ii-Kt)l.moveTo(d*ii(h),d*gn(h)),l.arc(0,0,d,h,g,!y),f>Kt&&(l.moveTo(f*ii(g),f*gn(g)),l.arc(0,0,f,g,h,y));else{var _=h,b=g,S=h,O=g,w=p,A=p,T=o.apply(this,arguments)/2,k=T>Kt&&(r?+r.apply(this,arguments):it(f*f+d*d)),j=Mo(iO(d-f)/2,+n.apply(this,arguments)),N=j,M=j,E,I;if(k>Kt){var D=aO(k/f*gn(T)),W=aO(k/d*gn(T));(w-=D*2)>Kt?(D*=y?1:-1,S+=D,O-=D):(w=0,S=O=(h+g)/2),(A-=W*2)>Kt?(W*=y?1:-1,_+=W,b-=W):(A=0,_=b=(h+g)/2)}var X=d*ii(_),re=d*gn(_),ne=f*ii(O),ee=f*gn(O);if(j>Kt){var z=d*ii(b),Z=d*gn(b),q=f*ii(S),Y=f*gn(S),G;if(p<Di&&(G=eQ(X,re,q,Y,z,Z,ne,ee))){var ie=X-G[0],B=re-G[1],se=z-G[0],K=Z-G[1],J=1/gn(YJ((ie*se+B*K)/(it(ie*ie+B*B)*it(se*se+K*K)))/2),te=it(G[0]*G[0]+G[1]*G[1]);N=Mo(j,(f-te)/(J-1)),M=Mo(j,(d-te)/(J+1))}}A>Kt?M>Kt?(E=cf(q,Y,X,re,d,M,y),I=cf(z,Z,ne,ee,d,M,y),l.moveTo(E.cx+E.x01,E.cy+E.y01),M<j?l.arc(E.cx,E.cy,M,Yt(E.y01,E.x01),Yt(I.y01,I.x01),!y):(l.arc(E.cx,E.cy,M,Yt(E.y01,E.x01),Yt(E.y11,E.x11),!y),l.arc(0,0,d,Yt(E.cy+E.y11,E.cx+E.x11),Yt(I.cy+I.y11,I.cx+I.x11),!y),l.arc(I.cx,I.cy,M,Yt(I.y11,I.x11),Yt(I.y01,I.x01),!y))):(l.moveTo(X,re),l.arc(0,0,d,_,b,!y)):l.moveTo(X,re),!(f>Kt)||!(w>Kt)?l.lineTo(ne,ee):N>Kt?(E=cf(ne,ee,z,Z,f,-N,y),I=cf(X,re,q,Y,f,-N,y),l.lineTo(E.cx+E.x01,E.cy+E.y01),N<j?l.arc(E.cx,E.cy,N,Yt(E.y01,E.x01),Yt(I.y01,I.x01),!y):(l.arc(E.cx,E.cy,N,Yt(E.y01,E.x01),Yt(E.y11,E.x11),!y),l.arc(0,0,f,Yt(E.cy+E.y11,E.cx+E.x11),Yt(I.cy+I.y11,I.cx+I.x11),y),l.arc(I.cx,I.cy,N,Yt(I.y11,I.x11),Yt(I.y01,I.x01),!y))):l.arc(0,0,f,O,S,y)}if(l.closePath(),u)return l=null,u+""||null}return s.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,c=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Di/2;return[ii(c)*u,gn(c)*u]},s.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:Pe(+u),s):e},s.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:Pe(+u),s):t},s.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:Pe(+u),s):n},s.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:Pe(+u),s):r},s.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:Pe(+u),s):i},s.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:Pe(+u),s):a},s.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:Pe(+u),s):o},s.context=function(u){return arguments.length?(l=u??null,s):l},s}var tQ=Array.prototype.slice;function ff(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function oO(e){this._context=e}oO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&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);break}}};function hs(e){return new oO(e)}function Ag(e){return e[0]}function Tg(e){return e[1]}function df(e,t){var n=Pe(!0),r=null,i=hs,a=null;e=typeof e=="function"?e:e===void 0?Ag:Pe(e),t=typeof t=="function"?t:t===void 0?Tg:Pe(t);function o(l){var s,u=(l=ff(l)).length,c,f=!1,d;for(r==null&&(a=i(d=jo())),s=0;s<=u;++s)!(s<u&&n(c=l[s],s,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(c,s,l),+t(c,s,l));if(d)return a=null,d+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Pe(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:Pe(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Pe(!!l),o):n},o.curve=function(l){return arguments.length?(i=l,r!=null&&(a=i(r)),o):i},o.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),o):r},o}function hf(e,t,n){var r=null,i=Pe(!0),a=null,o=hs,l=null;e=typeof e=="function"?e:e===void 0?Ag:Pe(+e),t=typeof t=="function"?t:Pe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Tg:Pe(+n);function s(c){var f,d,h,g=(c=ff(c)).length,p,y=!1,_,b=new Array(g),S=new Array(g);for(a==null&&(l=o(_=jo())),f=0;f<=g;++f){if(!(f<g&&i(p=c[f],f,c))===y)if(y=!y)d=f,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=f-1;h>=d;--h)l.point(b[h],S[h]);l.lineEnd(),l.areaEnd()}y&&(b[f]=+e(p,f,c),S[f]=+t(p,f,c),l.point(r?+r(p,f,c):b[f],n?+n(p,f,c):S[f]))}if(_)return l=null,_+""||null}function u(){return df().defined(i).curve(o).context(a)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),r=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),s):e},s.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Pe(+c),s):r},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),n=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),s):t},s.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Pe(+c),s):n},s.lineX0=s.lineY0=function(){return u().x(e).y(t)},s.lineY1=function(){return u().x(e).y(n)},s.lineX1=function(){return u().x(r).y(t)},s.defined=function(c){return arguments.length?(i=typeof c=="function"?c:Pe(!!c),s):i},s.curve=function(c){return arguments.length?(o=c,a!=null&&(l=o(a)),s):o},s.context=function(c){return arguments.length?(c==null?a=l=null:l=o(a=c),s):a},s}function nQ(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function rQ(e){return e}function lO(){var e=rQ,t=nQ,n=null,r=Pe(0),i=Pe(Ii),a=Pe(0);function o(l){var s,u=(l=ff(l)).length,c,f,d=0,h=new Array(u),g=new Array(u),p=+r.apply(this,arguments),y=Math.min(Ii,Math.max(-Ii,i.apply(this,arguments)-p)),_,b=Math.min(Math.abs(y)/u,a.apply(this,arguments)),S=b*(y<0?-1:1),O;for(s=0;s<u;++s)(O=g[h[s]=s]=+e(l[s],s,l))>0&&(d+=O);for(t!=null?h.sort(function(w,A){return t(g[w],g[A])}):n!=null&&h.sort(function(w,A){return n(l[w],l[A])}),s=0,f=d?(y-u*S)/d:0;s<u;++s,p=_)c=h[s],O=g[c],_=p+(O>0?O*f:0)+S,g[c]={data:l[c],index:s,value:O,startAngle:p,endAngle:_,padAngle:b};return g}return o.value=function(l){return arguments.length?(e=typeof l=="function"?l:Pe(+l),o):e},o.sortValues=function(l){return arguments.length?(t=l,n=null,o):t},o.sort=function(l){return arguments.length?(n=l,t=null,o):n},o.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:Pe(+l),o):r},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Pe(+l),o):i},o.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Pe(+l),o):a},o}var sO=kg(hs);function uO(e){this._curve=e}uO.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function kg(e){function t(n){return new uO(e(n))}return t._curve=e,t}function ms(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(kg(n)):t()._curve},e}function Eg(){return ms(df().curve(sO))}function Pg(){var e=hf().curve(sO),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return ms(n())},delete e.lineX0,e.lineEndAngle=function(){return ms(r())},delete e.lineX1,e.lineInnerRadius=function(){return ms(i())},delete e.lineY0,e.lineOuterRadius=function(){return ms(a())},delete e.lineY1,e.curve=function(o){return arguments.length?t(kg(o)):t()._curve},e}function gs(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class cO{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class iQ{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point++===0)this._x0=t,this._y0=n;else{const r=gs(this._x0,this._y0),i=gs(this._x0,this._y0=(this._y0+n)/2),a=gs(t,this._y0),o=gs(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...a,...o)}}}function fO(e){return new cO(e,!0)}function dO(e){return new cO(e,!1)}function aQ(e){return new iQ(e)}function oQ(e){return e.source}function lQ(e){return e.target}function mf(e){let t=oQ,n=lQ,r=Ag,i=Tg,a=null,o=null;function l(){let s;const u=tQ.call(arguments),c=t.apply(this,u),f=n.apply(this,u);if(a==null&&(o=e(s=jo())),o.lineStart(),u[0]=c,o.point(+r.apply(this,u),+i.apply(this,u)),u[0]=f,o.point(+r.apply(this,u),+i.apply(this,u)),o.lineEnd(),s)return o=null,s+""||null}return l.source=function(s){return arguments.length?(t=s,l):t},l.target=function(s){return arguments.length?(n=s,l):n},l.x=function(s){return arguments.length?(r=typeof s=="function"?s:Pe(+s),l):r},l.y=function(s){return arguments.length?(i=typeof s=="function"?s:Pe(+s),l):i},l.context=function(s){return arguments.length?(s==null?a=o=null:o=e(a=s),l):a},l}function sQ(){return mf(fO)}function uQ(){return mf(dO)}function cQ(){const e=mf(aQ);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const fQ=it(3),hO={draw(e,t){const n=it(t+Mo(t/28,.75))*.59436,r=n/2,i=r*fQ;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},gf={draw(e,t){const n=it(t/Di);e.moveTo(n,0),e.arc(0,0,n,0,Ii)}},mO={draw(e,t){const n=it(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},gO=it(1/3),dQ=gO*2,pO={draw(e,t){const n=it(t/dQ),r=n*gO;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},vO={draw(e,t){const n=it(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},yO={draw(e,t){const n=it(t-Mo(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},bO={draw(e,t){const n=it(t),r=-n/2;e.rect(r,r,n,n)}},_O={draw(e,t){const n=it(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},hQ=.8908130915292852,xO=gn(Di/10)/gn(7*Di/10),mQ=gn(Ii/10)*xO,gQ=-ii(Ii/10)*xO,SO={draw(e,t){const n=it(t*hQ),r=mQ*n,i=gQ*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=Ii*a/5,l=ii(o),s=gn(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*i,s*r+l*i)}e.closePath()}},jg=it(3),wO={draw(e,t){const n=-it(t/(jg*3));e.moveTo(0,n*2),e.lineTo(-jg*n,-n),e.lineTo(jg*n,-n),e.closePath()}},pQ=it(3),OO={draw(e,t){const n=it(t)*.6824,r=n/2,i=n*pQ/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},Wn=-.5,zn=it(3)/2,Mg=1/it(12),vQ=(Mg/2+1)*3,CO={draw(e,t){const n=it(t/vQ),r=n/2,i=n*Mg,a=r,o=n*Mg+n,l=-a,s=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(Wn*r-zn*i,zn*r+Wn*i),e.lineTo(Wn*a-zn*o,zn*a+Wn*o),e.lineTo(Wn*l-zn*s,zn*l+Wn*s),e.lineTo(Wn*r+zn*i,Wn*i-zn*r),e.lineTo(Wn*a+zn*o,Wn*o-zn*a),e.lineTo(Wn*l+zn*s,Wn*s-zn*l),e.closePath()}},AO={draw(e,t){const n=it(t-Mo(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},TO=[gf,mO,pO,bO,SO,wO,CO],yQ=[gf,yO,AO,OO,hO,_O,vO];function bQ(e,t){let n=null;e=typeof e=="function"?e:Pe(e||gf),t=typeof t=="function"?t:Pe(t===void 0?64:+t);function r(){let i;if(n||(n=i=jo()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return r.type=function(i){return arguments.length?(e=typeof i=="function"?i:Pe(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:Pe(+i),r):t},r.context=function(i){return arguments.length?(n=i??null,r):n},r}function $i(){}function pf(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function vf(e){this._context=e}vf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:pf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:pf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _Q(e){return new vf(e)}function kO(e){this._context=e}kO.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:pf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xQ(e){return new kO(e)}function EO(e){this._context=e}EO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:pf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function SQ(e){return new EO(e)}function PO(e,t){this._basis=new vf(e),this._beta=t}PO.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,l=-1,s;++l<=n;)s=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+s*a),this._beta*t[l]+(1-this._beta)*(i+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const wQ=function e(t){function n(r){return t===1?new vf(r):new PO(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function yf(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Dg(e,t){this._context=e,this._k=(1-t)/6}Dg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:yf(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:yf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const OQ=function e(t){function n(r){return new Dg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ig(e,t){this._context=e,this._k=(1-t)/6}Ig.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:yf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const CQ=function e(t){function n(r){return new Ig(r,t)}return n.tension=function(r){return e(+r)},n}(0);function $g(e,t){this._context=e,this._k=(1-t)/6}$g.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:yf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const AQ=function e(t){function n(r){return new $g(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Lg(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Kt){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>Kt){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function jO(e,t){this._context=e,this._alpha=t}jO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:Lg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const TQ=function e(t){function n(r){return t?new jO(r,t):new Dg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function MO(e,t){this._context=e,this._alpha=t}MO.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Lg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const kQ=function e(t){function n(r){return t?new MO(r,t):new Ig(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function DO(e,t){this._context=e,this._alpha=t}DO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Lg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const EQ=function e(t){function n(r){return t?new DO(r,t):new $g(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function IO(e){this._context=e}IO.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function PQ(e){return new IO(e)}function $O(e){return e<0?-1:1}function LO(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return($O(a)+$O(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function FO(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Fg(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function bf(e){this._context=e}bf.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:Fg(this,this._t0,FO(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(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,Fg(this,FO(this,n=LO(this,e,t)),n);break;default:Fg(this,this._t0,n=LO(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function NO(e){this._context=new BO(e)}(NO.prototype=Object.create(bf.prototype)).point=function(e,t){bf.prototype.point.call(this,t,e)};function BO(e){this._context=e}BO.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,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function jQ(e){return new bf(e)}function MQ(e){return new NO(e)}function RO(e){this._context=e}RO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=WO(e),i=WO(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function WO(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function DQ(e){return new RO(e)}function _f(e,t){this._context=e,this._t=t}_f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,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:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function IQ(e){return new _f(e,.5)}function $Q(e){return new _f(e,0)}function LQ(e){return new _f(e,1)}function Do(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,l=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Io(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function FQ(e,t){return e[t]}function NQ(e){const t=[];return t.key=e,t}function BQ(){var e=Pe([]),t=Io,n=Do,r=FQ;function i(a){var o=Array.from(e.apply(this,arguments),NQ),l,s=o.length,u=-1,c;for(const f of a)for(l=0,++u;l<s;++l)(o[l][u]=[0,+r(f,o[l].key,u,a)]).data=f;for(l=0,c=ff(t(o));l<s;++l)o[c[l]].index=l;return n(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Pe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Pe(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?Io:typeof a=="function"?a:Pe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??Do,i):n},i}function RQ(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Do(e,t)}}function WQ(e,t){if((s=e.length)>0)for(var n,r=0,i,a,o,l,s,u=e[t[0]].length;r<u;++r)for(o=l=0,n=0;n<s;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=l,i[0]=l+=a):(i[0]=0,i[1]=a)}function zQ(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}Do(e,t)}}function VQ(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var l=0,s=0,u=0;l<o;++l){for(var c=e[t[l]],f=c[r][1]||0,d=c[r-1][1]||0,h=(f-d)/2,g=0;g<l;++g){var p=e[t[g]],y=p[r][1]||0,_=p[r-1][1]||0;h+=y-_}s+=f,u+=h*f}i[r-1][1]+=i[r-1][0]=n,s&&(n-=u/s)}i[r-1][1]+=i[r-1][0]=n,Do(e,t)}}function zO(e){var t=e.map(UQ);return Io(e).sort(function(n,r){return t[n]-t[r]})}function UQ(e){for(var t=-1,n=0,r=e.length,i,a=-1/0;++t<r;)(i=+e[t][1])>a&&(a=i,n=t);return n}function VO(e){var t=e.map(UO);return Io(e).sort(function(n,r){return t[n]-t[r]})}function UO(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function HQ(e){return VO(e).reverse()}function qQ(e){var t=e.length,n,r,i=e.map(UO),a=zO(e),o=0,l=0,s=[],u=[];for(n=0;n<t;++n)r=a[n],o<l?(o+=i[r],s.push(r)):(l+=i[r],u.push(r));return u.reverse().concat(s)}function GQ(e){return Io(e).reverse()}const YQ=Object.freeze(Object.defineProperty({__proto__:null,arc:Cg,area:hf,areaRadial:Pg,curveBasis:_Q,curveBasisClosed:xQ,curveBasisOpen:SQ,curveBumpX:fO,curveBumpY:dO,curveBundle:wQ,curveCardinal:OQ,curveCardinalClosed:CQ,curveCardinalOpen:AQ,curveCatmullRom:TQ,curveCatmullRomClosed:kQ,curveCatmullRomOpen:EQ,curveLinear:hs,curveLinearClosed:PQ,curveMonotoneX:jQ,curveMonotoneY:MQ,curveNatural:DQ,curveStep:IQ,curveStepAfter:LQ,curveStepBefore:$Q,line:df,lineRadial:Eg,link:mf,linkHorizontal:sQ,linkRadial:cQ,linkVertical:uQ,pie:lO,pointRadial:gs,radialArea:Pg,radialLine:Eg,stack:BQ,stackOffsetDiverging:WQ,stackOffsetExpand:RQ,stackOffsetNone:Do,stackOffsetSilhouette:zQ,stackOffsetWiggle:VQ,stackOrderAppearance:zO,stackOrderAscending:VO,stackOrderDescending:HQ,stackOrderInsideOut:qQ,stackOrderNone:Io,stackOrderReverse:GQ,symbol:bQ,symbolAsterisk:hO,symbolCircle:gf,symbolCross:mO,symbolDiamond:pO,symbolDiamond2:vO,symbolPlus:yO,symbolSquare:bO,symbolSquare2:_O,symbolStar:SO,symbolTriangle:wO,symbolTriangle2:OO,symbolWye:CO,symbolX:AO,symbols:TO,symbolsFill:TO,symbolsStroke:yQ},Symbol.toStringTag,{value:"Module"}));var HO=function(e){var t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},qO=function(e){return function(t){return e.x(t._x1!==void 0?t._x1:t._x)}},Ng=function(e){return function(t){return e.y(t._y1!==void 0?t._y1:t._y)}},KQ=function(e){return function(t){var n=e.x(t._x1!==void 0?t._x1:t._x);return-1*n+Math.PI/2}},GO=function(e){var t=function(n){return n&&n[0].toUpperCase()+n.slice(1)};return"curve".concat(t(e))},ZQ=function(e){return"".concat(GO(e),"Closed")},xf=function(e){var t=e.interpolation;if(typeof t=="function")return t;if(typeof t=="string"){var n=e.polar,r=e.openCurve,i=r===void 0?!n:r,a=i?GO(t):ZQ(t);return YQ[a]}return hs},YO=function(e){var t=e.polar,n=e.scale,r=e.horizontal;return t?Eg().defined(HO).curve(xf(e)).angle(KQ(n)).radius(Ng(n)):df().defined(HO).curve(xf(e)).x(r?Ng(n):qO(n)).y(r?qO(n):Ng(n))};function KO(e,t,n){var r=t.a,i=t.d,a=t.e,o=t.f;return n==="y"?i*e+o:r*e+a}function XQ(e){return e.getScreenCTM().inverse()}function ZO(e){return!!(e&&e.identifier!==void 0)}function JQ(e){return e.changedTouches&&e.changedTouches.length>0}function ai(e){if(!ZO(e.nativeEvent)){var t=function(n){return n.nodeName==="svg"?n:n.parentNode?t(n.parentNode):n};return t(e.target)}}function Tr(e,t){if(ZO(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};var n=JQ(e)?e.changedTouches[0]:e;t=t||ai(n);var r=XQ(t);return{x:KO(n.clientX,r,"x"),y:KO(n.clientY,r,"y")}}function oi(e,t){var n=e.horizontal,r=e.scale,i=t||{x:r.x.domain(),y:r.y.domain()};return{x:n?[r.y(i.y[0]),r.y(i.y[1])]:[r.x(i.x[0]),r.x(i.x[1])],y:n?[r.x(i.x[0]),r.x(i.x[1])]:[r.y(i.y[0]),r.y(i.y[1])]}}function Sf(e,t,n,r){var i=e.polar,a=e.horizontal;if(!i)return{x:a?t.x.invert(r):t.x.invert(n),y:a?t.y.invert(n):t.y.invert(r)};var o=e.origin||{x:0,y:0},l=n-o.x,s=r-o.y,u=Math.abs(l*Math.sqrt(1+Math.pow(-s/l,2))),c=(-Math.atan2(s,l)+Math.PI*2)%(Math.PI*2);return{x:t.x.invert(c),y:t.y.invert(u)}}function wf(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.scale,o=Sf(e,a,t,r),l=Sf(e,a,n,i),s=function(u,c){return[dn([u,c]),Ln([u,c])]};return{x:s(o.x,l.x),y:s(o.y,l.y)}}var QQ=Hr,eee=dw;function tee(e,t){return e&&e.length?eee(e,QQ(t)):[]}var nee=tee;const XO=Ae(nee);function ree(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}var iee=ree,aee=Mm;function oee(e,t,n,r){return aee(e,function(i,a,o){t(r,i,n(i),o)}),r}var lee=oee,see=iee,uee=lee,cee=Hr,fee=Ft;function dee(e,t){return function(n,r){var i=fee(n)?see:uee,a=t?t():{};return i(n,e,cee(r),a)}}var hee=dee,mee=Ml,gee=hee,pee=Object.prototype,vee=pee.hasOwnProperty,yee=gee(function(e,t,n){vee.call(e,n)?e[n].push(t):mee(e,n,[t])}),bee=yee;const Of=Ae(bee);function lr(e){return wee(e)||See(e)||xee(e)||_ee()}function _ee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
196
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WJ(e,t){if(e){if(typeof e=="string")return eO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eO(e,t)}}function eO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function VJ(e){if(Array.isArray(e))return e}var UJ={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},tO=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:UJ,t=x.useState(e),n=BJ(t,2),r=n[0],i=n[1],a=x.useCallback(function(u){i(function(c){return Qw(Qw({},c),u)})},[i]),o=x.useCallback(function(u,c,f){if(!(u!=null&&u.animate))return c.props.animate;var d=function(){var _=r&&r.childrenTransitions;return _=i2(_)?_[f]:_,ae({childrenTransitions:_},r)},h=u.animate&&u.animate.getTransitions,g=d(),p=u.animate&&u.animate.parentState||g;if(!h){var y=qS(u,g,function(_){return a(_)});h=function(_){return y(_,f)}}return ae({getTransitions:h,parentState:p},u.animate,c.props.animate)},[r,a]),l=x.useCallback(function(u,c){if(u!=null&&u.animate)if(u.animate.parentState){var f=u.animate.parentState.nodesWillExit,d=f?u:null,h=ae({oldProps:d,nextProps:c},u.animate.parentState);a(h)}else{var g=x.Children.toArray(u.children),p=x.Children.toArray(c.children),y=function(T){var k=function(j){return j.type&&j.type.continuous};return Array.isArray(T)?Xw(T,k):k(T)},_=!u.polar&&Xw(g,function(T){return y(T)||T.props.children&&y(T.props.children)}),b=HS(g,p),S=b.nodesWillExit,O=b.nodesWillEnter,w=b.childrenTransitions,A=b.nodesShouldEnter;a({nodesWillExit:S,nodesWillEnter:O,nodesShouldEnter:A,childrenTransitions:i2(w)?w[0]:w,oldProps:S?u:void 0,nextProps:c,continuous:_})}},[a]),s=x.useCallback(function(u){return r&&r.nodesWillExit&&r.oldProps||u},[r]);return{state:r,setState:a,getAnimationProps:o,setAnimationState:l,getProps:s}};const wg=Math.PI,Og=2*wg,Sa=1e-6,HJ=Og-Sa;function nO(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function qJ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return nO;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class rO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?nO:qJ(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,s=r-t,u=i-n,c=o-t,f=l-n,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>Sa)if(!(Math.abs(f*s-u*c)>Sa)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,g=i-l,p=s*s+u*u,y=h*h+g*g,_=Math.sqrt(p),b=Math.sqrt(d),S=a*Math.tan((wg-Math.acos((p+d-y)/(2*_*b)))/2),O=S/b,w=S/_;Math.abs(O-1)>Sa&&this._append`L${t+O*c},${n+O*f}`,this._append`A${a},${a},0,0,${+(f*h>c*g)},${this._x1=t+w*s},${this._y1=n+w*u}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),s=r*Math.sin(i),u=t+l,c=n+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Sa||Math.abs(this._y1-c)>Sa)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%Og+Og),d>HJ?this._append`A${r},${r},0,1,${f},${t-l},${n-s}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:d>Sa&&this._append`A${r},${r},0,${+(d>=wg)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function jo(){return new rO}jo.prototype=rO.prototype;function Pe(e){return function(){return e}}const iO=Math.abs,Yt=Math.atan2,ii=Math.cos,GJ=Math.max,Mo=Math.min,gn=Math.sin,it=Math.sqrt,Kt=1e-12,Di=Math.PI,uf=Di/2,Ii=2*Di;function YJ(e){return e>1?0:e<-1?Di:Math.acos(e)}function aO(e){return e>=1?uf:e<=-1?-uf:Math.asin(e)}function KJ(e){return e.innerRadius}function ZJ(e){return e.outerRadius}function XJ(e){return e.startAngle}function JJ(e){return e.endAngle}function QJ(e){return e&&e.padAngle}function eQ(e,t,n,r,i,a,o,l){var s=n-e,u=r-t,c=o-i,f=l-a,d=f*s-c*u;if(!(d*d<Kt))return d=(c*(t-a)-f*(e-i))/d,[e+d*s,t+d*u]}function cf(e,t,n,r,i,a,o){var l=e-n,s=t-r,u=(o?a:-a)/it(l*l+s*s),c=u*s,f=-u*l,d=e+c,h=t+f,g=n+c,p=r+f,y=(d+g)/2,_=(h+p)/2,b=g-d,S=p-h,O=b*b+S*S,w=i-a,A=d*p-g*h,T=(S<0?-1:1)*it(GJ(0,w*w*O-A*A)),k=(A*S-b*T)/O,j=(-A*b-S*T)/O,N=(A*S+b*T)/O,M=(-A*b+S*T)/O,E=k-y,D=j-_,I=N-y,W=M-_;return E*E+D*D>I*I+W*W&&(k=N,j=M),{cx:k,cy:j,x01:-c,y01:-f,x11:k*(i/w-1),y11:j*(i/w-1)}}function Cg(){var e=KJ,t=ZJ,n=Pe(0),r=null,i=XJ,a=JJ,o=QJ,l=null;function s(){var u,c,f=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-uf,g=a.apply(this,arguments)-uf,p=iO(g-h),y=g>h;if(l||(l=u=jo()),d<f&&(c=d,d=f,f=c),!(d>Kt))l.moveTo(0,0);else if(p>Ii-Kt)l.moveTo(d*ii(h),d*gn(h)),l.arc(0,0,d,h,g,!y),f>Kt&&(l.moveTo(f*ii(g),f*gn(g)),l.arc(0,0,f,g,h,y));else{var _=h,b=g,S=h,O=g,w=p,A=p,T=o.apply(this,arguments)/2,k=T>Kt&&(r?+r.apply(this,arguments):it(f*f+d*d)),j=Mo(iO(d-f)/2,+n.apply(this,arguments)),N=j,M=j,E,D;if(k>Kt){var I=aO(k/f*gn(T)),W=aO(k/d*gn(T));(w-=I*2)>Kt?(I*=y?1:-1,S+=I,O-=I):(w=0,S=O=(h+g)/2),(A-=W*2)>Kt?(W*=y?1:-1,_+=W,b-=W):(A=0,_=b=(h+g)/2)}var Z=d*ii(_),ne=d*gn(_),re=f*ii(O),J=f*gn(O);if(j>Kt){var z=d*ii(b),X=d*gn(b),H=f*ii(S),Y=f*gn(S),G;if(p<Di&&(G=eQ(Z,ne,H,Y,z,X,re,J))){var ie=Z-G[0],B=ne-G[1],se=z-G[0],K=X-G[1],Q=1/gn(YJ((ie*se+B*K)/(it(ie*ie+B*B)*it(se*se+K*K)))/2),te=it(G[0]*G[0]+G[1]*G[1]);N=Mo(j,(f-te)/(Q-1)),M=Mo(j,(d-te)/(Q+1))}}A>Kt?M>Kt?(E=cf(H,Y,Z,ne,d,M,y),D=cf(z,X,re,J,d,M,y),l.moveTo(E.cx+E.x01,E.cy+E.y01),M<j?l.arc(E.cx,E.cy,M,Yt(E.y01,E.x01),Yt(D.y01,D.x01),!y):(l.arc(E.cx,E.cy,M,Yt(E.y01,E.x01),Yt(E.y11,E.x11),!y),l.arc(0,0,d,Yt(E.cy+E.y11,E.cx+E.x11),Yt(D.cy+D.y11,D.cx+D.x11),!y),l.arc(D.cx,D.cy,M,Yt(D.y11,D.x11),Yt(D.y01,D.x01),!y))):(l.moveTo(Z,ne),l.arc(0,0,d,_,b,!y)):l.moveTo(Z,ne),!(f>Kt)||!(w>Kt)?l.lineTo(re,J):N>Kt?(E=cf(re,J,z,X,f,-N,y),D=cf(Z,ne,H,Y,f,-N,y),l.lineTo(E.cx+E.x01,E.cy+E.y01),N<j?l.arc(E.cx,E.cy,N,Yt(E.y01,E.x01),Yt(D.y01,D.x01),!y):(l.arc(E.cx,E.cy,N,Yt(E.y01,E.x01),Yt(E.y11,E.x11),!y),l.arc(0,0,f,Yt(E.cy+E.y11,E.cx+E.x11),Yt(D.cy+D.y11,D.cx+D.x11),y),l.arc(D.cx,D.cy,N,Yt(D.y11,D.x11),Yt(D.y01,D.x01),!y))):l.arc(0,0,f,O,S,y)}if(l.closePath(),u)return l=null,u+""||null}return s.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,c=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Di/2;return[ii(c)*u,gn(c)*u]},s.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:Pe(+u),s):e},s.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:Pe(+u),s):t},s.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:Pe(+u),s):n},s.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:Pe(+u),s):r},s.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:Pe(+u),s):i},s.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:Pe(+u),s):a},s.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:Pe(+u),s):o},s.context=function(u){return arguments.length?(l=u??null,s):l},s}var tQ=Array.prototype.slice;function ff(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function oO(e){this._context=e}oO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&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);break}}};function hs(e){return new oO(e)}function Ag(e){return e[0]}function Tg(e){return e[1]}function df(e,t){var n=Pe(!0),r=null,i=hs,a=null;e=typeof e=="function"?e:e===void 0?Ag:Pe(e),t=typeof t=="function"?t:t===void 0?Tg:Pe(t);function o(l){var s,u=(l=ff(l)).length,c,f=!1,d;for(r==null&&(a=i(d=jo())),s=0;s<=u;++s)!(s<u&&n(c=l[s],s,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(c,s,l),+t(c,s,l));if(d)return a=null,d+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Pe(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:Pe(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Pe(!!l),o):n},o.curve=function(l){return arguments.length?(i=l,r!=null&&(a=i(r)),o):i},o.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),o):r},o}function hf(e,t,n){var r=null,i=Pe(!0),a=null,o=hs,l=null;e=typeof e=="function"?e:e===void 0?Ag:Pe(+e),t=typeof t=="function"?t:Pe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Tg:Pe(+n);function s(c){var f,d,h,g=(c=ff(c)).length,p,y=!1,_,b=new Array(g),S=new Array(g);for(a==null&&(l=o(_=jo())),f=0;f<=g;++f){if(!(f<g&&i(p=c[f],f,c))===y)if(y=!y)d=f,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=f-1;h>=d;--h)l.point(b[h],S[h]);l.lineEnd(),l.areaEnd()}y&&(b[f]=+e(p,f,c),S[f]=+t(p,f,c),l.point(r?+r(p,f,c):b[f],n?+n(p,f,c):S[f]))}if(_)return l=null,_+""||null}function u(){return df().defined(i).curve(o).context(a)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),r=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),s):e},s.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Pe(+c),s):r},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),n=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),s):t},s.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Pe(+c),s):n},s.lineX0=s.lineY0=function(){return u().x(e).y(t)},s.lineY1=function(){return u().x(e).y(n)},s.lineX1=function(){return u().x(r).y(t)},s.defined=function(c){return arguments.length?(i=typeof c=="function"?c:Pe(!!c),s):i},s.curve=function(c){return arguments.length?(o=c,a!=null&&(l=o(a)),s):o},s.context=function(c){return arguments.length?(c==null?a=l=null:l=o(a=c),s):a},s}function nQ(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function rQ(e){return e}function lO(){var e=rQ,t=nQ,n=null,r=Pe(0),i=Pe(Ii),a=Pe(0);function o(l){var s,u=(l=ff(l)).length,c,f,d=0,h=new Array(u),g=new Array(u),p=+r.apply(this,arguments),y=Math.min(Ii,Math.max(-Ii,i.apply(this,arguments)-p)),_,b=Math.min(Math.abs(y)/u,a.apply(this,arguments)),S=b*(y<0?-1:1),O;for(s=0;s<u;++s)(O=g[h[s]=s]=+e(l[s],s,l))>0&&(d+=O);for(t!=null?h.sort(function(w,A){return t(g[w],g[A])}):n!=null&&h.sort(function(w,A){return n(l[w],l[A])}),s=0,f=d?(y-u*S)/d:0;s<u;++s,p=_)c=h[s],O=g[c],_=p+(O>0?O*f:0)+S,g[c]={data:l[c],index:s,value:O,startAngle:p,endAngle:_,padAngle:b};return g}return o.value=function(l){return arguments.length?(e=typeof l=="function"?l:Pe(+l),o):e},o.sortValues=function(l){return arguments.length?(t=l,n=null,o):t},o.sort=function(l){return arguments.length?(n=l,t=null,o):n},o.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:Pe(+l),o):r},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Pe(+l),o):i},o.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Pe(+l),o):a},o}var sO=kg(hs);function uO(e){this._curve=e}uO.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function kg(e){function t(n){return new uO(e(n))}return t._curve=e,t}function ms(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(kg(n)):t()._curve},e}function Eg(){return ms(df().curve(sO))}function Pg(){var e=hf().curve(sO),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return ms(n())},delete e.lineX0,e.lineEndAngle=function(){return ms(r())},delete e.lineX1,e.lineInnerRadius=function(){return ms(i())},delete e.lineY0,e.lineOuterRadius=function(){return ms(a())},delete e.lineY1,e.curve=function(o){return arguments.length?t(kg(o)):t()._curve},e}function gs(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class cO{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class iQ{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point++===0)this._x0=t,this._y0=n;else{const r=gs(this._x0,this._y0),i=gs(this._x0,this._y0=(this._y0+n)/2),a=gs(t,this._y0),o=gs(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...a,...o)}}}function fO(e){return new cO(e,!0)}function dO(e){return new cO(e,!1)}function aQ(e){return new iQ(e)}function oQ(e){return e.source}function lQ(e){return e.target}function mf(e){let t=oQ,n=lQ,r=Ag,i=Tg,a=null,o=null;function l(){let s;const u=tQ.call(arguments),c=t.apply(this,u),f=n.apply(this,u);if(a==null&&(o=e(s=jo())),o.lineStart(),u[0]=c,o.point(+r.apply(this,u),+i.apply(this,u)),u[0]=f,o.point(+r.apply(this,u),+i.apply(this,u)),o.lineEnd(),s)return o=null,s+""||null}return l.source=function(s){return arguments.length?(t=s,l):t},l.target=function(s){return arguments.length?(n=s,l):n},l.x=function(s){return arguments.length?(r=typeof s=="function"?s:Pe(+s),l):r},l.y=function(s){return arguments.length?(i=typeof s=="function"?s:Pe(+s),l):i},l.context=function(s){return arguments.length?(s==null?a=o=null:o=e(a=s),l):a},l}function sQ(){return mf(fO)}function uQ(){return mf(dO)}function cQ(){const e=mf(aQ);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const fQ=it(3),hO={draw(e,t){const n=it(t+Mo(t/28,.75))*.59436,r=n/2,i=r*fQ;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},gf={draw(e,t){const n=it(t/Di);e.moveTo(n,0),e.arc(0,0,n,0,Ii)}},mO={draw(e,t){const n=it(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},gO=it(1/3),dQ=gO*2,pO={draw(e,t){const n=it(t/dQ),r=n*gO;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},vO={draw(e,t){const n=it(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},yO={draw(e,t){const n=it(t-Mo(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},bO={draw(e,t){const n=it(t),r=-n/2;e.rect(r,r,n,n)}},_O={draw(e,t){const n=it(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},hQ=.8908130915292852,xO=gn(Di/10)/gn(7*Di/10),mQ=gn(Ii/10)*xO,gQ=-ii(Ii/10)*xO,SO={draw(e,t){const n=it(t*hQ),r=mQ*n,i=gQ*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=Ii*a/5,l=ii(o),s=gn(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*i,s*r+l*i)}e.closePath()}},jg=it(3),wO={draw(e,t){const n=-it(t/(jg*3));e.moveTo(0,n*2),e.lineTo(-jg*n,-n),e.lineTo(jg*n,-n),e.closePath()}},pQ=it(3),OO={draw(e,t){const n=it(t)*.6824,r=n/2,i=n*pQ/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},Wn=-.5,zn=it(3)/2,Mg=1/it(12),vQ=(Mg/2+1)*3,CO={draw(e,t){const n=it(t/vQ),r=n/2,i=n*Mg,a=r,o=n*Mg+n,l=-a,s=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(Wn*r-zn*i,zn*r+Wn*i),e.lineTo(Wn*a-zn*o,zn*a+Wn*o),e.lineTo(Wn*l-zn*s,zn*l+Wn*s),e.lineTo(Wn*r+zn*i,Wn*i-zn*r),e.lineTo(Wn*a+zn*o,Wn*o-zn*a),e.lineTo(Wn*l+zn*s,Wn*s-zn*l),e.closePath()}},AO={draw(e,t){const n=it(t-Mo(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},TO=[gf,mO,pO,bO,SO,wO,CO],yQ=[gf,yO,AO,OO,hO,_O,vO];function bQ(e,t){let n=null;e=typeof e=="function"?e:Pe(e||gf),t=typeof t=="function"?t:Pe(t===void 0?64:+t);function r(){let i;if(n||(n=i=jo()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return r.type=function(i){return arguments.length?(e=typeof i=="function"?i:Pe(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:Pe(+i),r):t},r.context=function(i){return arguments.length?(n=i??null,r):n},r}function $i(){}function pf(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function vf(e){this._context=e}vf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:pf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:pf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _Q(e){return new vf(e)}function kO(e){this._context=e}kO.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:pf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xQ(e){return new kO(e)}function EO(e){this._context=e}EO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:pf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function SQ(e){return new EO(e)}function PO(e,t){this._basis=new vf(e),this._beta=t}PO.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,l=-1,s;++l<=n;)s=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+s*a),this._beta*t[l]+(1-this._beta)*(i+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const wQ=function e(t){function n(r){return t===1?new vf(r):new PO(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function yf(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Dg(e,t){this._context=e,this._k=(1-t)/6}Dg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:yf(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:yf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const OQ=function e(t){function n(r){return new Dg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ig(e,t){this._context=e,this._k=(1-t)/6}Ig.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:yf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const CQ=function e(t){function n(r){return new Ig(r,t)}return n.tension=function(r){return e(+r)},n}(0);function $g(e,t){this._context=e,this._k=(1-t)/6}$g.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:yf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const AQ=function e(t){function n(r){return new $g(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Lg(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Kt){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>Kt){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function jO(e,t){this._context=e,this._alpha=t}jO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:Lg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const TQ=function e(t){function n(r){return t?new jO(r,t):new Dg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function MO(e,t){this._context=e,this._alpha=t}MO.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Lg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const kQ=function e(t){function n(r){return t?new MO(r,t):new Ig(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function DO(e,t){this._context=e,this._alpha=t}DO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Lg(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const EQ=function e(t){function n(r){return t?new DO(r,t):new $g(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function IO(e){this._context=e}IO.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function PQ(e){return new IO(e)}function $O(e){return e<0?-1:1}function LO(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return($O(a)+$O(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function FO(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Fg(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function bf(e){this._context=e}bf.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:Fg(this,this._t0,FO(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(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,Fg(this,FO(this,n=LO(this,e,t)),n);break;default:Fg(this,this._t0,n=LO(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function NO(e){this._context=new BO(e)}(NO.prototype=Object.create(bf.prototype)).point=function(e,t){bf.prototype.point.call(this,t,e)};function BO(e){this._context=e}BO.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,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function jQ(e){return new bf(e)}function MQ(e){return new NO(e)}function RO(e){this._context=e}RO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=WO(e),i=WO(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function WO(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function DQ(e){return new RO(e)}function _f(e,t){this._context=e,this._t=t}_f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,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:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function IQ(e){return new _f(e,.5)}function $Q(e){return new _f(e,0)}function LQ(e){return new _f(e,1)}function Do(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,l=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Io(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function FQ(e,t){return e[t]}function NQ(e){const t=[];return t.key=e,t}function BQ(){var e=Pe([]),t=Io,n=Do,r=FQ;function i(a){var o=Array.from(e.apply(this,arguments),NQ),l,s=o.length,u=-1,c;for(const f of a)for(l=0,++u;l<s;++l)(o[l][u]=[0,+r(f,o[l].key,u,a)]).data=f;for(l=0,c=ff(t(o));l<s;++l)o[c[l]].index=l;return n(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Pe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Pe(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?Io:typeof a=="function"?a:Pe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??Do,i):n},i}function RQ(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Do(e,t)}}function WQ(e,t){if((s=e.length)>0)for(var n,r=0,i,a,o,l,s,u=e[t[0]].length;r<u;++r)for(o=l=0,n=0;n<s;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=l,i[0]=l+=a):(i[0]=0,i[1]=a)}function zQ(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}Do(e,t)}}function VQ(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var l=0,s=0,u=0;l<o;++l){for(var c=e[t[l]],f=c[r][1]||0,d=c[r-1][1]||0,h=(f-d)/2,g=0;g<l;++g){var p=e[t[g]],y=p[r][1]||0,_=p[r-1][1]||0;h+=y-_}s+=f,u+=h*f}i[r-1][1]+=i[r-1][0]=n,s&&(n-=u/s)}i[r-1][1]+=i[r-1][0]=n,Do(e,t)}}function zO(e){var t=e.map(UQ);return Io(e).sort(function(n,r){return t[n]-t[r]})}function UQ(e){for(var t=-1,n=0,r=e.length,i,a=-1/0;++t<r;)(i=+e[t][1])>a&&(a=i,n=t);return n}function VO(e){var t=e.map(UO);return Io(e).sort(function(n,r){return t[n]-t[r]})}function UO(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function HQ(e){return VO(e).reverse()}function qQ(e){var t=e.length,n,r,i=e.map(UO),a=zO(e),o=0,l=0,s=[],u=[];for(n=0;n<t;++n)r=a[n],o<l?(o+=i[r],s.push(r)):(l+=i[r],u.push(r));return u.reverse().concat(s)}function GQ(e){return Io(e).reverse()}const YQ=Object.freeze(Object.defineProperty({__proto__:null,arc:Cg,area:hf,areaRadial:Pg,curveBasis:_Q,curveBasisClosed:xQ,curveBasisOpen:SQ,curveBumpX:fO,curveBumpY:dO,curveBundle:wQ,curveCardinal:OQ,curveCardinalClosed:CQ,curveCardinalOpen:AQ,curveCatmullRom:TQ,curveCatmullRomClosed:kQ,curveCatmullRomOpen:EQ,curveLinear:hs,curveLinearClosed:PQ,curveMonotoneX:jQ,curveMonotoneY:MQ,curveNatural:DQ,curveStep:IQ,curveStepAfter:LQ,curveStepBefore:$Q,line:df,lineRadial:Eg,link:mf,linkHorizontal:sQ,linkRadial:cQ,linkVertical:uQ,pie:lO,pointRadial:gs,radialArea:Pg,radialLine:Eg,stack:BQ,stackOffsetDiverging:WQ,stackOffsetExpand:RQ,stackOffsetNone:Do,stackOffsetSilhouette:zQ,stackOffsetWiggle:VQ,stackOrderAppearance:zO,stackOrderAscending:VO,stackOrderDescending:HQ,stackOrderInsideOut:qQ,stackOrderNone:Io,stackOrderReverse:GQ,symbol:bQ,symbolAsterisk:hO,symbolCircle:gf,symbolCross:mO,symbolDiamond:pO,symbolDiamond2:vO,symbolPlus:yO,symbolSquare:bO,symbolSquare2:_O,symbolStar:SO,symbolTriangle:wO,symbolTriangle2:OO,symbolWye:CO,symbolX:AO,symbols:TO,symbolsFill:TO,symbolsStroke:yQ},Symbol.toStringTag,{value:"Module"}));var HO=function(e){var t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},qO=function(e){return function(t){return e.x(t._x1!==void 0?t._x1:t._x)}},Ng=function(e){return function(t){return e.y(t._y1!==void 0?t._y1:t._y)}},KQ=function(e){return function(t){var n=e.x(t._x1!==void 0?t._x1:t._x);return-1*n+Math.PI/2}},GO=function(e){var t=function(n){return n&&n[0].toUpperCase()+n.slice(1)};return"curve".concat(t(e))},ZQ=function(e){return"".concat(GO(e),"Closed")},xf=function(e){var t=e.interpolation;if(typeof t=="function")return t;if(typeof t=="string"){var n=e.polar,r=e.openCurve,i=r===void 0?!n:r,a=i?GO(t):ZQ(t);return YQ[a]}return hs},YO=function(e){var t=e.polar,n=e.scale,r=e.horizontal;return t?Eg().defined(HO).curve(xf(e)).angle(KQ(n)).radius(Ng(n)):df().defined(HO).curve(xf(e)).x(r?Ng(n):qO(n)).y(r?qO(n):Ng(n))};function KO(e,t,n){var r=t.a,i=t.d,a=t.e,o=t.f;return n==="y"?i*e+o:r*e+a}function XQ(e){return e.getScreenCTM().inverse()}function ZO(e){return!!(e&&e.identifier!==void 0)}function JQ(e){return e.changedTouches&&e.changedTouches.length>0}function ai(e){if(!ZO(e.nativeEvent)){var t=function(n){return n.nodeName==="svg"?n:n.parentNode?t(n.parentNode):n};return t(e.target)}}function Tr(e,t){if(ZO(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};var n=JQ(e)?e.changedTouches[0]:e;t=t||ai(n);var r=XQ(t);return{x:KO(n.clientX,r,"x"),y:KO(n.clientY,r,"y")}}function oi(e,t){var n=e.horizontal,r=e.scale,i=t||{x:r.x.domain(),y:r.y.domain()};return{x:n?[r.y(i.y[0]),r.y(i.y[1])]:[r.x(i.x[0]),r.x(i.x[1])],y:n?[r.x(i.x[0]),r.x(i.x[1])]:[r.y(i.y[0]),r.y(i.y[1])]}}function Sf(e,t,n,r){var i=e.polar,a=e.horizontal;if(!i)return{x:a?t.x.invert(r):t.x.invert(n),y:a?t.y.invert(n):t.y.invert(r)};var o=e.origin||{x:0,y:0},l=n-o.x,s=r-o.y,u=Math.abs(l*Math.sqrt(1+Math.pow(-s/l,2))),c=(-Math.atan2(s,l)+Math.PI*2)%(Math.PI*2);return{x:t.x.invert(c),y:t.y.invert(u)}}function wf(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.scale,o=Sf(e,a,t,r),l=Sf(e,a,n,i),s=function(u,c){return[dn([u,c]),Ln([u,c])]};return{x:s(o.x,l.x),y:s(o.y,l.y)}}var QQ=Hr,eee=dw;function tee(e,t){return e&&e.length?eee(e,QQ(t)):[]}var nee=tee;const XO=Ae(nee);function ree(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}var iee=ree,aee=Mm;function oee(e,t,n,r){return aee(e,function(i,a,o){t(r,i,n(i),o)}),r}var lee=oee,see=iee,uee=lee,cee=Hr,fee=Ft;function dee(e,t){return function(n,r){var i=fee(n)?see:uee,a=t?t():{};return i(n,e,cee(r),a)}}var hee=dee,mee=Ml,gee=hee,pee=Object.prototype,vee=pee.hasOwnProperty,yee=gee(function(e,t,n){vee.call(e,n)?e[n].push(t):mee(e,n,[t])}),bee=yee;const Of=Ae(bee);function lr(e){return wee(e)||See(e)||xee(e)||_ee()}function _ee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
197
197
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xee(e,t){if(e){if(typeof e=="string")return Bg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bg(e,t)}}function See(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wee(e){if(Array.isArray(e))return Bg(e)}function Bg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach(function(r){Oee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cee(e){var t=e.children,n=e.props,r=e.childComponents,i=e.parentProps,a=t.some(function(c){return c.type&&c.type.role==="histogram"}),o=a&&t.length&&t.every(function(c){return c.type&&c.type.role==="histogram"});if(a&&!o&&bo("VictoryHistogram only supports being stacked with other VictoryHistogram components. Check to make sure that you are only passing VictoryHistogram components to VictoryStack"),!o)return i;var l=n.bins||r[0].props.bins;if(!Array.isArray(l)){var s=t.reduce(function(c,f){var d=mc(f.props.x||"x");return c.concat(f.props.data.map(function(h){return{x:d(h)}}))},[]),u=t[0].type.getFormattedData;l=u({data:s,bins:l}).reduce(function(c,f,d){var h=f.x0,g=f.x1;return d===0?c.concat([h,g]):c.concat(g)},[])}return QO(QO({},i),{},{bins:l})}function Aee(e,t){var n=e.polar,r=e.startAngle,i=e.endAngle,a=e.categories,o=e.minDomain,l=e.maxDomain,s={polar:n,startAngle:r,endAngle:i,categories:a,minDomain:o,maxDomain:l},u=0,c=t?t.slice(0):x.Children.toArray(e.children);s=Cee({children:c,props:e,childComponents:t,parentProps:s});var f=function(y,_,b){var S=R({},y.props,s),O;if(ko(y))y.type&&Oe(y.type.getData)?(y=b?x.cloneElement(y,b.props):y,O=y.type.getData(S)):O=Gt(S);else return null;return u+=1,O.map(function(w,A){return R({_stack:u,_group:A},w)})},d=c.filter(function(y){return y.type&&y.type.role==="stack"}).length,h=function(y,_){return y.concat(XO(_,"_group"))},g=Ti(c,f,e,[],h),p=d?"_group":"_stack";return fc(Of(g,p))}function eC(e,t,n){var r=e.datasets,i=e.horizontal,a=i?xt(e,"y"):xt(e,"x"),o=Math.abs(a[1]-a[0]);n=n!==void 0?n:Array.isArray(r[0])&&r[0].length||1,t=t||r.length;var l=t*n,s=.5;return Math.round(s*o/l)}function Tee(e,t,n){if(!(e.polar||t!=="x")){var r=n.filter(function(d){return d.type&&d.type.role&&d.type.role==="group"});if(!(r.length<1)){var i=r[0].props,a=i.offset,o=i.children;if(a){var l=Array.isArray(o)&&o[0];if(l){var s=l.props.barWidth,u=l.props.data&&l.props.data.length||1;if(l&&l.type.role==="stack"){var c=l.props.children&&l.props.children[0];if(!c)return;s=c.props.barWidth,u=l.props.children.length}var f=s||eC(e,o.length,u);return{x:f*o.length/2+(a-f*((o.length-1)/2))}}}}}}function Cf(e,t,n){var r=n?n.slice(0):x.Children.toArray(e.children),i=e.data?Gt(e):void 0,a=e.polar,o=e.startAngle,l=e.endAngle,s=e.categories,u=e.minDomain,c=e.maxDomain,f=e.horizontal,d={horizontal:f,polar:a,startAngle:o,endAngle:l,minDomain:u,maxDomain:c,categories:s},h=i?R(d,{data:i}):d,g=function(b){var S=R({},b.props,h);if(Nw(b)){if(b.type&&Oe(b.type.getDomain))return b.props&&b.type.getDomain(S,t)}else return null;return ba(S,t)},p=Ti(r,g,e),y=p.length===0?0:dn(p),_=p.length===0?1:Ln(p);return[y,_]}function Rg(e,t,n){n=n||x.Children.toArray(e.children);var r=yg(e,t),i=Tee(e,t,n),a;if(r)a=r;else{var o=xa(e,t),l=_a(e,t),s=(e.data||e.y)&&Gt(e),u=s?vg(e,t,s):[],c=Cf(e,t,n),f=o||dn([].concat(lr(u),lr(c))),d=l||Ln([].concat(lr(u),lr(c)));a=ri(f,d)}return pg(a,R({domainPadding:i},e),t)}function Af(e,t,n){if(e.data)return Bn(e,t);var r=n?n.slice(0):x.Children.toArray(e.children),i=function(o){var l=R({},o.props,{horizontal:e.horizontal});return Ec(l,t)},a=va(Ti(r,i,e));return a.length>1?is("linear"):is(a[0])}function tC(e){var t=["groupComponent","containerComponent","labelComponent"],n=og(e,t),r=e.events;return Array.isArray(n)&&(r=Array.isArray(e.events)?n.concat.apply(n,lr(e.events)):n),r||[]}function kee(e,t,n){var r=e.style,i=e.colorScale,a=e.color;if(r&&r.data&&r.data.fill)return r.data.fill;if(i=t.props&&t.props.colorScale?t.props.colorScale:i,a=t.props&&t.props.color?t.props.color:a,!(!i&&!a)){var o=Array.isArray(i)?i:B0(i);return a||o[n%o.length]}}function Eee(e,t,n){var r=e&&e[n]&&e[n].style?e[n].style:{};return Yl(t,r)}function Pee(e,t,n){var r=n.style,i=n.role,a=e.props.style||{};if(Array.isArray(a))return a;var o=e.type&&e.type.role,l=o==="stack"?void 0:kee(n,e,t),s=o==="line"?{fill:"none",stroke:l}:{fill:l},u=i==="stack"?{}:{width:eC(n)},c=ae({},a.data,R({},u,r.data,s)),f=ae({},a.labels,r.labels);return{parent:r.parent,data:c,labels:f}}function jee(e,t){var n=function(r){var i=r.props||{};if(!Nw(r)||!i.categories)return null;var a=i.categories&&!Array.isArray(i.categories)?i.categories[t]:i.props.categories,o=a&&a.filter(function(l){return typeof l=="string"});return o?a2(o):[]};return Ti(e.slice(0),n)}function Mee(e){var t=function(i){var a=i.props||{},o;if(ko(i))i.type&&Oe(i.type.getData)?o=i.type.getData(a):o=Gt(a);else return null;return o.map(function(l){return{x:l.xName,y:l.yName}})},n={x:[],y:[]},r=function(i,a){var o=Array.isArray(a)?a.map(function(s){return s.x}).filter(Boolean):a.x,l=Array.isArray(a)?a.map(function(s){return s.y}).filter(Boolean):a.y;return{x:o!==void 0?i.x.concat(o):i.x,y:l!==void 0?i.y.concat(l):i.y}};return Ti(e.slice(0),t,{},n,r)}function nC(e,t,n){var r=Qe(e.categories)?e.categories[t]:e.categories,i=Rw(n,t),a=i?Iw(i.props,t):[],o=r||jee(n,t);return va(ql([].concat(lr(o),lr(a))))}function rC(e,t){t=t||x.Children.toArray(e.children);var n=nC(e,"x",t),r=nC(e,"y",t),i=Mee(t);return{x:va(ql([].concat(lr(n),lr(i.x)))),y:va(ql([].concat(lr(r),lr(i.y))))}}function iC(e,t,n){var r=e.categories&&!Array.isArray(e.categories)?e.categories.x:e.categories,i=e.categories&&!Array.isArray(e.categories)?e.categories.y:e.categories,a=!r||!i,o=a?n||rC(e,t):{},l=r||o.x,s=i||o.y;return{x:l.length>0?l:void 0,y:s.length>0?s:void 0}}function Dee(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}var Iee=Dee;const $ee=Ae(Iee);var Wg={exports:{}};(function(e,t){t=e.exports=n,t.getSerialize=r;function n(i,a,o,l){return JSON.stringify(i,r(a,l),o)}function r(i,a){var o=[],l=[];return a==null&&(a=function(s,u){return o[0]===u?"[Circular ~]":"[Circular ~."+l.slice(0,o.indexOf(u)).join(".")+"]"}),function(s,u){if(o.length>0){var c=o.indexOf(this);~c?o.splice(c+1):o.push(this),~c?l.splice(c,1/0,s):l.push(s),~o.indexOf(u)&&(u=a.call(this,s,u))}else o.push(u);return i==null?u:i.call(this,s,u)}}})(Wg,Wg.exports);var Lee=Wg.exports;const Fee=Ae(Lee);function Nee(e,t){return Wee(e)||Ree(e,t)||aC(e,t)||Bee()}function Bee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
198
198
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ree(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function Wee(e){if(Array.isArray(e))return e}function zee(e){return Hee(e)||Uee(e)||aC(e)||Vee()}function Vee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
199
199
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aC(e,t){if(e){if(typeof e=="string")return zg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zg(e,t)}}function Uee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hee(e){if(Array.isArray(e))return zg(e)}function zg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gee(e,t,n){return t&&oC(e.prototype,t),n&&oC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vg(e,t)}function Vg(e,t){return Vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vg(e,t)}function Kee(e){var t=Xee();return function(){var r=Tf(e),i;if(t){var a=Tf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Zee(this,i)}}function Zee(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ug(e)}function Ug(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tf(e)}var wa=function(e){Yee(n,e);var t=Kee(n);function n(r){var i;return qee(this,n),i=t.call(this,r),i.state=i.state||{},i.getScopedEvents=vw.bind(Ug(i)),i.getEventState=bw.bind(Ug(i)),i.baseProps=i.getBaseProps(r),i.sharedEventsCache={},i.globalEvents={},i.prevGlobalEventKeys=[],i.boundGlobalEvents={},i}return Gee(n,[{key:"shouldComponentUpdate",value:function(i){if(!fn(this.props,i)){this.baseProps=this.getBaseProps(i);var a=this.getExternalMutations(i,this.baseProps);this.applyExternalMutations(i,a)}return!0}},{key:"componentDidMount",value:function(){var i=this,a=Ke(this.globalEvents);a.forEach(function(o){return i.addGlobalListener(o)}),this.prevGlobalEventKeys=a}},{key:"componentDidUpdate",value:function(){var i=this,a=Ke(this.globalEvents),o=Jc(this.prevGlobalEventKeys,a);o.forEach(function(s){return i.removeGlobalListener(s)});var l=Jc(a,this.prevGlobalEventKeys);l.forEach(function(s){return i.addGlobalListener(s)}),this.prevGlobalEventKeys=a}},{key:"componentWillUnmount",value:function(){var i=this;this.prevGlobalEventKeys.forEach(function(a){return i.removeGlobalListener(a)})}},{key:"addGlobalListener",value:function(i){var a=this,o=function(l){var s=a.globalEvents[i];return s&&s(Ow(l))};this.boundGlobalEvents[i]=o,window.addEventListener(tf(i),o)}},{key:"removeGlobalListener",value:function(i){window.removeEventListener(tf(i),this.boundGlobalEvents[i])}},{key:"getAllEvents",value:function(i){var a=["container","groupComponent"],o=og(i,a);return Array.isArray(o)?Array.isArray(i.events)?o.concat.apply(o,zee(i.events)):o:i.events}},{key:"applyExternalMutations",value:function(i,a){if(!rt(a)){var o=i.externalEventMutations.reduce(function(s,u){return s=Oe(u.callback)?s.concat(u.callback):s,s},[]),l=o.length?function(){o.forEach(function(s){return s()})}:void 0;this.setState(a,l)}}},{key:"getExternalMutations",value:function(i,a){return rt(i.externalEventMutations)?void 0:ZZ(i.externalEventMutations,a,this.state,Ke(a))}},{key:"cacheSharedEvents",value:function(i,a,o){this.sharedEventsCache[i]=[a,o]}},{key:"getCachedSharedEvents",value:function(i,a){var o=this.sharedEventsCache[i]||[],l=Nee(o,2),s=l[0],u=l[1];if(s&&fn(a,u))return s}},{key:"getBaseProps",value:function(i){var a=i.container,o=x.Children.toArray(this.props.children),l=this.getBasePropsFromChildren(o),s=a?a.props:{};return R({},l,{parent:s})}},{key:"getBasePropsFromChildren",value:function(i){var a=function(l,s){if(l.type&&Oe(l.type.getBaseProps)){var u=l.props&&l.type.getBaseProps(l.props);return u?[[s,u]]:null}return null},o=Ti(i,a);return $ee(o)}},{key:"getNewChildren",value:function(i,a){var o=this,l=i.events,s=i.eventKey,u=function(d,h){return d.reduce(function(g,p,y){if(p.props.children){var _=x.Children.toArray(p.props.children),b=h.slice(y,y+_.length),S=x.cloneElement(p,p.props,u(_,b));return g.concat(S)}else if(h[y]!=="parent"&&p.type&&Oe(p.type.getBaseProps)){var O=p.props.name||h[y],w=Array.isArray(l)&&l.filter(function(k){return k.target==="parent"?!1:Array.isArray(k.childName)?k.childName.indexOf(O)>-1:k.childName===O||k.childName==="all"}),A=[O,a,w,Fee(o.state[O])],T=o.getCachedSharedEvents(O,A)||{events:w,getEvents:function(k,j){return o.getScopedEvents(k,j,O,a)},getEventState:function(k,j){return o.getEventState(k,j,O)}};return o.cacheSharedEvents(O,T,A),g.concat(x.cloneElement(p,R({key:"events-".concat(O),sharedEvents:T,eventKey:s,name:O},p.props)))}return g.concat(p)},[])},c=Ke(a),f=x.Children.toArray(i.children);return u(f,c)}},{key:"getContainer",value:function(i,a,o){var l=this,s=this.getNewChildren(i,a),u=Array.isArray(o)&&o.filter(function(S){return S.target==="parent"}),c=u.length>0?{events:u,getEvents:function(S,O){return l.getScopedEvents(S,O,null,a)},getEventState:this.getEventState}:null,f=i.container||i.groupComponent,d=f.type&&f.type.role,h=f.props||{},g=pw.bind(this),p=c&&g({sharedEvents:c},"parent"),y=ae({},this.getEventState("parent","parent"),h,a.parent,{children:s}),_=ae({},yw(p,"parent",y),h.events);this.globalEvents=Sw(_);var b=ww(_);return d==="container"?x.cloneElement(f,R({},y,{events:b})):x.cloneElement(f,b,s)}},{key:"render",value:function(){var i=this.getAllEvents(this.props);return i?this.getContainer(this.props,this.baseProps,i):x.cloneElement(this.props.container,{children:this.props.children})}}]),n}(x.Component);wa.displayName="VictorySharedEvents",wa.role="shared-event-wrapper",wa.propTypes={children:m.oneOfType([m.arrayOf(m.node),m.node]),container:m.node,eventKey:m.oneOfType([m.array,m.func,ct([ut,_e]),m.string]),events:m.arrayOf(m.shape({childName:m.oneOfType([m.string,m.array]),eventHandlers:m.object,eventKey:m.oneOfType([m.array,m.func,ct([ut,_e]),m.string]),target:m.string})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ct([ut,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.node},wa.defaultProps={groupComponent:x.createElement("g",null)},wa.contextType=lc;function Jee(e){return nte(e)||tte(e)||ete(e)||Qee()}function Qee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
200
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ete(e,t){if(e){if(typeof e=="string")return Hg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hg(e,t)}}function tte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nte(e){if(Array.isArray(e))return Hg(e)}function Hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qg={top:-1,left:-1,right:1,bottom:1},Ef=function(e){return e!=null},rte=function(e,t){var n=e.orientation,r=e.horizontal;if(n){var i={top:"x",bottom:"x",left:"y",right:"y"};return i[n]}var a=t==="x"?"y":"x";return r?a:t},ite=function(e){var t=Rn(e),n=rte(e,t),r=Bn(e,t),i=e.domain&&e.domain[t],a=i||Po(e)||r.domain();return r.range(xt(e,n)),r.domain(a),r},ate=function(e){var t=e.theme,n=e.dependentAxis,r=t&&t.axis&&t.axis.style,i=n?"dependentAxis":"independentAxis",a=t&&t[i]&&t[i].style,o=function(){var l=["axis","axisLabel","grid","parent","tickLabels","ticks"];return l.reduce(function(s,u){return s[u]=ae({},a[u],r[u]),s},{})};return r&&a?o():a||r},lC=function(e,t){var n=e.style||{};t=t||{};var r={height:"100%",width:"100%"};return{parent:ae(n.parent,t.parent,r),axis:ae({},n.axis,t.axis),axisLabel:ae({},n.axisLabel,t.axisLabel),grid:ae({},n.grid,t.grid),ticks:ae({},n.ticks,t.ticks),tickLabels:ae({},n.tickLabels,t.tickLabels)}},ote=function(e,t,n){var r=e.position,i=e.transform;return{x1:i.x,y1:i.y,x2:i.x+r.x2,y2:i.y+r.y2,style:t,datum:n}},lte=function(e,t,n,r,i){var a=e.position,o=e.transform;return{style:t,x:o.x+a.x,y:o.y+a.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:i,datum:r}},ste=function(e,t,n){var r=e.edge,i=e.transform;return{x1:i.x,y1:i.y,x2:r.x+i.x,y2:r.y+i.y,style:t,datum:n}},ute=function(e,t,n){var r=t.style,i=t.padding,a=t.isVertical,o=e.width,l=e.height;return{style:r.axis,x1:a?n.x:i.left+n.x,x2:a?n.x:o-i.right+n.x,y1:a?i.top+n.y:n.y,y2:a?l-i.bottom+n.y:n.y}},cte=function(e,t){return{tickStyle:Ze(e.ticks,t),labelStyle:Ze(e.tickLabels,t),gridStyle:Ze(e.grid,t)}},fte=function(e,t,n){var r=t.style,i=t.orientation,a=t.padding,o=t.labelPadding,l=t.isVertical,s=qg[i],u=a.left+a.right,c=a.top+a.bottom,f=s<0?"end":"start",d=r.axisLabel,h=l?-90:0,g=l?n.x+s*o:(e.width-u)/2+a.left+n.x,p=l?(e.height-c)/2+a.top+n.y:s*o+n.y;return{x:g,y:p,verticalAnchor:d.verticalAnchor||f,textAnchor:d.textAnchor||"middle",angle:d.angle===void 0?h:d.angle,style:d,text:e.label}},dte=function(e,t){var n={top:"end",left:"end",right:"start",bottom:"start"},r=n[e];return{textAnchor:t?r:"middle",verticalAnchor:t?"middle":r}},hte=function(e,t){var n=t.axisLabel||{};if(n.padding!==void 0&&n.padding!==null)return n.padding;var r=of(e),i=n.fontSize||14;return e.label?i*(r?2.3:1.6):0},sC=function(e,t,n){var r=t||"positive",i={positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}},a={positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}};return n?a[r][e]:i[r][e]},mte=function(e,t){var n=t.style,r=t.scale,i=t.orientation,a=t.padding,o=t.axis,l=t.ticks,s=t.stringTicks,u=t.isVertical,c=t.labelPadding,f=e.polar,d=e.horizontal,h={scale:kf({},o,r),polar:f,horizontal:d,ticks:l,stringTicks:s},g=i==="right"?a.right:a.left,p=i==="top"?a.top:a.bottom,y=e.offsetX!==null&&e.offsetX!==void 0?e.offsetX:g,_=e.offsetY!==null&&e.offsetY!==void 0?e.offsetY:p,b=n.axisLabel.fontSize||14,S=l.map(function(k,j){var N=s?e.tickValues[k-1]:k,M=Ze(n.ticks,R({},h,{tick:N,index:j}));return M.size||0}),O=b+2*Math.max.apply(Math,Jee(S))+c,w=1.2*b,A=u?O:w,T=u?w:O;return{x:y??A,y:_??T}},gte=function(e,t){var n=t.scale,r=t.origin,i=t.orientation,a=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={x:i==="bottom"||i==="top"?i:a.x,y:i==="left"||i==="right"?i:a.y},h={x:d.y==="left"?c:f,y:d.x==="bottom"?u:s},g={x:d.y==="left"?0:e.width,y:d.x==="bottom"?e.height:0},p={x:r.x===o.x[0]||r.x===o.x[1]?0:n.x(r.x),y:r.y===o.y[0]||r.y===o.y[1]?0:n.y(r.y)},y=p.x?Math.abs(g.x-p.x):h.x,_=p.y?Math.abs(g.y-p.y):h.y,b=Ef(e.offsetX)?e.offsetX:y,S=Ef(e.offsetY)?e.offsetY:_;return{x:b,y:S}},pte=function(e,t){var n=t.scale,r=t.origin,i=t.orientation,a=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={y:i==="bottom"||i==="top"?i:a.x,x:i==="left"||i==="right"?i:a.y},h={x:d.y==="bottom"?u:s,y:d.x==="left"?c:f},g={y:d.x==="left"?0:e.width,x:d.y==="bottom"?e.height:0},p={x:r.x===o.x[0]||r.x===o.x[1]?0:n.x(r.x),y:r.y===o.y[0]||r.y===o.y[1]?0:n.y(r.y)},y=p.x?Math.abs(g.x-p.x):h.x,_=p.y?Math.abs(g.y-p.y):h.y,b=Ef(e.offsetX)?e.offsetX:_,S=Ef(e.offsetY)?e.offsetY:y;return{x:b,y:S}},vte=function(e,t,n){var r=t.orientation,i=t.axis,a=Gw(e,i);return{top:{x:0,y:a!==void 0?a:n.y},bottom:{x:0,y:a!==void 0?a:e.height-n.y},left:{x:a!==void 0?a:n.x,y:0},right:{x:a!==void 0?a:e.width-n.x,y:0}}[r]},yte=function(e,t,n){var r=e.tickStyle,i=e.labelStyle,a=r.size||0,o=r.padding||0,l=i.padding||0,s=a+o+l,u=qg[t];return{x:n?u*s:0,x2:n?u*a:0,y:n?0:u*s,y2:n?0:u*a}},bte=function(e,t,n){return{x:n?t.x:e+t.x,y:n?e+t.y:t.y}},_te=function(e,t){var n=t.orientation,r=t.padding,i=t.isVertical,a=-qg[n],o=i?a*(e.width-(r.left+r.right)):0,l=i?0:a*(e.height-(r.top+r.bottom));return{x:o,y:l}},xte=function(e,t){var n=e.padding,r=e.orientation,i=e.crossAxis,a=r==="right"?n.right:n.left,o=r==="top"?n.top:n.bottom;return{x:i?t.x-a:0,y:i?t.y-o:0}},Ste=function(e,t){var n;return t.domain.x&&t.domain.y?n=e.horizontal?pte(e,t):gte(e,t):n=mte(e,t),{globalTransform:vte(e,t,n),gridOffset:xte(t,n),gridEdge:_te(e,t)}},wte=function(e){if(e.orientation)return e.orientation;var t={dependent:e.horizontal?"bottom":"left",independent:e.horizontal?"left":"bottom"};return e.dependentAxis?t.dependent:t.independent},Ote=function(e){var t=ate(e),n=lC(e,t),r=lt(e),i=hte(e,n),a=lf(e)?e.tickValues:void 0,o=Rn(e),l=Po(e),s=ite(e),u=o==="x"?l:void 0,c=o==="y"?l:void 0,f=o==="x"?s:void 0,d=o==="y"?s:void 0,h=!(e.crossAxis===!1||e.standalone===!0),g=qw(e,s,h),p=Uw(e,s),y={x:xt(e,"x"),y:xt(e,"y")},_={x:e.domain&&e.domain.x?e.domain.x:u,y:e.domain&&e.domain.y?e.domain.y:c},b={x:e.domain&&e.domain.x?Bn(e,"x").domain(e.domain.x).range(e.horizontal?y.y:y.x):f,y:e.domain&&e.domain.y?Bn(e,"y").domain(e.domain.y).range(e.horizontal?y.x:y.y):d},S=_.x&&_.y?zw(_):void 0,O=S?{x:Vw(S.x,_.x),y:Vw(S.y,_.y)}:void 0,w=O?{x:sC("x",O.y,e.horizontal),y:sC("y",O.x,e.horizontal)}:void 0,A=w?e.orientation||w[o]:wte(e),T=of(Object.assign({},e,{orientation:A})),k=dte(A,T);return{anchors:k,axis:o,crossAxis:h,domain:_,isVertical:T,labelPadding:i,orientation:A,orientations:w,origin:S,padding:r,scale:b,stringTicks:a,style:n,tickFormat:p,ticks:g}},Cte=function(e,t){e=sf(e,t);var n=Ote(e),r=n.axis,i=n.style,a=n.orientation,o=n.isVertical,l=n.scale,s=n.ticks,u=n.tickFormat,c=n.anchors,f=n.domain,d=n.stringTicks,h=r==="x"?"y":"x",g=e,p=g.width,y=g.height,_=g.standalone,b=g.theme,S=g.polar,O=g.padding,w=g.horizontal,A=Ste(e,n),T=A.globalTransform,k=A.gridOffset,j=A.gridEdge,N={scale:kf({},r,l[r]),polar:S,horizontal:w,ticks:s,stringTicks:d},M=ute(e,n,T),E=fte(e,n,T),I={parent:R({style:i.parent,ticks:s,standalone:_,theme:b,width:p,height:y,padding:O,domain:f},N)},D={dimension:h,range:kf({},h,xt(e,h)),scale:e.scale&&e.scale[h]?kf({},h,e.scale[h]):void 0};return s.reduce(function(W,X,re){var ne,ee,z,Z=d?d[re]:X,q=u(X,re,s),Y=cte(i,R({},N,{tick:Z,tickValue:X,index:re,text:q})),G={position:yte(Y,a,o),transform:bte((ne=l[r])===null||ne===void 0?void 0:ne.call(l,X),T,o)},ie={edge:j,transform:{x:o?-k.x+T.x:((ee=l[r])===null||ee===void 0?void 0:ee.call(l,X))+T.x,y:o?((z=l[r])===null||z===void 0?void 0:z.call(l,X))+T.y:k.y+T.y}};return W[re]={axis:R({dimension:r},N,M),axisLabel:R({},N,E),ticks:R({},N,ote(G,Y.tickStyle,X)),tickLabels:R({},N,lte(G,Y.labelStyle,c,X,q)),grid:R({},N,D,ste(ie,Y.gridStyle,X))},W},I)};function uC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uC(Object(n),!0).forEach(function(r){Ate(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ate(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tte(e){return jte(e)||Pte(e)||Ete(e)||kte()}function kte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
200
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ete(e,t){if(e){if(typeof e=="string")return Hg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hg(e,t)}}function tte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nte(e){if(Array.isArray(e))return Hg(e)}function Hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qg={top:-1,left:-1,right:1,bottom:1},Ef=function(e){return e!=null},rte=function(e,t){var n=e.orientation,r=e.horizontal;if(n){var i={top:"x",bottom:"x",left:"y",right:"y"};return i[n]}var a=t==="x"?"y":"x";return r?a:t},ite=function(e){var t=Rn(e),n=rte(e,t),r=Bn(e,t),i=e.domain&&e.domain[t],a=i||Po(e)||r.domain();return r.range(xt(e,n)),r.domain(a),r},ate=function(e){var t=e.theme,n=e.dependentAxis,r=t&&t.axis&&t.axis.style,i=n?"dependentAxis":"independentAxis",a=t&&t[i]&&t[i].style,o=function(){var l=["axis","axisLabel","grid","parent","tickLabels","ticks"];return l.reduce(function(s,u){return s[u]=ae({},a[u],r[u]),s},{})};return r&&a?o():a||r},lC=function(e,t){var n=e.style||{};t=t||{};var r={height:"100%",width:"100%"};return{parent:ae(n.parent,t.parent,r),axis:ae({},n.axis,t.axis),axisLabel:ae({},n.axisLabel,t.axisLabel),grid:ae({},n.grid,t.grid),ticks:ae({},n.ticks,t.ticks),tickLabels:ae({},n.tickLabels,t.tickLabels)}},ote=function(e,t,n){var r=e.position,i=e.transform;return{x1:i.x,y1:i.y,x2:i.x+r.x2,y2:i.y+r.y2,style:t,datum:n}},lte=function(e,t,n,r,i){var a=e.position,o=e.transform;return{style:t,x:o.x+a.x,y:o.y+a.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:i,datum:r}},ste=function(e,t,n){var r=e.edge,i=e.transform;return{x1:i.x,y1:i.y,x2:r.x+i.x,y2:r.y+i.y,style:t,datum:n}},ute=function(e,t,n){var r=t.style,i=t.padding,a=t.isVertical,o=e.width,l=e.height;return{style:r.axis,x1:a?n.x:i.left+n.x,x2:a?n.x:o-i.right+n.x,y1:a?i.top+n.y:n.y,y2:a?l-i.bottom+n.y:n.y}},cte=function(e,t){return{tickStyle:Ze(e.ticks,t),labelStyle:Ze(e.tickLabels,t),gridStyle:Ze(e.grid,t)}},fte=function(e,t,n){var r=t.style,i=t.orientation,a=t.padding,o=t.labelPadding,l=t.isVertical,s=qg[i],u=a.left+a.right,c=a.top+a.bottom,f=s<0?"end":"start",d=r.axisLabel,h=l?-90:0,g=l?n.x+s*o:(e.width-u)/2+a.left+n.x,p=l?(e.height-c)/2+a.top+n.y:s*o+n.y;return{x:g,y:p,verticalAnchor:d.verticalAnchor||f,textAnchor:d.textAnchor||"middle",angle:d.angle===void 0?h:d.angle,style:d,text:e.label}},dte=function(e,t){var n={top:"end",left:"end",right:"start",bottom:"start"},r=n[e];return{textAnchor:t?r:"middle",verticalAnchor:t?"middle":r}},hte=function(e,t){var n=t.axisLabel||{};if(n.padding!==void 0&&n.padding!==null)return n.padding;var r=of(e),i=n.fontSize||14;return e.label?i*(r?2.3:1.6):0},sC=function(e,t,n){var r=t||"positive",i={positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}},a={positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}};return n?a[r][e]:i[r][e]},mte=function(e,t){var n=t.style,r=t.scale,i=t.orientation,a=t.padding,o=t.axis,l=t.ticks,s=t.stringTicks,u=t.isVertical,c=t.labelPadding,f=e.polar,d=e.horizontal,h={scale:kf({},o,r),polar:f,horizontal:d,ticks:l,stringTicks:s},g=i==="right"?a.right:a.left,p=i==="top"?a.top:a.bottom,y=e.offsetX!==null&&e.offsetX!==void 0?e.offsetX:g,_=e.offsetY!==null&&e.offsetY!==void 0?e.offsetY:p,b=n.axisLabel.fontSize||14,S=l.map(function(k,j){var N=s?e.tickValues[k-1]:k,M=Ze(n.ticks,R({},h,{tick:N,index:j}));return M.size||0}),O=b+2*Math.max.apply(Math,Jee(S))+c,w=1.2*b,A=u?O:w,T=u?w:O;return{x:y??A,y:_??T}},gte=function(e,t){var n=t.scale,r=t.origin,i=t.orientation,a=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={x:i==="bottom"||i==="top"?i:a.x,y:i==="left"||i==="right"?i:a.y},h={x:d.y==="left"?c:f,y:d.x==="bottom"?u:s},g={x:d.y==="left"?0:e.width,y:d.x==="bottom"?e.height:0},p={x:r.x===o.x[0]||r.x===o.x[1]?0:n.x(r.x),y:r.y===o.y[0]||r.y===o.y[1]?0:n.y(r.y)},y=p.x?Math.abs(g.x-p.x):h.x,_=p.y?Math.abs(g.y-p.y):h.y,b=Ef(e.offsetX)?e.offsetX:y,S=Ef(e.offsetY)?e.offsetY:_;return{x:b,y:S}},pte=function(e,t){var n=t.scale,r=t.origin,i=t.orientation,a=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={y:i==="bottom"||i==="top"?i:a.x,x:i==="left"||i==="right"?i:a.y},h={x:d.y==="bottom"?u:s,y:d.x==="left"?c:f},g={y:d.x==="left"?0:e.width,x:d.y==="bottom"?e.height:0},p={x:r.x===o.x[0]||r.x===o.x[1]?0:n.x(r.x),y:r.y===o.y[0]||r.y===o.y[1]?0:n.y(r.y)},y=p.x?Math.abs(g.x-p.x):h.x,_=p.y?Math.abs(g.y-p.y):h.y,b=Ef(e.offsetX)?e.offsetX:_,S=Ef(e.offsetY)?e.offsetY:y;return{x:b,y:S}},vte=function(e,t,n){var r=t.orientation,i=t.axis,a=Gw(e,i);return{top:{x:0,y:a!==void 0?a:n.y},bottom:{x:0,y:a!==void 0?a:e.height-n.y},left:{x:a!==void 0?a:n.x,y:0},right:{x:a!==void 0?a:e.width-n.x,y:0}}[r]},yte=function(e,t,n){var r=e.tickStyle,i=e.labelStyle,a=r.size||0,o=r.padding||0,l=i.padding||0,s=a+o+l,u=qg[t];return{x:n?u*s:0,x2:n?u*a:0,y:n?0:u*s,y2:n?0:u*a}},bte=function(e,t,n){return{x:n?t.x:e+t.x,y:n?e+t.y:t.y}},_te=function(e,t){var n=t.orientation,r=t.padding,i=t.isVertical,a=-qg[n],o=i?a*(e.width-(r.left+r.right)):0,l=i?0:a*(e.height-(r.top+r.bottom));return{x:o,y:l}},xte=function(e,t){var n=e.padding,r=e.orientation,i=e.crossAxis,a=r==="right"?n.right:n.left,o=r==="top"?n.top:n.bottom;return{x:i?t.x-a:0,y:i?t.y-o:0}},Ste=function(e,t){var n;return t.domain.x&&t.domain.y?n=e.horizontal?pte(e,t):gte(e,t):n=mte(e,t),{globalTransform:vte(e,t,n),gridOffset:xte(t,n),gridEdge:_te(e,t)}},wte=function(e){if(e.orientation)return e.orientation;var t={dependent:e.horizontal?"bottom":"left",independent:e.horizontal?"left":"bottom"};return e.dependentAxis?t.dependent:t.independent},Ote=function(e){var t=ate(e),n=lC(e,t),r=lt(e),i=hte(e,n),a=lf(e)?e.tickValues:void 0,o=Rn(e),l=Po(e),s=ite(e),u=o==="x"?l:void 0,c=o==="y"?l:void 0,f=o==="x"?s:void 0,d=o==="y"?s:void 0,h=!(e.crossAxis===!1||e.standalone===!0),g=qw(e,s,h),p=Uw(e,s),y={x:xt(e,"x"),y:xt(e,"y")},_={x:e.domain&&e.domain.x?e.domain.x:u,y:e.domain&&e.domain.y?e.domain.y:c},b={x:e.domain&&e.domain.x?Bn(e,"x").domain(e.domain.x).range(e.horizontal?y.y:y.x):f,y:e.domain&&e.domain.y?Bn(e,"y").domain(e.domain.y).range(e.horizontal?y.x:y.y):d},S=_.x&&_.y?zw(_):void 0,O=S?{x:Vw(S.x,_.x),y:Vw(S.y,_.y)}:void 0,w=O?{x:sC("x",O.y,e.horizontal),y:sC("y",O.x,e.horizontal)}:void 0,A=w?e.orientation||w[o]:wte(e),T=of(Object.assign({},e,{orientation:A})),k=dte(A,T);return{anchors:k,axis:o,crossAxis:h,domain:_,isVertical:T,labelPadding:i,orientation:A,orientations:w,origin:S,padding:r,scale:b,stringTicks:a,style:n,tickFormat:p,ticks:g}},Cte=function(e,t){e=sf(e,t);var n=Ote(e),r=n.axis,i=n.style,a=n.orientation,o=n.isVertical,l=n.scale,s=n.ticks,u=n.tickFormat,c=n.anchors,f=n.domain,d=n.stringTicks,h=r==="x"?"y":"x",g=e,p=g.width,y=g.height,_=g.standalone,b=g.theme,S=g.polar,O=g.padding,w=g.horizontal,A=Ste(e,n),T=A.globalTransform,k=A.gridOffset,j=A.gridEdge,N={scale:kf({},r,l[r]),polar:S,horizontal:w,ticks:s,stringTicks:d},M=ute(e,n,T),E=fte(e,n,T),D={parent:R({style:i.parent,ticks:s,standalone:_,theme:b,width:p,height:y,padding:O,domain:f},N)},I={dimension:h,range:kf({},h,xt(e,h)),scale:e.scale&&e.scale[h]?kf({},h,e.scale[h]):void 0};return s.reduce(function(W,Z,ne){var re,J,z,X=d?d[ne]:Z,H=u(Z,ne,s),Y=cte(i,R({},N,{tick:X,tickValue:Z,index:ne,text:H})),G={position:yte(Y,a,o),transform:bte((re=l[r])===null||re===void 0?void 0:re.call(l,Z),T,o)},ie={edge:j,transform:{x:o?-k.x+T.x:((J=l[r])===null||J===void 0?void 0:J.call(l,Z))+T.x,y:o?((z=l[r])===null||z===void 0?void 0:z.call(l,Z))+T.y:k.y+T.y}};return W[ne]={axis:R({dimension:r},N,M),axisLabel:R({},N,E),ticks:R({},N,ote(G,Y.tickStyle,Z)),tickLabels:R({},N,lte(G,Y.labelStyle,c,Z,H)),grid:R({},N,I,ste(ie,Y.gridStyle,Z))},W},D)};function uC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uC(Object(n),!0).forEach(function(r){Ate(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ate(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tte(e){return jte(e)||Pte(e)||Ete(e)||kte()}function kte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
201
201
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ete(e,t){if(e){if(typeof e=="string")return Gg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gg(e,t)}}function Pte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jte(e){if(Array.isArray(e))return Gg(e)}function Gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dte(e,t,n){return t&&fC(e.prototype,t),n&&fC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ite(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yg(e,t)}function Yg(e,t){return Yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Yg(e,t)}function $te(e){var t=Nte();return function(){var r=Pf(e),i;if(t){var a=Pf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Lte(this,i)}}function Lte(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fte(e)}function Fte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nte(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pf(e){return Pf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pf(e)}var dC={width:450,height:300,padding:50},Bte={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},Vn=function(e){Ite(n,e);var t=$te(n);function n(){return Mte(this,n),t.apply(this,arguments)}return Dte(n,[{key:"renderLine",value:function(i){var a=i.axisComponent,o=this.getComponentProps(a,"axis",0);return x.cloneElement(a,o)}},{key:"renderLabel",value:function(i){var a=i.axisLabelComponent,o=i.label;if(!o)return null;var l=this.getComponentProps(a,"axisLabel",0);return x.cloneElement(a,l)}},{key:"renderGridAndTicks",value:function(i){var a=this,o=i.tickComponent,l=i.tickLabelComponent,s=i.gridComponent,u=i.name,c=function(f){var d=f.style,h=d===void 0?{}:d,g=f.events,p=g===void 0?{}:g,y=h.stroke!=="transparent"&&h.stroke!=="none"&&h.strokeWidth!==0;return y||!rt(p)};return this.dataKeys.map(function(f,d){var h=a.getComponentProps(o,"ticks",d),g=x.cloneElement(o,h),p=c(g.props)?g:void 0,y=a.getComponentProps(s,"grid",d),_=x.cloneElement(s,y),b=c(_.props)?_:void 0,S=a.getComponentProps(l,"tickLabels",d),O=x.cloneElement(l,S),w=[b,p,O].filter(Boolean);return x.cloneElement(i.groupComponent,{key:"".concat(u,"-tick-group-").concat(f)},w)})}},{key:"fixLabelOverlap",value:function(i,a){var o=of(a),l=o?a.height:a.width,s=function(y){return y.type&&y.type.role==="label"},u=i.map(function(y){return y.props.children}).reduce(function(y,_){return y.concat(_)},[]).filter(s).map(function(y){return y.props}),c=function(y){return typeof y=="object"?R({},{top:0,right:0,bottom:0,left:0},y):{top:y,right:y,bottom:y,left:y}},f=u.reduce(function(y,_){var b=c(_.style.padding),S=ha(_.text,{angle:_.angle,fontSize:_.style.fontSize,letterSpacing:_.style.letterSpacing,fontFamily:_.style.fontFamily});return y+(o?S.height+b.top+b.bottom:S.width+b.right+b.left)},0),d=Math.floor(l*i.length/f),h=Math.ceil(i.length/d)||1,g=function(y){return y.props.children.filter(s).reduce(function(_,b){return(o?b.props.y:b.props.x)||0},0)},p=i.sort(function(y,_){return o?g(_)-g(y):g(y)-g(_)});return p.filter(function(y,_){return _%h===0})}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=ps.animationWhitelist,a=sf(this.props,dC),o=or(this.props);if(this.shouldAnimate())return this.animateComponent(a,i);var l=this.renderGridAndTicks(a),s=a.fixLabelOverlap?this.fixLabelOverlap(l,a):l,u=[this.renderLine(a),this.renderLabel(a)].concat(Tte(s)),c=x.cloneElement(a.containerComponent,o);return a.standalone?this.renderContainer(c,u):x.cloneElement(a.groupComponent,o,u)}}]),n}(x.Component);Vn.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"],Vn.displayName="VictoryAxis",Vn.role="axis",Vn.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},Vn.propTypes=cC(cC({},Ot.baseProps),{},{axisComponent:m.element,axisLabelComponent:m.element,axisValue:m.oneOfType([m.number,m.string,m.object]),categories:m.oneOfType([m.arrayOf(m.string),m.shape({x:m.arrayOf(m.string),y:m.arrayOf(m.string)})]),crossAxis:m.bool,dependentAxis:m.bool,events:m.arrayOf(m.shape({target:m.oneOf(["axis","axisLabel","grid","ticks","tickLabels"]),eventKey:m.oneOfType([m.array,ct([ut,_e]),m.string]),eventHandlers:m.object})),fixLabelOverlap:m.bool,gridComponent:m.element,groupComponent:m.element,invertAxis:m.bool,label:m.any,offsetX:m.number,offsetY:m.number,orientation:m.oneOf(["top","bottom","left","right"]),origin:m.shape({x:m.number,y:m.number}),stringMap:m.object,style:m.shape({parent:m.object,axis:m.object,axisLabel:m.object,grid:m.object,ticks:m.object,tickLabels:m.object}),tickComponent:m.element,tickCount:ct([ut,vS]),tickFormat:m.oneOfType([m.func,Pc]),tickLabelComponent:m.element,tickValues:Pc}),Vn.defaultProps={axisComponent:x.createElement(Ar,null),axisLabelComponent:x.createElement(wt,null),tickLabelComponent:x.createElement(wt,null),tickComponent:x.createElement(Ar,null),gridComponent:x.createElement(Ar,null),standalone:!0,theme:Cr.grayscale,containerComponent:x.createElement(ze,null),groupComponent:x.createElement("g",{role:"presentation"}),fixLabelOverlap:!1},Vn.getDomain=Po,Vn.getAxis=Rn,Vn.getStyles=function(e){return lC(e)},Vn.getBaseProps=function(e){return Cte(e,dC)},Vn.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var ps=ya(Vn,Bte),pn=function(e,t,n){return n==="x"?e*Math.cos(t):-e*Math.sin(t)},hC=function(e){var t=e.dependentAxis?"radial":"angular",n=t==="angular"?"radial":"angular";return e.horizontal?n:t},Rte=function(e,t){var n=function(r){return t(r)%(2*Math.PI)};return XO(e,n)},Kg=function(e,t){return{tickStyle:Ze(e.ticks,t),labelStyle:Ze(e.tickLabels,t),gridStyle:Ze(e.grid,t)}},Wte=function(e){var t=e.theme,n=t===void 0?{}:t,r=e.dependentAxis,i=n.polarAxis&&n.polarAxis.style||n.axis&&n.axis.style,a=r?"polarDependentAxis":"polarIndependentAxis",o=r?"dependentAxis":"independentAxis",l=n[a]&&n[a].style||n[o]&&n[o].style,s=function(){var u=["axis","axisLabel","grid","parent","tickLabels","ticks"];return u.reduce(function(c,f){return c[f]=ae({},l[f],i[f]),c},{})};return i&&l?s():l||i},mC=function(e){var t=lt(e),n=t.left,r=t.right,i=t.top,a=t.bottom,o=e.width,l=e.height;return Math.min(o-n-r,l-i-a)/2},gC=function(e,t){if(e.range&&e.range[t])return e.range[t];if(e.range&&Array.isArray(e.range))return e.range;var n=hC(e);if(n==="angular"){var r=st(e.startAngle),i=st(e.endAngle);return[r,i]}var a=mC(e);return[e.innerRadius||0,a]},pC=function(e){var t=Rn(e),n=Bn(e,t),r=Po(e,t)||n.domain(),i=gC(e,t);return n.range(i),n.domain(r),n},vC=function(e,t){if(e.disableInlineStyles)return{};var n=e.style||{};t=t||{};var r={height:"auto",width:"100%"};return{parent:ae(r,n.parent,t.parent),axis:ae({},n.axis,t.axis),axisLabel:ae({},n.axisLabel,t.axisLabel),grid:ae({},n.grid,t.grid),ticks:ae({},n.ticks,t.ticks),tickLabels:ae({},n.tickLabels,t.tickLabels)}},jf=function(e){var t=e.axisAngle,n=e.startAngle,r=e.dependentAxis,i=Rn(e),a=Gw(e,i);return a===void 0||!r?t===void 0?n:t:Gr(a)},zte=function(e,t,n,r){var i=t.axisType,a=t.radius,o=t.scale,l=t.style,s=t.stringTicks,u=t.ticks,c=t.tickFormat,f=t.origin,d=c(n,r,u),h=s?s[r]:n,g=Kg(l,{tick:h,tickValue:n,index:r,ticks:u,stringTicks:s,radius:a,scale:o,axisType:i,text:d}),p=g.tickStyle,y=i==="radial"?jf(e):void 0,_=p.padding||p.size||0,b=st(90-y),S=i==="angular"?o(n):st(-1*y),O=i==="angular"?a:o(n);return i==="angular"?{index:r,datum:h,style:p,x1:pn(O,S,"x")+f.x,y1:pn(O,S,"y")+f.y,x2:pn(O+_,S,"x")+f.x,y2:pn(O+_,S,"y")+f.y}:{index:r,datum:h,style:p,x1:O*Math.cos(S)+Math.cos(b)*_+f.x,x2:O*Math.cos(S)-Math.cos(b)*_+f.x,y1:O*Math.sin(S)+Math.sin(b)*_+f.y,y2:O*Math.sin(S)-Math.sin(b)*_+f.y}},Vte=function(e,t,n,r){var i=t.axisType,a=t.radius,o=t.tickFormat,l=t.style,s=t.scale,u=t.ticks,c=t.stringTicks,f=t.origin,d=o(n,r,u),h=c?c[r]:n,g=Kg(l,{text:d,tick:h,tickValue:n,index:r,ticks:u,stringTicks:c,radius:a,scale:s,axisType:i}),p=g.labelStyle,y=e.tickLabelComponent,_=y.props&&y.props.labelPlacement?y.props.labelPlacement:e.labelPlacement,b=p.padding||0,S=0,O=i==="radial"?jf(e):void 0,w=i==="angular"?Gr(s(n)):O+S,A=p.angle===void 0?L0(R({},e,{labelPlacement:_}),w):p.angle,T=i==="angular"?a+b:s(n),k=p.textAnchor||$0(R({},e,{labelPlacement:_}),w);return{index:r,datum:h,style:p,angle:A,textAnchor:k,text:d,x:T*Math.cos(st(w))+f.x,y:-T*Math.sin(st(w))+f.y}},Ute=function(e,t,n,r){var i=t.axisType,a=t.radius,o=t.style,l=t.scale,s=t.stringTicks,u=t.ticks,c=t.tickFormat,f=t.origin,d=c(n,r,u),h=e.startAngle,g=e.endAngle,p=e.innerRadius,y=p===void 0?0:p,_=s?s[r]:n,b=Kg(o,{tick:_,tickValue:n,index:r,ticks:u,stringTicks:s,radius:a,scale:l,axisType:i,text:d}),S=b.gridStyle,O=l(n);return i==="angular"?{index:r,datum:_,style:S,x1:pn(a,O,"x")+f.x,y1:pn(a,O,"y")+f.y,x2:pn(y,O,"x")+f.x,y2:pn(y,O,"y")+f.y}:{style:S,index:r,datum:_,cx:f.x,cy:f.y,r:l(n),startAngle:h,endAngle:g}},Hte=function(e,t){var n=t.axisType,r=t.radius,i=t.style;t.scale;var a=t.origin,o=e.axisLabelComponent;if(n!=="radial")return{};var l=o.props&&o.props.labelPlacement?o.props.labelPlacement:e.labelPlacement,s=i&&i.axisLabel||{},u=n==="radial"?jf(e):void 0,c=s.angle===void 0?L0(R({},e,{labelPlacement:l}),u):s.angle,f=r+(s.padding||0),d=s.textAnchor||$0(R({},e,{labelPlacement:l}),u),h=s.verticalAnchor||TS(R({},e,{labelPlacement:l}),u);return{style:s,angle:c,textAnchor:d,verticalAnchor:h,text:e.label,x:pn(f,st(u),"x")+a.x,y:pn(f,st(u),"y")+a.y}},qte=function(e,t){var n=t.style,r=t.axisType,i=t.radius;t.scale;var a=t.origin,o=e.startAngle,l=e.endAngle,s=e.innerRadius,u=s===void 0?0:s,c=r==="radial"?st(jf(e)):void 0;return r==="radial"?{style:n.axis,x1:pn(u,c,"x")+a.x,x2:pn(i,c,"x")+a.x,y1:pn(u,c,"y")+a.y,y2:pn(i,c,"y")+a.y}:{style:n.axis,cx:a.x,cy:a.y,r:i,startAngle:o,endAngle:l}},Gte=function(e){e=R({polar:!0},e);var t=Wte(e),n=vC(e,t),r=lt(e),i=Rn(e),a=hC(e),o=lf(e)?e.tickValues:void 0,l=Po(e,i),s=gC(e,i),u=pC(e),c=qw(e,u),f=a==="angular"?Rte(c,u):c,d=Uw(e,u),h=mC(e),g=Kl(e);return{axis:i,style:n,padding:r,stringTicks:o,axisType:a,scale:u,ticks:f,tickFormat:d,domain:l,range:s,radius:h,origin:g}},Yte=function(e,t){e=sf(e,t);var n=Gte(e),r=n.style,i=n.scale,a=n.ticks,o=n.domain,l=e,s=l.width,u=l.height,c=l.standalone,f=l.theme,d=l.name,h=qte(e,n),g=Hte(e,n),p={parent:{style:r.parent,ticks:a,scale:i,width:s,height:u,domain:o,standalone:c,theme:f,name:d}};return a.reduce(function(y,_,b){return y[b]={axis:h,axisLabel:g,ticks:zte(e,n,_,b),tickLabels:Vte(e,n,_,b),grid:Ute(e,n,_,b)},y},p)};function yC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yC(Object(n),!0).forEach(function(r){Kte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zg(e){return Qte(e)||Jte(e)||Xte(e)||Zte()}function Zte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
202
202
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xte(e,t){if(e){if(typeof e=="string")return Xg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xg(e,t)}}function Jte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qte(e){if(Array.isArray(e))return Xg(e)}function Xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ene(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tne(e,t,n){return t&&_C(e.prototype,t),n&&_C(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jg(e,t)}function Jg(e,t){return Jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jg(e,t)}function rne(e){var t=one();return function(){var r=Mf(e),i;if(t){var a=Mf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return ine(this,i)}}function ine(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ane(e)}function ane(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function one(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mf(e){return Mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mf(e)}var Qg={width:450,height:300,padding:50},lne={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},wn=function(e){nne(n,e);var t=rne(n);function n(){return ene(this,n),t.apply(this,arguments)}return tne(n,[{key:"renderAxisLine",value:function(i){var a=i.dependentAxis,o=a?i.axisComponent:i.circularAxisComponent,l=this.getComponentProps(o,"axis",0);return x.cloneElement(o,l)}},{key:"renderLabel",value:function(i){var a=i.axisLabelComponent,o=i.dependentAxis,l=i.label;if(!l||!o)return null;var s=this.getComponentProps(a,"axisLabel",0);return x.cloneElement(a,s)}},{key:"renderAxis",value:function(i){var a=this,o=i.tickComponent,l=i.tickLabelComponent,s=i.name,u=function(b){var S=b.style,O=S===void 0?{}:S,w=b.events,A=w===void 0?{}:w,T=O.stroke!=="transparent"&&O.stroke!=="none"&&O.strokeWidth!==0;return T||!rt(A)},c=i.dependentAxis?"radial":"angular",f=c==="radial"?i.circularGridComponent:i.gridComponent,d=this.dataKeys.map(function(b,S){var O=R({key:"".concat(s,"-tick-").concat(b)},a.getComponentProps(o,"ticks",S)),w=x.cloneElement(o,O);return u(w.props)?w:void 0}).filter(Boolean),h=this.dataKeys.map(function(b,S){var O=R({key:"".concat(s,"-grid-").concat(b)},a.getComponentProps(f,"grid",S)),w=x.cloneElement(f,O);return u(w.props)?w:void 0}).filter(Boolean),g=this.dataKeys.map(function(b,S){var O=R({key:"".concat(s,"-tick-").concat(b)},a.getComponentProps(l,"tickLabels",S));return x.cloneElement(l,O)}),p=this.renderAxisLine(i),y=this.renderLabel(i),_=[p,y].concat(Zg(d),Zg(h),Zg(g));return this.renderGroup(i,_)}},{key:"renderGroup",value:function(i,a){var o=i.groupComponent;return x.cloneElement(o,{},a)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=sf(this.props,Qg);if(this.shouldAnimate())return this.animateComponent(a,i);var o=this.renderAxis(a);return a.standalone?this.renderContainer(a.containerComponent,o):o}}]),n}(x.Component);wn.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"],wn.displayName="VictoryAxis",wn.role="axis",wn.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},wn.propTypes=bC(bC({},Ot.baseProps),{},{axisAngle:m.number,axisComponent:m.element,axisLabelComponent:m.element,axisValue:m.oneOfType([m.number,m.string,m.object]),categories:m.oneOfType([m.arrayOf(m.string),m.shape({x:m.arrayOf(m.string),y:m.arrayOf(m.string)})]),circularAxisComponent:m.element,circularGridComponent:m.element,containerComponent:m.element,dependentAxis:m.bool,disableInlineStyles:m.bool,endAngle:m.number,events:m.arrayOf(m.shape({target:m.oneOf(["axis","axisLabel","grid","ticks","tickLabels"]),eventKey:m.oneOfType([m.array,ct([ut,_e]),m.string]),eventHandlers:m.object})),gridComponent:m.element,innerRadius:_e,labelPlacement:m.oneOf(["parallel","perpendicular","vertical"]),startAngle:m.number,stringMap:m.object,style:m.shape({parent:m.object,axis:m.object,axisLabel:m.object,grid:m.object,ticks:m.object,tickLabels:m.object}),tickComponent:m.element,tickCount:ct([ut,vS]),tickFormat:m.oneOfType([m.func,Pc]),tickLabelComponent:m.element,tickValues:Pc}),wn.defaultProps={axisComponent:x.createElement(Ar,null),axisLabelComponent:x.createElement(wt,null),circularAxisComponent:x.createElement(qc,null),circularGridComponent:x.createElement(qc,null),containerComponent:x.createElement(ze,null),endAngle:360,gridComponent:x.createElement(Ar,null),groupComponent:x.createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Cr.grayscale,tickComponent:x.createElement(Ar,null),tickLabelComponent:x.createElement(wt,null)},wn.getDomain=Po,wn.getAxis=Rn,wn.getScale=pC,wn.getStyles=function(e){return vC(e,Qg.style)},wn.getBaseProps=function(e){return Yte(e,Qg)},wn.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];const xC=ya(wn,lne);function sne(e){return dne(e)||fne(e)||cne(e)||une()}function une(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
203
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cne(e,t){if(e){if(typeof e=="string")return ep(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ep(e,t)}}function fne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dne(e){if(Array.isArray(e))return ep(e)}function ep(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hne={width:450,height:300,padding:50};function mne(e,t,n){var r=n.domain,i=n.scale,a=n.stringMap,o=n.categories,l=n.horizontal;return{stringMap:a,horizontal:l,categories:o,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:i}}function gne(e,t){var n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],i=t.range.x[1]-t.range.x[0],a=e.horizontal?t.scale.y.range()[0]:t.scale.x.range()[0],o=e.horizontal?t.scale.x.range()[1]:t.scale.y.range()[1],l=e.polar?t.origin.x:a,s=e.polar?t.origin.y:o,u=e.name||"chart",c={height:r,polar:e.polar,scale:t.scale,style:e.style.background,x:l,y:s,key:"".concat(u,"-background"),width:i};return x.cloneElement(n,ae({},n.props,c))}function pne(e,t,n){var r=Bw([e]);if(r.length>0)return mne(r[0],t,n);var i=n.categories,a=n.domain,o=n.range,l=n.scale,s=n.stringMap,u=n.horizontal;return{categories:i,domain:a,range:o,scale:l,stringMap:s,horizontal:u}}function vne(e){var t=e.style&&e.style.parent;return{parent:ae({},t,{height:"100%",width:"100%",userSelect:"none"})}}function SC(e,t){var n=vne(e);e=St(e,hne,"chart");var r=e,i=r.horizontal,a=r.polar,o=rC(e,t),l=iC(e,t,o),s=bne(e,t,o),u={x:OC(R({},e,{categories:l}),"x",t),y:OC(R({},e,{categories:l}),"y",t)},c={x:xt(e,"x"),y:xt(e,"y")},f={x:as(e,"x")||Af(e,"x"),y:as(e,"y")||Af(e,"y")},d={x:f.x.domain(u.x).range(i?c.y:c.x),y:f.y.domain(u.y).range(i?c.x:c.y)},h=a?Kl(e):zw(u),g=lt(e);return{categories:l,domain:u,range:c,horizontal:i,scale:d,stringMap:s,style:n,origin:h,padding:g}}function yne(e,t,n){t=t||wC(e),n=n||SC(e,t);var r=n.style.parent,i=e.height,a=e.polar,o=e.theme,l=e.width,s=n,u=s.origin,c=s.horizontal,f=e.name||"chart";return t.map(function(d,h){var g=d.type&&d.type.role,p=Array.isArray(d.props.style)?d.props.style:ae({},d.props.style,{parent:r}),y=pne(d,e,n),_=d.props.name||"".concat(f,"-").concat(g,"-").concat(h),b=ae({horizontal:c,height:i,polar:a,theme:o,width:l,style:p,name:_,origin:a?u:void 0,padding:n.padding,key:"".concat(_,"-key-").concat(h),standalone:!1},y);return x.cloneElement(d,b)})}var wC=function(e,t){var n=x.Children.toArray(e.children),r=sne(n);if(n.length===0)r.push(t.independent,t.dependent);else{var i={dependent:Ww(n,"dependent"),independent:Ww(n,"independent")};i.dependent.length===0&&i.independent.length===0&&(r=e.prependDefaultAxes?[t.independent,t.dependent].concat(r):r.concat([t.independent,t.dependent]))}return r},OC=function(e,t,n){n=n||x.Children.toArray(e.children);var r=Rg(e,t,n),i=Rw(n,t),a=i&&i.props&&i.props.invertAxis;return a?r.concat().reverse():r},bne=function(e,t,n){var r=!n.x||n.x.length===0?null:n.x.reduce(function(a,o,l){return a[o]=l+1,a},{}),i=!n.y||n.y.length===0?null:n.y.reduce(function(a,o,l){return a[o]=l+1,a},{});return{x:r,y:i}};function CC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CC(Object(n),!0).forEach(function(r){_ne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xne={width:450,height:300,padding:50},tp=function(e){var t="chart",n=tO(),r=n.getAnimationProps,i=n.setAnimationState,a=n.getProps,o=a(e),l=St(o,xne,t),s=l.desc,u=l.eventKey,c=l.containerComponent,f=l.standalone,d=l.groupComponent,h=l.externalEventMutations,g=l.width,p=l.height,y=l.theme,_=l.polar,b=l.name,S=l.title,O=o.polar?l.defaultPolarAxes:l.defaultAxes,w=x.useMemo(function(){return wC(l,O)},[l,O]),A=x.useMemo(function(){return SC(l,w)},[l,w]),T=A.domain,k=A.scale,j=A.style,N=A.origin,M=A.horizontal,E=x.useMemo(function(){var re=yne(o,w,A),ne=re.map(function(z,Z){var q=R({animate:r(o,z,Z)},z.props);return x.cloneElement(z,q)});if(o.style&&o.style.background){var ee=gne(o,A);ne.unshift(ee)}return ne},[r,w,o,A]),I=x.useMemo(function(){return f?{desc:s,domain:T,width:g,height:p,horizontal:M,name:b,origin:_?N:void 0,polar:_,theme:y,title:S,scale:k,standalone:f,style:j.parent}:{}},[s,T,p,M,b,N,_,k,f,j,S,y,g]),D=x.useMemo(function(){if(f){var re=ae({},c.props,I,or(e));return x.cloneElement(c,re)}return d},[d,f,c,I,e]),W=x.useMemo(function(){return tC(o)},[o]),X=Zw(e);return x.useEffect(function(){return function(){e.animate&&i(X,e)}},[i,X,e]),rt(W)?x.cloneElement(D,D.props,E):x.createElement(wa,{container:D,eventKey:u,events:W,externalEventMutations:h},E)};tp.propTypes=AC(AC({},Ot.baseProps),{},{backgroundComponent:m.element,children:m.oneOfType([m.arrayOf(m.node),m.node]),defaultAxes:m.shape({independent:m.element,dependent:m.element}),defaultPolarAxes:m.shape({independent:m.element,dependent:m.element}),endAngle:m.number,innerRadius:_e,prependDefaultAxes:m.bool,startAngle:m.number}),tp.defaultProps={backgroundComponent:x.createElement(Q0,null),containerComponent:x.createElement(ze,null),defaultAxes:{independent:x.createElement(ps,null),dependent:x.createElement(ps,{dependentAxis:!0})},defaultPolarAxes:{independent:x.createElement(xC,null),dependent:x.createElement(xC,{dependentAxis:!0})},groupComponent:x.createElement("g",null),standalone:!0,theme:Cr.grayscale};var Df=x.memo(tp,fn);Df.displayName="VictoryChart",Df.expectedComponents=["groupComponent","containerComponent"];const Sne={name:"--pf-chart-container--cursor--line--Fill",value:"#151515",var:"var(--pf-chart-container--cursor--line--Fill, #151515)"};var wne=xn,TC=Object.create,One=function(){function e(){}return function(t){if(!wne(t))return{};if(TC)return TC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),np=One;function Cne(){}var rp=Cne,Ane=np,Tne=rp;function If(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}If.prototype=Ane(Tne.prototype),If.prototype.constructor=If;var ip=If,kC=Vx,kne=kC&&new kC,Ene=kne,EC=Ene,Pne=fw,jne=EC?function(e){return EC.get(e)}:Pne,PC=jne,Mne={},Dne=Mne,jC=Dne,Ine=Object.prototype,$ne=Ine.hasOwnProperty;function Lne(e){for(var t=e.name+"",n=jC[t],r=$ne.call(jC,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}var MC=Lne,Fne=np,Nne=rp,Bne=4294967295;function $f(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bne,this.__views__=[]}$f.prototype=Fne(Nne.prototype),$f.prototype.constructor=$f;var ap=$f;function Rne(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var DC=Rne,Wne=ap,zne=ip,Vne=DC;function Une(e){if(e instanceof Wne)return e.clone();var t=new zne(e.__wrapped__,e.__chain__);return t.__actions__=Vne(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Hne=Une,qne=ap,IC=ip,Gne=rp,Yne=Ft,Kne=ir,Zne=Hne,Xne=Object.prototype,Jne=Xne.hasOwnProperty;function Lf(e){if(Kne(e)&&!Yne(e)&&!(e instanceof qne)){if(e instanceof IC)return e;if(Jne.call(e,"__wrapped__"))return Zne(e)}return new IC(e)}Lf.prototype=Gne.prototype,Lf.prototype.constructor=Lf;var Qne=Lf,ere=ap,tre=PC,nre=MC,rre=Qne;function ire(e){var t=nre(e),n=rre[t];if(typeof n!="function"||!(t in ere.prototype))return!1;if(e===n)return!0;var r=tre(n);return!!r&&e===r[0]}var are=ire,$C=ip,ore=n2,lre=PC,op=MC,sre=Ft,LC=are,ure="Expected a function",cre=8,fre=32,dre=128,hre=256;function mre(e){return ore(function(t){var n=t.length,r=n,i=$C.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if(typeof a!="function")throw new TypeError(ure);if(i&&!o&&op(a)=="wrapper")var o=new $C([],!0)}for(r=o?r:n;++r<n;){a=t[r];var l=op(a),s=l=="wrapper"?lre(a):void 0;s&&LC(s[0])&&s[1]==(dre|cre|fre|hre)&&!s[4].length&&s[9]==1?o=o[op(s[0])].apply(o,s[3]):o=a.length==1&&LC(a)?o[l]():o.thru(a)}return function(){var u=arguments,c=u[0];if(o&&u.length==1&&sre(c))return o.plant(c).value();for(var f=0,d=n?t[f].apply(this,u):c;++f<n;)d=t[f].call(this,d);return d}})}var gre=mre,pre=gre,vre=pre(),yre=vre;const bre=Ae(yre);var _re=Oi;function xre(e){return typeof e=="function"?e:_re}var Sre=xre,wre=Zu,Ore=Sre;function Cre(e,t){return e&&wre(e,Ore(t))}var Are=Cre;const Tre=Ae(Are);var kre=co;function Ere(e,t){return kre(t,function(n){return[n,e[n]]})}var Pre=Ere;function jre(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var Mre=jre,Dre=Pre,Ire=am,$re=W1,Lre=Mre,Fre="[object Map]",Nre="[object Set]";function Bre(e){return function(t){var n=Ire(t);return n==Fre?$re(t):n==Nre?Lre(t):Dre(t,e(t))}}var Rre=Bre,Wre=Rre,zre=Ci,Vre=Wre(zre),Ure=Vre;const Hre=Ae(Ure);function FC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FC(Object(n),!0).forEach(function(r){qre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gre=function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,i=e.width,a=e.height,o=e.center,l=r==="bottom"?1:-1,s=e.x+(e.dx||0),u=e.y+(e.dy||0),c=Qe(o)&&o.x,f=Qe(o)&&o.y,d=f+l*(a/2),h=f-l*(a/2),g=c+i/2,p=c-i/2,y=l*(u-d)<0?0:e.pointerLength,_=r==="bottom"?"0 0 0":"0 0 1",b="".concat(n," ").concat(n," ").concat(_);return"M ".concat(c-t/2,", ").concat(d,`
203
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cne(e,t){if(e){if(typeof e=="string")return ep(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ep(e,t)}}function fne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dne(e){if(Array.isArray(e))return ep(e)}function ep(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hne={width:450,height:300,padding:50};function mne(e,t,n){var r=n.domain,i=n.scale,a=n.stringMap,o=n.categories,l=n.horizontal;return{stringMap:a,horizontal:l,categories:o,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:i}}function gne(e,t){var n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],i=t.range.x[1]-t.range.x[0],a=e.horizontal?t.scale.y.range()[0]:t.scale.x.range()[0],o=e.horizontal?t.scale.x.range()[1]:t.scale.y.range()[1],l=e.polar?t.origin.x:a,s=e.polar?t.origin.y:o,u=e.name||"chart",c={height:r,polar:e.polar,scale:t.scale,style:e.style.background,x:l,y:s,key:"".concat(u,"-background"),width:i};return x.cloneElement(n,ae({},n.props,c))}function pne(e,t,n){var r=Bw([e]);if(r.length>0)return mne(r[0],t,n);var i=n.categories,a=n.domain,o=n.range,l=n.scale,s=n.stringMap,u=n.horizontal;return{categories:i,domain:a,range:o,scale:l,stringMap:s,horizontal:u}}function vne(e){var t=e.style&&e.style.parent;return{parent:ae({},t,{height:"100%",width:"100%",userSelect:"none"})}}function SC(e,t){var n=vne(e);e=St(e,hne,"chart");var r=e,i=r.horizontal,a=r.polar,o=rC(e,t),l=iC(e,t,o),s=bne(e,t,o),u={x:OC(R({},e,{categories:l}),"x",t),y:OC(R({},e,{categories:l}),"y",t)},c={x:xt(e,"x"),y:xt(e,"y")},f={x:as(e,"x")||Af(e,"x"),y:as(e,"y")||Af(e,"y")},d={x:f.x.domain(u.x).range(i?c.y:c.x),y:f.y.domain(u.y).range(i?c.x:c.y)},h=a?Kl(e):zw(u),g=lt(e);return{categories:l,domain:u,range:c,horizontal:i,scale:d,stringMap:s,style:n,origin:h,padding:g}}function yne(e,t,n){t=t||wC(e),n=n||SC(e,t);var r=n.style.parent,i=e.height,a=e.polar,o=e.theme,l=e.width,s=n,u=s.origin,c=s.horizontal,f=e.name||"chart";return t.map(function(d,h){var g=d.type&&d.type.role,p=Array.isArray(d.props.style)?d.props.style:ae({},d.props.style,{parent:r}),y=pne(d,e,n),_=d.props.name||"".concat(f,"-").concat(g,"-").concat(h),b=ae({horizontal:c,height:i,polar:a,theme:o,width:l,style:p,name:_,origin:a?u:void 0,padding:n.padding,key:"".concat(_,"-key-").concat(h),standalone:!1},y);return x.cloneElement(d,b)})}var wC=function(e,t){var n=x.Children.toArray(e.children),r=sne(n);if(n.length===0)r.push(t.independent,t.dependent);else{var i={dependent:Ww(n,"dependent"),independent:Ww(n,"independent")};i.dependent.length===0&&i.independent.length===0&&(r=e.prependDefaultAxes?[t.independent,t.dependent].concat(r):r.concat([t.independent,t.dependent]))}return r},OC=function(e,t,n){n=n||x.Children.toArray(e.children);var r=Rg(e,t,n),i=Rw(n,t),a=i&&i.props&&i.props.invertAxis;return a?r.concat().reverse():r},bne=function(e,t,n){var r=!n.x||n.x.length===0?null:n.x.reduce(function(a,o,l){return a[o]=l+1,a},{}),i=!n.y||n.y.length===0?null:n.y.reduce(function(a,o,l){return a[o]=l+1,a},{});return{x:r,y:i}};function CC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CC(Object(n),!0).forEach(function(r){_ne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xne={width:450,height:300,padding:50},tp=function(e){var t="chart",n=tO(),r=n.getAnimationProps,i=n.setAnimationState,a=n.getProps,o=a(e),l=St(o,xne,t),s=l.desc,u=l.eventKey,c=l.containerComponent,f=l.standalone,d=l.groupComponent,h=l.externalEventMutations,g=l.width,p=l.height,y=l.theme,_=l.polar,b=l.name,S=l.title,O=o.polar?l.defaultPolarAxes:l.defaultAxes,w=x.useMemo(function(){return wC(l,O)},[l,O]),A=x.useMemo(function(){return SC(l,w)},[l,w]),T=A.domain,k=A.scale,j=A.style,N=A.origin,M=A.horizontal,E=x.useMemo(function(){var ne=yne(o,w,A),re=ne.map(function(z,X){var H=R({animate:r(o,z,X)},z.props);return x.cloneElement(z,H)});if(o.style&&o.style.background){var J=gne(o,A);re.unshift(J)}return re},[r,w,o,A]),D=x.useMemo(function(){return f?{desc:s,domain:T,width:g,height:p,horizontal:M,name:b,origin:_?N:void 0,polar:_,theme:y,title:S,scale:k,standalone:f,style:j.parent}:{}},[s,T,p,M,b,N,_,k,f,j,S,y,g]),I=x.useMemo(function(){if(f){var ne=ae({},c.props,D,or(e));return x.cloneElement(c,ne)}return d},[d,f,c,D,e]),W=x.useMemo(function(){return tC(o)},[o]),Z=Zw(e);return x.useEffect(function(){return function(){e.animate&&i(Z,e)}},[i,Z,e]),rt(W)?x.cloneElement(I,I.props,E):x.createElement(wa,{container:I,eventKey:u,events:W,externalEventMutations:h},E)};tp.propTypes=AC(AC({},Ot.baseProps),{},{backgroundComponent:m.element,children:m.oneOfType([m.arrayOf(m.node),m.node]),defaultAxes:m.shape({independent:m.element,dependent:m.element}),defaultPolarAxes:m.shape({independent:m.element,dependent:m.element}),endAngle:m.number,innerRadius:_e,prependDefaultAxes:m.bool,startAngle:m.number}),tp.defaultProps={backgroundComponent:x.createElement(Q0,null),containerComponent:x.createElement(ze,null),defaultAxes:{independent:x.createElement(ps,null),dependent:x.createElement(ps,{dependentAxis:!0})},defaultPolarAxes:{independent:x.createElement(xC,null),dependent:x.createElement(xC,{dependentAxis:!0})},groupComponent:x.createElement("g",null),standalone:!0,theme:Cr.grayscale};var Df=x.memo(tp,fn);Df.displayName="VictoryChart",Df.expectedComponents=["groupComponent","containerComponent"];const Sne={name:"--pf-chart-container--cursor--line--Fill",value:"#151515",var:"var(--pf-chart-container--cursor--line--Fill, #151515)"};var wne=xn,TC=Object.create,One=function(){function e(){}return function(t){if(!wne(t))return{};if(TC)return TC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),np=One;function Cne(){}var rp=Cne,Ane=np,Tne=rp;function If(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}If.prototype=Ane(Tne.prototype),If.prototype.constructor=If;var ip=If,kC=Vx,kne=kC&&new kC,Ene=kne,EC=Ene,Pne=fw,jne=EC?function(e){return EC.get(e)}:Pne,PC=jne,Mne={},Dne=Mne,jC=Dne,Ine=Object.prototype,$ne=Ine.hasOwnProperty;function Lne(e){for(var t=e.name+"",n=jC[t],r=$ne.call(jC,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}var MC=Lne,Fne=np,Nne=rp,Bne=4294967295;function $f(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bne,this.__views__=[]}$f.prototype=Fne(Nne.prototype),$f.prototype.constructor=$f;var ap=$f;function Rne(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var DC=Rne,Wne=ap,zne=ip,Vne=DC;function Une(e){if(e instanceof Wne)return e.clone();var t=new zne(e.__wrapped__,e.__chain__);return t.__actions__=Vne(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Hne=Une,qne=ap,IC=ip,Gne=rp,Yne=Ft,Kne=ir,Zne=Hne,Xne=Object.prototype,Jne=Xne.hasOwnProperty;function Lf(e){if(Kne(e)&&!Yne(e)&&!(e instanceof qne)){if(e instanceof IC)return e;if(Jne.call(e,"__wrapped__"))return Zne(e)}return new IC(e)}Lf.prototype=Gne.prototype,Lf.prototype.constructor=Lf;var Qne=Lf,ere=ap,tre=PC,nre=MC,rre=Qne;function ire(e){var t=nre(e),n=rre[t];if(typeof n!="function"||!(t in ere.prototype))return!1;if(e===n)return!0;var r=tre(n);return!!r&&e===r[0]}var are=ire,$C=ip,ore=n2,lre=PC,op=MC,sre=Ft,LC=are,ure="Expected a function",cre=8,fre=32,dre=128,hre=256;function mre(e){return ore(function(t){var n=t.length,r=n,i=$C.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if(typeof a!="function")throw new TypeError(ure);if(i&&!o&&op(a)=="wrapper")var o=new $C([],!0)}for(r=o?r:n;++r<n;){a=t[r];var l=op(a),s=l=="wrapper"?lre(a):void 0;s&&LC(s[0])&&s[1]==(dre|cre|fre|hre)&&!s[4].length&&s[9]==1?o=o[op(s[0])].apply(o,s[3]):o=a.length==1&&LC(a)?o[l]():o.thru(a)}return function(){var u=arguments,c=u[0];if(o&&u.length==1&&sre(c))return o.plant(c).value();for(var f=0,d=n?t[f].apply(this,u):c;++f<n;)d=t[f].call(this,d);return d}})}var gre=mre,pre=gre,vre=pre(),yre=vre;const bre=Ae(yre);var _re=Oi;function xre(e){return typeof e=="function"?e:_re}var Sre=xre,wre=Zu,Ore=Sre;function Cre(e,t){return e&&wre(e,Ore(t))}var Are=Cre;const Tre=Ae(Are);var kre=co;function Ere(e,t){return kre(t,function(n){return[n,e[n]]})}var Pre=Ere;function jre(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var Mre=jre,Dre=Pre,Ire=am,$re=W1,Lre=Mre,Fre="[object Map]",Nre="[object Set]";function Bre(e){return function(t){var n=Ire(t);return n==Fre?$re(t):n==Nre?Lre(t):Dre(t,e(t))}}var Rre=Bre,Wre=Rre,zre=Ci,Vre=Wre(zre),Ure=Vre;const Hre=Ae(Ure);function FC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FC(Object(n),!0).forEach(function(r){qre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gre=function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,i=e.width,a=e.height,o=e.center,l=r==="bottom"?1:-1,s=e.x+(e.dx||0),u=e.y+(e.dy||0),c=Qe(o)&&o.x,f=Qe(o)&&o.y,d=f+l*(a/2),h=f-l*(a/2),g=c+i/2,p=c-i/2,y=l*(u-d)<0?0:e.pointerLength,_=r==="bottom"?"0 0 0":"0 0 1",b="".concat(n," ").concat(n," ").concat(_);return"M ".concat(c-t/2,", ").concat(d,`
204
204
  L `).concat(y?s:c+t/2,", ").concat(y?u:d,`
205
205
  L `).concat(c+t/2,", ").concat(d,`
206
206
  L `).concat(g-n,", ").concat(d,`
@@ -223,7 +223,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
223
223
  L `).concat(d+l*n,", ").concat(p,`
224
224
  A `).concat(b," ").concat(d,", ").concat(p+n,`
225
225
  z`)},Kre=function(e){var t=e.orientation||"top";return t==="left"||t==="right"?Yre(e):Gre(e)},Zre=function(e){var t=fe(e.id,e),n=Ze(e.style,e);return R({},e,{id:t,style:n})},lp=function(e){e=Zre(e);var t=or(e);return x.cloneElement(e.pathComponent,vs(vs(vs({},e.events),t),{},{style:e.style,d:Kre(e),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath}))};lp.propTypes=vs(vs({},Ot.primitiveProps),{},{center:m.shape({x:m.number,y:m.number}),cornerRadius:m.number,datum:m.object,dx:m.number,dy:m.number,height:m.number,orientation:m.oneOf(["top","bottom","left","right"]),pathComponent:m.element,pointerLength:m.number,pointerWidth:m.number,width:m.number,x:m.number,y:m.number}),lp.defaultProps={pathComponent:x.createElement(Mi,null),role:"presentation",shapeRendering:"auto"};const Xre=lp;function Jre(e){return nie(e)||tie(e)||eie(e)||Qre()}function Qre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
226
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eie(e,t){if(e){if(typeof e=="string")return sp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sp(e,t)}}function tie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nie(e){if(Array.isArray(e))return sp(e)}function sp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iie(e,t,n){return t&&NC(e.prototype,t),n&&NC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&up(e,t)}function up(e,t){return up=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},up(e,t)}function oie(e){var t=uie();return function(){var r=Ff(e),i;if(t){var a=Ff(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return lie(this,i)}}function lie(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sie(e)}function sie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ff(e)}var cie={cornerRadius:5,pointerLength:10,pointerWidth:10},kr=function(e){aie(n,e);var t=oie(n);function n(r){var i;return rie(this,n),i=t.call(this,r),i.id=r.id===void 0?cc("tooltip-"):r.id,i}return iie(n,[{key:"getDefaultOrientation",value:function(i){var a=i.datum,o=i.horizontal,l=i.polar;if(!l){var s=o?"right":"top",u=o?"left":"bottom";return a&&a.y<0?u:s}return this.getPolarOrientation(i,a)}},{key:"getPolarOrientation",value:function(i,a){var o=os(i,a),l=i.labelPlacement||"vertical";return l===" vertical"?this.getVerticalOrientations(o):l==="parallel"?o<90||o>270?"right":"left":o>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(i){return i<45||i>315?"right":i>=45&&i<=135?"top":i>135&&i<225?"left":"bottom"}},{key:"getStyles",value:function(i){var a=i.theme||Cr.grayscale,o=a&&a.tooltip&&a.tooltip.style?a.tooltip.style:{},l=Array.isArray(i.style)?i.style.map(function(d){return ae({},d,o)}):ae({},i.style,o),s=a&&a.tooltip&&a.tooltip.flyoutStyle?a.tooltip.flyoutStyle:{},u=i.flyoutStyle?ae({},i.flyoutStyle,s):s,c=Array.isArray(l)?l.map(function(d){return Ze(d,i)}):Ze(l,i),f=Ze(u,R({},i,{style:c}));return{style:c,flyoutStyle:f}}},{key:"getEvaluatedProps",value:function(i){var a=i.cornerRadius,o=i.centerOffset,l=i.dx,s=i.dy,u=fe(i.active,i),c=fe(i.text,R({},i,{active:u})),f=this.getStyles(R({},i,{active:u,text:c})),d=f.style,h=f.flyoutStyle,g=fe(i.orientation,R({},i,{active:u,text:c,style:d,flyoutStyle:h}))||this.getDefaultOrientation(i),p=fe(i.flyoutPadding,R({},i,{active:u,text:c,style:d,flyoutStyle:h,orientation:g}))||this.getLabelPadding(d),y=lt({padding:p}),_=fe(i.pointerWidth,R({},i,{active:u,text:c,style:d,flyoutStyle:h,orientation:g})),b=fe(i.pointerLength,R({},i,{active:u,text:c,style:d,flyoutStyle:h,orientation:g})),S=ha(c,d),O=this.getDimensions(R({},i,{style:d,flyoutStyle:h,active:u,text:c,orientation:g,flyoutPadding:y,pointerWidth:_,pointerLength:b}),S),w=O.flyoutHeight,A=O.flyoutWidth,T=R({},i,{active:u,text:c,style:d,flyoutStyle:h,orientation:g,flyoutHeight:w,flyoutWidth:A,flyoutPadding:y,pointerWidth:_,pointerLength:b}),k=Qe(o)&&o.x!==void 0?fe(o.x,T):0,j=Qe(o)&&o.y!==void 0?fe(o.y,T):0;return R({},T,{centerOffset:{x:k,y:j},dx:l!==void 0?fe(l,T):0,dy:s!==void 0?fe(s,T):0,cornerRadius:fe(a,T)})}},{key:"getCalculatedValues",value:function(i){var a=i.style,o=i.text,l=i.flyoutStyle,s=i.flyoutHeight,u=i.flyoutWidth,c=ha(o,a),f={height:s,width:u},d=this.getFlyoutCenter(i,f),h=this.getTransform(i);return{style:a,flyoutStyle:l,labelSize:c,flyoutDimensions:f,flyoutCenter:d,transform:h}}},{key:"getTransform",value:function(i){var a=i.x,o=i.y,l=i.style,s=l||{},u=s.angle||i.angle||this.getDefaultAngle(i);return u?"rotate(".concat(u," ").concat(a," ").concat(o,")"):void 0}},{key:"getDefaultAngle",value:function(i){var a=i.polar,o=i.labelPlacement,l=i.orientation,s=i.datum;if(!a||!o||o==="vertical")return 0;var u=os(i,s),c=u>90&&u<180||u>270?1:-1,f=o==="perpendicular"?0:90,d;return u===0||u===180?d=l==="top"&&u===180?270:90:u>0&&u<180?d=90-u:u>180&&u<360&&(d=270-u),d+c*f}},{key:"constrainTooltip",value:function(i,a,o){var l=i.x,s=i.y,u=o.width,c=o.height,f={x:[0,a.width],y:[0,a.height]},d={x:[l-u/2,l+u/2],y:[s-c/2,s+c/2]},h={x:[d.x[0]<f.x[0]?f.x[0]-d.x[0]:0,d.x[1]>f.x[1]?d.x[1]-f.x[1]:0],y:[d.y[0]<f.y[0]?f.y[0]-d.y[0]:0,d.y[1]>f.y[1]?d.y[1]-f.y[1]:0]};return{x:Math.round(l+h.x[0]-h.x[1]),y:Math.round(s+h.y[0]-h.y[1])}}},{key:"getFlyoutCenter",value:function(i,a){var o=i.x,l=i.y,s=i.dx,u=i.dy,c=i.pointerLength,f=i.orientation,d=i.constrainToVisibleArea,h=i.centerOffset,g=a.height,p=a.width,y=f==="left"?-1:1,_=f==="bottom"?-1:1,b={x:f==="left"||f==="right"?o+y*(c+p/2+y*s):o+s,y:f==="top"||f==="bottom"?l-_*(c+g/2-_*u):l+u},S={x:Qe(i.center)&&i.center.x!==void 0?i.center.x:b.x,y:Qe(i.center)&&i.center.y!==void 0?i.center.y:b.y},O={x:S.x+h.x,y:S.y+h.y};return d?this.constrainTooltip(O,i,a):O}},{key:"getLabelPadding",value:function(i){if(!i)return 0;var a=Array.isArray(i)?i.map(function(o){return o.padding}):[i.padding];return Math.max.apply(Math,Jre(a).concat([0]))}},{key:"getDimensions",value:function(i,a){var o=i.orientation,l=i.pointerLength,s=i.pointerWidth,u=i.flyoutHeight,c=i.flyoutWidth,f=i.flyoutPadding,d=fe(i.cornerRadius,i),h=function(){var p=a.height+f.top+f.bottom,y=o==="top"||o==="bottom"?2*d:2*d+s;return Math.max(y,p)},g=function(){var p=a.width+f.left+f.right,y=o==="left"||o==="right"?2*d+l:2*d;return Math.max(y,p)};return{flyoutHeight:u?fe(u,i):h(),flyoutWidth:c?fe(c,i):g()}}},{key:"getLabelProps",value:function(i,a){var o=a.flyoutCenter,l=a.style,s=a.labelSize,u=a.dy,c=u===void 0?0:u,f=a.dx,d=f===void 0?0:f,h=i.text,g=i.datum,p=i.activePoints,y=i.labelComponent,_=i.index,b=i.flyoutPadding,S=(Array.isArray(l)&&l.length?l[0].textAnchor:l.textAnchor)||"middle",O=function(){if(!S||S==="middle")return o.x;var w=S==="end"?-1:1;return o.x-w*(s.width/2)};return ae({},y.props,{key:"".concat(this.id,"-label-").concat(_),text:h,datum:g,activePoints:p,textAnchor:S,dy:c,dx:d,style:l,x:O()+(b.left-b.right)/2,y:o.y+(b.top-b.bottom)/2,verticalAnchor:"middle",angle:l.angle})}},{key:"getPointerOrientation",value:function(i,a,o){var l={bottom:a.y+o.height/2,top:a.y-o.height/2,left:a.x-o.width/2,right:a.x+o.width/2},s=[{side:"top",val:l.top>i.y?l.top-i.y:-1},{side:"bottom",val:l.bottom<i.y?i.y-l.bottom:-1},{side:"right",val:l.right<i.x?i.x-l.right:-1},{side:"left",val:l.left>i.x?l.left-i.x:-1}];return po(s,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(i,a){var o=a.flyoutDimensions,l=a.flyoutStyle,s=a.flyoutCenter,u=i.x,c=i.y,f=i.dx,d=i.dy,h=i.datum,g=i.activePoints,p=i.index,y=i.pointerLength,_=i.pointerWidth,b=i.cornerRadius,S=i.events,O=i.flyoutComponent,w=fe(i.pointerOrientation,i);return ae({},O.props,{x:u,y:c,dx:f,dy:d,datum:h,activePoints:g,index:p,pointerLength:y,pointerWidth:_,cornerRadius:b,events:S,orientation:w||this.getPointerOrientation({x:u,y:c},s,o),key:"".concat(this.id,"-tooltip-").concat(p),width:o.width,height:o.height,style:l,center:s})}},{key:"renderTooltip",value:function(i){var a=fe(i.active,i),o=i.renderInPortal;if(!a)return o?x.createElement(ti,null,null):null;var l=this.getEvaluatedProps(i),s=l.flyoutComponent,u=l.labelComponent,c=l.groupComponent,f=this.getCalculatedValues(l),d=[x.cloneElement(s,this.getFlyoutProps(l,f)),x.cloneElement(u,this.getLabelProps(l,f))],h=x.cloneElement(c,{role:"presentation",transform:f.transform},d);return o?x.createElement(ti,null,h):h}},{key:"render",value:function(){var i=St(this.props,cie,"tooltip");return this.renderTooltip(i)}}]),n}(x.Component);kr.displayName="VictoryTooltip",kr.role="tooltip",kr.propTypes={activateData:m.bool,active:m.oneOfType([m.bool,m.func]),activePoints:m.array,angle:m.number,center:m.shape({x:_e,y:_e}),centerOffset:m.shape({x:m.oneOfType([m.number,m.func]),y:m.oneOfType([m.number,m.func])}),constrainToVisibleArea:m.bool,cornerRadius:m.oneOfType([_e,m.func]),data:m.array,datum:m.object,dx:m.oneOfType([m.number,m.func]),dy:m.oneOfType([m.number,m.func]),events:m.object,flyoutComponent:m.element,flyoutHeight:m.oneOfType([_e,m.func]),flyoutPadding:m.oneOfType([m.func,m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),flyoutStyle:m.object,flyoutWidth:m.oneOfType([_e,m.func]),groupComponent:m.element,height:m.number,horizontal:m.bool,id:m.oneOfType([m.number,m.string]),index:m.oneOfType([m.number,m.string]),labelComponent:m.element,orientation:m.oneOfType([m.oneOf(["top","bottom","left","right"]),m.func]),pointerLength:m.oneOfType([_e,m.func]),pointerOrientation:m.oneOfType([m.oneOf(["top","bottom","left","right"]),m.func]),pointerWidth:m.oneOfType([_e,m.func]),polar:m.bool,renderInPortal:m.bool,scale:m.shape({x:Or,y:Or}),style:m.oneOfType([m.object,m.array]),text:m.oneOfType([m.string,m.number,m.func,m.array]),theme:m.object,width:m.number,x:m.number,y:m.number},kr.defaultProps={active:!1,renderInPortal:!0,labelComponent:x.createElement(wt,null),flyoutComponent:x.createElement(Xre,null),groupComponent:x.createElement("g",null)},kr.defaultEvents=function(e){var t=e.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],n=e.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return t},onFocus:function(){return t},onTouchStart:function(){return t},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]};var fie=rr,die=function(){return fie.Date.now()},hie=die,mie=xn,cp=hie,BC=qm,gie="Expected a function",pie=Math.max,vie=Math.min;function yie(e,t,n){var r,i,a,o,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(gie);t=BC(t)||0,mie(n)&&(c=!!n.leading,f="maxWait"in n,a=f?pie(BC(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function h(A){var T=r,k=i;return r=i=void 0,u=A,o=e.apply(k,T),o}function g(A){return u=A,l=setTimeout(_,t),c?h(A):o}function p(A){var T=A-s,k=A-u,j=t-T;return f?vie(j,a-k):j}function y(A){var T=A-s,k=A-u;return s===void 0||T>=t||T<0||f&&k>=a}function _(){var A=cp();if(y(A))return b(A);l=setTimeout(_,p(A))}function b(A){return l=void 0,d&&r?h(A):(r=i=void 0,o)}function S(){l!==void 0&&clearTimeout(l),u=0,r=s=i=l=void 0}function O(){return l===void 0?o:b(cp())}function w(){var A=cp(),T=y(A);if(r=arguments,i=this,s=A,T){if(l===void 0)return g(s);if(f)return clearTimeout(l),l=setTimeout(_,t),h(s)}return l===void 0&&(l=setTimeout(_,t)),o}return w.cancel=S,w.flush=O,w}var bie=yie,_ie=bie,xie=xn,Sie="Expected a function";function wie(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Sie);return xie(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_ie(e,t,{leading:r,maxWait:t,trailing:i})}var Oie=wie;const $o=Ae(Oie);var RC={},WC={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(al,function(){var n=Math.pow(2,-52),r=new Uint32Array(512),i=function(_){var b=_.length>>1;if(b>0&&typeof _[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=_;var S=Math.max(2*b-5,0);this._triangles=new Uint32Array(S*3),this._halfedges=new Int32Array(S*3),this._hashSize=Math.ceil(Math.sqrt(b)),this._hullPrev=new Uint32Array(b),this._hullNext=new Uint32Array(b),this._hullTri=new Uint32Array(b),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(b),this._dists=new Float64Array(b),this.update()};i.from=function(_,b,S){b===void 0&&(b=g),S===void 0&&(S=p);for(var O=_.length,w=new Float64Array(O*2),A=0;A<O;A++){var T=_[A];w[2*A]=b(T),w[2*A+1]=S(T)}return new i(w)},i.prototype.update=function(){for(var _=this,b=_.coords,S=_._hullPrev,O=_._hullNext,w=_._hullTri,A=_._hullHash,T=b.length>>1,k=1/0,j=1/0,N=-1/0,M=-1/0,E=0;E<T;E++){var I=b[2*E],D=b[2*E+1];I<k&&(k=I),D<j&&(j=D),I>N&&(N=I),D>M&&(M=D),this._ids[E]=E}for(var W=(k+N)/2,X=(j+M)/2,re=1/0,ne,ee,z,Z=0;Z<T;Z++){var q=o(W,X,b[2*Z],b[2*Z+1]);q<re&&(ne=Z,re=q)}var Y=b[2*ne],G=b[2*ne+1];re=1/0;for(var ie=0;ie<T;ie++)if(ie!==ne){var B=o(Y,G,b[2*ie],b[2*ie+1]);B<re&&B>0&&(ee=ie,re=B)}for(var se=b[2*ee],K=b[2*ee+1],J=1/0,te=0;te<T;te++)if(!(te===ne||te===ee)){var ue=c(Y,G,se,K,b[2*te],b[2*te+1]);ue<J&&(z=te,J=ue)}var $=b[2*z],xe=b[2*z+1];if(J===1/0){for(var Se=0;Se<T;Se++)this._dists[Se]=b[2*Se]-b[0]||b[2*Se+1]-b[1];d(this._ids,this._dists,0,T-1);for(var be=new Uint32Array(T),ge=0,P=0,V=-1/0;P<T;P++){var Q=this._ids[P];this._dists[Q]>V&&(be[ge++]=Q,V=this._dists[Q])}this.hull=be.subarray(0,ge),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(s(Y,G,se,K,$,xe)){var he=ee,me=se,ce=K;ee=z,se=$,K=xe,z=he,$=me,xe=ce}var le=f(Y,G,se,K,$,xe);this._cx=le.x,this._cy=le.y;for(var U=0;U<T;U++)this._dists[U]=o(b[2*U],b[2*U+1],le.x,le.y);d(this._ids,this._dists,0,T-1),this._hullStart=ne;var oe=3;O[ne]=S[z]=ee,O[ee]=S[ne]=z,O[z]=S[ee]=ne,w[ne]=0,w[ee]=1,w[z]=2,A.fill(-1),A[this._hashKey(Y,G)]=ne,A[this._hashKey(se,K)]=ee,A[this._hashKey($,xe)]=z,this.trianglesLen=0,this._addTriangle(ne,ee,z,-1,-1,-1);for(var Ee=0,Ie=void 0,Me=void 0;Ee<this._ids.length;Ee++){var Ve=this._ids[Ee],dt=b[2*Ve],$t=b[2*Ve+1];if(!(Ee>0&&Math.abs(dt-Ie)<=n&&Math.abs($t-Me)<=n)&&(Ie=dt,Me=$t,!(Ve===ne||Ve===ee||Ve===z))){for(var Ht=0,Xn=0,qi=this._hashKey(dt,$t);Xn<this._hashSize&&(Ht=A[(qi+Xn)%this._hashSize],!(Ht!==-1&&Ht!==O[Ht]));Xn++);Ht=S[Ht];for(var Ue=Ht,mt=void 0;mt=O[Ue],!s(dt,$t,b[2*Ue],b[2*Ue+1],b[2*mt],b[2*mt+1]);)if(Ue=mt,Ue===Ht){Ue=-1;break}if(Ue!==-1){var En=this._addTriangle(Ue,Ve,O[Ue],-1,-1,w[Ue]);w[Ve]=this._legalize(En+2),w[Ue]=En,oe++;for(var Xt=O[Ue];mt=O[Xt],s(dt,$t,b[2*Xt],b[2*Xt+1],b[2*mt],b[2*mt+1]);)En=this._addTriangle(Xt,Ve,mt,w[Ve],-1,w[Xt]),w[Ve]=this._legalize(En+2),O[Xt]=Xt,oe--,Xt=mt;if(Ue===Ht)for(;mt=S[Ue],s(dt,$t,b[2*mt],b[2*mt+1],b[2*Ue],b[2*Ue+1]);)En=this._addTriangle(mt,Ve,Ue,-1,w[Ue],w[mt]),this._legalize(En+2),w[mt]=En,O[Ue]=Ue,oe--,Ue=mt;this._hullStart=S[Ve]=Ue,O[Ue]=S[Xt]=Ve,O[Ve]=Xt,A[this._hashKey(dt,$t)]=Ve,A[this._hashKey(b[2*Ue],b[2*Ue+1])]=Ue}}}this.hull=new Uint32Array(oe);for(var pi=0,nl=this._hullStart;pi<oe;pi++)this.hull[pi]=nl,nl=O[nl];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},i.prototype._hashKey=function(_,b){return Math.floor(a(_-this._cx,b-this._cy)*this._hashSize)%this._hashSize},i.prototype._legalize=function(_){for(var b=this,S=b._triangles,O=b._halfedges,w=b.coords,A=0,T=0;;){var k=O[_],j=_-_%3;if(T=j+(_+2)%3,k===-1){if(A===0)break;_=r[--A];continue}var N=k-k%3,M=j+(_+1)%3,E=N+(k+2)%3,I=S[T],D=S[_],W=S[M],X=S[E],re=u(w[2*I],w[2*I+1],w[2*D],w[2*D+1],w[2*W],w[2*W+1],w[2*X],w[2*X+1]);if(re){S[_]=X,S[k]=I;var ne=O[E];if(ne===-1){var ee=this._hullStart;do{if(this._hullTri[ee]===E){this._hullTri[ee]=_;break}ee=this._hullPrev[ee]}while(ee!==this._hullStart)}this._link(_,ne),this._link(k,O[T]),this._link(T,E);var z=N+(k+1)%3;A<r.length&&(r[A++]=z)}else{if(A===0)break;_=r[--A]}}return T},i.prototype._link=function(_,b){this._halfedges[_]=b,b!==-1&&(this._halfedges[b]=_)},i.prototype._addTriangle=function(_,b,S,O,w,A){var T=this.trianglesLen;return this._triangles[T]=_,this._triangles[T+1]=b,this._triangles[T+2]=S,this._link(T,O),this._link(T+1,w),this._link(T+2,A),this.trianglesLen+=3,T};function a(y,_){var b=y/(Math.abs(y)+Math.abs(_));return(_>0?3-b:1+b)/4}function o(y,_,b,S){var O=y-b,w=_-S;return O*O+w*w}function l(y,_,b,S,O,w){var A=(S-_)*(O-y),T=(b-y)*(w-_);return Math.abs(A-T)>=33306690738754716e-32*Math.abs(A+T)?A-T:0}function s(y,_,b,S,O,w){var A=l(O,w,y,_,b,S)||l(y,_,b,S,O,w)||l(b,S,O,w,y,_);return A<0}function u(y,_,b,S,O,w,A,T){var k=y-A,j=_-T,N=b-A,M=S-T,E=O-A,I=w-T,D=k*k+j*j,W=N*N+M*M,X=E*E+I*I;return k*(M*X-W*I)-j*(N*X-W*E)+D*(N*I-M*E)<0}function c(y,_,b,S,O,w){var A=b-y,T=S-_,k=O-y,j=w-_,N=A*A+T*T,M=k*k+j*j,E=.5/(A*j-T*k),I=(j*N-T*M)*E,D=(A*M-k*N)*E;return I*I+D*D}function f(y,_,b,S,O,w){var A=b-y,T=S-_,k=O-y,j=w-_,N=A*A+T*T,M=k*k+j*j,E=.5/(A*j-T*k),I=y+(j*N-T*M)*E,D=_+(A*M-k*N)*E;return{x:I,y:D}}function d(y,_,b,S){if(S-b<=20)for(var O=b+1;O<=S;O++){for(var w=y[O],A=_[w],T=O-1;T>=b&&_[y[T]]>A;)y[T+1]=y[T--];y[T+1]=w}else{var k=b+S>>1,j=b+1,N=S;h(y,k,j),_[y[b]]>_[y[S]]&&h(y,b,S),_[y[j]]>_[y[S]]&&h(y,j,S),_[y[b]]>_[y[j]]&&h(y,b,j);for(var M=y[j],E=_[M];;){do j++;while(_[y[j]]<E);do N--;while(_[y[N]]>E);if(N<j)break;h(y,j,N)}y[b+1]=y[N],y[N]=M,S-j+1>=N-b?(d(y,_,j,S),d(y,_,b,N-1)):(d(y,_,b,N-1),d(y,_,j,S))}}function h(y,_,b){var S=y[_];y[_]=y[b],y[b]=S}function g(y){return y[0]}function p(y){return y[1]}return i})})(WC);var Cie=WC.exports;(function(e){e.__esModule=!0,e.default=void 0;var t=n(Cie);function n(u){return u&&u.__esModule?u:{default:u}}function r(u){return u[0]}function i(u){return u[1]}function a(u){for(var c=u.triangles,f=u.coords,d=0;d<c.length;d+=3){var h=2*c[d],g=2*c[d+1],p=2*c[d+2],y=(f[p]-f[h])*(f[g+1]-f[h+1])-(f[g]-f[h])*(f[p+1]-f[h+1]);if(y>1e-10)return!1}return!0}function o(u,c,f){return[u+Math.sin(u+c)*f,c+Math.cos(u-c)*f]}function l(u,c,f,d){for(var h=u.length,g=new Float64Array(h*2),p=0;p<h;++p){var y=u[p];g[p*2]=c.call(d,y,p,u),g[p*2+1]=f.call(d,y,p,u)}return g}var s=function(){function u(f){var d=new t.default(f);this.inedges=new Int32Array(f.length/2),this._hullIndex=new Int32Array(f.length/2),this.points=d.coords,this._init(d)}var c=u.prototype;return c._init=function(d){var h=d,g=this.points;if(h.hull&&h.hull.length>2&&a(h)){this.collinear=Int32Array.from({length:g.length/2},function(X,re){return re}).sort(function(X,re){return g[2*X]-g[2*re]||g[2*X+1]-g[2*re+1]});for(var p=this.collinear[0],y=this.collinear[this.collinear.length-1],_=[g[2*p],g[2*p+1],g[2*y],g[2*y+1]],b=1e-8*Math.sqrt(Math.pow(_[3]-_[1],2)+Math.pow(_[2]-_[0],2)),S=0,O=g.length/2;S<O;++S){var w=o(g[2*S],g[2*S+1],b);g[2*S]=w[0],g[2*S+1]=w[1]}d=new t.default(g)}for(var A=this.halfedges=d.halfedges,T=this.hull=d.hull,k=this.triangles=d.triangles,j=this.inedges.fill(-1),N=this._hullIndex.fill(-1),M=0,E=A.length;M<E;++M){var I=k[M%3===2?M-2:M+1];(A[M]===-1||j[I]===-1)&&(j[I]=M)}for(var D=0,W=T.length;D<W;++D)N[T[D]]=D;T.length<=2&&T.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=T[0],this.triangles[1]=T[1],this.triangles[2]=T[1],j[T[0]]=1,T.length===2&&(j[T[1]]=0))},c.neighbors=function(d){var h=[],g=this.inedges,p=this.hull,y=this._hullIndex,_=this.halfedges,b=this.triangles,S=g[d];if(S===-1)return h;var O=S,w=-1;do{if(w=b[O],h.push(w),O=O%3===2?O-2:O+1,b[O]!==d)break;if(O=_[O],O===-1){var A=p[(y[d]+1)%p.length];A!==w&&h.push(A);break}}while(O!==S);return h},c.find=function(d,h,g){if(g===void 0&&(g=0),d=+d,d!==d||(h=+h,h!==h))return-1;for(var p=g,y;(y=this._step(g,d,h))>=0&&y!==g&&y!==p;)g=y;return y},c._step=function(d,h,g){var p=this.inedges,y=this.points;if(p[d]===-1||!y.length)return(d+1)%(y.length>>1);for(var _=d,b=Math.pow(h-y[d*2],2)+Math.pow(g-y[d*2+1],2),w=this.neighbors(d),S=Array.isArray(w),O=0,w=S?w:w[Symbol.iterator]();;){var A;if(S){if(O>=w.length)break;A=w[O++]}else{if(O=w.next(),O.done)break;A=O.value}var T=A,k=Math.pow(h-y[T*2],2)+Math.pow(g-y[T*2+1],2);k<b&&(b=k,_=T)}return _},u}();e.default=s,s.from=function(u,c,f,d){return c===void 0&&(c=r),f===void 0&&(f=i),new s(l(u,c,f,d))}})(RC);const Aie=Ae(RC);function ys(e){return Pie(e)||Eie(e)||kie(e)||Tie()}function Tie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
226
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eie(e,t){if(e){if(typeof e=="string")return sp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sp(e,t)}}function tie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nie(e){if(Array.isArray(e))return sp(e)}function sp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iie(e,t,n){return t&&NC(e.prototype,t),n&&NC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&up(e,t)}function up(e,t){return up=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},up(e,t)}function oie(e){var t=uie();return function(){var r=Ff(e),i;if(t){var a=Ff(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return lie(this,i)}}function lie(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sie(e)}function sie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ff(e)}var cie={cornerRadius:5,pointerLength:10,pointerWidth:10},kr=function(e){aie(n,e);var t=oie(n);function n(r){var i;return rie(this,n),i=t.call(this,r),i.id=r.id===void 0?cc("tooltip-"):r.id,i}return iie(n,[{key:"getDefaultOrientation",value:function(i){var a=i.datum,o=i.horizontal,l=i.polar;if(!l){var s=o?"right":"top",u=o?"left":"bottom";return a&&a.y<0?u:s}return this.getPolarOrientation(i,a)}},{key:"getPolarOrientation",value:function(i,a){var o=os(i,a),l=i.labelPlacement||"vertical";return l===" vertical"?this.getVerticalOrientations(o):l==="parallel"?o<90||o>270?"right":"left":o>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(i){return i<45||i>315?"right":i>=45&&i<=135?"top":i>135&&i<225?"left":"bottom"}},{key:"getStyles",value:function(i){var a=i.theme||Cr.grayscale,o=a&&a.tooltip&&a.tooltip.style?a.tooltip.style:{},l=Array.isArray(i.style)?i.style.map(function(d){return ae({},d,o)}):ae({},i.style,o),s=a&&a.tooltip&&a.tooltip.flyoutStyle?a.tooltip.flyoutStyle:{},u=i.flyoutStyle?ae({},i.flyoutStyle,s):s,c=Array.isArray(l)?l.map(function(d){return Ze(d,i)}):Ze(l,i),f=Ze(u,R({},i,{style:c}));return{style:c,flyoutStyle:f}}},{key:"getEvaluatedProps",value:function(i){var a=i.cornerRadius,o=i.centerOffset,l=i.dx,s=i.dy,u=fe(i.active,i),c=fe(i.text,R({},i,{active:u})),f=this.getStyles(R({},i,{active:u,text:c})),d=f.style,h=f.flyoutStyle,g=fe(i.orientation,R({},i,{active:u,text:c,style:d,flyoutStyle:h}))||this.getDefaultOrientation(i),p=fe(i.flyoutPadding,R({},i,{active:u,text:c,style:d,flyoutStyle:h,orientation:g}))||this.getLabelPadding(d),y=lt({padding:p}),_=fe(i.pointerWidth,R({},i,{active:u,text:c,style:d,flyoutStyle:h,orientation:g})),b=fe(i.pointerLength,R({},i,{active:u,text:c,style:d,flyoutStyle:h,orientation:g})),S=ha(c,d),O=this.getDimensions(R({},i,{style:d,flyoutStyle:h,active:u,text:c,orientation:g,flyoutPadding:y,pointerWidth:_,pointerLength:b}),S),w=O.flyoutHeight,A=O.flyoutWidth,T=R({},i,{active:u,text:c,style:d,flyoutStyle:h,orientation:g,flyoutHeight:w,flyoutWidth:A,flyoutPadding:y,pointerWidth:_,pointerLength:b}),k=Qe(o)&&o.x!==void 0?fe(o.x,T):0,j=Qe(o)&&o.y!==void 0?fe(o.y,T):0;return R({},T,{centerOffset:{x:k,y:j},dx:l!==void 0?fe(l,T):0,dy:s!==void 0?fe(s,T):0,cornerRadius:fe(a,T)})}},{key:"getCalculatedValues",value:function(i){var a=i.style,o=i.text,l=i.flyoutStyle,s=i.flyoutHeight,u=i.flyoutWidth,c=ha(o,a),f={height:s,width:u},d=this.getFlyoutCenter(i,f),h=this.getTransform(i);return{style:a,flyoutStyle:l,labelSize:c,flyoutDimensions:f,flyoutCenter:d,transform:h}}},{key:"getTransform",value:function(i){var a=i.x,o=i.y,l=i.style,s=l||{},u=s.angle||i.angle||this.getDefaultAngle(i);return u?"rotate(".concat(u," ").concat(a," ").concat(o,")"):void 0}},{key:"getDefaultAngle",value:function(i){var a=i.polar,o=i.labelPlacement,l=i.orientation,s=i.datum;if(!a||!o||o==="vertical")return 0;var u=os(i,s),c=u>90&&u<180||u>270?1:-1,f=o==="perpendicular"?0:90,d;return u===0||u===180?d=l==="top"&&u===180?270:90:u>0&&u<180?d=90-u:u>180&&u<360&&(d=270-u),d+c*f}},{key:"constrainTooltip",value:function(i,a,o){var l=i.x,s=i.y,u=o.width,c=o.height,f={x:[0,a.width],y:[0,a.height]},d={x:[l-u/2,l+u/2],y:[s-c/2,s+c/2]},h={x:[d.x[0]<f.x[0]?f.x[0]-d.x[0]:0,d.x[1]>f.x[1]?d.x[1]-f.x[1]:0],y:[d.y[0]<f.y[0]?f.y[0]-d.y[0]:0,d.y[1]>f.y[1]?d.y[1]-f.y[1]:0]};return{x:Math.round(l+h.x[0]-h.x[1]),y:Math.round(s+h.y[0]-h.y[1])}}},{key:"getFlyoutCenter",value:function(i,a){var o=i.x,l=i.y,s=i.dx,u=i.dy,c=i.pointerLength,f=i.orientation,d=i.constrainToVisibleArea,h=i.centerOffset,g=a.height,p=a.width,y=f==="left"?-1:1,_=f==="bottom"?-1:1,b={x:f==="left"||f==="right"?o+y*(c+p/2+y*s):o+s,y:f==="top"||f==="bottom"?l-_*(c+g/2-_*u):l+u},S={x:Qe(i.center)&&i.center.x!==void 0?i.center.x:b.x,y:Qe(i.center)&&i.center.y!==void 0?i.center.y:b.y},O={x:S.x+h.x,y:S.y+h.y};return d?this.constrainTooltip(O,i,a):O}},{key:"getLabelPadding",value:function(i){if(!i)return 0;var a=Array.isArray(i)?i.map(function(o){return o.padding}):[i.padding];return Math.max.apply(Math,Jre(a).concat([0]))}},{key:"getDimensions",value:function(i,a){var o=i.orientation,l=i.pointerLength,s=i.pointerWidth,u=i.flyoutHeight,c=i.flyoutWidth,f=i.flyoutPadding,d=fe(i.cornerRadius,i),h=function(){var p=a.height+f.top+f.bottom,y=o==="top"||o==="bottom"?2*d:2*d+s;return Math.max(y,p)},g=function(){var p=a.width+f.left+f.right,y=o==="left"||o==="right"?2*d+l:2*d;return Math.max(y,p)};return{flyoutHeight:u?fe(u,i):h(),flyoutWidth:c?fe(c,i):g()}}},{key:"getLabelProps",value:function(i,a){var o=a.flyoutCenter,l=a.style,s=a.labelSize,u=a.dy,c=u===void 0?0:u,f=a.dx,d=f===void 0?0:f,h=i.text,g=i.datum,p=i.activePoints,y=i.labelComponent,_=i.index,b=i.flyoutPadding,S=(Array.isArray(l)&&l.length?l[0].textAnchor:l.textAnchor)||"middle",O=function(){if(!S||S==="middle")return o.x;var w=S==="end"?-1:1;return o.x-w*(s.width/2)};return ae({},y.props,{key:"".concat(this.id,"-label-").concat(_),text:h,datum:g,activePoints:p,textAnchor:S,dy:c,dx:d,style:l,x:O()+(b.left-b.right)/2,y:o.y+(b.top-b.bottom)/2,verticalAnchor:"middle",angle:l.angle})}},{key:"getPointerOrientation",value:function(i,a,o){var l={bottom:a.y+o.height/2,top:a.y-o.height/2,left:a.x-o.width/2,right:a.x+o.width/2},s=[{side:"top",val:l.top>i.y?l.top-i.y:-1},{side:"bottom",val:l.bottom<i.y?i.y-l.bottom:-1},{side:"right",val:l.right<i.x?i.x-l.right:-1},{side:"left",val:l.left>i.x?l.left-i.x:-1}];return po(s,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(i,a){var o=a.flyoutDimensions,l=a.flyoutStyle,s=a.flyoutCenter,u=i.x,c=i.y,f=i.dx,d=i.dy,h=i.datum,g=i.activePoints,p=i.index,y=i.pointerLength,_=i.pointerWidth,b=i.cornerRadius,S=i.events,O=i.flyoutComponent,w=fe(i.pointerOrientation,i);return ae({},O.props,{x:u,y:c,dx:f,dy:d,datum:h,activePoints:g,index:p,pointerLength:y,pointerWidth:_,cornerRadius:b,events:S,orientation:w||this.getPointerOrientation({x:u,y:c},s,o),key:"".concat(this.id,"-tooltip-").concat(p),width:o.width,height:o.height,style:l,center:s})}},{key:"renderTooltip",value:function(i){var a=fe(i.active,i),o=i.renderInPortal;if(!a)return o?x.createElement(ti,null,null):null;var l=this.getEvaluatedProps(i),s=l.flyoutComponent,u=l.labelComponent,c=l.groupComponent,f=this.getCalculatedValues(l),d=[x.cloneElement(s,this.getFlyoutProps(l,f)),x.cloneElement(u,this.getLabelProps(l,f))],h=x.cloneElement(c,{role:"presentation",transform:f.transform},d);return o?x.createElement(ti,null,h):h}},{key:"render",value:function(){var i=St(this.props,cie,"tooltip");return this.renderTooltip(i)}}]),n}(x.Component);kr.displayName="VictoryTooltip",kr.role="tooltip",kr.propTypes={activateData:m.bool,active:m.oneOfType([m.bool,m.func]),activePoints:m.array,angle:m.number,center:m.shape({x:_e,y:_e}),centerOffset:m.shape({x:m.oneOfType([m.number,m.func]),y:m.oneOfType([m.number,m.func])}),constrainToVisibleArea:m.bool,cornerRadius:m.oneOfType([_e,m.func]),data:m.array,datum:m.object,dx:m.oneOfType([m.number,m.func]),dy:m.oneOfType([m.number,m.func]),events:m.object,flyoutComponent:m.element,flyoutHeight:m.oneOfType([_e,m.func]),flyoutPadding:m.oneOfType([m.func,m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),flyoutStyle:m.object,flyoutWidth:m.oneOfType([_e,m.func]),groupComponent:m.element,height:m.number,horizontal:m.bool,id:m.oneOfType([m.number,m.string]),index:m.oneOfType([m.number,m.string]),labelComponent:m.element,orientation:m.oneOfType([m.oneOf(["top","bottom","left","right"]),m.func]),pointerLength:m.oneOfType([_e,m.func]),pointerOrientation:m.oneOfType([m.oneOf(["top","bottom","left","right"]),m.func]),pointerWidth:m.oneOfType([_e,m.func]),polar:m.bool,renderInPortal:m.bool,scale:m.shape({x:Or,y:Or}),style:m.oneOfType([m.object,m.array]),text:m.oneOfType([m.string,m.number,m.func,m.array]),theme:m.object,width:m.number,x:m.number,y:m.number},kr.defaultProps={active:!1,renderInPortal:!0,labelComponent:x.createElement(wt,null),flyoutComponent:x.createElement(Xre,null),groupComponent:x.createElement("g",null)},kr.defaultEvents=function(e){var t=e.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],n=e.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return t},onFocus:function(){return t},onTouchStart:function(){return t},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]};var fie=rr,die=function(){return fie.Date.now()},hie=die,mie=xn,cp=hie,BC=qm,gie="Expected a function",pie=Math.max,vie=Math.min;function yie(e,t,n){var r,i,a,o,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(gie);t=BC(t)||0,mie(n)&&(c=!!n.leading,f="maxWait"in n,a=f?pie(BC(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function h(A){var T=r,k=i;return r=i=void 0,u=A,o=e.apply(k,T),o}function g(A){return u=A,l=setTimeout(_,t),c?h(A):o}function p(A){var T=A-s,k=A-u,j=t-T;return f?vie(j,a-k):j}function y(A){var T=A-s,k=A-u;return s===void 0||T>=t||T<0||f&&k>=a}function _(){var A=cp();if(y(A))return b(A);l=setTimeout(_,p(A))}function b(A){return l=void 0,d&&r?h(A):(r=i=void 0,o)}function S(){l!==void 0&&clearTimeout(l),u=0,r=s=i=l=void 0}function O(){return l===void 0?o:b(cp())}function w(){var A=cp(),T=y(A);if(r=arguments,i=this,s=A,T){if(l===void 0)return g(s);if(f)return clearTimeout(l),l=setTimeout(_,t),h(s)}return l===void 0&&(l=setTimeout(_,t)),o}return w.cancel=S,w.flush=O,w}var bie=yie,_ie=bie,xie=xn,Sie="Expected a function";function wie(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Sie);return xie(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_ie(e,t,{leading:r,maxWait:t,trailing:i})}var Oie=wie;const $o=Ae(Oie);var RC={},WC={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(al,function(){var n=Math.pow(2,-52),r=new Uint32Array(512),i=function(_){var b=_.length>>1;if(b>0&&typeof _[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=_;var S=Math.max(2*b-5,0);this._triangles=new Uint32Array(S*3),this._halfedges=new Int32Array(S*3),this._hashSize=Math.ceil(Math.sqrt(b)),this._hullPrev=new Uint32Array(b),this._hullNext=new Uint32Array(b),this._hullTri=new Uint32Array(b),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(b),this._dists=new Float64Array(b),this.update()};i.from=function(_,b,S){b===void 0&&(b=g),S===void 0&&(S=p);for(var O=_.length,w=new Float64Array(O*2),A=0;A<O;A++){var T=_[A];w[2*A]=b(T),w[2*A+1]=S(T)}return new i(w)},i.prototype.update=function(){for(var _=this,b=_.coords,S=_._hullPrev,O=_._hullNext,w=_._hullTri,A=_._hullHash,T=b.length>>1,k=1/0,j=1/0,N=-1/0,M=-1/0,E=0;E<T;E++){var D=b[2*E],I=b[2*E+1];D<k&&(k=D),I<j&&(j=I),D>N&&(N=D),I>M&&(M=I),this._ids[E]=E}for(var W=(k+N)/2,Z=(j+M)/2,ne=1/0,re,J,z,X=0;X<T;X++){var H=o(W,Z,b[2*X],b[2*X+1]);H<ne&&(re=X,ne=H)}var Y=b[2*re],G=b[2*re+1];ne=1/0;for(var ie=0;ie<T;ie++)if(ie!==re){var B=o(Y,G,b[2*ie],b[2*ie+1]);B<ne&&B>0&&(J=ie,ne=B)}for(var se=b[2*J],K=b[2*J+1],Q=1/0,te=0;te<T;te++)if(!(te===re||te===J)){var ue=c(Y,G,se,K,b[2*te],b[2*te+1]);ue<Q&&(z=te,Q=ue)}var $=b[2*z],xe=b[2*z+1];if(Q===1/0){for(var Se=0;Se<T;Se++)this._dists[Se]=b[2*Se]-b[0]||b[2*Se+1]-b[1];d(this._ids,this._dists,0,T-1);for(var be=new Uint32Array(T),ge=0,P=0,V=-1/0;P<T;P++){var ee=this._ids[P];this._dists[ee]>V&&(be[ge++]=ee,V=this._dists[ee])}this.hull=be.subarray(0,ge),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(s(Y,G,se,K,$,xe)){var he=J,me=se,ce=K;J=z,se=$,K=xe,z=he,$=me,xe=ce}var le=f(Y,G,se,K,$,xe);this._cx=le.x,this._cy=le.y;for(var U=0;U<T;U++)this._dists[U]=o(b[2*U],b[2*U+1],le.x,le.y);d(this._ids,this._dists,0,T-1),this._hullStart=re;var oe=3;O[re]=S[z]=J,O[J]=S[re]=z,O[z]=S[J]=re,w[re]=0,w[J]=1,w[z]=2,A.fill(-1),A[this._hashKey(Y,G)]=re,A[this._hashKey(se,K)]=J,A[this._hashKey($,xe)]=z,this.trianglesLen=0,this._addTriangle(re,J,z,-1,-1,-1);for(var Ee=0,Ie=void 0,Me=void 0;Ee<this._ids.length;Ee++){var Ve=this._ids[Ee],dt=b[2*Ve],$t=b[2*Ve+1];if(!(Ee>0&&Math.abs(dt-Ie)<=n&&Math.abs($t-Me)<=n)&&(Ie=dt,Me=$t,!(Ve===re||Ve===J||Ve===z))){for(var Ht=0,Xn=0,qi=this._hashKey(dt,$t);Xn<this._hashSize&&(Ht=A[(qi+Xn)%this._hashSize],!(Ht!==-1&&Ht!==O[Ht]));Xn++);Ht=S[Ht];for(var Ue=Ht,mt=void 0;mt=O[Ue],!s(dt,$t,b[2*Ue],b[2*Ue+1],b[2*mt],b[2*mt+1]);)if(Ue=mt,Ue===Ht){Ue=-1;break}if(Ue!==-1){var En=this._addTriangle(Ue,Ve,O[Ue],-1,-1,w[Ue]);w[Ve]=this._legalize(En+2),w[Ue]=En,oe++;for(var Xt=O[Ue];mt=O[Xt],s(dt,$t,b[2*Xt],b[2*Xt+1],b[2*mt],b[2*mt+1]);)En=this._addTriangle(Xt,Ve,mt,w[Ve],-1,w[Xt]),w[Ve]=this._legalize(En+2),O[Xt]=Xt,oe--,Xt=mt;if(Ue===Ht)for(;mt=S[Ue],s(dt,$t,b[2*mt],b[2*mt+1],b[2*Ue],b[2*Ue+1]);)En=this._addTriangle(mt,Ve,Ue,-1,w[Ue],w[mt]),this._legalize(En+2),w[mt]=En,O[Ue]=Ue,oe--,Ue=mt;this._hullStart=S[Ve]=Ue,O[Ue]=S[Xt]=Ve,O[Ve]=Xt,A[this._hashKey(dt,$t)]=Ve,A[this._hashKey(b[2*Ue],b[2*Ue+1])]=Ue}}}this.hull=new Uint32Array(oe);for(var pi=0,nl=this._hullStart;pi<oe;pi++)this.hull[pi]=nl,nl=O[nl];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},i.prototype._hashKey=function(_,b){return Math.floor(a(_-this._cx,b-this._cy)*this._hashSize)%this._hashSize},i.prototype._legalize=function(_){for(var b=this,S=b._triangles,O=b._halfedges,w=b.coords,A=0,T=0;;){var k=O[_],j=_-_%3;if(T=j+(_+2)%3,k===-1){if(A===0)break;_=r[--A];continue}var N=k-k%3,M=j+(_+1)%3,E=N+(k+2)%3,D=S[T],I=S[_],W=S[M],Z=S[E],ne=u(w[2*D],w[2*D+1],w[2*I],w[2*I+1],w[2*W],w[2*W+1],w[2*Z],w[2*Z+1]);if(ne){S[_]=Z,S[k]=D;var re=O[E];if(re===-1){var J=this._hullStart;do{if(this._hullTri[J]===E){this._hullTri[J]=_;break}J=this._hullPrev[J]}while(J!==this._hullStart)}this._link(_,re),this._link(k,O[T]),this._link(T,E);var z=N+(k+1)%3;A<r.length&&(r[A++]=z)}else{if(A===0)break;_=r[--A]}}return T},i.prototype._link=function(_,b){this._halfedges[_]=b,b!==-1&&(this._halfedges[b]=_)},i.prototype._addTriangle=function(_,b,S,O,w,A){var T=this.trianglesLen;return this._triangles[T]=_,this._triangles[T+1]=b,this._triangles[T+2]=S,this._link(T,O),this._link(T+1,w),this._link(T+2,A),this.trianglesLen+=3,T};function a(y,_){var b=y/(Math.abs(y)+Math.abs(_));return(_>0?3-b:1+b)/4}function o(y,_,b,S){var O=y-b,w=_-S;return O*O+w*w}function l(y,_,b,S,O,w){var A=(S-_)*(O-y),T=(b-y)*(w-_);return Math.abs(A-T)>=33306690738754716e-32*Math.abs(A+T)?A-T:0}function s(y,_,b,S,O,w){var A=l(O,w,y,_,b,S)||l(y,_,b,S,O,w)||l(b,S,O,w,y,_);return A<0}function u(y,_,b,S,O,w,A,T){var k=y-A,j=_-T,N=b-A,M=S-T,E=O-A,D=w-T,I=k*k+j*j,W=N*N+M*M,Z=E*E+D*D;return k*(M*Z-W*D)-j*(N*Z-W*E)+I*(N*D-M*E)<0}function c(y,_,b,S,O,w){var A=b-y,T=S-_,k=O-y,j=w-_,N=A*A+T*T,M=k*k+j*j,E=.5/(A*j-T*k),D=(j*N-T*M)*E,I=(A*M-k*N)*E;return D*D+I*I}function f(y,_,b,S,O,w){var A=b-y,T=S-_,k=O-y,j=w-_,N=A*A+T*T,M=k*k+j*j,E=.5/(A*j-T*k),D=y+(j*N-T*M)*E,I=_+(A*M-k*N)*E;return{x:D,y:I}}function d(y,_,b,S){if(S-b<=20)for(var O=b+1;O<=S;O++){for(var w=y[O],A=_[w],T=O-1;T>=b&&_[y[T]]>A;)y[T+1]=y[T--];y[T+1]=w}else{var k=b+S>>1,j=b+1,N=S;h(y,k,j),_[y[b]]>_[y[S]]&&h(y,b,S),_[y[j]]>_[y[S]]&&h(y,j,S),_[y[b]]>_[y[j]]&&h(y,b,j);for(var M=y[j],E=_[M];;){do j++;while(_[y[j]]<E);do N--;while(_[y[N]]>E);if(N<j)break;h(y,j,N)}y[b+1]=y[N],y[N]=M,S-j+1>=N-b?(d(y,_,j,S),d(y,_,b,N-1)):(d(y,_,b,N-1),d(y,_,j,S))}}function h(y,_,b){var S=y[_];y[_]=y[b],y[b]=S}function g(y){return y[0]}function p(y){return y[1]}return i})})(WC);var Cie=WC.exports;(function(e){e.__esModule=!0,e.default=void 0;var t=n(Cie);function n(u){return u&&u.__esModule?u:{default:u}}function r(u){return u[0]}function i(u){return u[1]}function a(u){for(var c=u.triangles,f=u.coords,d=0;d<c.length;d+=3){var h=2*c[d],g=2*c[d+1],p=2*c[d+2],y=(f[p]-f[h])*(f[g+1]-f[h+1])-(f[g]-f[h])*(f[p+1]-f[h+1]);if(y>1e-10)return!1}return!0}function o(u,c,f){return[u+Math.sin(u+c)*f,c+Math.cos(u-c)*f]}function l(u,c,f,d){for(var h=u.length,g=new Float64Array(h*2),p=0;p<h;++p){var y=u[p];g[p*2]=c.call(d,y,p,u),g[p*2+1]=f.call(d,y,p,u)}return g}var s=function(){function u(f){var d=new t.default(f);this.inedges=new Int32Array(f.length/2),this._hullIndex=new Int32Array(f.length/2),this.points=d.coords,this._init(d)}var c=u.prototype;return c._init=function(d){var h=d,g=this.points;if(h.hull&&h.hull.length>2&&a(h)){this.collinear=Int32Array.from({length:g.length/2},function(Z,ne){return ne}).sort(function(Z,ne){return g[2*Z]-g[2*ne]||g[2*Z+1]-g[2*ne+1]});for(var p=this.collinear[0],y=this.collinear[this.collinear.length-1],_=[g[2*p],g[2*p+1],g[2*y],g[2*y+1]],b=1e-8*Math.sqrt(Math.pow(_[3]-_[1],2)+Math.pow(_[2]-_[0],2)),S=0,O=g.length/2;S<O;++S){var w=o(g[2*S],g[2*S+1],b);g[2*S]=w[0],g[2*S+1]=w[1]}d=new t.default(g)}for(var A=this.halfedges=d.halfedges,T=this.hull=d.hull,k=this.triangles=d.triangles,j=this.inedges.fill(-1),N=this._hullIndex.fill(-1),M=0,E=A.length;M<E;++M){var D=k[M%3===2?M-2:M+1];(A[M]===-1||j[D]===-1)&&(j[D]=M)}for(var I=0,W=T.length;I<W;++I)N[T[I]]=I;T.length<=2&&T.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=T[0],this.triangles[1]=T[1],this.triangles[2]=T[1],j[T[0]]=1,T.length===2&&(j[T[1]]=0))},c.neighbors=function(d){var h=[],g=this.inedges,p=this.hull,y=this._hullIndex,_=this.halfedges,b=this.triangles,S=g[d];if(S===-1)return h;var O=S,w=-1;do{if(w=b[O],h.push(w),O=O%3===2?O-2:O+1,b[O]!==d)break;if(O=_[O],O===-1){var A=p[(y[d]+1)%p.length];A!==w&&h.push(A);break}}while(O!==S);return h},c.find=function(d,h,g){if(g===void 0&&(g=0),d=+d,d!==d||(h=+h,h!==h))return-1;for(var p=g,y;(y=this._step(g,d,h))>=0&&y!==g&&y!==p;)g=y;return y},c._step=function(d,h,g){var p=this.inedges,y=this.points;if(p[d]===-1||!y.length)return(d+1)%(y.length>>1);for(var _=d,b=Math.pow(h-y[d*2],2)+Math.pow(g-y[d*2+1],2),w=this.neighbors(d),S=Array.isArray(w),O=0,w=S?w:w[Symbol.iterator]();;){var A;if(S){if(O>=w.length)break;A=w[O++]}else{if(O=w.next(),O.done)break;A=O.value}var T=A,k=Math.pow(h-y[T*2],2)+Math.pow(g-y[T*2+1],2);k<b&&(b=k,_=T)}return _},u}();e.default=s,s.from=function(u,c,f,d){return c===void 0&&(c=r),f===void 0&&(f=i),new s(l(u,c,f,d))}})(RC);const Aie=Ae(RC);function ys(e){return Pie(e)||Eie(e)||kie(e)||Tie()}function Tie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
227
227
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kie(e,t){if(e){if(typeof e=="string")return fp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fp(e,t)}}function Eie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pie(e){if(Array.isArray(e))return fp(e)}function fp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Nf={withinBounds:function(e,t){var n=e.width,r=e.height,i=e.polar,a=e.origin,o=e.scale,l=lt(e,"voronoiPadding"),s=t.x,u=t.y;if(i){var c=Math.pow(s-a.x,2)+Math.pow(u-a.y,2),f=Math.max.apply(Math,ys(o.y.range()));return c<Math.pow(f,2)}return s>=l.left&&s<=n-l.right&&u>=l.top&&u<=r-l.bottom},getDatasets:function(e){var t={x:dn(e.domain.x),y:dn(e.domain.y)},n=x.Children.toArray(e.children),r=function(o,l,s){var u=s&&s.type&&s.type.continuous,c=s?s.props&&s.props.style:e.style;return o.map(function(f,d){var h=Gm(f),g=h.x,p=h.y,y=h.y0,_=h.x0,b=(Number(g)+Number(_))/2,S=(Number(p)+Number(y))/2;return R({_voronoiX:e.voronoiDimension==="y"?t.x:b,_voronoiY:e.voronoiDimension==="x"?t.y:S,eventKey:d,childName:l,continuous:u,style:c},f)})};if(e.data)return r(e.data);var i=function(o){var l=Gt(o);return Array.isArray(l)&&l.length>0?l:void 0},a=function(o,l){var s=o.props||{},u=s.name||l,c=e.voronoiBlacklist||[],f=c.filter(sV),d=c.filter(B5),h=d.some(function(y){return y.test(u)});if(!ko(o)||qr(f,u)||h)return null;var g=o.type&&Oe(o.type.getData)?o.type.getData:i,p=g(o.props);return p?r(p,u,o):null};return Ti(n,a,e)},findPoints:function(e,t){return e.filter(function(n){return t._voronoiX===n._voronoiX&&t._voronoiY===n._voronoiY})},withinRadius:function(e,t,n){if(!e)return!1;if(!n)return!0;var r=t.x,i=t.y,a=Math.pow(r-e[0],2)+Math.pow(i-e[1],2);return a<Math.pow(n,2)},getVoronoiPoints:function(e,t){var n=this.getDatasets(e),r=n.map(function(s){var u=xo(e,s),c=u.x,f=u.y;return[c,f]}),i=Aie.from(r),a=i.find(t.x,t.y),o=this.withinRadius(r[a],t,e.radius),l=o?this.findPoints(n,n[a]):[];return{points:l,index:a}},getActiveMutations:function(e,t){var n=t.childName,r=t.continuous,i=e.activateData,a=e.activateLabels,o=e.labels;if(!i&&!a)return[];var l=i?["data"]:[],s=o&&!a?l:l.concat("labels");return rt(s)?[]:s.map(function(u){var c=r===!0&&u==="data"?"all":t.eventKey;return{childName:n,eventKey:c,target:u,mutation:function(){return{active:!0}}}})},getInactiveMutations:function(e,t){var n=t.childName,r=t.continuous,i=e.activateData,a=e.activateLabels,o=e.labels;if(!i&&!a)return[];var l=i?["data"]:[],s=o&&!a?l:l.concat("labels");return rt(s)?[]:s.map(function(u){var c=r&&u==="data"?"all":t.eventKey;return{childName:n,eventKey:c,target:u,mutation:function(){return null}}})},getParentMutation:function(e,t,n,r){return[{target:"parent",eventKey:"parent",mutation:function(){return{activePoints:e,mousePosition:t,parentSVG:n,vIndex:r}}}]},onActivated:function(e,t){Oe(e.onActivated)&&e.onActivated(t,e)},onDeactivated:function(e,t){Oe(e.onDeactivated)&&e.onDeactivated(t,e)},onMouseLeave:function(e,t){var n=this,r,i=t.activePoints||[];this.onDeactivated(t,i);var a=i.length?i.map(function(o){return n.getInactiveMutations(t,o)}):[];return(r=this.getParentMutation([])).concat.apply(r,ys(a))},onMouseMove:function(e,t){var n=this,r=t.activePoints||[],i=t.parentSVG||ai(e),a=Tr(e,i);if(!this.withinBounds(t,a)){var o;this.onDeactivated(t,r);var l=r.length?r.map(function(p){return n.getInactiveMutations(t,p)}):[];return(o=this.getParentMutation([],a,i)).concat.apply(o,ys(l))}var s=this.getVoronoiPoints(t,a),u=s.points,c=u===void 0?[]:u,f=s.index,d=this.getParentMutation(c,a,i,f);if(r.length&&fn(c,r))return d;this.onActivated(t,c),this.onDeactivated(t,r);var h=c.length?c.map(function(p){return n.getActiveMutations(t,p)}):[],g=r.length?r.map(function(p){return n.getInactiveMutations(t,p)}):[];return d.concat.apply(d,ys(g).concat(ys(h)))}};const Bf={onMouseLeave:Nf.onMouseLeave.bind(Nf),onMouseMove:$o(Nf.onMouseMove.bind(Nf),32,{leading:!0,trailing:!1})};var jie=["childName","eventKey","style","continuous"];function Mie(e){return Lie(e)||$ie(e)||Iie(e)||Die()}function Die(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
228
228
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iie(e,t){if(e){if(typeof e=="string")return dp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dp(e,t)}}function $ie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lie(e){if(Array.isArray(e))return dp(e)}function dp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fie(e,t){if(e==null)return{};var n=Nie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function zC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zC(Object(n),!0).forEach(function(r){Bie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wie(e,t,n){return t&&VC(e.prototype,t),n&&VC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hp(e,t)}function hp(e,t){return hp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hp(e,t)}function Vie(e){var t=qie();return function(){var r=Rf(e),i;if(t){var a=Rf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Uie(this,i)}}function Uie(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hie(e)}function Hie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rf(e)}var UC=function(e){var t;return t=function(n){zie(i,n);var r=Vie(i);function i(){return Rie(this,i),r.apply(this,arguments)}return Wie(i,[{key:"getDimension",value:function(o){var l=o.horizontal,s=o.voronoiDimension;return!l||!s?s:s==="x"?"y":"x"}},{key:"getPoint",value:function(o){var l=["_x","_x1","_x0","_y","_y1","_y0"];return Gl(o,l)}},{key:"getLabelPosition",value:function(o,l,s){var u=o.mousePosition,c=o.mouseFollowTooltips,f=this.getDimension(o),d=this.getPoint(s[0]),h=xo(o,d),g=c?u:void 0;if(!f||s.length<2)return Lo(Lo({},h),{},{center:ae({},l.center,g)});var p=f==="y"?u.x:h.x,y=f==="x"?u.y:h.y;return g=c?u:{x:p,y},{x:p,y,center:ae({},l.center,g)}}},{key:"getStyle",value:function(o,l,s){var u=o.labels,c=o.labelComponent,f=o.theme,d=c.props||{},h=f&&f.voronoi&&f.voronoi.style?f.voronoi.style:{},g=s==="flyout"?d.flyoutStyle:d.style;return l.reduce(function(p,y,_){var b=ae({},d,{datum:y,active:!0}),S=Oe(u)?u(b):void 0,O=S!==void 0?"".concat(S).split(`
229
229
  `):[],w=y.style&&y.style[s]||{},A=Array.isArray(g)?g[_]:g,T=Ze(ae({},A,w,h[s]),b),k=O.length?O.map(function(){return T}):[T];return p=p.concat(k),p},[])}},{key:"getDefaultLabelProps",value:function(o,l){var s=o.voronoiDimension,u=o.horizontal,c=o.mouseFollowTooltips,f=this.getPoint(l[0]),d=s&&l.length>1,h=f._y1!==void 0?f._y1:f._y,g=h<0?"left":"right",p=h<0?"bottom":"top",y=u?g:p,_=c?void 0:y;return{orientation:_,pointerLength:d?0:void 0,constrainToVisibleArea:d||c?!0:void 0}}},{key:"getLabelProps",value:function(o,l){var s=o.labels,u=o.scale,c=o.labelComponent,f=o.theme,d=o.width,h=o.height,g=c.props||{},p=l.reduce(function(T,k){var j=ae({},g,{datum:k,active:!0}),N=Oe(s)?s(j):null;return N==null||(T=T.concat("".concat(N).split(`
@@ -233,7 +233,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
233
233
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sae(e,t){if(e){if(typeof e=="string")return vp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vp(e,t)}}function wae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Oae(e){if(Array.isArray(e))return vp(e)}function vp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oa={getDimension:function(e){var t=e.horizontal,n=e.selectionDimension;return!t||!n?n:n==="x"?"y":"x"},getDatasets:function(e){if(e.data)return[{data:e.data}];var t=function(r){var i=Gt(r);return Array.isArray(i)&&i.length>0?i:void 0},n=function(r,i,a){var o=e.selectionBlacklist||[];if(!ko(r)||qr(o,i))return null;if(r.type&&Oe(r.type.getData)){r=a?x.cloneElement(r,a.props):r;var l=r.props&&r.type.getData(r.props);return l?{childName:i,data:l}:null}var s=t(r.props);return s?{childName:i,data:s}:null};return Ti(x.Children.toArray(e.children),n,e)},filterDatasets:function(e,t,n){var r=this,i=t.reduce(function(a,o){var l=r.getSelectedData(e,o.data,n);return a=l?a.concat({childName:o.childName,eventKey:l.eventKey,data:l.data}):a,a},[]);return i.length?i:null},getSelectedData:function(e,t){for(var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=function(h){var g=xo(e,h);return g.x>=Math.min(n,i)&&g.x<=Math.max(n,i)&&g.y>=Math.min(r,a)&&g.y<=Math.max(r,a)},l=[],s=[],u=0,c=0,f=t.length;c<f;c++){var d=t[c];o(d)&&(s[u]=d,l[u]=d.eventKey===void 0?c:d.eventKey,u++)}return u>0?{eventKey:l,data:s}:null},onMouseDown:function(e,t){e.preventDefault();var n=t.activateSelectedData,r=t.allowSelection,i=t.polar,a=t.selectedData;if(!r)return{};var o=this.getDimension(t),l=t.parentSVG||ai(e),s=Tr(e,l),u=s.x,c=s.y,f=i||o!=="y"?u:oi(t).x[0],d=i||o!=="x"?c:oi(t).y[0],h=i||o!=="y"?u:oi(t).x[1],g=i||o!=="x"?c:oi(t).y[1],p={x1:f,y1:d,select:!0,x2:h,y2:g,parentSVG:l};a&&Oe(t.onSelectionCleared)&&t.onSelectionCleared(ae({},p,t));var y=[{target:"parent",mutation:function(){return p}}],_=a&&n?a.map(function(b){return{childName:b.childName,eventKey:b.eventKey,target:"data",mutation:function(){return null}}}):[];return y.concat.apply(y,_ae(_))},onMouseMove:function(e,t){var n=t.allowSelection,r=t.select,i=t.polar,a=this.getDimension(t);if(!n||!r)return null;var o=t.parentSVG||ai(e),l=Tr(e,o),s=l.x,u=l.y,c=i||a!=="y"?s:oi(t).x[1],f=i||a!=="x"?u:oi(t).y[1];return{target:"parent",mutation:function(){return{x2:c,y2:f,parentSVG:o}}}},onMouseUp:function(e,t){var n=t.activateSelectedData,r=t.allowSelection,i=t.x2,a=t.y2;if(!r)return null;if(!i||!a)return[{target:"parent",mutation:function(){return{select:!1,x1:null,x2:null,y1:null,y2:null}}}];var o=this.getDatasets(t),l=wf(t),s=this.filterDatasets(t,o,l),u={selectedData:s,datasets:o,select:!1,x1:null,x2:null,y1:null,y2:null},c=s&&Oe(t.onSelection)?t.onSelection(s,l,ae({},u,t)):{},f=[{target:"parent",mutation:function(){return u}}],d=s&&n?s.map(function(h){return{childName:h.childName,eventKey:h.eventKey,target:"data",mutation:function(){return R({active:!0},c)}}}):[];return f.concat(d)}};const Fo=XC(XC({},Oa),{},{onMouseDown:Oa.onMouseDown.bind(Oa),onMouseUp:Oa.onMouseUp.bind(Oa),onMouseMove:$o(Oa.onMouseMove.bind(Oa),16,{leading:!0,trailing:!1})});function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JC(Object(n),!0).forEach(function(r){Cae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aae(e){return Pae(e)||Eae(e)||kae(e)||Tae()}function Tae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
234
234
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kae(e,t){if(e){if(typeof e=="string")return yp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yp(e,t)}}function Eae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pae(e){if(Array.isArray(e))return yp(e)}function yp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mae(e,t,n){return t&&QC(e.prototype,t),n&&QC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bp(e,t)}function bp(e,t){return bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},bp(e,t)}function Iae(e){var t=Fae();return function(){var r=Vf(e),i;if(t){var a=Vf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return $ae(this,i)}}function $ae(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lae(e)}function Lae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vf(e){return Vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vf(e)}var eA=function(e){var t;return t=function(n){Dae(i,n);var r=Iae(i);function i(){return jae(this,i),r.apply(this,arguments)}return Mae(i,[{key:"getRect",value:function(o){var l=o.x1,s=o.x2,u=o.y1,c=o.y2,f=o.selectionStyle,d=o.selectionComponent,h=o.name,g=Math.abs(s-l)||1,p=Math.abs(c-u)||1,y=Math.min(l,s),_=Math.min(u,c);return c&&s&&l&&u?x.cloneElement(d,{key:"".concat(h,"-selection"),x:y,y:_,width:g,height:p,style:f}):null}},{key:"getChildren",value:function(o){return[].concat(Aae(x.Children.toArray(o.children)),[this.getRect(o)])}}]),i}(e),t.displayName="VictorySelectionContainer",t.propTypes=zf(zf({},ze.propTypes),{},{activateSelectedData:m.bool,allowSelection:m.bool,disable:m.bool,onSelection:m.func,onSelectionCleared:m.func,selectionBlacklist:m.arrayOf(m.string),selectionComponent:m.element,selectionDimension:m.oneOf(["x","y"]),selectionStyle:m.object}),t.defaultProps=zf(zf({},ze.defaultProps),{},{activateSelectedData:!0,allowSelection:!0,selectionComponent:x.createElement(da,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:{onMouseDown:function(r,i){return n.disable?{}:Fo.onMouseDown(r,i)},onTouchStart:function(r,i){return n.disable?{}:Fo.onMouseDown(r,i)},onMouseMove:function(r,i){return n.disable?{}:Fo.onMouseMove(r,i)},onTouchMove:function(r,i){return n.disable?{}:Fo.onMouseMove(r,i)},onMouseUp:function(r,i){return n.disable?{}:Fo.onMouseUp(r,i)},onTouchEnd:function(r,i){return n.disable?{}:Fo.onMouseUp(r,i)}}}]},t};eA(ze);var Nae=Ml,Bae=Zu,Rae=Hr;function Wae(e,t){var n={};return t=Rae(t),Bae(e,function(r,i,a){Nae(n,i,t(r,i,a))}),n}var zae=Wae;const No=Ae(zae);function tA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tA(Object(n),!0).forEach(function(r){Vae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fi(e){return Gae(e)||qae(e)||Hae(e)||Uae()}function Uae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
235
235
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hae(e,t){if(e){if(typeof e=="string")return _p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _p(e,t)}}function qae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gae(e){if(Array.isArray(e))return _p(e)}function _p(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ca={getDimension:function(e){var t=e.horizontal,n=e.brushDimension;return!t||!n?n:n==="x"?"y":"x"},withinBounds:function(e,t,n){var r=No(t,Number),i=r.x1,a=r.x2,o=r.y1,l=r.y2,s=No(e,Number),u=s.x,c=s.y;return n=n?n/2:0,u+n>=Math.min(i,a)&&u-n<=Math.max(i,a)&&c+n>=Math.min(o,l)&&c-n<=Math.max(o,l)},getDomainBox:function(e,t,n){var r=this.getDimension(e);t=ae({},t,e.domain),n=ae({},n,t);var i=oi(e,t),a=oi(e,n);return{x1:r!=="y"?Math.min.apply(Math,Fi(a.x)):Math.min.apply(Math,Fi(i.x)),x2:r!=="y"?Math.max.apply(Math,Fi(a.x)):Math.max.apply(Math,Fi(i.x)),y1:r!=="x"?Math.min.apply(Math,Fi(a.y)):Math.min.apply(Math,Fi(i.y)),y2:r!=="x"?Math.max.apply(Math,Fi(a.y)):Math.max.apply(Math,Fi(i.y))}},getHandles:function(e,t){var n=this.getDimension(e),r=t.x1,i=t.x2,a=t.y1,o=t.y2,l=Math.min(r,i),s=Math.max(r,i),u=Math.min(a,o),c=Math.max(a,o),f=e.handleWidth/2;return{left:n!=="y"&&{x1:l-f,x2:l+f,y1:a,y2:o},right:n!=="y"&&{x1:s-f,x2:s+f,y1:a,y2:o},top:n!=="x"&&{x1:r,x2:i,y1:u-f,y2:u+f},bottom:n!=="x"&&{x1:r,x2:i,y1:c-f,y2:c+f}}},getActiveHandles:function(e,t,n){var r=this,i=this.getHandles(t,n),a=["top","bottom","left","right"].reduce(function(o,l){return o=i[l]&&r.withinBounds(e,i[l])?o.concat(l):o,o},[]);return a.length&&a},getResizeMutation:function(e,t){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o={left:{x1:Math.max(n,i),x2:Math.min(n,i),y1:r,y2:a},right:{x1:Math.min(n,i),x2:Math.max(n,i),y1:r,y2:a},top:{y1:Math.max(r,a),y2:Math.min(r,a),x1:n,x2:i},bottom:{y1:Math.min(r,a),y2:Math.max(r,a),x1:n,x2:i}};return t.reduce(function(l,s){return R(l,o[s])},{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(e,t,n){var r=e.domain,i=e.fullDomain,a=e.scale,o=e.horizontal,l=e.allowResize,s=!l&&!e.defaultBrushArea?"move":e.defaultBrushArea;if(s==="none")return this.getMinimumDomain();if(s==="disable")return t;if(s==="move"){var u=this.getDomainBox(e,i,t),c=e.parentSVG||ai(n),f=this.panBox(nn(nn(nn({},e),u),{},{brushDomain:t,startX:(u.x1+u.x2)/2,startY:(u.y1+u.y2)/2}),Tr(n,c)),d=e.fullDomainBox||this.getDomainBox(e,i),h=this.constrainBox(f,d);return wf(nn(nn({},h),{},{scale:a,horizontal:o}))}return r},getSelectionMutation:function(e,t,n){var r=e.x,i=e.y,a=t.x1,o=t.x2,l=t.y1,s=t.y2;return{x1:n!=="y"?r:a,y1:n!=="x"?i:l,x2:n!=="y"?r:o,y2:n!=="x"?i:s}},panBox:function(e,t){var n=e.domain,r=e.startX,i=e.startY,a=this.getDimension(e),o=ae({},e.brushDomain,n),l=ae({},e.fullDomain,n),s=e.x1?e:this.getDomainBox(e,l,o),u=s.x1,c=s.x2,f=s.y1,d=s.y2,h=t.x,g=t.y,p={x:r?r-h:0,y:i?i-g:0};return{x1:a!=="y"?Math.min(u,c)-p.x:Math.min(u,c),x2:a!=="y"?Math.max(u,c)-p.x:Math.max(u,c),y1:a!=="x"?Math.min(f,d)-p.y:Math.min(f,d),y2:a!=="x"?Math.max(f,d)-p.y:Math.max(f,d)}},constrainBox:function(e,t){var n=No(t,Number),r=n.x1,i=n.y1,a=n.x2,o=n.y2;return{x1:e.x2>a?a-Math.abs(e.x2-e.x1):Math.max(e.x1,r),y1:e.y2>o?o-Math.abs(e.y2-e.y1):Math.max(e.y1,i),x2:e.x1<r?r+Math.abs(e.x2-e.x1):Math.min(e.x2,a),y2:e.y1<i?i+Math.abs(e.y2-e.y1):Math.min(e.y2,o)}},constrainPoint:function(e,t){var n=No(t,Number),r=n.x1,i=n.y1,a=n.x2,o=n.y2;return{x:Math.min(Math.max(e.x,r),a),y:Math.min(Math.max(e.y,i),o)}},hasMoved:function(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.mouseMoveThreshold,o=this.getDimension(e),l=Math.abs(t-n)>=a,s=Math.abs(r-i)>=a;switch(o){case"x":return l;case"y":return s;default:return l||s}},onMouseDown:function(e,t){var n=this;e.preventDefault();var r=t.handleWidth,i=t.cachedBrushDomain,a=t.domain,o=t.allowResize,l=t.allowDrag,s=t.allowDraw,u=this.getDimension(t),c=!o&&!t.defaultBrushArea?"move":t.defaultBrushArea;if(!o&&!l)return{};var f=t.fullDomainBox||this.getDomainBox(t,a),d=t.parentSVG||ai(e),h=Tr(e,d),g=h.x,p=h.y;if(!this.withinBounds({x:g,y:p},f,r))return{};var y=ae({},t.brushDomain,a),_=fn(y,i)?t.currentDomain||y||a:y||a,b=this.getDomainBox(t,a,_),S=o&&this.getActiveHandles({x:g,y:p},t,b);return S?[{target:"parent",mutation:function(){return nn({isSelecting:!0,domainBox:b,fullDomainBox:f,cachedBrushDomain:y,currentDomain:_,parentSVG:d},n.getResizeMutation(b,S))}}]:this.withinBounds({x:g,y:p},b)&&!fn(a,_)?[{target:"parent",mutation:function(){return nn({isPanning:l,startX:g,startY:p,domainBox:b,fullDomainBox:f,currentDomain:_,cachedBrushDomain:y,parentSVG:d},b)}}]:s?[{target:"parent",mutation:function(){return nn({isSelecting:o||c==="move",domainBox:b,fullDomainBox:f,parentSVG:d,cachedBrushDomain:y,cachedCurrentDomain:_,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:g,y:p},b,u))}}]:{}},onGlobalMouseMove:function(e,t){var n=t.scale,r=t.isPanning,i=t.isSelecting,a=t.fullDomainBox,o=t.onBrushDomainChange,l=t.allowResize,s=t.allowDrag,u=t.horizontal,c=t.mouseMoveThreshold,f=t.parentSVG,d=this.getDimension(t),h=Tr(e,f),g=h.x,p=h.y;if(!l&&!s||c>0&&!this.hasMoved(nn(nn({},t),{},{x2:g,y2:p})))return{};if(s&&r){var y=t.startX,_=t.startY,b=this.panBox(t,{x:g,y:p}),S=this.constrainBox(b,a),O=wf(nn(nn({},S),{},{scale:n,horizontal:u})),w=nn({currentDomain:O,parentSVG:f,startX:b.x2>=a.x2||b.x1<=a.x1?y:g,startY:b.y2>=a.y2||b.y1<=a.y1?_:p},S);return Oe(o)&&o(O,ae({},w,t)),[{target:"parent",mutation:function(){return w}}]}else if(l&&i){var A=this.constrainPoint({x:d!=="y"?g:t.x2,y:d!=="x"?p:t.y2},a),T=A.x,k=A.y,j=wf({x2:T,y2:k,x1:t.x1,y1:t.y1,scale:n,horizontal:u}),N={x2:T,y2:k,currentDomain:j,parentSVG:f};return Oe(o)&&o(j,ae({},N,t)),[{target:"parent",mutation:function(){return N}}]}return{}},onGlobalMouseUp:function(e,t){if(!t.isPanning&&!t.isSelecting)return{};var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.isPanning,l=t.isSelecting,s=t.onBrushDomainChange,u=t.onBrushDomainChangeEnd,c=t.onBrushCleared,f=t.currentDomain,d=t.allowResize,h=t.allowDrag,g=!d&&!t.defaultBrushArea?"move":t.defaultBrushArea,p=g!==void 0&&g!=="none",y={isPanning:!1,isSelecting:!1};if((d||p)&&(n===i||r===a)){var _=t.cachedCurrentDomain||f,b=this.getDefaultBrushArea(t,_,e);y.currentDomain=b,Oe(s)&&s(b,ae({},y,t)),Oe(u)&&u(b,ae({},y,t)),Oe(c)&&c(b,ae({},y,t))}else(h&&o||d&&l)&&Oe(u)&&u(f,ae({},y,t));return[{target:"parent",mutation:function(){return y}}]}},si=nn(nn({},Ca),{},{onMouseDown:Ca.onMouseDown.bind(Ca),onGlobalMouseUp:Ca.onGlobalMouseUp.bind(Ca),onGlobalMouseMove:$o(Ca.onGlobalMouseMove.bind(Ca),16,{leading:!0,trailing:!1})});function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(n),!0).forEach(function(r){Yae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rA(e){return Jae(e)||Xae(e)||Zae(e)||Kae()}function Kae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
236
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zae(e,t){if(e){if(typeof e=="string")return xp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xp(e,t)}}function Xae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jae(e){if(Array.isArray(e))return xp(e)}function xp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eoe(e,t,n){return t&&iA(e.prototype,t),n&&iA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function toe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sp(e,t)}function Sp(e,t){return Sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Sp(e,t)}function noe(e){var t=aoe();return function(){var r=Hf(e),i;if(t){var a=Hf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return roe(this,i)}}function roe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ioe(e)}function ioe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aoe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hf(e)}var aA=function(e){var t;return t=function(n){toe(i,n);var r=noe(i);function i(){return Qae(this,i),r.apply(this,arguments)}return eoe(i,[{key:"getSelectBox",value:function(o,l){var s=l.x,u=l.y,c=o.brushStyle,f=o.brushComponent,d=o.name,h=f.props&&f.props.style,g=!o.allowDrag&&!o.allowResize?"auto":"move";return s[0]!==s[1]&&u[0]!==u[1]?x.cloneElement(f,{key:"".concat(d,"-brush"),width:Math.abs(s[1]-s[0])||1,height:Math.abs(u[1]-u[0])||1,x:Math.min(s[0],s[1]),y:Math.min(u[0],u[1]),cursor:g,style:ae({},h,c)}):null}},{key:"getCursorPointers",value:function(o){var l={yProps:"ns-resize",xProps:"ew-resize"};return!o.allowResize&&o.allowDrag?(l.xProps="move",l.yProps="move"):!o.allowResize&&!o.allowDrag&&(l.xProps="auto",l.yProps="auto"),l}},{key:"getHandles",value:function(o,l){var s=o.handleWidth,u=o.handleStyle,c=o.handleComponent,f=o.name,d=si.getDomainBox(o,l),h=d.x1,g=d.x2,p=d.y1,y=d.y2,_=si.getHandles(o,d),b=_.top,S=_.bottom,O=_.left,w=_.right,A=Math.abs(g-h)||1,T=Math.abs(y-p)||1,k=c.props&&c.props.style||{},j=ae({},k,u),N=this.getCursorPointers(o),M={style:j,width:A,height:s,cursor:N.yProps},E={style:j,width:s,height:T,cursor:N.xProps},I={top:b&&R({x:b.x1,y:b.y1},M),bottom:S&&R({x:S.x1,y:S.y1},M),left:O&&R({y:O.y1,x:O.x1},E),right:w&&R({y:w.y1,x:w.x1},E)},D=["top","bottom","left","right"].reduce(function(W,X){return W=I[X]?W.concat(x.cloneElement(c,R({key:"".concat(f,"-handle-").concat(X)},I[X]))):W,W},[]);return D.length?D:null}},{key:"getRect",value:function(o){var l=o.currentDomain,s=o.cachedBrushDomain,u=ae({},o.brushDomain,o.domain),c=fn(u,s)?ae({},l,u):u,f=oi(o,c),d=this.getSelectBox(o,f);return d?[d,this.getHandles(o,c)]:[]}},{key:"getChildren",value:function(o){return[].concat(rA(x.Children.toArray(o.children)),rA(this.getRect(o)))}}]),i}(e),t.displayName="VictoryBrushContainer",t.propTypes=Uf(Uf({},ze.propTypes),{},{allowDrag:m.bool,allowDraw:m.bool,allowResize:m.bool,brushComponent:m.element,brushDimension:m.oneOf(["x","y"]),brushDomain:m.shape({x:m.array,y:m.array}),brushStyle:m.object,defaultBrushArea:m.oneOf(["all","disable","none","move"]),disable:m.bool,handleComponent:m.element,handleStyle:m.object,handleWidth:m.number,onBrushCleared:m.func,onBrushDomainChange:m.func,onBrushDomainChangeEnd:m.func}),t.defaultProps=Uf(Uf({},ze.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:x.createElement(da,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:x.createElement(da,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:{onMouseDown:function(r,i){return n.disable?{}:si.onMouseDown(r,i)},onTouchStart:function(r,i){return n.disable?{}:si.onMouseDown(r,i)},onGlobalMouseMove:function(r,i){return n.disable||!i.isPanning&&!i.isSelecting?{}:si.onGlobalMouseMove(r,i)},onGlobalTouchMove:function(r,i){return n.disable||!i.isPanning&&!i.isSelecting?{}:si.onGlobalMouseMove(r,i)},onGlobalMouseUp:function(r,i){return n.disable?{}:si.onGlobalMouseUp(r,i)},onGlobalTouchEnd:function(r,i){return n.disable?{}:si.onGlobalMouseUp(r,i)},onGlobalTouchCancel:function(r,i){return n.disable?{}:si.onGlobalMouseUp(r,i)}}}]},t};aA(ze);function ooe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function loe(e,t,n){return t&&oA(e.prototype,t),n&&oA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var soe=16,uoe=function(){function e(){var t=this;ooe(this,e),this.handleMouseMove=function(n,r){var i=r.onCursorChange,a=r.domain,o=t.getDimension(r),l=r.parentSVG||ai(n),s=Tr(n,l),u=Sf(r,r.scale,s.x,s.y),c=t.withinBounds(u,{x1:a.x[0],x2:a.x[1],y1:a.y[0],y2:a.y[1]});if(c||(u=null),Oe(i))if(u){var f=o?u[o]:u;i(f,r)}else u!==r.cursorValue&&i(r.defaultCursorValue||null,r);return[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:u,parentSVG:l}}}]},this.onMouseMove=$o(this.handleMouseMove,soe,{leading:!0,trailing:!1}),this.onMouseLeave=this.handleMouseMove,this.onTouchEnd=function(n,r){var i=r.onCursorChange;return Oe(r.onCursorChange)&&i(null,r),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}}return loe(e,[{key:"getDimension",value:function(n){var r=n.horizontal,i=n.cursorDimension;return!r||!i?i:i==="x"?"y":"x"}},{key:"withinBounds",value:function(n,r){var i=No(r,Number),a=i.x1,o=i.x2,l=i.y1,s=i.y2,u=No(n,Number),c=u.x,f=u.y;return c>=Math.min(a,o)&&c<=Math.max(a,o)&&f>=Math.min(l,s)&&f<=Math.max(l,s)}}]),e}(),qf=new uoe;function lA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lA(Object(n),!0).forEach(function(r){uA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sA(e){return hoe(e)||doe(e)||foe(e)||coe()}function coe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
236
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zae(e,t){if(e){if(typeof e=="string")return xp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xp(e,t)}}function Xae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jae(e){if(Array.isArray(e))return xp(e)}function xp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eoe(e,t,n){return t&&iA(e.prototype,t),n&&iA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function toe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sp(e,t)}function Sp(e,t){return Sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Sp(e,t)}function noe(e){var t=aoe();return function(){var r=Hf(e),i;if(t){var a=Hf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return roe(this,i)}}function roe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ioe(e)}function ioe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aoe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hf(e)}var aA=function(e){var t;return t=function(n){toe(i,n);var r=noe(i);function i(){return Qae(this,i),r.apply(this,arguments)}return eoe(i,[{key:"getSelectBox",value:function(o,l){var s=l.x,u=l.y,c=o.brushStyle,f=o.brushComponent,d=o.name,h=f.props&&f.props.style,g=!o.allowDrag&&!o.allowResize?"auto":"move";return s[0]!==s[1]&&u[0]!==u[1]?x.cloneElement(f,{key:"".concat(d,"-brush"),width:Math.abs(s[1]-s[0])||1,height:Math.abs(u[1]-u[0])||1,x:Math.min(s[0],s[1]),y:Math.min(u[0],u[1]),cursor:g,style:ae({},h,c)}):null}},{key:"getCursorPointers",value:function(o){var l={yProps:"ns-resize",xProps:"ew-resize"};return!o.allowResize&&o.allowDrag?(l.xProps="move",l.yProps="move"):!o.allowResize&&!o.allowDrag&&(l.xProps="auto",l.yProps="auto"),l}},{key:"getHandles",value:function(o,l){var s=o.handleWidth,u=o.handleStyle,c=o.handleComponent,f=o.name,d=si.getDomainBox(o,l),h=d.x1,g=d.x2,p=d.y1,y=d.y2,_=si.getHandles(o,d),b=_.top,S=_.bottom,O=_.left,w=_.right,A=Math.abs(g-h)||1,T=Math.abs(y-p)||1,k=c.props&&c.props.style||{},j=ae({},k,u),N=this.getCursorPointers(o),M={style:j,width:A,height:s,cursor:N.yProps},E={style:j,width:s,height:T,cursor:N.xProps},D={top:b&&R({x:b.x1,y:b.y1},M),bottom:S&&R({x:S.x1,y:S.y1},M),left:O&&R({y:O.y1,x:O.x1},E),right:w&&R({y:w.y1,x:w.x1},E)},I=["top","bottom","left","right"].reduce(function(W,Z){return W=D[Z]?W.concat(x.cloneElement(c,R({key:"".concat(f,"-handle-").concat(Z)},D[Z]))):W,W},[]);return I.length?I:null}},{key:"getRect",value:function(o){var l=o.currentDomain,s=o.cachedBrushDomain,u=ae({},o.brushDomain,o.domain),c=fn(u,s)?ae({},l,u):u,f=oi(o,c),d=this.getSelectBox(o,f);return d?[d,this.getHandles(o,c)]:[]}},{key:"getChildren",value:function(o){return[].concat(rA(x.Children.toArray(o.children)),rA(this.getRect(o)))}}]),i}(e),t.displayName="VictoryBrushContainer",t.propTypes=Uf(Uf({},ze.propTypes),{},{allowDrag:m.bool,allowDraw:m.bool,allowResize:m.bool,brushComponent:m.element,brushDimension:m.oneOf(["x","y"]),brushDomain:m.shape({x:m.array,y:m.array}),brushStyle:m.object,defaultBrushArea:m.oneOf(["all","disable","none","move"]),disable:m.bool,handleComponent:m.element,handleStyle:m.object,handleWidth:m.number,onBrushCleared:m.func,onBrushDomainChange:m.func,onBrushDomainChangeEnd:m.func}),t.defaultProps=Uf(Uf({},ze.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:x.createElement(da,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:x.createElement(da,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:{onMouseDown:function(r,i){return n.disable?{}:si.onMouseDown(r,i)},onTouchStart:function(r,i){return n.disable?{}:si.onMouseDown(r,i)},onGlobalMouseMove:function(r,i){return n.disable||!i.isPanning&&!i.isSelecting?{}:si.onGlobalMouseMove(r,i)},onGlobalTouchMove:function(r,i){return n.disable||!i.isPanning&&!i.isSelecting?{}:si.onGlobalMouseMove(r,i)},onGlobalMouseUp:function(r,i){return n.disable?{}:si.onGlobalMouseUp(r,i)},onGlobalTouchEnd:function(r,i){return n.disable?{}:si.onGlobalMouseUp(r,i)},onGlobalTouchCancel:function(r,i){return n.disable?{}:si.onGlobalMouseUp(r,i)}}}]},t};aA(ze);function ooe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function loe(e,t,n){return t&&oA(e.prototype,t),n&&oA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var soe=16,uoe=function(){function e(){var t=this;ooe(this,e),this.handleMouseMove=function(n,r){var i=r.onCursorChange,a=r.domain,o=t.getDimension(r),l=r.parentSVG||ai(n),s=Tr(n,l),u=Sf(r,r.scale,s.x,s.y),c=t.withinBounds(u,{x1:a.x[0],x2:a.x[1],y1:a.y[0],y2:a.y[1]});if(c||(u=null),Oe(i))if(u){var f=o?u[o]:u;i(f,r)}else u!==r.cursorValue&&i(r.defaultCursorValue||null,r);return[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:u,parentSVG:l}}}]},this.onMouseMove=$o(this.handleMouseMove,soe,{leading:!0,trailing:!1}),this.onMouseLeave=this.handleMouseMove,this.onTouchEnd=function(n,r){var i=r.onCursorChange;return Oe(r.onCursorChange)&&i(null,r),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}}return loe(e,[{key:"getDimension",value:function(n){var r=n.horizontal,i=n.cursorDimension;return!r||!i?i:i==="x"?"y":"x"}},{key:"withinBounds",value:function(n,r){var i=No(r,Number),a=i.x1,o=i.x2,l=i.y1,s=i.y2,u=No(n,Number),c=u.x,f=u.y;return c>=Math.min(a,o)&&c<=Math.max(a,o)&&f>=Math.min(l,s)&&f<=Math.max(l,s)}}]),e}(),qf=new uoe;function lA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lA(Object(n),!0).forEach(function(r){uA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sA(e){return hoe(e)||doe(e)||foe(e)||coe()}function coe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
237
237
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function foe(e,t){if(e){if(typeof e=="string")return wp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wp(e,t)}}function doe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hoe(e){if(Array.isArray(e))return wp(e)}function wp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function moe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function goe(e,t,n){return t&&cA(e.prototype,t),n&&cA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function poe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Op(e,t)}function Op(e,t){return Op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Op(e,t)}function voe(e){var t=_oe();return function(){var r=Yf(e),i;if(t){var a=Yf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return yoe(this,i)}}function yoe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return boe(e)}function boe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _oe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yf(e){return Yf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yf(e)}function fA(e){var t;return t=function(n){poe(i,n);var r=voe(i);function i(){return moe(this,i),r.apply(this,arguments)}return goe(i,[{key:"getCursorPosition",value:function(o){var l=o.cursorValue,s=o.defaultCursorValue,u=o.domain,c=o.cursorDimension;return l||(typeof s=="number"?uA({x:(u.x[0]+u.x[1])/2,y:(u.y[0]+u.y[1])/2},c,s):s)}},{key:"getCursorLabelOffset",value:function(o){var l=o.cursorLabelOffset;return typeof l=="number"?{x:l,y:l}:l}},{key:"getPadding",value:function(o){if(o.padding===void 0){var l=o.children.find(function(s){return lo(s.props)&&s.props.padding!==void 0});return lt(l.props)}return lt(o)}},{key:"getCursorElements",value:function(o){var l=o.scale,s=o.cursorLabelComponent,u=o.cursorLabel,c=o.cursorComponent,f=o.width,d=o.height,h=o.name,g=o.horizontal,p=o.theme,y=qf.getDimension(o),_=this.getCursorPosition(o),b=this.getCursorLabelOffset(o);if(!_)return[];var S=[],O=this.getPadding(o),w={x:g?l.y(_.y):l.x(_.x),y:g?l.x(_.x):l.y(_.y)};if(u){var A=ae({active:!0},s.props,{x:w.x+b.x,y:w.y+b.y,datum:_,active:!0,key:"".concat(h,"-cursor-label")});if(dc(s)){var T=p&&p.tooltip||{};A=ae({},A,T)}S.push(x.cloneElement(s,ae({},A,{text:fe(u,A)})))}var k=R({stroke:"black"},c.props.style);return(y==="x"||y===void 0)&&S.push(x.cloneElement(c,{key:"".concat(h,"-x-cursor"),x1:w.x,x2:w.x,y1:O.top,y2:d-O.bottom,style:k})),(y==="y"||y===void 0)&&S.push(x.cloneElement(c,{key:"".concat(h,"-y-cursor"),x1:O.left,x2:f-O.right,y1:w.y,y2:w.y,style:k})),S}},{key:"getChildren",value:function(o){return[].concat(sA(x.Children.toArray(o.children)),sA(this.getCursorElements(o)))}}]),i}(e),t.displayName="VictoryCursorContainer",t.propTypes=Gf(Gf({},ze.propTypes),{},{cursorDimension:m.oneOf(["x","y"]),cursorLabel:m.func,cursorLabelComponent:m.element,cursorLabelOffset:m.oneOfType([m.number,m.shape({x:m.number,y:m.number})]),defaultCursorValue:m.oneOfType([m.number,m.shape({x:m.number,y:m.number})]),disable:m.bool,onCursorChange:m.func}),t.defaultProps=Gf(Gf({},ze.defaultProps),{},{cursorLabelComponent:x.createElement(wt,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:x.createElement(Ar,null)}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:{onMouseLeave:function(r,i){return n.disable?{}:qf.onMouseLeave(r,i)},onTouchCancel:function(){return[]},onMouseMove:function(r,i){return n.disable?{}:qf.onMouseMove(r,i)},onTouchMove:function(r,i){return n.disable?{}:qf.onMouseMove(r,i)}}}]},t}fA(ze);function Kf(e){return woe(e)||Soe(e)||mA(e)||xoe()}function xoe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
238
238
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Soe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function woe(e){if(Array.isArray(e))return Ap(e)}function dA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dA(Object(n),!0).forEach(function(r){Ooe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ooe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Coe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Aoe(e,t,n){return t&&hA(e.prototype,t),n&&hA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Toe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cp(e,t)}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Cp(e,t)}function koe(e){var t=joe();return function(){var r=Zf(e),i;if(t){var a=Zf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Eoe(this,i)}}function Eoe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Poe(e)}function Poe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function joe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zf(e){return Zf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zf(e)}function Moe(e,t){return $oe(e)||Ioe(e,t)||mA(e,t)||Doe()}function Doe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
239
239
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mA(e,t){if(e){if(typeof e=="string")return Ap(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ap(e,t)}}function Ap(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ioe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function $oe(e){if(Array.isArray(e))return e}var gA=function(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e},Loe=function(e){return e.reduce(function(t,n){return Tre(t,function(r,i){var a=n[i];a?n[i]=function(){var l=gA(a.apply(void 0,arguments)),s=gA(r.apply(void 0,arguments));return l.concat(s)}:n[i]=r}),n})},Foe=function(e){var t=Of(e,"target"),n=Hre(t).map(function(r){var i=Moe(r,2),a=i[0],o=i[1];return o=o.filter(Boolean),rt(o)?null:{target:a,eventHandlers:Loe(o.map(function(l){return l.eventHandlers}))}});return n.filter(Boolean)},Noe=function(e,t){var n,r=e.map(function(l){return l(t)}),i=r.map(function(l){return new l}),a=bre(e)(t),o=r.map(function(l){var s=l.displayName.match(/Victory(.*)Container/);return s[1]||""}).join("");return n=function(l){Toe(u,l);var s=koe(u);function u(){return Coe(this,u),s.apply(this,arguments)}return Aoe(u,[{key:"getChildren",value:function(f){return i.reduce(function(d,h){return h.getChildren(Bo(Bo({},f),{},{children:d}))},f.children)}}]),u}(a),n.displayName="Victory".concat(o,"Container"),n.propTypes=r.reduce(function(l,s){return Bo(Bo({},l),s.propTypes)},{}),n.defaultProps=r.reduce(function(l,s){return Bo(Bo({},l),s.defaultProps)},{}),n.defaultEvents=function(l){return Foe(r.reduce(function(s,u){var c=Oe(u.defaultEvents)?u.defaultEvents(l):u.defaultEvents;return[].concat(Kf(s),Kf(c))},[]))},n},pA=function(e,t){e&&!qr(t,e)&&bo('"'.concat(e,'" is not a valid behavior. Choose from [').concat(t.join(", "),"]."))},Boe=function(e,t){return function(n,r){var i=Ke(e);pA(n,i),pA(r,i),!(arguments.length<=2)&&arguments.length-2&&bo("too many arguments given to createContainer (maximum accepted: 2).");var a=e[n],o=e[r]||[];return a?Noe([].concat(Kf(a),Kf(o)),t):t}},Roe=Boe({zoom:[KC],voronoi:[UC],selection:[eA],cursor:[fA],brush:[aA]},ze);const Woe=e=>{const{pointerWidth:t,cornerRadius:n,orientation:r,width:i,height:a,center:o}=e,l=r==="bottom"?1:-1,s=Qe(o)&&o.x,u=Qe(o)&&o.y,c=u+l*(a/2),f=u-l*(a/2),d=s+i/2,h=s-i/2,g=o.x+(e.dx||0),p=r==="bottom"?c+e.pointerLength+(e.dy||0):c-e.pointerLength+(e.dy||0),y=l*(p-c)<0?0:e.pointerLength,b=`${n} ${n} ${r==="bottom"?"0 0 0":"0 0 1"}`;return`M ${s-t/2}, ${c}
@@ -259,7 +259,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
259
259
  L ${c+l*n}, ${h}
260
260
  A ${b} ${c}, ${h+n}
261
261
  z`},Voe=e=>{const t=e.orientation||"top";return t==="left"||t==="right"?zoe(e):Woe(e)},Uoe=e=>{const t=fe(e.id,e),n=Ze(e.style,e);return Object.assign({},e,{id:t,style:n})},Tp=e=>(e=Uoe(e),F.cloneElement(e.pathComponent,Object.assign(Object.assign({},e.events),{style:e.style,d:Voe(e),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath})));Tp.propTypes=Object.assign(Object.assign({},Ot.primitiveProps),{center:m.shape({x:m.number,y:m.number}),cornerRadius:m.number,datum:m.object,dx:m.number,dy:m.number,height:m.number,orientation:m.oneOf(["top","bottom","left","right"]),pathComponent:m.element,pointerLength:m.number,pointerWidth:m.number,width:m.number,x:m.number,y:m.number}),Tp.defaultProps={pathComponent:F.createElement(Mi,null),role:"presentation",shapeRendering:"auto"};const Hoe={name:"--pf-chart-axis--grid--stroke--Color",value:"#d2d2d2",var:"var(--pf-chart-axis--grid--stroke--Color, #d2d2d2)"},vA={name:"--pf-chart-axis--tick--stroke--Color",value:"#d2d2d2",var:"var(--pf-chart-axis--tick--stroke--Color, #d2d2d2)"},qoe={axis:{style:{grid:{stroke:Hoe.var},ticks:{stroke:vA.var}}}},yA={name:"--pf-chart-global--FontFamily",value:'"RedHatText", "Overpass", overpass, helvetica, arial, sans-serif',var:'var(--pf-chart-global--FontFamily, "RedHatText", "Overpass", overpass, helvetica, arial, sans-serif)'},bA={name:"--pf-chart-global--letter-spacing",value:"normal",var:"var(--pf-chart-global--letter-spacing, normal)"},kp={name:"--pf-chart-global--FontSize--sm",value:14,var:"var(--pf-chart-global--FontSize--sm, 14)"},Goe={name:"--pf-chart-global--label--Padding",value:10,var:"var(--pf-chart-global--label--Padding, 10)"},Yoe={name:"--pf-chart-global--label--stroke",value:"transparent",var:"var(--pf-chart-global--label--stroke, transparent)"},Koe={name:"--pf-chart-global--label--text-anchor",value:"middle",var:"var(--pf-chart-global--label--text-anchor, middle)"},_A={name:"--pf-chart-global--label--Fill",value:"#151515",var:"var(--pf-chart-global--label--Fill, #151515)"},Zoe={name:"--pf-chart-global--layout--Padding",value:50,var:"var(--pf-chart-global--layout--Padding, 50)"},Xoe={name:"--pf-chart-global--layout--Height",value:300,var:"var(--pf-chart-global--layout--Height, 300)"},Joe={name:"--pf-chart-global--layout--Width",value:450,var:"var(--pf-chart-global--layout--Width, 450)"},Qoe={name:"--pf-chart-global--stroke-line-cap",value:"round",var:"var(--pf-chart-global--stroke-line-cap, round)"},ele={name:"--pf-chart-global--stroke-line-join",value:"round",var:"var(--pf-chart-global--stroke-line-join, round)"},tle={name:"--pf-chart-area--data--Fill",value:"#151515",var:"var(--pf-chart-area--data--Fill, #151515)"},nle={name:"--pf-chart-area--Opacity",value:.3,var:"var(--pf-chart-area--Opacity, 0.3)"},rle={name:"--pf-chart-area--stroke--Width",value:2,var:"var(--pf-chart-area--stroke--Width, 2)"},ile={name:"--pf-chart-axis--axis--stroke--Width",value:1,var:"var(--pf-chart-axis--axis--stroke--Width, 1)"},ale={name:"--pf-chart-axis--axis--stroke--Color",value:"#d2d2d2",var:"var(--pf-chart-axis--axis--stroke--Color, #d2d2d2)"},ole={name:"--pf-chart-axis--axis--Fill",value:"transparent",var:"var(--pf-chart-axis--axis--Fill, transparent)"},lle={name:"--pf-chart-axis--axis-label--Padding",value:40,var:"var(--pf-chart-axis--axis-label--Padding, 40)"},sle={name:"--pf-chart-axis--axis-label--stroke--Color",value:"transparent",var:"var(--pf-chart-axis--axis-label--stroke--Color, transparent)"},ule={name:"--pf-chart-axis--grid--Fill",value:"none",var:"var(--pf-chart-axis--grid--Fill, none)"},cle={name:"--pf-chart-axis--grid--PointerEvents",value:"painted",var:"var(--pf-chart-axis--grid--PointerEvents, painted)"},fle={name:"--pf-chart-axis--tick--Fill",value:"transparent",var:"var(--pf-chart-axis--tick--Fill, transparent)"},dle={name:"--pf-chart-axis--tick--Size",value:5,var:"var(--pf-chart-axis--tick--Size, 5)"},hle={name:"--pf-chart-axis--tick--Width",value:1,var:"var(--pf-chart-axis--tick--Width, 1)"},mle={name:"--pf-chart-axis--tick-label--Fill",value:"#4f5255",var:"var(--pf-chart-axis--tick-label--Fill, #4f5255)"},gle={name:"--pf-chart-bar--Width",value:10,var:"var(--pf-chart-bar--Width, 10)"},ple={name:"--pf-chart-bar--data--stroke",value:"none",var:"var(--pf-chart-bar--data--stroke, none)"},vle={name:"--pf-chart-bar--data--Fill",value:"#151515",var:"var(--pf-chart-bar--data--Fill, #151515)"},yle={name:"--pf-chart-bar--data--Padding",value:8,var:"var(--pf-chart-bar--data--Padding, 8)"},ble={name:"--pf-chart-bar--data-stroke--Width",value:0,var:"var(--pf-chart-bar--data-stroke--Width, 0)"},_le={name:"--pf-chart-boxplot--max--Padding",value:8,var:"var(--pf-chart-boxplot--max--Padding, 8)"},xle={name:"--pf-chart-boxplot--max--stroke--Color",value:"#151515",var:"var(--pf-chart-boxplot--max--stroke--Color, #151515)"},Sle={name:"--pf-chart-boxplot--max--stroke--Width",value:1,var:"var(--pf-chart-boxplot--max--stroke--Width, 1)"},wle={name:"--pf-chart-boxplot--median--Padding",value:8,var:"var(--pf-chart-boxplot--median--Padding, 8)"},Ole={name:"--pf-chart-boxplot--median--stroke--Color",value:"#151515",var:"var(--pf-chart-boxplot--median--stroke--Color, #151515)"},Cle={name:"--pf-chart-boxplot--median--stroke--Width",value:1,var:"var(--pf-chart-boxplot--median--stroke--Width, 1)"},Ale={name:"--pf-chart-boxplot--min--Padding",value:8,var:"var(--pf-chart-boxplot--min--Padding, 8)"},Tle={name:"--pf-chart-boxplot--min--stroke--Width",value:1,var:"var(--pf-chart-boxplot--min--stroke--Width, 1)"},kle={name:"--pf-chart-boxplot--min--stroke--Color",value:"#151515",var:"var(--pf-chart-boxplot--min--stroke--Color, #151515)"},Ele={name:"--pf-chart-boxplot--lower-quartile--Padding",value:8,var:"var(--pf-chart-boxplot--lower-quartile--Padding, 8)"},Ple={name:"--pf-chart-boxplot--lower-quartile--Fill",value:"#8a8d90",var:"var(--pf-chart-boxplot--lower-quartile--Fill, #8a8d90)"},jle={name:"--pf-chart-boxplot--upper-quartile--Padding",value:8,var:"var(--pf-chart-boxplot--upper-quartile--Padding, 8)"},Mle={name:"--pf-chart-boxplot--upper-quartile--Fill",value:"#8a8d90",var:"var(--pf-chart-boxplot--upper-quartile--Fill, #8a8d90)"},Dle={name:"--pf-chart-boxplot--box--Width",value:20,var:"var(--pf-chart-boxplot--box--Width, 20)"},Ile={name:"--pf-chart-candelstick--data--stroke--Width",value:1,var:"var(--pf-chart-candelstick--data--stroke--Width, 1)"},$le={name:"--pf-chart-candelstick--data--stroke--Color",value:"#151515",var:"var(--pf-chart-candelstick--data--stroke--Color, #151515)"},Lle={name:"--pf-chart-candelstick--candle--positive--Color",value:"#fff",var:"var(--pf-chart-candelstick--candle--positive--Color, #fff)"},Fle={name:"--pf-chart-candelstick--candle--negative--Color",value:"#151515",var:"var(--pf-chart-candelstick--candle--negative--Color, #151515)"},Nle={name:"--pf-chart-errorbar--BorderWidth",value:8,var:"var(--pf-chart-errorbar--BorderWidth, 8)"},Ble={name:"--pf-chart-errorbar--data--Fill",value:"transparent",var:"var(--pf-chart-errorbar--data--Fill, transparent)"},Rle={name:"--pf-chart-errorbar--data--Opacity",value:1,var:"var(--pf-chart-errorbar--data--Opacity, 1)"},Wle={name:"--pf-chart-errorbar--data-stroke--Width",value:2,var:"var(--pf-chart-errorbar--data-stroke--Width, 2)"},zle={name:"--pf-chart-errorbar--data-stroke--Color",value:"#151515",var:"var(--pf-chart-errorbar--data-stroke--Color, #151515)"},Vle={name:"--pf-chart-legend--gutter--Width",value:20,var:"var(--pf-chart-legend--gutter--Width, 20)"},Ule={name:"--pf-chart-legend--orientation",value:"horizontal",var:"var(--pf-chart-legend--orientation, horizontal)"},Hle={name:"--pf-chart-legend--title--orientation",value:"top",var:"var(--pf-chart-legend--title--orientation, top)"},qle={name:"--pf-chart-legend--data--type",value:"square",var:"var(--pf-chart-legend--data--type, square)"},Gle={name:"--pf-chart-legend--title--Padding",value:2,var:"var(--pf-chart-legend--title--Padding, 2)"},Yle={name:"--pf-chart-line--data--Fill",value:"transparent",var:"var(--pf-chart-line--data--Fill, transparent)"},Kle={name:"--pf-chart-line--data--Opacity",value:1,var:"var(--pf-chart-line--data--Opacity, 1)"},Zle={name:"--pf-chart-line--data--stroke--Width",value:2,var:"var(--pf-chart-line--data--stroke--Width, 2)"},Xle={name:"--pf-chart-line--data--stroke--Color",value:"#151515",var:"var(--pf-chart-line--data--stroke--Color, #151515)"},Jle={name:"--pf-chart-pie--Padding",value:20,var:"var(--pf-chart-pie--Padding, 20)"},Qle={name:"--pf-chart-pie--data--Padding",value:8,var:"var(--pf-chart-pie--data--Padding, 8)"},ese={name:"--pf-chart-pie--data--stroke--Width",value:1,var:"var(--pf-chart-pie--data--stroke--Width, 1)"},tse={name:"--pf-chart-pie--data--stroke--Color",value:"transparent",var:"var(--pf-chart-pie--data--stroke--Color, transparent)"},nse={name:"--pf-chart-pie--labels--Padding",value:8,var:"var(--pf-chart-pie--labels--Padding, 8)"},rse={name:"--pf-chart-pie--Height",value:230,var:"var(--pf-chart-pie--Height, 230)"},ise={name:"--pf-chart-pie--Width",value:230,var:"var(--pf-chart-pie--Width, 230)"},ase={name:"--pf-chart-scatter--data--stroke--Color",value:"transparent",var:"var(--pf-chart-scatter--data--stroke--Color, transparent)"},ose={name:"--pf-chart-scatter--data--stroke--Width",value:0,var:"var(--pf-chart-scatter--data--stroke--Width, 0)"},lse={name:"--pf-chart-scatter--data--Opacity",value:1,var:"var(--pf-chart-scatter--data--Opacity, 1)"},sse={name:"--pf-chart-scatter--data--Fill",value:"#151515",var:"var(--pf-chart-scatter--data--Fill, #151515)"},use={name:"--pf-chart-stack--data--stroke--Width",value:1,var:"var(--pf-chart-stack--data--stroke--Width, 1)"},cse={name:"--pf-chart-tooltip--corner-radius",value:0,var:"var(--pf-chart-tooltip--corner-radius, 0)"},fse={name:"--pf-chart-tooltip--pointer-length",value:10,var:"var(--pf-chart-tooltip--pointer-length, 10)"},dse={name:"--pf-chart-tooltip--Fill",value:"#f0f0f0",var:"var(--pf-chart-tooltip--Fill, #f0f0f0)"},hse={name:"--pf-chart-tooltip--flyoutStyle--corner-radius",value:0,var:"var(--pf-chart-tooltip--flyoutStyle--corner-radius, 0)"},mse={name:"--pf-chart-tooltip--flyoutStyle--stroke--Width",value:0,var:"var(--pf-chart-tooltip--flyoutStyle--stroke--Width, 0)"},gse={name:"--pf-chart-tooltip--flyoutStyle--PointerEvents",value:"none",var:"var(--pf-chart-tooltip--flyoutStyle--PointerEvents, none)"},pse={name:"--pf-chart-tooltip--flyoutStyle--stroke--Color",value:"#151515",var:"var(--pf-chart-tooltip--flyoutStyle--stroke--Color, #151515)"},vse={name:"--pf-chart-tooltip--flyoutStyle--Fill",value:"#151515",var:"var(--pf-chart-tooltip--flyoutStyle--Fill, #151515)"},yse={name:"--pf-chart-tooltip--pointer--Width",value:20,var:"var(--pf-chart-tooltip--pointer--Width, 20)"},bse={name:"--pf-chart-tooltip--Padding",value:8,var:"var(--pf-chart-tooltip--Padding, 8)"},_se={name:"--pf-chart-tooltip--PointerEvents",value:"none",var:"var(--pf-chart-tooltip--PointerEvents, none)"},xse={name:"--pf-chart-voronoi--data--Fill",value:"transparent",var:"var(--pf-chart-voronoi--data--Fill, transparent)"},Sse={name:"--pf-chart-voronoi--data--stroke--Color",value:"transparent",var:"var(--pf-chart-voronoi--data--stroke--Color, transparent)"},wse={name:"--pf-chart-voronoi--data--stroke--Width",value:0,var:"var(--pf-chart-voronoi--data--stroke--Width, 0)"},xA={name:"--pf-chart-voronoi--labels--Fill",value:"#f0f0f0",var:"var(--pf-chart-voronoi--labels--Fill, #f0f0f0)"},Ose={name:"--pf-chart-voronoi--labels--Padding",value:8,var:"var(--pf-chart-voronoi--labels--Padding, 8)"},Cse={name:"--pf-chart-voronoi--labels--PointerEvents",value:"none",var:"var(--pf-chart-voronoi--labels--PointerEvents, none)"},Ase={name:"--pf-chart-voronoi--flyout--stroke--Width",value:1,var:"var(--pf-chart-voronoi--flyout--stroke--Width, 1)"},Tse={name:"--pf-chart-voronoi--flyout--PointerEvents",value:"none",var:"var(--pf-chart-voronoi--flyout--PointerEvents, none)"},kse={name:"--pf-chart-voronoi--flyout--stroke--Color",value:"#151515",var:"var(--pf-chart-voronoi--flyout--stroke--Color, #151515)"},Ese={name:"--pf-chart-voronoi--flyout--stroke--Fill",value:"#151515",var:"var(--pf-chart-voronoi--flyout--stroke--Fill, #151515)"},Pse=yA.value.replace(/ /g,""),jse=bA.value,SA=kp.value,sr={fontFamily:Pse,fontSize:SA,letterSpacing:jse,padding:Goe.value,stroke:Yoe.var,fill:_A.var},Aa=Object.assign(Object.assign({},sr),{textAnchor:Koe.value}),Hn={padding:Zoe.value,height:Xoe.value,width:Joe.value},Ep=Qoe.value,Pp=ele.value,Mse={area:Object.assign(Object.assign({},Hn),{style:{data:{fill:tle.var,fillOpacity:nle.value,strokeWidth:rle.value},labels:Aa}}),axis:Object.assign(Object.assign({},Hn),{style:{axis:{fill:ole.var,strokeWidth:ile.value,stroke:ale.var,strokeLinecap:Ep,strokeLinejoin:Pp},axisLabel:Object.assign(Object.assign({},Aa),{padding:lle.value,stroke:sle.var}),grid:{fill:ule.var,stroke:"none",pointerEvents:cle.value,strokeLinecap:Ep,strokeLinejoin:Pp},ticks:{fill:fle.var,size:dle.value,stroke:vA.var,strokeLinecap:Ep,strokeLinejoin:Pp,strokeWidth:hle.value},tickLabels:Object.assign(Object.assign({},sr),{fill:mle.var})}}),bar:Object.assign(Object.assign({},Hn),{barWidth:gle.value,style:{data:{fill:vle.var,padding:yle.value,stroke:ple.var,strokeWidth:ble.value},labels:sr}}),boxplot:Object.assign(Object.assign({},Hn),{style:{max:{padding:_le.value,stroke:xle.var,strokeWidth:Sle.value},maxLabels:sr,median:{padding:wle.value,stroke:Ole.var,strokeWidth:Cle.value},medianLabels:sr,min:{padding:Ale.value,stroke:kle.var,strokeWidth:Tle.value},minLabels:sr,q1:{fill:Ple.var,padding:Ele.value},q1Labels:sr,q3:{fill:Mle.var,padding:jle.value},q3Labels:sr},boxWidth:Dle.value}),candlestick:Object.assign(Object.assign({},Hn),{candleColors:{positive:Lle.var,negative:Fle.var},style:{data:{stroke:$le.var,strokeWidth:Ile.value},labels:Aa}}),chart:Object.assign({},Hn),errorbar:Object.assign(Object.assign({},Hn),{borderWidth:Nle.value,style:{data:{fill:Ble.var,opacity:Rle.value,stroke:zle.var,strokeWidth:Wle.value},labels:Aa}}),group:Object.assign({},Hn),legend:{gutter:Vle.value,orientation:Ule.value,titleOrientation:Hle.value,style:{data:{type:qle.value},labels:sr,title:Object.assign(Object.assign({},sr),{fontSize:SA,padding:Gle.value})}},line:Object.assign(Object.assign({},Hn),{style:{data:{fill:Yle.var,opacity:Kle.value,stroke:Xle.var,strokeWidth:Zle.value},labels:Aa}}),pie:{padding:Jle.value,style:{data:{padding:Qle.value,stroke:tse.var,strokeWidth:ese.value},labels:Object.assign(Object.assign({},sr),{padding:nse.value})},height:rse.value,width:ise.value},scatter:Object.assign(Object.assign({},Hn),{style:{data:{fill:sse.var,opacity:lse.value,stroke:ase.var,strokeWidth:ose.value},labels:Aa}}),stack:Object.assign(Object.assign({},Hn),{style:{data:{strokeWidth:use.value}}}),tooltip:{cornerRadius:cse.value,flyoutPadding:bse.value,flyoutStyle:{cornerRadius:hse.value,fill:vse.var,pointerEvents:gse.var,stroke:pse.var,strokeWidth:mse.var},pointerLength:fse.value,pointerWidth:yse.value,style:{fill:dse.var,pointerEvents:_se.var}},voronoi:Object.assign(Object.assign({},Hn),{style:{data:{fill:xse.var,stroke:Sse.var,strokeWidth:wse.value},labels:Object.assign(Object.assign({},Aa),{fill:xA.var,padding:Ose.value,pointerEvents:Cse.value}),flyout:{fill:Ese.var,pointerEvents:Tse.var,stroke:kse.var,strokeWidth:Ase.var}}})},Dse={name:"--pf-chart-donut--pie--Height",value:230,var:"var(--pf-chart-donut--pie--Height, 230)"},Ise={name:"--pf-chart-donut--pie--angle--Padding",value:1,var:"var(--pf-chart-donut--pie--angle--Padding, 1)"},$se={name:"--pf-chart-donut--pie--Padding",value:20,var:"var(--pf-chart-donut--pie--Padding, 20)"},Lse={name:"--pf-chart-donut--pie--Width",value:230,var:"var(--pf-chart-donut--pie--Width, 230)"},Fse={pie:{height:Dse.value,padding:$se.value,padAngle:Ise.value,width:Lse.value}},wA={name:"--pf-chart-donut--threshold--first--Color",value:"#f0f0f0",var:"var(--pf-chart-donut--threshold--first--Color, #f0f0f0)"},Nse={name:"--pf-chart-donut--threshold--second--Color",value:"#d2d2d2",var:"var(--pf-chart-donut--threshold--second--Color, #d2d2d2)"},Bse={name:"--pf-chart-donut--threshold--third--Color",value:"#b8bbbe",var:"var(--pf-chart-donut--threshold--third--Color, #b8bbbe)"},Rse={name:"--pf-chart-donut--utilization--dynamic--pie--Height",value:230,var:"var(--pf-chart-donut--utilization--dynamic--pie--Height, 230)"},Wse={name:"--pf-chart-donut--utilization--dynamic--pie--angle--Padding",value:1,var:"var(--pf-chart-donut--utilization--dynamic--pie--angle--Padding, 1)"},zse={name:"--pf-chart-donut--utilization--dynamic--pie--Padding",value:20,var:"var(--pf-chart-donut--utilization--dynamic--pie--Padding, 20)"},Vse={name:"--pf-chart-donut--utilization--dynamic--pie--Width",value:230,var:"var(--pf-chart-donut--utilization--dynamic--pie--Width, 230)"},Use={name:"--pf-chart-donut--utilization--static--pie--Padding",value:20,var:"var(--pf-chart-donut--utilization--static--pie--Padding, 20)"},Hse={pie:{height:Rse.value,padding:zse.value,padAngle:Wse.value,width:Vse.value}},qse={legend:{colorScale:[wA.var,Nse.var,Bse.var]},pie:{colorScale:[wA.var],padding:Use.value}},Pr={blue:"blue",cyan:"cyan",default:"blue",gold:"gold",gray:"gray",green:"green",multi:"multi",multiOrdered:"multi-ordered",multiUnordered:"multi-unordered",orange:"orange",purple:"purple"},Gse=qoe,Yse=Mse,Kse=Hse,OA=qse,Zse=Fse,Xse={name:"--pf-chart-global--label--Margin",value:8,var:"var(--pf-chart-global--label--Margin, 8)"},Jse={name:"--pf-chart-legend--position",value:"right",var:"var(--pf-chart-legend--position, right)"},Qse=yA.var,eue=bA.var,tue=kp.value,nue={label:{fontFamily:Qse,fontSize:tue,letterSpacing:eue,margin:Xse.value,fill:_A.var},legend:{margin:Mx.value,position:Jse.value}},rue={name:"--pf-chart-global--FontSize--2xl",value:24,var:"var(--pf-chart-global--FontSize--2xl, 24)"},iue={name:"--pf-chart-donut--label--subtitle--Fill",value:"#b8bbbe",var:"var(--pf-chart-donut--label--subtitle--Fill, #b8bbbe)"},aue={name:"--pf-chart-donut--label--title--Fill",value:"#151515",var:"var(--pf-chart-donut--label--title--Fill, #151515)"},oue={name:"--pf-chart-donut--label--subtitle--position",value:"center",var:"var(--pf-chart-donut--label--subtitle--position, center)"},lue={label:{subTitle:{fill:iue.var,fontSize:kp.value},subTitlePosition:oue.value,title:{fill:aue.var,fontSize:rue.value}}},sue={name:"--pf-chart-donut--threshold--warning--Color",value:"#f0ab00",var:"var(--pf-chart-donut--threshold--warning--Color, #f0ab00)"},uue={name:"--pf-chart-donut--threshold--danger--Color",value:"#c9190b",var:"var(--pf-chart-donut--threshold--danger--Color, #c9190b)"},cue={thresholds:{colorScale:[sue.var,uue.var]}},fue={name:"--pf-global--FontWeight--bold",value:"600",var:"var(--pf-global--FontWeight--bold)"},due={flyout:{padding:40},label:{fill:xA.var,fontWeight:fue.value}},hue={name:"--pf-chart-scatter--active--size",value:5,var:"var(--pf-chart-scatter--active--size, 5)"},mue={name:"--pf-chart-scatter--size",value:3,var:"var(--pf-chart-scatter--size, 3)"},gue={activeSize:hue.value,size:mue.value},Bt=nue,bs=lue,CA=cue,qn=due,AA=gue;var TA;(function(e){e.rtl="rtl",e.ltr="ltr",e.inherit="inherit"})(TA||(TA={}));var kA;(function(e){e.parallel="parallel",e.perpendicular="perpendicular",e.vertical="vertical"})(kA||(kA={}));const vn=e=>{var{style:t,textAnchor:n}=e,r=Re(e,["style","textAnchor"]);const i=o=>ae(Object.assign(Object.assign({},o),{textAnchor:n}),{fill:Bt.label.fill,fontFamily:Bt.label.fontFamily,fontSize:Bt.label.fontSize,letterSpacing:Bt.label.letterSpacing}),a=Array.isArray(t)?t.map(i):i(t);return F.createElement(wt,Object.assign({style:a,textAnchor:n},r))};vn.displayName="ChartLabel",Lt(vn,wt);const _s=e=>{var{constrainToVisibleArea:t=!1,labelComponent:n=F.createElement(vn,null),labelTextAnchor:r,themeColor:i,themeVariant:a,theme:o=rn(i)}=e,l=Re(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","themeVariant","theme"]);const s=F.cloneElement(n,Object.assign({textAnchor:r,theme:o},n.props));return F.createElement(kr,Object.assign({constrainToVisibleArea:t,labelComponent:s,theme:o},l))};_s.displayName="ChartTooltip",Lt(_s,kr);const Xf=e=>{var{constrainToVisibleArea:t=!0,flyoutComponent:n=F.createElement(Tp,null),labelTextAnchor:r="start",showPointer:i=!0,style:a,themeColor:o,themeVariant:l,theme:s=rn(o),centerOffset:u=dhe({offsetCursorDimensionX:!0,theme:s}),pointerOrientation:c=hhe({horizontal:!0,theme:s}),pointerLength:f=i&&s&&s.tooltip?s.tooltip.pointerLength:0,pointerWidth:d=s.tooltip.pointerWidth}=e,h=Re(e,["constrainToVisibleArea","flyoutComponent","labelTextAnchor","showPointer","style","themeColor","themeVariant","theme","centerOffset","pointerOrientation","pointerLength","pointerWidth"]);const g=_=>Object.assign(Object.assign({},_),{textAnchor:r}),p=Array.isArray(a)?a.map(g):g(a),y=()=>{let _=fe(f);return i&&_===0&&(_=s&&s.tooltip?fe(s.tooltip.pointerLength):10),F.cloneElement(n,Object.assign({pointerLength:_,pointerWidth:d},n.props))};return F.createElement(_s,Object.assign({centerOffset:u,constrainToVisibleArea:t,flyoutComponent:y(),labelTextAnchor:r,pointerOrientation:c,style:p,theme:s},h))};Xf.displayName="ChartCursorTooltip",Lt(Xf,kr);const pue=(e,t)=>{const n=Roe(e,t),r=e==="cursor"||t==="cursor",i=e==="voronoi"||t==="voronoi";return r&&(n.defaultProps.cursorLabelComponent=F.createElement(vn,{textAnchor:"start"}),n.defaultProps.cursorComponent=F.createElement(Ar,{style:{stroke:Sne.var}})),i&&(n.defaultProps.labelComponent=F.createElement(Xf,null)),n},jp=({className:e})=>{let t;return e&&(t=e.replace(/VictoryContainer/g,"").replace(/pf-c-chart/g,"").replace(/\s+/g," ").trim()),t&&t.length?`pf-c-chart ${t}`:"pf-c-chart"},Jf=({height:e,padding:t,width:n})=>{const{top:r,bottom:i,left:a,right:o}=lt({padding:t}),l=wr({height:e,width:n,padding:t}),s=(n-l*2-a-o)/2,u=(e-l*2-r-i)/2;return{x:l+a+s,y:l+r+u}},EA=({dx:e=0,height:t,labelPosition:n,legendPosition:r,padding:i,width:a})=>{const o=Jf({height:t,padding:i,width:a}),l=wr({height:t,width:a,padding:i});switch(n){case"bottom":case"center":return o.x+e;case"right":switch(r){case"bottom":return o.x+Bt.label.margin+e+l;case"right":return o.x+Bt.label.margin+e;default:return e}default:return e}},PA=({dy:e=0,height:t,labelPosition:n,padding:r,width:i})=>{const a=Jf({height:t,padding:r,width:i}),o=wr({height:t,width:i,padding:r});switch(n){case"center":case"right":return a.y+e;case"bottom":return a.y+o+Bt.label.margin*2+e;default:return e}},vue=({text:e,theme:t})=>{const n=t.legend.style.labels;return ha(e,Object.assign({},n))};function yue(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==void 0&&(n=n===void 0?a:n+a)}return n}var bue=yue,_ue=bue,xue=Oi;function Sue(e){return e&&e.length?_ue(e,xue):0}var wue=Sue;const Qf=Ae(wue);function jA(e){return Tue(e)||Aue(e)||Cue(e)||Oue()}function Oue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
262
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cue(e,t){if(e){if(typeof e=="string")return Mp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mp(e,t)}}function Aue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tue(e){if(Array.isArray(e))return Mp(e)}function Mp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MA(Object(n),!0).forEach(function(r){kue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eue=function(e){var t=e.colorScale;return typeof t=="string"?B0(t):t||[]},IA=function(e){var t=e.data,n=e.style;return t.map(function(r,i){var a=ae({},r.labels,n.labels);return Ze(a,{datum:r,index:i,data:t})})},Pue=function(e,t){var n=e.style||{};t=t||{};var r={height:"100%",width:"100%"};return{parent:ae(n.parent,t.parent,r),data:ae({},n.data,t.data),labels:ae({},n.labels,t.labels),border:ae({},n.border,t.border),title:ae({},n.title,t.title)}},$A=function(e){var t=e.orientation,n=e.theme,r=n&&n.legend&&n.legend.style?n.legend.style:{},i=Pue(e,r),a=Eue(e),o=t==="horizontal",l=lt({padding:e.borderPadding});return R({},e,{style:i,isHorizontal:o,colorScale:a,borderPadding:l})},jue=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?t%n:Math.floor(t/n):r?t:0},Mue=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?Math.floor(t/n):t%n:r?0:t},LA=function(e){var t=e.data,n=e.style&&e.style.data||{},r=IA(e);return t.map(function(i,a){var o=i.symbol||{},l=r[a].fontSize,s=o.size||n.size||l/2.5,u=e.symbolSpacer||Math.max(s,l);return DA(DA({},i),{},{size:s,symbolSpacer:u,fontSize:l,textSize:ha(i.name,r[a]),column:jue(e,a),row:Mue(e,a)})})},FA=function(e,t){var n=e.gutter||{},r=typeof n=="object"?(n.left||0)+(n.right||0):n||0,i=Of(t,"column"),a=Ke(i);return a.reduce(function(o,l,s){var u=i[l].map(function(c){return c.textSize.width+c.size+c.symbolSpacer+r});return o[s]=Math.max.apply(Math,jA(u)),o},[])},NA=function(e,t){var n=e.rowGutter||{},r=typeof n=="object"?(n.top||0)+(n.bottom||0):n||0,i=Of(t,"row");return Ke(i).reduce(function(a,o,l){var s=i[o],u=s.map(function(c){return c.textSize.height+c.symbolSpacer+r});return a[l]=Math.max.apply(Math,jA(u)),a},[])},BA=function(e){var t=e.style&&e.style.title||{},n=ha(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},Due=function(e,t,n){var r=e.column,i=e.row;return{x:us(r).reduce(function(a,o){return a+=n[o],a},0),y:us(i).reduce(function(a,o){return a+=t[o],a},0)}},Iue=function(e,t){var n={textAnchor:e==="right"?"end":"start",verticalAnchor:e==="bottom"?"end":"start"};if(t){var r=e==="top"||e==="bottom";return{textAnchor:r?"middle":n.textAnchor,verticalAnchor:r?n.verticalAnchor:"middle"}}return n},$ue=function(e){var t=e.titleOrientation,n=e.centerTitle,r=e.titleComponent,i=e.style&&e.style.title||{},a=r.props&&r.props.style||{},o=Iue(t,n);return Array.isArray(a)?a.map(function(l){return ae({},l,i,o)}):ae({},a,i,o)},Lue=function(e,t){var n=e.title,r=e.titleOrientation,i=e.centerTitle,a=e.borderPadding,o=t.height,l=t.width,s=$ue(e),u=Array.isArray(s)?s[0].padding:s.padding,c=r==="top"||r==="bottom",f=r==="bottom"?"bottom":"top",d=r==="right"?"right":"left",h={x:i?l/2:a[f]+(u||0),y:i?o/2:a[d]+(u||0)},g=function(){return a[r]+(u||0)},p=c?h.x:g(),y=c?g():h.y;return{x:r==="right"?e.x+l-p:e.x+p,y:r==="bottom"?e.y+o-y:e.y+y,style:s,text:n}},Fue=function(e,t,n){var r=e.x,i=e.y,a=e.borderPadding,o=e.style,l=(t||0)+a.top+a.bottom,s=(n||0)+a.left+a.right;return{x:r,y:i,height:l,width:s,style:R({fill:"none"},o.border)}},RA=function(e,t){var n=St(e,t,"legend");e=R({},n,$A(n));var r=e,i=r.title,a=r.titleOrientation,o=LA(e),l=FA(e,o),s=NA(e,o),u=i?BA(e):{height:0,width:0};return{height:a==="left"||a==="right"?Math.max(Qf(s),u.height):Qf(s)+u.height,width:a==="left"||a==="right"?Qf(l)+u.width:Math.max(Qf(l),u.width)}},Nue=function(e,t){var n=St(e,t,"legend");e=R({},n,$A(n));var r=e,i=r.data,a=r.standalone,o=r.theme,l=r.padding,s=r.style,u=r.colorScale,c=r.gutter,f=r.rowGutter,d=r.borderPadding,h=r.title,g=r.titleOrientation,p=r.name,y=r.x,_=y===void 0?0:y,b=r.y,S=b===void 0?0:b,O=LA(e),w=FA(e,O),A=NA(e,O),T=IA(e),k=h?BA(e):{height:0,width:0},j={x:g==="left"?k.width:0,y:g==="top"?k.height:0},N={x:c&&typeof c=="object"&&c.left||0,y:f&&typeof f=="object"&&f.top||0},M=RA(e,t),E=M.height,I=M.width,D=Fue(e,E,I),W=Lue(e,D),X={parent:{data:i,standalone:a,theme:o,padding:l,name:p,height:e.height,width:e.width,style:s.parent},all:{border:D,title:W}};return O.reduce(function(re,ne,ee){var z=u[ee%u.length],Z=ae({},ne.symbol,s.data,{fill:z}),q=pa(ne.eventKey)?ee:ne.eventKey,Y=Due(ne,A,w),G=S+d.top+ne.symbolSpacer,ie=_+d.left+ne.symbolSpacer,B={index:ee,data:i,datum:ne,symbol:Z.type||Z.symbol||"circle",size:ne.size,style:Z,y:G+Y.y+j.y+N.y,x:ie+Y.x+j.x+N.x},se={datum:ne,data:i,text:ne.name,style:T[ee],y:B.y,x:B.x+ne.symbolSpacer+ne.size/2};return re[q]={data:B,labels:se},re},X)};function ed(e){return zue(e)||Wue(e)||Rue(e)||Bue()}function Bue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
262
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cue(e,t){if(e){if(typeof e=="string")return Mp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mp(e,t)}}function Aue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tue(e){if(Array.isArray(e))return Mp(e)}function Mp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MA(Object(n),!0).forEach(function(r){kue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eue=function(e){var t=e.colorScale;return typeof t=="string"?B0(t):t||[]},IA=function(e){var t=e.data,n=e.style;return t.map(function(r,i){var a=ae({},r.labels,n.labels);return Ze(a,{datum:r,index:i,data:t})})},Pue=function(e,t){var n=e.style||{};t=t||{};var r={height:"100%",width:"100%"};return{parent:ae(n.parent,t.parent,r),data:ae({},n.data,t.data),labels:ae({},n.labels,t.labels),border:ae({},n.border,t.border),title:ae({},n.title,t.title)}},$A=function(e){var t=e.orientation,n=e.theme,r=n&&n.legend&&n.legend.style?n.legend.style:{},i=Pue(e,r),a=Eue(e),o=t==="horizontal",l=lt({padding:e.borderPadding});return R({},e,{style:i,isHorizontal:o,colorScale:a,borderPadding:l})},jue=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?t%n:Math.floor(t/n):r?t:0},Mue=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?Math.floor(t/n):t%n:r?0:t},LA=function(e){var t=e.data,n=e.style&&e.style.data||{},r=IA(e);return t.map(function(i,a){var o=i.symbol||{},l=r[a].fontSize,s=o.size||n.size||l/2.5,u=e.symbolSpacer||Math.max(s,l);return DA(DA({},i),{},{size:s,symbolSpacer:u,fontSize:l,textSize:ha(i.name,r[a]),column:jue(e,a),row:Mue(e,a)})})},FA=function(e,t){var n=e.gutter||{},r=typeof n=="object"?(n.left||0)+(n.right||0):n||0,i=Of(t,"column"),a=Ke(i);return a.reduce(function(o,l,s){var u=i[l].map(function(c){return c.textSize.width+c.size+c.symbolSpacer+r});return o[s]=Math.max.apply(Math,jA(u)),o},[])},NA=function(e,t){var n=e.rowGutter||{},r=typeof n=="object"?(n.top||0)+(n.bottom||0):n||0,i=Of(t,"row");return Ke(i).reduce(function(a,o,l){var s=i[o],u=s.map(function(c){return c.textSize.height+c.symbolSpacer+r});return a[l]=Math.max.apply(Math,jA(u)),a},[])},BA=function(e){var t=e.style&&e.style.title||{},n=ha(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},Due=function(e,t,n){var r=e.column,i=e.row;return{x:us(r).reduce(function(a,o){return a+=n[o],a},0),y:us(i).reduce(function(a,o){return a+=t[o],a},0)}},Iue=function(e,t){var n={textAnchor:e==="right"?"end":"start",verticalAnchor:e==="bottom"?"end":"start"};if(t){var r=e==="top"||e==="bottom";return{textAnchor:r?"middle":n.textAnchor,verticalAnchor:r?n.verticalAnchor:"middle"}}return n},$ue=function(e){var t=e.titleOrientation,n=e.centerTitle,r=e.titleComponent,i=e.style&&e.style.title||{},a=r.props&&r.props.style||{},o=Iue(t,n);return Array.isArray(a)?a.map(function(l){return ae({},l,i,o)}):ae({},a,i,o)},Lue=function(e,t){var n=e.title,r=e.titleOrientation,i=e.centerTitle,a=e.borderPadding,o=t.height,l=t.width,s=$ue(e),u=Array.isArray(s)?s[0].padding:s.padding,c=r==="top"||r==="bottom",f=r==="bottom"?"bottom":"top",d=r==="right"?"right":"left",h={x:i?l/2:a[f]+(u||0),y:i?o/2:a[d]+(u||0)},g=function(){return a[r]+(u||0)},p=c?h.x:g(),y=c?g():h.y;return{x:r==="right"?e.x+l-p:e.x+p,y:r==="bottom"?e.y+o-y:e.y+y,style:s,text:n}},Fue=function(e,t,n){var r=e.x,i=e.y,a=e.borderPadding,o=e.style,l=(t||0)+a.top+a.bottom,s=(n||0)+a.left+a.right;return{x:r,y:i,height:l,width:s,style:R({fill:"none"},o.border)}},RA=function(e,t){var n=St(e,t,"legend");e=R({},n,$A(n));var r=e,i=r.title,a=r.titleOrientation,o=LA(e),l=FA(e,o),s=NA(e,o),u=i?BA(e):{height:0,width:0};return{height:a==="left"||a==="right"?Math.max(Qf(s),u.height):Qf(s)+u.height,width:a==="left"||a==="right"?Qf(l)+u.width:Math.max(Qf(l),u.width)}},Nue=function(e,t){var n=St(e,t,"legend");e=R({},n,$A(n));var r=e,i=r.data,a=r.standalone,o=r.theme,l=r.padding,s=r.style,u=r.colorScale,c=r.gutter,f=r.rowGutter,d=r.borderPadding,h=r.title,g=r.titleOrientation,p=r.name,y=r.x,_=y===void 0?0:y,b=r.y,S=b===void 0?0:b,O=LA(e),w=FA(e,O),A=NA(e,O),T=IA(e),k=h?BA(e):{height:0,width:0},j={x:g==="left"?k.width:0,y:g==="top"?k.height:0},N={x:c&&typeof c=="object"&&c.left||0,y:f&&typeof f=="object"&&f.top||0},M=RA(e,t),E=M.height,D=M.width,I=Fue(e,E,D),W=Lue(e,I),Z={parent:{data:i,standalone:a,theme:o,padding:l,name:p,height:e.height,width:e.width,style:s.parent},all:{border:I,title:W}};return O.reduce(function(ne,re,J){var z=u[J%u.length],X=ae({},re.symbol,s.data,{fill:z}),H=pa(re.eventKey)?J:re.eventKey,Y=Due(re,A,w),G=S+d.top+re.symbolSpacer,ie=_+d.left+re.symbolSpacer,B={index:J,data:i,datum:re,symbol:X.type||X.symbol||"circle",size:re.size,style:X,y:G+Y.y+j.y+N.y,x:ie+Y.x+j.x+N.x},se={datum:re,data:i,text:re.name,style:T[J],y:B.y,x:B.x+re.symbolSpacer+re.size/2};return ne[H]={data:B,labels:se},ne},Z)};function ed(e){return zue(e)||Wue(e)||Rue(e)||Bue()}function Bue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
263
263
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rue(e,t){if(e){if(typeof e=="string")return Dp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dp(e,t)}}function Wue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zue(e){if(Array.isArray(e))return Dp(e)}function Dp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uue(e,t,n){return t&&WA(e.prototype,t),n&&WA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ip(e,t)}function Ip(e,t){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ip(e,t)}function que(e){var t=Kue();return function(){var r=td(e),i;if(t){var a=td(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Gue(this,i)}}function Gue(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yue(e)}function Yue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kue(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function td(e){return td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},td(e)}var $p={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},Zue=[{name:"Series 1"},{name:"Series 2"}],Ni=function(e){Hue(n,e);var t=que(n);function n(){return Vue(this,n),t.apply(this,arguments)}return Uue(n,[{key:"renderChildren",value:function(i){var a=this,o=i.dataComponent,l=i.labelComponent,s=i.title,u=this.dataKeys.map(function(p,y){if(p!=="all"){var _=a.getComponentProps(o,"data",y);return x.cloneElement(o,_)}}).filter(Boolean),c=this.dataKeys.map(function(p,y){if(p!=="all"){var _=a.getComponentProps(l,"labels",y);if(_.text!==void 0&&_.text!==null)return x.cloneElement(l,_)}}).filter(Boolean),f=this.getComponentProps(i.borderComponent,"border","all"),d=x.cloneElement(i.borderComponent,f);if(s){var h=this.getComponentProps(i.title,"title","all"),g=x.cloneElement(i.titleComponent,h);return[d].concat(ed(u),[g],ed(c))}return[d].concat(ed(u),ed(c))}},{key:"render",value:function(){var i=this.constructor.role,a=St(this.props,$p,i),o=[this.renderChildren(a)];return a.standalone?this.renderContainer(a.containerComponent,o):x.cloneElement(a.groupComponent,{},o)}}]),n}(x.Component);Ni.displayName="VictoryLegend",Ni.role="legend",Ni.propTypes={borderComponent:m.element,borderPadding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),centerTitle:m.bool,colorScale:m.oneOfType([m.arrayOf(m.string),m.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:m.element,data:m.arrayOf(m.shape({name:m.string.isRequired,label:m.object,symbol:m.object})),dataComponent:m.element,eventKey:m.oneOfType([m.func,ct([ut,_e]),m.string]),events:m.arrayOf(m.shape({target:m.oneOf(["data","labels","parent"]),eventKey:m.oneOfType([m.array,ct([ut,_e]),m.string]),eventHandlers:m.object})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ct([ut,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.element,gutter:m.oneOfType([m.number,m.shape({left:m.number,right:m.number})]),height:_e,itemsPerRow:_e,labelComponent:m.element,name:m.string,orientation:m.oneOf(["horizontal","vertical"]),padding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),rowGutter:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number})]),sharedEvents:m.shape({events:m.array,getEventState:m.func}),standalone:m.bool,style:m.shape({border:m.object,data:m.object,labels:m.object,parent:m.object,title:m.object}),symbolSpacer:m.number,theme:m.object,title:m.oneOfType([m.string,m.array]),titleComponent:m.element,titleOrientation:m.oneOf(["top","bottom","left","right"]),width:_e,x:_e,y:_e},Ni.defaultProps={borderComponent:x.createElement(eg,null),data:Zue,containerComponent:x.createElement(ze,null),dataComponent:x.createElement(Xc,null),groupComponent:x.createElement("g",null),labelComponent:x.createElement(wt,null),standalone:!0,theme:Cr.grayscale,titleComponent:x.createElement(wt,null)},Ni.getBaseProps=function(e){return Nue(e,$p)},Ni.getDimensions=function(e){return RA(e,$p)},Ni.expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];const xs=ya(Ni),zA=({allowWrap:e=!0,chartType:t="chart",colorScale:n,dx:r=0,dy:i=0,height:a,legendComponent:o,padding:l,patternScale:s,position:u=Bt.legend.position,theme:c,width:f,orientation:d=c.legend.orientation})=>{const h=o.props?o.props:{},g=e?Jue({chartType:t,dx:r,height:a,legendData:h.data,legendOrientation:h.legendOrientation?h.legendOrientation:d,legendPosition:u,legendProps:h,padding:l,theme:c,width:f}):void 0,p=ae({},o.props,{itemsPerRow:g}),y=Que({chartType:t,dx:r,height:a,legendData:p.data,legendOrientation:p.legendOrientation?p.legendOrientation:d,legendPosition:u,legendProps:p,padding:l,theme:c,width:f}),_=ece({chartType:t,dy:i,height:a,legendData:p.data,legendOrientation:p.legendOrientation?p.legendOrientation:d,legendProps:p,legendPosition:u,padding:l,theme:c,width:f}),b=ae({},o.props,{colorScale:n,itemsPerRow:g,orientation:d,patternScale:s,standalone:!1,theme:c,x:y>0?y:0,y:_>0?_:0});return F.cloneElement(o,b)},Bi=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>e||n.data?xs.getDimensions(Object.assign({data:e,orientation:t,theme:r},n)):{},Xue=({dx:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:a,padding:o,theme:l,width:s})=>{const{left:u,right:c}=lt({padding:o}),f={height:t,width:s-u-c},d=Bi({legendData:r,legendOrientation:i,legendProps:a,theme:l});let h=0;switch(n){case"bottom-left":h=u+e;break;case"right":h=f.width+Bt.legend.margin+u+e;break;default:h=e;break}return s-h>d.width},Jue=({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:a,padding:o,theme:l,width:s})=>{let u=r?r.length:0;for(let c=u;c>0;c--)if(Xue({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:Object.assign(Object.assign({},a),{itemsPerRow:c}),padding:o,theme:l,width:s})){u=c;break}return u},Que=e=>{var{chartType:t}=e,n=Re(e,["chartType"]);return t==="pie"?ice(n):nce(n)},ece=e=>{var{chartType:t}=e,n=Re(e,["chartType"]);switch(t){case"pie":return ace(n);case"bullet":return tce(n);default:return rce(n)}},tce=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:a,padding:o,theme:l,width:s})=>{const{left:u,right:c}=lt({padding:o}),f={height:t,width:s-u-c};switch(n){case"bottom":case"bottom-left":return f.height+Bt.legend.margin+e;case"right":{const d=Bi({legendData:r,legendOrientation:i,legendProps:a,theme:l}),h=g=>g&&g.length>0?17:0;return(f.height-d.height)/2+h(r)}default:return e}},nce=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:i,legendProps:a,padding:o,theme:l,width:s})=>{const{top:u,bottom:c,left:f,right:d}=lt({padding:o}),h={height:Math.abs(t-(c+u)),width:Math.abs(s-(f+d))},g=Bi({legendData:n,legendOrientation:r,legendProps:a,theme:l});switch(i){case"bottom":return s>g.width?Math.round((s-g.width)/2)+e:e;case"bottom-left":return f+e;case"right":return h.width+Bt.legend.margin+f+e;default:return e}},rce=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:a,padding:o,theme:l,width:s})=>{const{top:u,bottom:c,left:f,right:d}=lt({padding:o}),h={height:Math.abs(t-(c+u)),width:Math.abs(s-(f+d))};switch(n){case"bottom":case"bottom-left":return h.height+Bt.legend.margin*2+u+e;case"right":{const g=Bi({legendData:r,legendOrientation:i,legendProps:a,theme:l}),p=h.height/2+u,y=_=>_&&_.length>0?2:0;return p-g.height/2+y(r)}default:return e}},ice=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:i,legendProps:a,padding:o,theme:l,width:s})=>{const u=Jf({height:t,padding:o,width:s}),c=wr({height:t,width:s,padding:o}),f=Bi({legendData:n,legendOrientation:r,legendProps:a,theme:l});switch(i){case"bottom":return s>f.width?Math.round((s-f.width)/2)+e:e;case"right":return u.x+Bt.label.margin+e+c;default:return e}},ace=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:a,padding:o,theme:l,width:s})=>{const u=Jf({height:t,padding:o,width:s}),c=wr({height:t,width:s,padding:o});switch(n){case"bottom":return u.y+Bt.legend.margin+c+e;case"right":{const f=Bi({legendData:r,legendOrientation:i,legendProps:a,theme:l}),d=h=>h&&h.length>0?2:0;return u.y-f.height/2+d(r)}default:return e}},On=(e,t,n)=>typeof t=="number"?t:typeof t=="object"&&Object.keys(t).length>0?t[e]||0:On(e,n,0),oce=[{d:"M 0 0 L 5 5 M 4.5 -0.5 L 5.5 0.5 M -0.5 4.5 L 0.5 5.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 5 L 5 0 M -0.5 0.5 L 0.5 -0.5 M 4.5 5.5 L 5.5 4.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 2 0 L 2 5 M 4 0 L 4 5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 2 L 5 2 M 0 4 L 5 4",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 1.5 L 2.5 1.5 L 2.5 0 M 2.5 5 L 2.5 3.5 L 5 3.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 0 L 5 10 L 10 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 3 L 8 3 L 8 8 L 3 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 5 5 m -4 0 a 4 4 0 1 1 8 0 a 4 4 0 1 1 -8 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 2 5 L 5 2 L 8 5 L 5 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 0 L 3 10 M 8 0 L 8 10",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 10 3 L 5 3 L 5 0 M 5 10 L 5 7 L 0 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 3 L 10 3 M 0 8 L 10 8",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 3 L 5 3 L 5 0 M 5 10 L 5 7 L 10 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0}],lce=()=>cc("pf-pattern"),VA=(e,t)=>`${e}:${t}`,Lp=({colorScale:e,offset:t=0,patternId:n,patternUnshiftIndex:r=0})=>{const i=[...oce];return r>0&&r<i.length&&i.unshift(i.splice(r,1)[0]),F.createElement(F.Fragment,{key:"defs"},F.createElement("defs",null,e.map((o,l)=>{const s=i[(l+t)%i.length],{d:u,fill:c,stroke:f=o,strokeWidth:d}=s,h=Re(s,["d","fill","stroke","strokeWidth"]),g=VA(n,l);return F.createElement("pattern",Object.assign({id:g,key:g},h),F.createElement("path",{d:u,stroke:f,strokeWidth:d,fill:c}))})))},sce=(e,t)=>e.map((n,r)=>`url(#${VA(t,r)})`),uce=(e,t)=>{const n=[];return(e||t).forEach(i=>n.push(i)),n},cce=(e,t)=>t?e.map((n,r)=>{const i=t[r%t.length];return Object.assign(Object.assign({},i&&{_fill:i}),n)}):e,fce=({colorScale:e,patternId:t,patternScale:n})=>{if(n)return n;const r=sce(e,t);return r&&r.length>0?r:void 0},Fp=({colorScale:e,hasPatterns:t,patternScale:n,themeColorScale:r})=>{const i=uce(e,r);let a=n,o=!n&&t!==void 0;const l=F.useMemo(()=>o?lce():void 0,[o]);if(o&&(a=fce({colorScale:i,patternId:l,patternScale:n})),Array.isArray(t))for(let s=0;s<a.length;s++)s<t.length&&t[s]||(a[s]=null);else t===!1&&(a=void 0,o=!1);return{defaultColorScale:i,defaultPatternScale:a,isPatternDefs:o,patternId:l}},dce=({children:e,patternScale:t})=>F.Children.toArray(e).map((n,r)=>{if(F.isValidElement(n)){const i=Re(n.props,[]),a=i.style?Object.assign({},i.style):{};if(t){const l=t[r%t.length];a.data=Object.assign(Object.assign({},l&&{fill:l}),a.data)}return F.cloneElement(n,Object.assign(Object.assign(Object.assign({},t&&{patternScale:t}),i),{style:a}))}return n});var nd={exports:{}};nd.exports,function(e,t){var n=rr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function s(u,c){if(c)return u.slice();var f=u.length,d=l?l(f):new u.constructor(f);return u.copy(d),d}e.exports=s}(nd,nd.exports);var hce=nd.exports,UA=R1;function mce(e){var t=new e.constructor(e.byteLength);return new UA(t).set(new UA(e)),t}var gce=mce,HA=oo,qA=HA?HA.prototype:void 0;qA&&qA.valueOf;var pce=gce;function vce(e,t){var n=t?pce(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var yce=vce,bce=np,_ce=Im,xce=Tl;function Sce(e){return typeof e.constructor=="function"&&!xce(e)?bce(_ce(e)):{}}var wce=Sce,GA=jl;GA&&GA.isMap;var YA=jl;YA&&YA.isSet;var Oce=Ml,Cce=ia;function Ace(e,t,n){(n!==void 0&&!Cce(e[t],n)||n===void 0&&!(t in e))&&Oce(e,t,n)}var KA=Ace;function Tce(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ZA=Tce,kce=n1,Ece=Ru;function Pce(e){return kce(e,Ece(e))}var jce=Pce,XA=KA,Mce=hce,Dce=yce,Ice=DC,$ce=wce,JA=El,QA=Ft,Lce=ng,Fce=$u,Nce=Du,Bce=xn,Rce=h5,Wce=Fu,eT=ZA,zce=jce;function Vce(e,t,n,r,i,a,o){var l=eT(e,n),s=eT(t,n),u=o.get(s);if(u){XA(e,n,u);return}var c=a?a(l,s,n+"",e,t,o):void 0,f=c===void 0;if(f){var d=QA(s),h=!d&&Fce(s),g=!d&&!h&&Wce(s);c=s,d||h||g?QA(l)?c=l:Lce(l)?c=Ice(l):h?(f=!1,c=Mce(s,!0)):g?(f=!1,c=Dce(s,!0)):c=[]:Rce(s)||JA(s)?(c=l,JA(l)?c=zce(l):(!Bce(l)||Nce(l))&&(c=$ce(s))):f=!1}f&&(o.set(s,c),i(c,s,r,a,o),o.delete(s)),XA(e,n,c)}var Uce=Vce,Hce=Om,qce=KA,Gce=u5,Yce=Uce,Kce=xn,Zce=Ru,Xce=ZA;function tT(e,t,n,r,i){e!==t&&Gce(t,function(a,o){if(i||(i=new Hce),Kce(a))Yce(e,t,o,n,tT,r,i);else{var l=r?r(Xce(e,o),a,o+"",e,t,i):void 0;l===void 0&&(l=a),qce(e,o,l)}},Zce)}var Jce=tT,Qce=Jce,efe=s1,tfe=efe(function(e,t,n){Qce(e,t,n)}),nfe=tfe;const Np=Ae(nfe),rfe={name:"--pf-chart-theme--blue--ColorScale--100",value:"#06c",var:"var(--pf-chart-theme--blue--ColorScale--100, #06c)"},ife={name:"--pf-chart-theme--blue--ColorScale--200",value:"#8bc1f7",var:"var(--pf-chart-theme--blue--ColorScale--200, #8bc1f7)"},afe={name:"--pf-chart-theme--blue--ColorScale--300",value:"#002f5d",var:"var(--pf-chart-theme--blue--ColorScale--300, #002f5d)"},ofe={name:"--pf-chart-theme--blue--ColorScale--400",value:"#519de9",var:"var(--pf-chart-theme--blue--ColorScale--400, #519de9)"},lfe={name:"--pf-chart-theme--blue--ColorScale--500",value:"#004b95",var:"var(--pf-chart-theme--blue--ColorScale--500, #004b95)"},ui=e=>{const{COLOR_SCALE:t}=e;return{area:{colorScale:t,style:{data:{fill:t[0]}}},axis:{colorScale:t},bar:{colorScale:t,style:{data:{fill:t[0]}}},boxplot:{colorScale:t},candlestick:{colorScale:t},chart:{colorScale:t},errorbar:{colorScale:t},group:{colorScale:t},legend:{colorScale:t},line:{colorScale:t,style:{data:{stroke:t[0]}}},pie:{colorScale:t},scatter:{colorScale:t},stack:{colorScale:t},voronoi:{colorScale:t}}},sfe=[rfe.var,ife.var,afe.var,ofe.var,lfe.var],nT=ui({COLOR_SCALE:sfe}),ufe={name:"--pf-chart-theme--cyan--ColorScale--100",value:"#009596",var:"var(--pf-chart-theme--cyan--ColorScale--100, #009596)"},cfe={name:"--pf-chart-theme--cyan--ColorScale--200",value:"#a2d9d9",var:"var(--pf-chart-theme--cyan--ColorScale--200, #a2d9d9)"},ffe={name:"--pf-chart-theme--cyan--ColorScale--300",value:"#003737",var:"var(--pf-chart-theme--cyan--ColorScale--300, #003737)"},dfe={name:"--pf-chart-theme--cyan--ColorScale--400",value:"#73c5c5",var:"var(--pf-chart-theme--cyan--ColorScale--400, #73c5c5)"},hfe={name:"--pf-chart-theme--cyan--ColorScale--500",value:"#005f60",var:"var(--pf-chart-theme--cyan--ColorScale--500, #005f60)"},mfe=[ufe.var,cfe.var,ffe.var,dfe.var,hfe.var],gfe=ui({COLOR_SCALE:mfe}),pfe={name:"--pf-chart-theme--gold--ColorScale--100",value:"#f4c145",var:"var(--pf-chart-theme--gold--ColorScale--100, #f4c145)"},vfe={name:"--pf-chart-theme--gold--ColorScale--200",value:"#f9e0a2",var:"var(--pf-chart-theme--gold--ColorScale--200, #f9e0a2)"},yfe={name:"--pf-chart-theme--gold--ColorScale--300",value:"#c58c00",var:"var(--pf-chart-theme--gold--ColorScale--300, #c58c00)"},bfe={name:"--pf-chart-theme--gold--ColorScale--400",value:"#f6d173",var:"var(--pf-chart-theme--gold--ColorScale--400, #f6d173)"},_fe={name:"--pf-chart-theme--gold--ColorScale--500",value:"#f0ab00",var:"var(--pf-chart-theme--gold--ColorScale--500, #f0ab00)"},xfe=[pfe.var,vfe.var,yfe.var,bfe.var,_fe.var],Sfe=ui({COLOR_SCALE:xfe}),wfe={name:"--pf-chart-theme--gray--ColorScale--100",value:"#b8bbbe",var:"var(--pf-chart-theme--gray--ColorScale--100, #b8bbbe)"},Ofe={name:"--pf-chart-theme--gray--ColorScale--200",value:"#f0f0f0",var:"var(--pf-chart-theme--gray--ColorScale--200, #f0f0f0)"},Cfe={name:"--pf-chart-theme--gray--ColorScale--300",value:"#6a6e73",var:"var(--pf-chart-theme--gray--ColorScale--300, #6a6e73)"},Afe={name:"--pf-chart-theme--gray--ColorScale--400",value:"#d2d2d2",var:"var(--pf-chart-theme--gray--ColorScale--400, #d2d2d2)"},Tfe={name:"--pf-chart-theme--gray--ColorScale--500",value:"#8a8d90",var:"var(--pf-chart-theme--gray--ColorScale--500, #8a8d90)"},kfe=[wfe.var,Ofe.var,Cfe.var,Afe.var,Tfe.var],Efe=ui({COLOR_SCALE:kfe}),Pfe={name:"--pf-chart-theme--green--ColorScale--100",value:"#4cb140",var:"var(--pf-chart-theme--green--ColorScale--100, #4cb140)"},jfe={name:"--pf-chart-theme--green--ColorScale--200",value:"#bde2b9",var:"var(--pf-chart-theme--green--ColorScale--200, #bde2b9)"},Mfe={name:"--pf-chart-theme--green--ColorScale--300",value:"#23511e",var:"var(--pf-chart-theme--green--ColorScale--300, #23511e)"},Dfe={name:"--pf-chart-theme--green--ColorScale--400",value:"#7cc674",var:"var(--pf-chart-theme--green--ColorScale--400, #7cc674)"},Ife={name:"--pf-chart-theme--green--ColorScale--500",value:"#38812f",var:"var(--pf-chart-theme--green--ColorScale--500, #38812f)"},$fe=[Pfe.var,jfe.var,Mfe.var,Dfe.var,Ife.var],Lfe=ui({COLOR_SCALE:$fe}),Ffe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--100",value:"#06c",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--100, #06c)"},Nfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--200",value:"#4cb140",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--200, #4cb140)"},Bfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--300",value:"#009596",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--300, #009596)"},Rfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--400",value:"#f4c145",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--400, #f4c145)"},Wfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--500, #ec7a08)"},zfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--600",value:"#8bc1f7",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--600, #8bc1f7)"},Vfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--700",value:"#23511e",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--700, #23511e)"},Ufe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--800",value:"#a2d9d9",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--800, #a2d9d9)"},Hfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--900",value:"#f9e0a2",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--900, #f9e0a2)"},qfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1000",value:"#8f4700",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1000, #8f4700)"},Gfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1100",value:"#002f5d",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1100, #002f5d)"},Yfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1200",value:"#bde2b9",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1200, #bde2b9)"},Kfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1300",value:"#003737",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1300, #003737)"},Zfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1400",value:"#c58c00",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1400, #c58c00)"},Xfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1500",value:"#f4b678",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1500, #f4b678)"},Jfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1600",value:"#519de9",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1600, #519de9)"},Qfe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1700",value:"#38812f",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1700, #38812f)"},ede={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1800",value:"#73c5c5",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1800, #73c5c5)"},tde={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1900",value:"#f6d173",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1900, #f6d173)"},nde={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2000",value:"#c46100",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2000, #c46100)"},rde={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2100",value:"#004b95",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2100, #004b95)"},ide={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2200",value:"#7cc674",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2200, #7cc674)"},ade={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2300",value:"#005f60",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2300, #005f60)"},ode={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2400",value:"#f0ab00",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2400, #f0ab00)"},lde={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2500",value:"#ef9234",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2500, #ef9234)"},sde=[Ffe.var,Nfe.var,Bfe.var,Rfe.var,Wfe.var,zfe.var,Vfe.var,Ufe.var,Hfe.var,qfe.var,Gfe.var,Yfe.var,Kfe.var,Zfe.var,Xfe.var,Jfe.var,Qfe.var,ede.var,tde.var,nde.var,rde.var,ide.var,ade.var,ode.var,lde.var],ude=ui({COLOR_SCALE:sde}),cde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--100",value:"#06c",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--100, #06c)"},fde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--200",value:"#f4c145",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--200, #f4c145)"},dde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--300",value:"#4cb140",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--300, #4cb140)"},hde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--400",value:"#5752d1",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--400, #5752d1)"},mde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--500, #ec7a08)"},gde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--600",value:"#009596",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--600, #009596)"},pde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--700",value:"#b8bbbe",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--700, #b8bbbe)"},vde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--800",value:"#8bc1f7",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--800, #8bc1f7)"},yde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--900",value:"#c58c00",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--900, #c58c00)"},bde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1000",value:"#bde2b9",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1000, #bde2b9)"},_de={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1100",value:"#2a265f",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1100, #2a265f)"},xde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1200",value:"#f4b678",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1200, #f4b678)"},Sde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1300",value:"#003737",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1300, #003737)"},wde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1400",value:"#f0f0f0",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1400, #f0f0f0)"},Ode={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1500",value:"#002f5d",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1500, #002f5d)"},Cde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1600",value:"#f9e0a2",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1600, #f9e0a2)"},Ade={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1700",value:"#23511e",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1700, #23511e)"},Tde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1800",value:"#b2b0ea",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1800, #b2b0ea)"},kde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1900",value:"#8f4700",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1900, #8f4700)"},Ede={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2000",value:"#a2d9d9",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2000, #a2d9d9)"},Pde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2100",value:"#6a6e73",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2100, #6a6e73)"},jde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2200",value:"#519de9",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2200, #519de9)"},Mde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2300",value:"#f0ab00",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2300, #f0ab00)"},Dde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2400",value:"#7cc674",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2400, #7cc674)"},Ide={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2500",value:"#3c3d99",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2500, #3c3d99)"},$de={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2600",value:"#ef9234",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2600, #ef9234)"},Lde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2700",value:"#005f60",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2700, #005f60)"},Fde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2800",value:"#d2d2d2",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2800, #d2d2d2)"},Nde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2900",value:"#004b95",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2900, #004b95)"},Bde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3000",value:"#f6d173",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3000, #f6d173)"},Rde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3100",value:"#38812f",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3100, #38812f)"},Wde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3200",value:"#8481dd",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3200, #8481dd)"},zde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3300",value:"#c46100",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3300, #c46100)"},Vde={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3400",value:"#73c5c5",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3400, #73c5c5)"},Ude={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3500",value:"#8a8d90",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3500, #8a8d90)"},Hde=[cde.var,fde.var,dde.var,hde.var,mde.var,gde.var,pde.var,vde.var,yde.var,bde.var,_de.var,xde.var,Sde.var,wde.var,Ode.var,Cde.var,Ade.var,Tde.var,kde.var,Ede.var,Pde.var,jde.var,Mde.var,Dde.var,Ide.var,$de.var,Lde.var,Fde.var,Nde.var,Bde.var,Rde.var,Wde.var,zde.var,Vde.var,Ude.var],qde=ui({COLOR_SCALE:Hde}),Gde={name:"--pf-chart-theme--orange--ColorScale--100",value:"#ec7a08",var:"var(--pf-chart-theme--orange--ColorScale--100, #ec7a08)"},Yde={name:"--pf-chart-theme--orange--ColorScale--200",value:"#f4b678",var:"var(--pf-chart-theme--orange--ColorScale--200, #f4b678)"},Kde={name:"--pf-chart-theme--orange--ColorScale--300",value:"#8f4700",var:"var(--pf-chart-theme--orange--ColorScale--300, #8f4700)"},Zde={name:"--pf-chart-theme--orange--ColorScale--400",value:"#ef9234",var:"var(--pf-chart-theme--orange--ColorScale--400, #ef9234)"},Xde={name:"--pf-chart-theme--orange--ColorScale--500",value:"#c46100",var:"var(--pf-chart-theme--orange--ColorScale--500, #c46100)"},Jde=[Gde.var,Yde.var,Kde.var,Zde.var,Xde.var],Qde=ui({COLOR_SCALE:Jde}),ehe={name:"--pf-chart-theme--purple--ColorScale--100",value:"#5752d1",var:"var(--pf-chart-theme--purple--ColorScale--100, #5752d1)"},the={name:"--pf-chart-theme--purple--ColorScale--200",value:"#b2b0ea",var:"var(--pf-chart-theme--purple--ColorScale--200, #b2b0ea)"},nhe={name:"--pf-chart-theme--purple--ColorScale--300",value:"#2a265f",var:"var(--pf-chart-theme--purple--ColorScale--300, #2a265f)"},rhe={name:"--pf-chart-theme--purple--ColorScale--400",value:"#8481dd",var:"var(--pf-chart-theme--purple--ColorScale--400, #8481dd)"},ihe={name:"--pf-chart-theme--purple--ColorScale--500",value:"#3c3d99",var:"var(--pf-chart-theme--purple--ColorScale--500, #3c3d99)"},ahe=[ehe.var,the.var,nhe.var,rhe.var,ihe.var],ohe=ui({COLOR_SCALE:ahe}),Bp=(e,t)=>Np(rn(e),t),lhe=e=>Bp(e,Gse),she=(e,t)=>{const n=rn(e);return t||(n.axis.padding=0,n.axis.style.axis.fill="none",n.axis.style.axis.stroke="none",n.axis.style.grid.fill="none",n.axis.style.grid.stroke="none",n.axis.style.ticks.fill="none",n.axis.style.ticks.stroke="none",n.axis.style.tickLabels.fill="none"),n},uhe=e=>Bp(e,Zse),che=e=>{const t=Bp(e,Kse);return t.pie.colorScale=[t.pie.colorScale[0],...OA.pie.colorScale],t.legend.colorScale=[t.legend.colorScale[0],...OA.legend.colorScale],t},fhe=e=>{switch(e){case Pr.blue:return nT;case Pr.cyan:return gfe;case Pr.gold:return Sfe;case Pr.gray:return Efe;case Pr.green:return Lfe;case Pr.multi:case Pr.multiOrdered:return ude;case Pr.multiUnordered:return qde;case Pr.orange:return Qde;case Pr.purple:return ohe;default:return nT}},rn=e=>{const t=Object.assign({},JSON.parse(JSON.stringify(Yse)));return Np(t,fhe(e))},rT={name:"--pf-chart-color-black-500",value:"#6a6e73",var:"var(--pf-chart-color-black-500, #6a6e73)"},dhe=({offsetCursorDimensionX:e=!1,offsetCursorDimensionY:t=!1,theme:n})=>{const r=n&&n.tooltip?fe(n.tooltip.pointerLength):10;return{x:e?({center:o,flyoutWidth:l,width:s})=>{const u=l/2+r;return s>o.x+l+r?u:-u}:0,y:t?({center:o,flyoutHeight:l,width:s})=>{const u=l/2+r;return s>o.y+l+r?-u:u}:0}},hhe=({horizontal:e=!0,theme:t})=>{const n=t&&t.tooltip?fe(t.tooltip.pointerLength):10;return e?({center:a,flyoutWidth:o,width:l})=>l>a.x+o+n?"left":"right":({center:a,flyoutHeight:o,height:l})=>l>a.y+o+n?"top":"bottom"},iT=e=>Np({borderPadding:0,gutter:0,orientation:"vertical",padding:0,rowGutter:0,style:{labels:{fill:qn.label.fill,lineHeight:.275,padding:0},title:{fill:qn.label.fill,padding:0}}},Object.assign({},e)),Rp=({legendData:e,legendOrientation:t="vertical",legendProps:n,text:r="",theme:i})=>{const a=fe(r),o=Array.isArray(a)?a:[a];let l=0,s=0;o.map((y,_)=>{y&&(y.length>s&&(s=y.length),e&&e[_]&&e[_].name&&e[_].name.length>l&&(l=e[_].name.length))});let u=l+s;l<20&&(u+=2);const c="x",f=(y,_)=>{let b="";if(u===0)return b;const S=y?y.length:0,O=_?_.length:0,w=S+O;for(;b.length<u-w;)b+=c;return b},h=o.map((y,_)=>{const b=e&&e[_]&&e[_].name,S=b?f(e[_].name,y):"";return{name:`${b?e[_].name:""}${S}${y}`}}).map(y=>({name:y.name.replace(/ /g,c)})),g=Bi({legendData:h,legendOrientation:t,legendProps:n,theme:i});return{height:Bi({legendData:o.map(y=>({name:y})),legendOrientation:t,legendProps:n,theme:i}).height,width:g.width>0?g.width:0}},Wp=({activePoints:e,colorScale:t,legendData:n,patternScale:r,text:i,textAsLegendData:a=!1,theme:o})=>{const l=fe(i),s=Array.isArray(l)?l:[l],u=[];if(n){let c=-1;for(let f=0;f<n.length;f++){const d=n[f];if(!(!(e&&e.find(g=>g.childName===d.childName))||d.symbol&&d.symbol.type==="eyeSlash"&&d.symbol.fill===rT.var)&&c++<s.length-1){const g=o&&o.legend&&o.legend.colorScale?o.legend.colorScale[f%o.legend.colorScale.length]:void 0,p=t?t[f%t.length]:g,y=r?r[f%r.length]:void 0;u.push({name:a?s[c]:d.name,symbol:Object.assign({fill:y||p},d.symbol)})}}}return u},aT=({activePoints:e,legendData:t,text:n})=>{const r=fe(n),i=Array.isArray(r)?r:[r],a=[];if(t){let o=-1;for(const l of t)!(e&&e.find(u=>u.childName===l.childName))||l.symbol&&l.symbol.type==="eyeSlash"&&l.symbol.fill===rT.var||o++<i.length-1&&a.push(i[o])}return a},Gn=e=>{var{className:t,themeColor:n,themeVariant:r,theme:i=rn(n)}=e,a=Re(e,["className","themeColor","themeVariant","theme"]);const o=jp({className:t});return F.createElement(ze,Object.assign({className:o,theme:i},a))};Gn.displayName="ChartContainer",Lt(Gn,ze);const Cn={circle:(e,t,n)=>`M ${e}, ${t}
264
264
  m ${-n}, 0
265
265
  a ${n}, ${n} 0 1,0 ${n*2},0
@@ -325,9 +325,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
325
325
  z`},triangleUp:(e,t,n)=>{const r=n/2*Math.sqrt(3),i=e-n,a=e+n,o=t-r,l=t+n;return`M ${i}, ${l}
326
326
  L ${a}, ${l}
327
327
  L ${e}, ${o}
328
- z`}},mhe=e=>{const{x:t,y:n}=e,r=fe(e.size,e);if(e.getPath)return e.getPath(t,n,r);const i={circle:Cn.circle,square:Cn.square,diamond:Cn.diamond,eyeSlash:Cn.eyeSlash,triangleDown:Cn.triangleDown,triangleLeft:Cn.triangleLeft,triangleRight:Cn.triangleRight,triangleUp:Cn.triangleUp,plus:Cn.plus,minus:Cn.minus,star:Cn.star,dash:Cn.dash,threshold:Cn.threshold},o=fe(e.symbol,e);return(typeof i[o]=="function"?i[o]:i.square)(t,n,r)},oT=e=>{var{active:t,className:n,clipPath:r,datum:i,desc:a,events:o,pathComponent:l=F.createElement(Mi,null),role:s="presentation",shapeRendering:u="auto",tabIndex:c,transform:f}=e,d=Re(e,["active","className","clipPath","datum","desc","events","pathComponent","role","shapeRendering","tabIndex","transform"]);const h=Object.assign({active:t,className:n,clipPath:r,datum:i,desc:a,events:o,role:s,shapeRendering:u,tabIndex:c,transform:f},d);return F.cloneElement(l,Object.assign(Object.assign({className:n,clipPath:r,d:mhe(h),desc:fe(a,h)},o),{role:s,shapeRendering:u,style:Ze(d.style,h),tabIndex:fe(c,h),transform:f}))};oT.displayName="ChartPoint";var lT;(function(e){e.horizontal="horizontal",e.vertical="vertical"})(lT||(lT={}));var rd;(function(e){e.bottom="bottom",e.bottomLeft="bottom-left",e.right="right"})(rd||(rd={}));var sT;(function(e){e.bottom="bottom",e.top="top"})(sT||(sT={}));const Ro=e=>{var{colorScale:t,containerComponent:n=F.createElement(Gn,null),dataComponent:r=F.createElement(oT,null),labelComponent:i=F.createElement(vn,null),name:a,patternScale:o,responsive:l=!0,style:s,themeColor:u,themeVariant:c,titleComponent:f=F.createElement(vn,null),theme:d=rn(u)}=e,h=Re(e,["colorScale","containerComponent","dataComponent","labelComponent","name","patternScale","responsive","style","themeColor","themeVariant","titleComponent","theme"]);const g=()=>{if(!o)return s;const b=s?Object.assign({},s):{};return b.data=Object.assign({fill:({index:S})=>{const O=d&&d.legend&&d.legend.colorScale?d.legend.colorScale[S%d.legend.colorScale.length]:void 0,w=t?t[S%t.length]:O,A=o[S%o.length];return A||w}},b.data),b},p=F.cloneElement(n,Object.assign({responsive:l,theme:d},n.props)),y=()=>F.cloneElement(i,Object.assign(Object.assign({},a&&{id:b=>`${a}-${i.type.displayName}-${b.index}`}),i.props)),_=()=>F.cloneElement(f,Object.assign(Object.assign({},a&&{id:()=>`${a}-${f.type.displayName}`}),f.props));return F.createElement(xs,Object.assign({colorScale:t,containerComponent:p,dataComponent:r,labelComponent:y(),name:a,style:g(),theme:d,titleComponent:_()},h))};Ro.displayName="ChartLegend",Lt(Ro,xs,{getBaseProps:!0}),Ro.getBaseProps=e=>{const t=rn(null);return xs.getBaseProps(Object.assign({titleComponent:F.createElement(vn,null)},e),{height:t.chart.height,orientation:t.legend.orientation,titleOrientation:t.legend.titleOrientation,x:0,y:0,width:t.chart.width})};const zp=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,hasPatterns:a,legendAllowWrap:o=!1,legendComponent:l=F.createElement(Ro,null),legendData:s,legendPosition:u=Bt.legend.position,name:c,padding:f,patternScale:d,showAxis:h=!0,themeColor:g,themeVariant:p,theme:y=she(g,h),containerComponent:_=F.createElement(Gn,null),legendOrientation:b=y.legend.orientation,height:S=y.chart.height,width:O=y.chart.width}=e,w=Re(e,["ariaDesc","ariaTitle","children","colorScale","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","name","padding","patternScale","showAxis","themeColor","themeVariant","theme","containerComponent","legendOrientation","height","width"]);const A={bottom:On("bottom",f,y.chart.padding),left:On("left",f,y.chart.padding),right:On("right",f,y.chart.padding),top:On("top",f,y.chart.padding)},{defaultColorScale:T,defaultPatternScale:k,isPatternDefs:j,patternId:N}=Fp({colorScale:i,patternScale:d,hasPatterns:a,themeColorScale:y.chart.colorScale});let M;_.props.labelComponent&&_.props.labelComponent.type.displayName==="ChartLegendTooltip"&&(M=F.cloneElement(_.props.labelComponent,Object.assign(Object.assign({theme:y},k&&{patternScale:k}),_.props.labelComponent.props)));const E=F.cloneElement(_,Object.assign(Object.assign(Object.assign({desc:t,title:n,theme:y},_.props),{className:jp({className:_.props.className})}),M&&{labelComponent:M})),I=F.cloneElement(l,Object.assign(Object.assign(Object.assign({data:s},c&&{name:`${c}-${l.type.displayName}`}),{orientation:b,theme:y}),l.props)),D=()=>{if(!I.props.data)return null;let X=0,re=0,ne=0,ee=I.props.title?10:0;return F.Children.toArray(r).map(z=>{z.type.role==="axis"&&z.props.label&&!z.props.dependentAxis&&(ne=vue({text:z.props.label,theme:y}).height+10,ee=0)}),u===rd.bottom?re+=ne+ee:u===rd.bottomLeft&&(re+=ne+ee,X=-10),h||(re-=Mx.value),zA(Object.assign({allowWrap:o,chartType:"chart",colorScale:i,dx:X,dy:re,height:S,legendComponent:I,padding:A,position:u,theme:y,width:O},k&&{patternScale:k}))},W=()=>F.Children.toArray(r).map((X,re)=>{if(F.isValidElement(X)){const ne=Re(X.props,[]);return F.cloneElement(X,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:i},k&&{patternScale:k}),c&&typeof X.name!==void 0&&{name:`${c}-${X.type.displayName}-${re}`}),{theme:y}),ne),X.type.displayName==="ChartPie"&&{data:cce(ne.data,k)}))}return X});return F.createElement(Df,Object.assign({colorScale:i,containerComponent:E,height:S,name:c,padding:A,theme:y,width:O},w),W(),D(),j&&Lp({patternId:N,colorScale:T}))};zp.displayName="Chart",Lt(zp,Df);var ghe=function(e,t){var n=Gt(e);n.length<2&&(n=[]);var r=function(i){var a=hS(t[i])==="log"?1/Number.MAX_SAFE_INTEGER:0,o=t[i].domain(),l=dn(o),s=Ln(o),u=a;return l<0&&s<=0?u=s:l>=0&&s>0&&(u=l),$n(o)?new Date(u):u};return n.map(function(i){var a=i._y1!==void 0?i._y1:i._y,o=i._y0!==void 0?i._y0:r("y"),l=i._x1!==void 0?i._x1:i._x,s=i._x0!==void 0?i._x0:r("x");return R({},i,{_y0:o,_y1:a,_x0:s,_x1:l})})},phe=function(e){var t=e.polar,n=hc(e,"area"),r=Yl(e.style,n),i={x:xt(e,"x"),y:xt(e,"y")},a={x:bg(e,"x"),y:bg(e,"y")},o={x:Bn(e,"x").domain(a.x).range(e.horizontal?i.y:i.x),y:Bn(e,"y").domain(a.y).range(e.horizontal?i.x:i.y)},l=t?e.origin||Kl(e):void 0,s=ghe(e,o);return{style:r,data:s,scale:o,domain:a,origin:l}},vhe=function(e,t){var n=St(e,t,"area");e=R({},n,phe(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.groupComponent,s=r.height,u=r.horizontal,c=r.interpolation,f=r.origin,d=r.padding,h=r.polar,g=r.scale,p=r.sharedEvents,y=r.standalone,_=r.style,b=r.theme,S=r.width,O=r.labels,w=r.name,A=r.disableInlineStyles,T={parent:{style:_.parent,width:S,height:s,scale:g,data:i,domain:a,standalone:y,theme:b,polar:h,origin:f,padding:d,name:w,horizontal:u},all:{data:{horizontal:u,polar:h,origin:f,scale:g,data:i,interpolation:c,groupComponent:l,style:A?{}:_.data,disableInlineStyles:A}}};return i.reduce(function(k,j,N){var M=Fc(e,j,N);if(M!=null||O&&(o||p)){var E=pa(j.eventKey)?N:j.eventKey;k[E]={labels:F0(e,N)}}return k},T)};function uT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function id(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uT(Object(n),!0).forEach(function(r){yhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yhe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vp=function(e){var t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},cT=function(e){return function(t){return e.x(t._x1!==void 0?t._x1:t._x)}},Up=function(e){return function(t){return e.y(t._y1!==void 0?t._y1:t._y)}},Hp=function(e){return function(t){return e.y(t._y0)}},bhe=function(e){return function(t){var n=e.x(t._x1!==void 0?t._x1:t._x);return-1*n+Math.PI/2}},_he=function(e){var t=e.horizontal,n=e.scale,r=xf(e);return t?hf().defined(Vp).curve(r).x0(Hp(n)).x1(Up(n)).y(cT(n)):hf().defined(Vp).curve(r).x(cT(n)).y1(Up(n)).y0(Hp(n))},xhe=function(e){var t=e.polar,n=e.scale,r=xf(e);return t?Pg().defined(Vp).curve(r).angle(bhe(n)).outerRadius(Up(n)).innerRadius(Hp(n)):_he(e)},She=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Ze(R({fill:"black"},e.style),e),a=fe(e.tabIndex,e);return R({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},qp=function(e){e=She(e);var t=e,n=t.ariaLabel,r=t.role,i=t.shapeRendering,a=t.className,o=t.polar,l=t.origin,s=t.data,u=t.pathComponent,c=t.events,f=t.groupComponent,d=t.clipPath,h=t.id,g=t.style,p=t.desc,y=t.tabIndex,_=or(e),b=o&&l?"translate(".concat(l.x,", ").concat(l.y,")"):void 0,S=e.transform||b,O=g.stroke&&g.stroke!=="none"&&g.stroke!=="transparent",w=xhe(e),A=O&&YO(e),T=g.stroke?"none":g.fill,k=id(id({"aria-label":n,className:a,role:r,shapeRendering:i,transform:S},c),{},{clipPath:d,tabIndex:y}),j=x.cloneElement(u,R({key:"".concat(h,"-area"),style:R({},g,{stroke:T}),d:w(s),desc:p,tabIndex:y},k,_)),N=O?x.cloneElement(u,R({key:"".concat(h,"-area-stroke"),style:R({},g,{fill:"none"}),d:A(s)},k)):null;return O?x.cloneElement(f,_,[j,N]):j};qp.propTypes=id(id({},Ot.primitiveProps),{},{groupComponent:m.element,interpolation:m.oneOfType([m.string,m.func]),pathComponent:m.element}),qp.defaultProps={groupComponent:x.createElement("g",null),pathComponent:x.createElement(Mi,null),role:"presentation",shapeRendering:"auto"};function fT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fT(Object(n),!0).forEach(function(r){whe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function whe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ohe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Che(e,t,n){return t&&dT(e.prototype,t),n&&dT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ahe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yp(e,t)}function Yp(e,t){return Yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Yp(e,t)}function The(e){var t=Phe();return function(){var r=ad(e),i;if(t){var a=ad(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return khe(this,i)}}function khe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ehe(e)}function Ehe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Phe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ad(e){return ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ad(e)}var hT={width:450,height:300,padding:50,interpolation:"linear"},jhe={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},An=function(e){Ahe(n,e);var t=The(n);function n(){return Ohe(this,n),t.apply(this,arguments)}return Che(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,hT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Mc(s,o)}}]),n}(x.Component);An.animationWhitelist=["data","domain","height","padding","style","width"],An.propTypes=Gp(Gp(Gp({},Ot.baseProps),Ot.dataProps),{},{interpolation:m.oneOfType([m.oneOf(["basis","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),m.func]),label:pS(m.string,"Use `labels` instead for individual data labels")}),An.defaultProps={containerComponent:x.createElement(ze,null),dataComponent:x.createElement(qp,null),groupComponent:x.createElement(ga,null),labelComponent:x.createElement(wt,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Cr.grayscale},An.displayName="VictoryArea",An.role="area",An.continuous=!0,An.defaultTransitions=Yw(),An.defaultPolarTransitions=Kw(),An.getDomain=bg,An.getData=Gt,An.getBaseProps=function(e){return vhe(e,hT)},An.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var mT=ya(An,jhe),gT;(function(e){e.ascending="ascending",e.descending="descending"})(gT||(gT={}));const Kp=e=>{var{containerComponent:t=F.createElement(Gn,null),themeColor:n,themeVariant:r,theme:i=rn(n)}=e,a=Re(e,["containerComponent","themeColor","themeVariant","theme"]);const o=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(mT,Object.assign({containerComponent:o,theme:i},a))};Kp.displayName="ChartArea",Lt(Kp,mT);const od=e=>{var{axisLabelComponent:t=F.createElement(vn,null),containerComponent:n=F.createElement(Gn,null),name:r,showGrid:i=!1,themeColor:a,themeVariant:o,tickLabelComponent:l=F.createElement(vn,null),theme:s=rn(a)}=e,u=Re(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","themeVariant","tickLabelComponent","theme"]);const c=F.cloneElement(n,Object.assign({theme:s},n.props)),f=()=>F.cloneElement(t,Object.assign(Object.assign({},r&&{id:()=>`${r}-${t.type.displayName}`}),t.props)),d=()=>F.cloneElement(l,Object.assign(Object.assign({},r&&{id:h=>`${r}-${l.type.displayName}-${h.index}`}),l.props));return F.createElement(ps,Object.assign({axisLabelComponent:f(),containerComponent:c,name:r,theme:i?lhe(a):s,tickLabelComponent:d()},u))};od.displayName="ChartAxis",Lt(od,ps);function Zp(e){return $he(e)||Ihe(e)||Dhe(e)||Mhe()}function Mhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
329
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dhe(e,t){if(e){if(typeof e=="string")return Xp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xp(e,t)}}function Ihe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $he(e){if(Array.isArray(e))return Xp(e)}function Xp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Lhe=function(e,t){return t.bubbleProperty?"circle":e.symbol||t.symbol},Fhe=function(e,t){var n=t.data,r=t.z,i=t.maxBubbleSize,a=t.minBubbleSize,o=n.map(function(_){return _[r]}),l=Math.min.apply(Math,Zp(o)),s=Math.max.apply(Math,Zp(o)),u=function(){var _=Math.min.apply(Math,Zp(fc(lt(t))));return Math.max(_,5)},c=i||u(),f=a||c*.1;if(s===l)return Math.max(f,1);var d=Math.PI*Math.pow(c,2),h=Math.PI*Math.pow(f,2),g=(e[r]-l)/(s-l)*d,p=Math.max(g,h),y=Math.sqrt(p/Math.PI);return Math.max(y,1)},Nhe=function(e,t){var n=t.size,r=t.z;return e.size?typeof e.size=="function"?e.size:Math.max(e.size,1):typeof t.size=="function"?n:e[r]?Fhe(e,t):Math.max(n||0,1)},Bhe=function(e){var t=hc(e,"scatter"),n=Yl(e.style,t),r={x:xt(e,"x"),y:xt(e,"y")},i={x:ba(e,"x"),y:ba(e,"y")},a={x:Bn(e,"x").domain(i.x).range(e.horizontal?r.y:r.x),y:Bn(e,"y").domain(i.y).range(e.horizontal?r.x:r.y)},o=e.polar?e.origin||Kl(e):void 0,l=e.bubbleProperty||"z",s=Gt(e);return s=lJ(s,i),{domain:i,data:s,scale:a,style:n,origin:o,z:l}},Rhe=function(e,t){var n=St(e,t,"scatter");e=R({},n,Bhe(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.height,s=r.origin,u=r.padding,c=r.polar,f=r.scale,d=r.name,h=r.sharedEvents,g=r.standalone,p=r.style,y=r.theme,_=r.width,b=r.labels,S=r.horizontal,O=r.disableInlineStyles,w={parent:{style:p.parent,scale:f,domain:a,data:i,height:l,width:_,standalone:g,theme:y,origin:s,polar:c,padding:u,name:d,horizontal:S}};return i.reduce(function(A,T,k){var j=pa(T.eventKey)?k:T.eventKey,N=xo(e,T),M=N.x,E=N.y,I={x:M,y:E,datum:T,data:i,index:k,scale:f,polar:c,origin:s,horizontal:S,size:Nhe(T,e),symbol:Lhe(T,e),style:O?{}:p.data,disableInlineStyles:O};A[j]={data:I};var D=Fc(e,T,k);return(D!=null||b&&(o||h))&&(A[j].labels=F0(e,k)),A},w)};function pT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pT(Object(n),!0).forEach(function(r){Whe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Whe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vhe(e,t,n){return t&&vT(e.prototype,t),n&&vT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uhe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qp(e,t)}function Qp(e,t){return Qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qp(e,t)}function Hhe(e){var t=Yhe();return function(){var r=ld(e),i;if(t){var a=ld(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return qhe(this,i)}}function qhe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ghe(e)}function Ghe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yhe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ld(e)}var yT={width:450,height:300,padding:50,size:3,symbol:"circle"},ur=function(e){Uhe(n,e);var t=Hhe(n);function n(){return zhe(this,n),t.apply(this,arguments)}return Vhe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=sd.animationWhitelist,a=sd.role,o=St(this.props,yT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Mc(s,o)}}]),n}(x.Component);ur.animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"],ur.displayName="VictoryScatter",ur.role="scatter",ur.defaultTransitions=TJ(),ur.propTypes=Jp(Jp(Jp({},Ot.baseProps),Ot.dataProps),{},{bubbleProperty:m.string,maxBubbleSize:_e,minBubbleSize:_e,size:m.oneOfType([_e,m.func]),symbol:m.oneOfType([m.oneOf(["circle","cross","diamond","plus","minus","square","star","triangleDown","triangleUp"]),m.func])}),ur.defaultProps={containerComponent:x.createElement(ze,null),dataComponent:x.createElement(Xc,null),labelComponent:x.createElement(wt,null),groupComponent:x.createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Cr.grayscale},ur.getDomain=ba,ur.getData=Gt,ur.getBaseProps=function(e){return Rhe(e,yT)},ur.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var sd=ya(ur),bT;(function(e){e.ascending="ascending",e.descending="descending"})(bT||(bT={}));const ud=e=>{var{containerComponent:t=F.createElement(Gn,null),themeColor:n,themeVariant:r,theme:i=rn(n),size:a=({active:s})=>s?AA.activeSize:AA.size}=e,o=Re(e,["containerComponent","themeColor","themeVariant","theme","size"]);const l=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(sd,Object.assign({containerComponent:l,size:a,theme:i},o))};ud.displayName="ChartScatter",Lt(ud,sd);function _T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_T(Object(n),!0).forEach(function(r){Khe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_T(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Khe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zhe=function(e){var t=e.slice,n=e.radius,r=e.innerRadius,i=e.cornerRadius;if(Oe(e.pathFunction))return e.pathFunction(t);var a=st(e.padAngle),o=st(e.sliceStartAngle),l=st(e.sliceEndAngle),s=Cg().cornerRadius(i).outerRadius(n).innerRadius(r||0);return s(ae({startAngle:o,endAngle:l,padAngle:a},t))},Xhe=function(e){var t=Ze(e.style,e),n=fe(e.radius,R({},e,{style:t})),r=fe(e.innerRadius,R({},e,{style:t,radius:n})),i=fe(e.ariaLabel,e),a=fe(e.id,e),o=fe(e.cornerRadius,e),l=fe(e.padAngle,e),s=fe(e.sliceStartAngle,e),u=fe(e.sliceEndAngle,e),c=fe(e.tabIndex,e);return R({},e,{ariaLabel:i,style:t,radius:n,innerRadius:r,id:a,cornerRadius:o,padAngle:l,sliceStartAngle:s,sliceEndAngle:u,tabIndex:c})},ev=function(e){e=Xhe(e);var t=e.origin?"translate(".concat(e.origin.x,", ").concat(e.origin.y,")"):void 0;return x.cloneElement(e.pathComponent,cd(cd({},e.events),{},{"aria-label":e.ariaLabel,d:Zhe(e),style:e.style,transform:e.transform||t,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};ev.propTypes=cd(cd({},Ot.primitiveProps),{},{cornerRadius:m.oneOfType([m.number,m.func]),datum:m.object,innerRadius:m.oneOfType([m.number,m.func]),padAngle:m.oneOfType([m.number,m.func]),pathComponent:m.element,pathFunction:m.func,radius:m.oneOfType([m.number,m.func]),slice:m.object,sliceEndAngle:m.oneOfType([m.number,m.func]),sliceStartAngle:m.oneOfType([m.number,m.func])}),ev.defaultProps={pathComponent:x.createElement(Mi,null),role:"presentation",shapeRendering:"auto"};const Jhe=ev;var Qhe=function(e){return e==null||Oe(e)?e:"".concat(e)},eme=function(e,t,n){return e&&e.data&&e.data.fill?e.data.fill:t&&t[n%t.length]},tme=function(e,t){return typeof e.radius=="number"?e.radius:Math.min(e.width-t.left-t.right,e.height-t.top-t.bottom)/2},nme=function(e,t){var n=e.width,r=e.height,i=Qe(e.origin)?e.origin:{};return{x:i.x!==void 0?i.x:(t.left-t.right+n)/2,y:i.y!==void 0?i.y:(t.top-t.bottom+r)/2}},rme=function(e,t){var n=Oe(e.padAngle)?0:e.padAngle,r=lO().sort(null).startAngle(st(e.startAngle)).endAngle(st(e.endAngle)).padAngle(st(n)).value(function(i){return i._y});return r(t)},ime=function(e){var t=e.colorScale,n=hc(e,"pie"),r=Yl(e.style,n),i=Array.isArray(t)?t:B0(t),a=lt(e),o=tme(e,a),l=nme(e,a),s=Gt(e),u=rme(e,s);return R({},e,{style:r,colors:i,padding:a,defaultRadius:o,data:s,slices:u,origin:l})},ame=function(e,t){var n=t.style,r=t.colors,i=eme(n,r,e);return R({fill:i},n.data)},ome=function(e,t,n){var r;return t.label?r=t.label:Array.isArray(e.labels)?r=e.labels[n]:r=Oe(e.labels)?e.labels:t.xName||t._x,Qhe(r)},lme=function(e,t,n){var r=n&&n.padding||0,i=t||e+r;return Cg().outerRadius(i).innerRadius(i)},sme=function(e,t,n){var r={startAngle:n==="startAngle"?t.startAngle:t.endAngle,endAngle:n==="endAngle"?t.endAngle:t.startAngle},i=R({},t,r);return e.centroid(i)},ume=function(e,t){return t==="perpendicular"?e>90&&e<270?"bottom":"top":t==="parallel"?e>=0&&e<=180?"right":"left":e<45||e>315?"top":e>=45&&e<135?"right":e>=135&&e<225?"bottom":"left"},cme=function(e){return e==="top"||e==="bottom"?"middle":e==="right"?"start":"end"},fme=function(e){return e==="left"||e==="right"?"middle":e==="bottom"?"start":"end"},dme=function(e,t,n){var r=0;t.angle!==void 0?r=n.angle:t==="centroid"?r=Gr((e.startAngle+e.endAngle)/2):r=Gr(t==="startAngle"?e.startAngle:e.endAngle);var i=r<0?360-r:r;return i%360},hme=function(e,t){return t==="vertical"?0:t==="parallel"?e>180&&e<360?e+90:e-90:e>90&&e<270?e-180:e},mme=function(e,t,n){var r=t.index,i=t.datum,a=t.data,o=t.slice,l=t.labelComponent,s=t.theme,u=n.style,c=n.defaultRadius,f=n.origin,d=n.width,h=n.height,g=fe(n.labelRadius,R({text:e},t)),p=fe(n.labelPosition,R({text:e},t))||"centroid",y=fe(n.labelPlacement,R({text:e},t))||"vertical",_=R({padding:0},u.labels),b=Ze(_,R({labelRadius:g,text:e},t)),S=lme(c,g,b),O=sme(S,o,p),w=dme(o,p,_),A=hme(w,y),T=ume(w,y),k=_.textAnchor||cme(T),j=_.verticalAnchor||fme(T),N={width:d,height:h,index:r,datum:i,data:a,slice:o,orientation:T,text:e,style:_,x:Math.round(O[0])+f.x,y:Math.round(O[1])+f.y,textAnchor:k,verticalAnchor:j,angle:A};if(!dc(l))return N;var M=s&&s.tooltip||{};return ae({},N,_o(M,["style"]))},gme=function(e,t){e=St(e,t,"pie");var n=ime(e),r=n.slices,i=n.style,a=n.data,o=n.origin,l=n.defaultRadius,s=n.labels,u=n.events,c=n.sharedEvents,f=n.height,d=n.width,h=n.standalone,g=n.name,p=n.innerRadius,y=n.cornerRadius,_=n.padAngle,b=n.disableInlineStyles,S=e.radius||l,O={parent:{standalone:h,height:f,width:d,slices:r,name:g,style:i.parent}};return r.reduce(function(w,A,T){var k=ae({},a[T],{startAngle:Gr(A.startAngle),endAngle:Gr(A.endAngle),padAngle:Gr(A.padAngle)}),j=pa(k.eventKey)?T:k.eventKey,N={index:T,slice:A,datum:k,data:a,origin:o,innerRadius:p,radius:S,cornerRadius:y,padAngle:_,style:b?{}:ame(T,n),disableInlineStyles:b};w[j]={data:N};var M=ome(e,k,T);if(M!=null||s&&(u||c)){var E=fe(M,N);w[j].labels=mme(E,R({},e,N),n)}return w},O)};function pme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vme(e,t,n){return t&&xT(e.prototype,t),n&&xT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tv(e,t)}function tv(e,t){return tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tv(e,t)}function bme(e){var t=Sme();return function(){var r=fd(e),i;if(t){var a=fd(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return _me(this,i)}}function _me(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xme(e)}function xme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fd(e)}var ST={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid"},jr=function(e){yme(n,e);var t=bme(n);function n(){return pme(this,n),t.apply(this,arguments)}return vme(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,ST,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Mc(s,o)}}]),n}(x.Component);jr.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],jr.displayName="VictoryPie",jr.role="pie",jr.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(e){return{y_:e._y,label:e.label}}}},jr.propTypes={animate:m.oneOfType([m.bool,m.object]),colorScale:m.oneOfType([m.arrayOf(m.string),m.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:m.element,cornerRadius:m.oneOfType([_e,m.func]),data:m.array,dataComponent:m.element,disableInlineStyes:m.bool,endAngle:m.number,eventKey:m.oneOfType([m.func,ct([ut,_e]),m.string]),events:m.arrayOf(m.shape({target:m.oneOf(["data","labels","parent"]),eventKey:m.oneOfType([m.array,m.func,ct([ut,_e]),m.string]),eventHandlers:m.object})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ct([ut,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.element,height:_e,innerRadius:m.oneOfType([_e,m.func]),labelComponent:m.element,labelPlacement:m.oneOfType([m.func,m.oneOf(["parallel","perpendicular","vertical"])]),labelPosition:m.oneOfType([m.func,m.oneOf(["startAngle","centroid","endAngle"])]),labelRadius:m.oneOfType([_e,m.func]),labels:m.oneOfType([m.func,m.array]),name:m.string,origin:m.shape({x:_e,y:_e}),padAngle:m.oneOfType([_e,m.func]),padding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),radius:m.oneOfType([_e,m.func]),sharedEvents:m.shape({events:m.array,getEventState:m.func}),sortKey:m.oneOfType([m.func,ct([ut,_e]),m.string,m.arrayOf(m.string)]),sortOrder:m.oneOf(["ascending","descending"]),standalone:m.bool,startAngle:m.number,style:m.shape({parent:m.object,data:m.object,labels:m.object}),theme:m.object,width:_e,x:m.oneOfType([m.func,ct([ut,_e]),m.string,m.arrayOf(m.string)]),y:m.oneOfType([m.func,ct([ut,_e]),m.string,m.arrayOf(m.string)])},jr.defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:x.createElement(Jhe,null),labelComponent:x.createElement(wt,null),containerComponent:x.createElement(ze,null),groupComponent:x.createElement("g",null),sortOrder:"ascending",theme:Cr.grayscale},jr.getBaseProps=function(e){return gme(e,ST)},jr.getData=Gt,jr.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];const dd=ya(jr);var wT;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(wT||(wT={}));var OT;(function(e){e.bottom="bottom",e.right="right"})(OT||(OT={}));var CT;(function(e){e.ascending="ascending",e.descending="descending"})(CT||(CT={}));const nv=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,constrainToVisibleArea:a=!1,containerComponent:o=F.createElement(Gn,null),hasPatterns:l,legendAllowWrap:s=!1,legendComponent:u=F.createElement(Ro,null),legendData:c,legendPosition:f=Bt.legend.position,name:d,patternScale:h,patternUnshiftIndex:g,padding:p,radius:y,standalone:_=!0,style:b,themeColor:S,themeVariant:O,theme:w=rn(S),labelComponent:A=t?F.createElement(_s,{constrainToVisibleArea:a,theme:w}):void 0,legendOrientation:T=w.legend.orientation,height:k=w.pie.height,width:j=w.pie.width}=e,N=Re(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","themeVariant","theme","labelComponent","legendOrientation","height","width"]);const M={bottom:On("bottom",p,w.pie.padding),left:On("left",p,w.pie.padding),right:On("right",p,w.pie.padding),top:On("top",p,w.pie.padding)},{defaultColorScale:E,defaultPatternScale:I,isPatternDefs:D,patternId:W}=Fp({colorScale:i,hasPatterns:l,patternScale:h,themeColorScale:w.pie.colorScale}),re=y||(()=>{const Y=wr({height:k,width:j,padding:M});return Y>-1?Y:void 0})(),ne=()=>{if(!I)return b;const Y=b?Object.assign({},b):{};return Y.data=Object.assign({fill:({slice:G})=>{const ie=I[G.index%I.length];return ie||E[G.index%E.length]}},Y.data),Y},ee=F.createElement(dd,Object.assign({colorScale:i,height:k,key:"pf-chart-pie",labelComponent:A,name:d,padding:p,radius:re,standalone:!1,style:ne(),theme:w,width:j},N)),z=F.cloneElement(u,Object.assign(Object.assign(Object.assign({colorScale:i,data:c},d&&{name:`${d}-${u.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:T,theme:w}),u.props)),Z=()=>z.props.data?zA(Object.assign({allowWrap:s,chartType:"pie",height:k,legendComponent:z,padding:M,position:f,theme:w,width:j},I&&{patternScale:I})):null,q=_?F.cloneElement(o,Object.assign({desc:n,height:k,title:r,width:j,theme:w},o.props),[ee,Z(),D&&Lp({patternId:W,colorScale:E,patternUnshiftIndex:g})]):null;return _?F.createElement(F.Fragment,null,q):F.createElement(F.Fragment,null,ee,Z(),D&&Lp({patternId:W,colorScale:E,patternUnshiftIndex:g}))};nv.displayName="ChartPie",Lt(nv,dd);var AT;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(AT||(AT={}));var TT;(function(e){e.ascending="ascending",e.descending="descending"})(TT||(TT={}));var rv;(function(e){e.bottom="bottom",e.center="center",e.right="right"})(rv||(rv={}));const hd=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,capHeight:i=1.1,containerComponent:a=F.createElement(Gn,null),innerRadius:o,legendAllowWrap:l,legendPosition:s=Bt.legend.position,name:u,padAngle:c,padding:f,radius:d,standalone:h=!0,subTitle:g,subTitleComponent:p,subTitlePosition:y=bs.label.subTitlePosition,themeColor:_,themeVariant:b,title:S,titleComponent:O=F.createElement(vn,null),theme:w=uhe(_),height:A=w.pie.height,width:T=w.pie.width}=e,k=Re(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendAllowWrap","legendPosition","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","themeVariant","title","titleComponent","theme","height","width"]);const j={bottom:On("bottom",f,w.pie.padding),left:On("left",f,w.pie.padding),right:On("right",f,w.pie.padding),top:On("top",f,w.pie.padding)},N=d||wr({height:A,width:T,padding:j}),M=o||N-9,E=g&&y===rv.center,I=()=>!p&&E?X({styles:[bs.label.title,bs.label.subTitle],titles:[S,g]}):F.createElement(F.Fragment,{key:"pf-chart-donut-titles"},X({titles:S,dy:E?-8:0}),W({textComponent:p,dy:E?15:0})),D=({datum:ee})=>ee._y>0?w.pie.padAngle:0,W=({dy:ee=0,textComponent:z=F.createElement(vn,null)})=>{if(!g)return null;const Z=z.props?z.props:{};return F.cloneElement(z,Object.assign(Object.assign(Object.assign({},u&&{id:`${u}-${z.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:bs.label.subTitle,text:g,textAnchor:y==="right"?"start":"middle",verticalAnchor:"middle",x:EA({height:A,labelPosition:y,legendPosition:s,padding:j,width:T}),y:PA({dy:ee,height:A,labelPosition:y,padding:j,width:T})}),Z))},X=({dy:ee=0,styles:z=bs.label.title,titles:Z=S})=>{if(!Z)return null;const q=O?O.props:{};return F.cloneElement(O,Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(Z)&&{capHeight:i}),u&&{id:`${u}-${O.type.displayName}-title`}),{key:"pf-chart-donut-title",style:z,text:Z,textAnchor:"middle",verticalAnchor:"middle",x:EA({height:A,labelPosition:"center",legendPosition:s,padding:j,width:T}),y:PA({dy:ee,height:A,labelPosition:"center",padding:j,width:T})}),q))},re=F.createElement(nv,Object.assign({allowTooltip:t,height:A,innerRadius:M>0?M:0,key:"pf-chart-donut-pie",legendAllowWrap:l,legendPosition:s,name:u,padAngle:c!==void 0?c:D,padding:f,radius:N>0?N:0,standalone:!1,theme:w,width:T},k)),ne=F.cloneElement(a,Object.assign({desc:n,height:A,title:r,width:T,theme:w},a.props),[re,I()]);return h?F.createElement(F.Fragment,null,ne):F.createElement(F.Fragment,null,re,I())};hd.displayName="ChartDonut",Lt(hd,dd);var kT;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(kT||(kT={}));var ET;(function(e){e.horizontal="horizontal",e.vertical="vertical"})(ET||(ET={}));var PT;(function(e){e.bottom="bottom",e.right="right"})(PT||(PT={}));var jT;(function(e){e.ascending="ascending",e.descending="descending"})(jT||(jT={}));var MT;(function(e){e.bottom="bottom",e.center="center",e.right="right"})(MT||(MT={}));const iv=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,containerComponent:a=F.createElement(Gn,null),data:o,invert:l=!1,isStatic:s=!0,legendPosition:u=Bt.legend.position,padding:c,standalone:f=!0,themeColor:d,themeVariant:h,thresholds:g,x:p,y,theme:_=che(d),height:b=_.pie.height,width:S=_.pie.width}=e,O=Re(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","containerComponent","data","invert","isStatic","legendPosition","padding","standalone","themeColor","themeVariant","thresholds","x","y","theme","height","width"]);const w=()=>{const M=A(),E=[{x:M[0]._x,y:M[0]._y||0}];return s&&E.push({y:M[0]._x?Math.abs(100-M[0]._y):100}),E},A=()=>{const M=[Object.assign({},o)];return dg(M,Object.assign({x:p,y},O),["x","y"]).sort((E,I)=>E._y-I._y)},T=()=>{const M=[];if(g){const E=po(g,"value",l?"desc":"asc"),I=CA.thresholds.colorScale.length;for(let D=0;D<E.length;D++)M.push({color:E[D].color?E[D].color:CA.thresholds.colorScale[D%I],value:E[D].value})}return M},k=()=>{const M=Object.assign({},_),E=A();if(E){const I=T(),D=W=>{M.pie.colorScale instanceof Array?M.pie.colorScale[0]=I[W].color:M.pie.colorScale=I[W].color,M.legend.colorScale instanceof Array?M.legend.colorScale[0]=I[W].color:M.legend.colorScale=I[W].color};for(let W=0;W<I.length;W++)l?E[0]._y<=I[W].value&&D(W):E[0]._y>=I[W].value&&D(W)}return M},j=F.createElement(hd,Object.assign({allowTooltip:t,colorScale:i,data:w(),height:b,key:"pf-chart-donut-utilization",legendPosition:u,padding:c,standalone:!1,theme:k(),width:S},O)),N=F.cloneElement(a,Object.assign({desc:n,height:b,title:r,width:S,theme:_},a.props),[j]);return f?F.createElement(F.Fragment,null,N):F.createElement(F.Fragment,null,j)};iv.displayName="ChartDonutUtilization",Lt(iv,dd);const av=e=>{var{dx:t=0,index:n=0,legendData:r,legendLabelComponent:i=F.createElement(vn,null),style:a,text:o,textAnchor:l="end",valueLabelComponent:s=F.createElement(vn,null),x:u,y:c}=e,f=Re(e,["dx","index","legendData","legendLabelComponent","style","text","textAnchor","valueLabelComponent","x","y"]);const d=_=>{const b=S=>ae(Object.assign({},S),{fill:qn.label.fill});return Array.isArray(_)?_.map(b):b(_)},h=()=>{const _=r&&r.length?r[n].name:void 0;return F.cloneElement(i,{style:d({}),text:_,textAnchor:"start",x:u,y:c})},g=()=>{const _=u+fe(t);return F.cloneElement(s,Object.assign({style:d(a),text:o,textAnchor:l,x:_,y:c},f))},p=h(),y=g();return F.createElement(F.Fragment,null,p,y)};av.displayName="ChartLegendTooltipLabel",Lt(av,wt);const ov=e=>{var{activePoints:t,center:n,datum:r,dx:i=0,dy:a=0,flyoutHeight:o,flyoutWidth:l,height:s,labelComponent:u=F.createElement(av,null),legendComponent:c=F.createElement(Ro,null),legendData:f,patternScale:d,text:h,themeColor:g,themeVariant:p,title:y,titleComponent:_=F.createElement(vn,null),width:b,theme:S=rn(g)}=e,O=Re(e,["activePoints","center","datum","dx","dy","flyoutHeight","flyoutWidth","height","labelComponent","legendComponent","legendData","patternScale","text","themeColor","themeVariant","title","titleComponent","width","theme"]);const w=S&&S.tooltip?fe(S.tooltip.pointerLength):10,A=iT(c.props),T=Wp({activePoints:t,colorScale:A.colorScale,legendData:f,text:h,theme:S}),k=0,j=y?5:-10,N=10,M=0,E=()=>{if(!(n||l||b)){const z=O.x;return z||void 0}const ee=fe(l);return b>n.x+ee+w?n.x+qn.flyout.padding/2:n.x<ee+w?qn.flyout.padding/2-w:n.x-ee},I=()=>{if(!(n||o||s)){const z=O.y;return z||void 0}const ee=fe(o);return n.y<ee/2?qn.flyout.padding/2:n.y>s-ee/2?s-ee+qn.flyout.padding/2:n.y-ee/2+qn.flyout.padding/2},D=Rp({legendData:T,legendProps:A,text:aT({activePoints:t,legendData:f,text:h}),theme:S}),W=Rp({legendData:[{name:""}],legendProps:A,theme:S}),X=()=>F.cloneElement(u,Object.assign({dx:D.width-W.width,legendData:T},u.props)),re=()=>{const ee=y instanceof Function?y(r):y;return F.cloneElement(_,Object.assign({style:{fill:qn.label.fill,fontWeight:qn.label.fontWeight},text:ee,textAnchor:"start",x:E()+N+fe(i),y:I()+M+fe(a)},_.props))},ne=()=>F.cloneElement(c,Object.assign({data:Wp({activePoints:t,colorScale:A.colorScale,legendData:f,patternScale:d,text:h,textAsLegendData:!0,theme:S}),labelComponent:X(),patternScale:d,standalone:!1,theme:S,x:E()+k+fe(i),y:I()+j+fe(a)},A));return F.createElement(F.Fragment,null,re(),ne())};ov.displayName="ChartLegendTooltipContent",Lt(ov,xs,{getBaseProps:!0});const lv=e=>{var{activePoints:t,datum:n,center:r={x:0,y:0},flyoutHeight:i,flyoutWidth:a,height:o,isCursorTooltip:l=!0,labelComponent:s=F.createElement(ov,null),legendData:u,patternScale:c,text:f,themeColor:d,themeVariant:h,title:g,width:p,theme:y=rn(d)}=e,_=Re(e,["activePoints","datum","center","flyoutHeight","flyoutWidth","height","isCursorTooltip","labelComponent","legendData","patternScale","text","themeColor","themeVariant","title","width","theme"]);const b=y&&y.tooltip?fe(y.tooltip.pointerLength):10,S=()=>({legendData:Wp({activePoints:t,legendData:u,text:f,theme:y}),legendProps:iT(s.props.legendComponent?s.props.legendComponent.props:void 0),text:aT({activePoints:t,legendData:u,text:f}),theme:y}),O=({height:k})=>{const j=k+qn.flyout.padding;return g?j:j-10},w=({width:k})=>k+qn.flyout.padding,A=k=>F.cloneElement(s,Object.assign({center:r,flyoutHeight:i||O(k),flyoutWidth:a||w(k),height:o,legendData:u,patternScale:c,title:g,width:p},s.props));return(()=>{const k=Rp(S());if(k.height===0&&k.width===0)return null;const j=w(k),N=l?F.createElement(Xf,null):F.createElement(_s,null);return F.cloneElement(N,Object.assign(Object.assign(Object.assign({activePoints:t,center:r,datum:n,flyoutHeight:i||O(k),flyoutWidth:a||w(k),height:o,labelComponent:A(k)},a===void 0&&{showPointer:p>j+r.x+b||r.x>j+b}),{text:f,theme:y,width:p}),_))})()};lv.displayName="ChartLegendTooltip",Lt(lv,kr);var wme=function(e){var t=Gt(e);t.length<2&&(t=[]);var n={x:xt(e,"x"),y:xt(e,"y")},r={x:ba(e,"x"),y:ba(e,"y")},i={x:Bn(e,"x").domain(r.x).range(e.horizontal?n.y:n.x),y:Bn(e,"y").domain(r.y).range(e.horizontal?n.x:n.y)},a=e.polar?e.origin||Kl(e):void 0,o=hc(e,"line"),l=Yl(e.style,o);return{domain:r,data:t,scale:i,style:l,origin:a}},Ome=function(e,t){var n=St(e,t,"line");e=R({},n,wme(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.groupComponent,s=r.height,u=r.horizontal,c=r.interpolation,f=r.origin,d=r.padding,h=r.polar,g=r.scale,p=r.sharedEvents,y=r.standalone,_=r.style,b=r.theme,S=r.width,O=r.labels,w=r.name,A=r.disableInlineStyles,T={parent:{style:_.parent,scale:g,data:i,height:s,width:S,name:w,domain:a,standalone:y,polar:h,origin:f,padding:d,horizontal:u},all:{data:{horizontal:u,polar:h,origin:f,scale:g,data:i,interpolation:c,groupComponent:l,style:A?{}:_.data,theme:b,disableInlineStyles:A}}};return i.reduce(function(k,j,N){var M=Fc(e,j,N);if(M!=null||O&&(o||p)){var E=pa(j.eventKey)?N:j.eventKey;k[E]={labels:F0(e,N)}}return k},T)};function DT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DT(Object(n),!0).forEach(function(r){Cme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cme(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ame=function(e){var t=fe(e.ariaLabel,e),n=fe(e.id,e),r=Ze(R({fill:"none",stroke:"black",pointerEvents:"stroke"},e.style),e),i=fe(e.tabIndex,e);return R({},e,{ariaLabel:t,id:n,style:r,tabIndex:i})},sv=function(e){e=Ame(e);var t=or(e),n=e,r=n.polar,i=n.origin,a=YO(e),o=r&&i?"translate(".concat(i.x,", ").concat(i.y,")"):void 0,l=a(e.data);return x.cloneElement(e.pathComponent,Ss(Ss(Ss({},e.events),t),{},{"aria-label":e.ariaLabel,d:l,style:e.style,transform:e.transform||o,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};sv.propTypes=Ss(Ss({},Ot.primitiveProps),{},{interpolation:m.oneOfType([m.string,m.func]),openCurve:m.bool,origin:m.shape({x:m.number.isRequired,y:m.number.isRequired}),pathComponent:m.element,polar:m.bool}),sv.defaultProps={pathComponent:x.createElement(Mi,null),role:"presentation",shapeRendering:"auto"};function IT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IT(Object(n),!0).forEach(function(r){Tme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tme(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Eme(e,t,n){return t&&$T(e.prototype,t),n&&$T(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cv(e,t)}function cv(e,t){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cv(e,t)}function jme(e){var t=Ime();return function(){var r=md(e),i;if(t){var a=md(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Mme(this,i)}}function Mme(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dme(e)}function Dme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ime(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function md(e){return md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},md(e)}var LT={width:450,height:300,padding:50,interpolation:"linear"},$me={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Tn=function(e){Pme(n,e);var t=jme(n);function n(r){return kme(this,n),t.call(this,r)}return Eme(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,LT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Mc(s,o)}}]),n}(x.Component);Tn.animationWhitelist=["data","domain","height","padding","samples","style","width"],Tn.displayName="VictoryLine",Tn.role="line",Tn.defaultTransitions=Yw(),Tn.defaultPolarTransitions=Kw(),Tn.continuous=!0,Tn.propTypes=uv(uv(uv({},Ot.baseProps),Ot.dataProps),{},{interpolation:m.oneOfType([m.oneOf(["basis","bundle","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),m.func]),label:pS(m.string,"Use `labels` instead for individual data labels")}),Tn.defaultProps={containerComponent:x.createElement(ze,null),dataComponent:x.createElement(sv,null),labelComponent:x.createElement(wt,{renderInPortal:!0}),groupComponent:x.createElement(ga,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Cr.grayscale},Tn.getDomain=ba,Tn.getData=Gt,Tn.getBaseProps=function(e){return Ome(e,LT)},Tn.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var FT=ya(Tn,$me),NT;(function(e){e.ascending="ascending",e.descending="descending"})(NT||(NT={}));const fv=e=>{var{containerComponent:t=F.createElement(Gn,null),themeColor:n,themeVariant:r,theme:i=rn(n)}=e,a=Re(e,["containerComponent","themeColor","themeVariant","theme"]);const o=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(FT,Object.assign({containerComponent:o,theme:i},a))};fv.displayName="ChartLine",Lt(fv,FT);function Lme(e,t){return Rme(e)||Bme(e,t)||Nme(e,t)||Fme()}function Fme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
330
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nme(e,t){if(e){if(typeof e=="string")return BT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BT(e,t)}}function BT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function Rme(e){if(Array.isArray(e))return e}function RT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RT(Object(n),!0).forEach(function(r){Wme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wme(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zT={width:450,height:300,padding:50};function zme(e,t){var n=e.fillInMissingData,r=t.reduce(function(o,l){return l.forEach(function(s){o[s._x instanceof Date?s._x.getTime():s._x]=!0}),o},{}),i=Ke(r).map(function(o){return Number(o)}),a=po(i);return t.map(function(o){var l=0,s=o[0]&&o[0]._x instanceof Date,u=a.map(function(c,f){c=Number(c);var d=o[f-l];if(d){var h=s?d._x.getTime():d._x;if(h===c)return d;l++;var g=n?0:null;return c=s?new Date(c):c,{x:c,y:g,_x:c,_y:g}}var p=n?0:null;return c=s?new Date(c):c,{x:c,y:p,_x:c,_y:p}});return u})}function Vme(e,t,n){if(e.y0)return e.y0;var r=e._y,i=e._group,a=n[0].map(function(u){return u.y0}),o=n.slice(0,t),l=o.reduce(function(u,c){return u.concat(c.filter(function(f){return e._x instanceof Date?f._x.getTime()===e._x.getTime():f._x===e._x}).map(function(f){return f._y||0}))},[]),s=l.length&&l.reduce(function(u,c){var f=r<0&&c<0||r>=0&&c>=0;return f?Number(c)+u:u},a[i]||0);return l.some(function(u){return u instanceof Date})?new Date(s):s}function Ume(e,t,n){var r=e.xOffset||0;return t[n].map(function(i){var a=Vme(i,n,t)||0;return R({},i,{_y0:i._y instanceof Date?a?new Date(a):i._y:a,_y1:i._y===null?null:i._y instanceof Date?new Date(Number(i._y)+Number(a)):i._y+a,_x1:i._x===null?null:i._x instanceof Date?new Date(Number(i._x)+Number(r)):i._x+r})})}function Hme(e,t){var n=Aee(e,t),r=n.map(function(a){return a.filter(function(o){return o._x!==null&&o._y!==null})}),i=zme(e,r);return i.map(function(a,o){return Ume(e,i,o)})}function VT(e,t){t=t||x.Children.toArray(e.children);var n="stack";e=St(e,zT,n);var r=Eee(e.theme,e.style,n),i=e.categories||iC(e,t),a=e.datasets||Hme(e,t),o=t.map(function(g,p){return x.cloneElement(g,{data:a[p]})}),l={x:Rg(R({},e,{categories:i}),"x",o),y:Rg(R({},e,{categories:i}),"y",o)},s=e.range||{x:xt(e,"x"),y:xt(e,"y")},u={x:as(e,"x")||Af(e,"x"),y:as(e,"y")||Af(e,"y")},c={x:u.x.domain(l.x).range(e.horizontal?s.y:s.x),y:u.y.domain(l.y).range(e.horizontal?s.x:s.y)},f=e,d=f.colorScale,h=f.horizontal;return{datasets:a,categories:i,range:s,domain:l,horizontal:h,scale:c,style:r,colorScale:d,role:n}}var qme=function(e){var t=e.children,n=x.Children.toArray(t).map(function(r){var i=r;return WT(WT({},i),{},{props:_o(i.props,["sharedEvents"])})});return e.children=n,e};function Gme(e){var t=qme(e),n=x.useState(t),r=Lme(n,2),i=r[0],a=r[1];return x.useEffect(function(){fn(t,i)||a(t)},[i,a,t]),x.useMemo(function(){return VT(i,i.children)},[i])}function Yme(e,t,n){if(e.labels)return t.length===n+1?e.labels:void 0}function Kme(e,t){var n=t.categories,r=t.domain,i=t.range,a=t.scale,o=t.horizontal;return{height:e.height,width:e.width,padding:lt(e),standalone:!1,theme:e.theme,categories:n,domain:r,range:i,scale:a,horizontal:o}}function Zme(e,t){var n=t.type&&t.type.role,r=t.props.colorScale||e.colorScale;if(!(n!=="group"&&n!=="stack"))return e.theme?r||e.theme.props.colorScale:r}function UT(e,t,n){e=St(e,zT,"stack"),t=t||x.Children.toArray(e.children),n=n||VT(e,t);var r=n,i=r.datasets,a=Kme(e,n),o=e.name||"stack";return t.map(function(l,s){var u=l.type&&l.type.role,c=i[s],f=Pee(l,s,n),d=e.labels?Yme(e,i,s):l.props.labels,h=l.props.name||"".concat(o,"-").concat(u,"-").concat(s);return x.cloneElement(l,R({key:"".concat(h,"-key-").concat(s),labels:d,name:h,domainPadding:l.props.domainPadding||e.domainPadding,theme:e.theme,labelComponent:e.labelComponent||l.props.labelComponent,style:f,colorScale:Zme(e,l),data:c,polar:e.polar},a))})}function HT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HT(Object(n),!0).forEach(function(r){Xme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xme(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jme={width:450,height:300,padding:50},dv=function(e){var t=gd.role,n=tO(),r=n.setAnimationState,i=n.getAnimationProps,a=n.getProps,o=a(e),l=St(o,Jme,t),s=l.eventKey,u=l.containerComponent,c=l.standalone,f=l.groupComponent,d=l.externalEventMutations,h=l.width,g=l.height,p=l.theme,y=l.polar,_=l.horizontal,b=l.name,S=x.Children.toArray(l.children),O=Gme(l),w=O.domain,A=O.scale,T=O.style,k=x.useMemo(function(){var D=UT(o,S,O),W=D.map(function(X,re){var ne=R({animate:i(o,X,re)},X.props);return x.cloneElement(X,ne)});return W.reverse()},[o,S,O,i]),j=x.useMemo(function(){return c?{domain:w,scale:A,width:h,height:g,standalone:c,theme:p,style:T.parent,horizontal:_,polar:y,name:b}:{}},[c,w,A,h,g,p,T,_,y,b]),N=x.useMemo(function(){return or(e)},[e]),M=x.useMemo(function(){if(c){var D=ae({},u.props,j,N);return x.cloneElement(u,D)}return x.cloneElement(f,N)},[f,c,u,j,N]),E=x.useMemo(function(){return tC(o)},[o]),I=Zw(e);return x.useEffect(function(){return function(){e.animate&&r(I,e)}},[r,I,e]),rt(E)?x.cloneElement(M,M.props,k):x.createElement(wa,{container:M,eventKey:s,events:E,externalEventMutations:d},k)};dv.propTypes=qT(qT({},Ot.baseProps),{},{bins:m.oneOfType([m.arrayOf(m.oneOfType([_e,m.instanceOf(Date)])),_e]),categories:m.oneOfType([m.arrayOf(m.string),m.shape({x:m.arrayOf(m.string),y:m.arrayOf(m.string)})]),children:m.oneOfType([m.arrayOf(m.node),m.node]),colorScale:m.oneOfType([m.arrayOf(m.string),m.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),fillInMissingData:m.bool,horizontal:m.bool,labelComponent:m.element,labels:m.oneOfType([m.func,m.array]),style:m.shape({parent:m.object,data:m.object,labels:m.object}),xOffset:m.number}),dv.defaultProps={containerComponent:x.createElement(ze,null),groupComponent:x.createElement("g",null),standalone:!0,theme:Cr.grayscale,fillInMissingData:!0};var Qme={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:UT},gd=Object.assign(x.memo(dv,fn),Qme);gd.displayName="VictoryStack";const pd=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,containerComponent:a=F.createElement(Gn,null),hasPatterns:o,patternScale:l,themeColor:s,themeVariant:u,theme:c=rn(s)}=e,f=Re(e,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","themeVariant","theme"]);const d=F.cloneElement(a,Object.assign(Object.assign({desc:t,title:n,theme:c},a.props),{className:jp({className:a.props.className})})),{defaultPatternScale:h}=Fp({colorScale:i,hasPatterns:o,patternScale:l,themeColorScale:c.stack.colorScale});return F.createElement(gd,Object.assign({colorScale:i,containerComponent:d,theme:c},f),dce({children:r,patternScale:h}))};pd.displayName="ChartStack",Lt(pd,gd);function e0e(e){return e.horizontal?v.jsx(t0e,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!=!0?v.jsx(x.Fragment,{},n):v.jsxs(n0e,{children:[v.jsx(GT,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,color:t.color}),e.showLegendCount==!1?null:v.jsx(YT,{count:t.count}),v.jsx(KT,{label:t.label,link:t.link})]},n))}):v.jsx(r0e,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!=!0?v.jsx(x.Fragment,{},n):v.jsxs(x.Fragment,{children:[v.jsx(GT,{color:t.color}),e.showLegendCount==!1?null:v.jsx(YT,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,count:t.count}),v.jsx(KT,{label:t.label,link:t.link})]},n))})}function GT(e){return v.jsx(i0e,{id:e.id,style:{backgroundColor:e.color}})}function YT(e){return v.jsx(a0e,{id:e.id,children:e.count})}function KT(e){return v.jsx(o0e,{children:e.link?v.jsx(Rt.Link,{to:e.link,style:{textDecoration:"none"},children:e.label}):e.label})}const t0e=De.div`
328
+ z`}},mhe=e=>{const{x:t,y:n}=e,r=fe(e.size,e);if(e.getPath)return e.getPath(t,n,r);const i={circle:Cn.circle,square:Cn.square,diamond:Cn.diamond,eyeSlash:Cn.eyeSlash,triangleDown:Cn.triangleDown,triangleLeft:Cn.triangleLeft,triangleRight:Cn.triangleRight,triangleUp:Cn.triangleUp,plus:Cn.plus,minus:Cn.minus,star:Cn.star,dash:Cn.dash,threshold:Cn.threshold},o=fe(e.symbol,e);return(typeof i[o]=="function"?i[o]:i.square)(t,n,r)},oT=e=>{var{active:t,className:n,clipPath:r,datum:i,desc:a,events:o,pathComponent:l=F.createElement(Mi,null),role:s="presentation",shapeRendering:u="auto",tabIndex:c,transform:f}=e,d=Re(e,["active","className","clipPath","datum","desc","events","pathComponent","role","shapeRendering","tabIndex","transform"]);const h=Object.assign({active:t,className:n,clipPath:r,datum:i,desc:a,events:o,role:s,shapeRendering:u,tabIndex:c,transform:f},d);return F.cloneElement(l,Object.assign(Object.assign({className:n,clipPath:r,d:mhe(h),desc:fe(a,h)},o),{role:s,shapeRendering:u,style:Ze(d.style,h),tabIndex:fe(c,h),transform:f}))};oT.displayName="ChartPoint";var lT;(function(e){e.horizontal="horizontal",e.vertical="vertical"})(lT||(lT={}));var rd;(function(e){e.bottom="bottom",e.bottomLeft="bottom-left",e.right="right"})(rd||(rd={}));var sT;(function(e){e.bottom="bottom",e.top="top"})(sT||(sT={}));const Ro=e=>{var{colorScale:t,containerComponent:n=F.createElement(Gn,null),dataComponent:r=F.createElement(oT,null),labelComponent:i=F.createElement(vn,null),name:a,patternScale:o,responsive:l=!0,style:s,themeColor:u,themeVariant:c,titleComponent:f=F.createElement(vn,null),theme:d=rn(u)}=e,h=Re(e,["colorScale","containerComponent","dataComponent","labelComponent","name","patternScale","responsive","style","themeColor","themeVariant","titleComponent","theme"]);const g=()=>{if(!o)return s;const b=s?Object.assign({},s):{};return b.data=Object.assign({fill:({index:S})=>{const O=d&&d.legend&&d.legend.colorScale?d.legend.colorScale[S%d.legend.colorScale.length]:void 0,w=t?t[S%t.length]:O,A=o[S%o.length];return A||w}},b.data),b},p=F.cloneElement(n,Object.assign({responsive:l,theme:d},n.props)),y=()=>F.cloneElement(i,Object.assign(Object.assign({},a&&{id:b=>`${a}-${i.type.displayName}-${b.index}`}),i.props)),_=()=>F.cloneElement(f,Object.assign(Object.assign({},a&&{id:()=>`${a}-${f.type.displayName}`}),f.props));return F.createElement(xs,Object.assign({colorScale:t,containerComponent:p,dataComponent:r,labelComponent:y(),name:a,style:g(),theme:d,titleComponent:_()},h))};Ro.displayName="ChartLegend",Lt(Ro,xs,{getBaseProps:!0}),Ro.getBaseProps=e=>{const t=rn(null);return xs.getBaseProps(Object.assign({titleComponent:F.createElement(vn,null)},e),{height:t.chart.height,orientation:t.legend.orientation,titleOrientation:t.legend.titleOrientation,x:0,y:0,width:t.chart.width})};const zp=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,hasPatterns:a,legendAllowWrap:o=!1,legendComponent:l=F.createElement(Ro,null),legendData:s,legendPosition:u=Bt.legend.position,name:c,padding:f,patternScale:d,showAxis:h=!0,themeColor:g,themeVariant:p,theme:y=she(g,h),containerComponent:_=F.createElement(Gn,null),legendOrientation:b=y.legend.orientation,height:S=y.chart.height,width:O=y.chart.width}=e,w=Re(e,["ariaDesc","ariaTitle","children","colorScale","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","name","padding","patternScale","showAxis","themeColor","themeVariant","theme","containerComponent","legendOrientation","height","width"]);const A={bottom:On("bottom",f,y.chart.padding),left:On("left",f,y.chart.padding),right:On("right",f,y.chart.padding),top:On("top",f,y.chart.padding)},{defaultColorScale:T,defaultPatternScale:k,isPatternDefs:j,patternId:N}=Fp({colorScale:i,patternScale:d,hasPatterns:a,themeColorScale:y.chart.colorScale});let M;_.props.labelComponent&&_.props.labelComponent.type.displayName==="ChartLegendTooltip"&&(M=F.cloneElement(_.props.labelComponent,Object.assign(Object.assign({theme:y},k&&{patternScale:k}),_.props.labelComponent.props)));const E=F.cloneElement(_,Object.assign(Object.assign(Object.assign({desc:t,title:n,theme:y},_.props),{className:jp({className:_.props.className})}),M&&{labelComponent:M})),D=F.cloneElement(l,Object.assign(Object.assign(Object.assign({data:s},c&&{name:`${c}-${l.type.displayName}`}),{orientation:b,theme:y}),l.props)),I=()=>{if(!D.props.data)return null;let Z=0,ne=0,re=0,J=D.props.title?10:0;return F.Children.toArray(r).map(z=>{z.type.role==="axis"&&z.props.label&&!z.props.dependentAxis&&(re=vue({text:z.props.label,theme:y}).height+10,J=0)}),u===rd.bottom?ne+=re+J:u===rd.bottomLeft&&(ne+=re+J,Z=-10),h||(ne-=Mx.value),zA(Object.assign({allowWrap:o,chartType:"chart",colorScale:i,dx:Z,dy:ne,height:S,legendComponent:D,padding:A,position:u,theme:y,width:O},k&&{patternScale:k}))},W=()=>F.Children.toArray(r).map((Z,ne)=>{if(F.isValidElement(Z)){const re=Re(Z.props,[]);return F.cloneElement(Z,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:i},k&&{patternScale:k}),c&&typeof Z.name!==void 0&&{name:`${c}-${Z.type.displayName}-${ne}`}),{theme:y}),re),Z.type.displayName==="ChartPie"&&{data:cce(re.data,k)}))}return Z});return F.createElement(Df,Object.assign({colorScale:i,containerComponent:E,height:S,name:c,padding:A,theme:y,width:O},w),W(),I(),j&&Lp({patternId:N,colorScale:T}))};zp.displayName="Chart",Lt(zp,Df);var ghe=function(e,t){var n=Gt(e);n.length<2&&(n=[]);var r=function(i){var a=hS(t[i])==="log"?1/Number.MAX_SAFE_INTEGER:0,o=t[i].domain(),l=dn(o),s=Ln(o),u=a;return l<0&&s<=0?u=s:l>=0&&s>0&&(u=l),$n(o)?new Date(u):u};return n.map(function(i){var a=i._y1!==void 0?i._y1:i._y,o=i._y0!==void 0?i._y0:r("y"),l=i._x1!==void 0?i._x1:i._x,s=i._x0!==void 0?i._x0:r("x");return R({},i,{_y0:o,_y1:a,_x0:s,_x1:l})})},phe=function(e){var t=e.polar,n=hc(e,"area"),r=Yl(e.style,n),i={x:xt(e,"x"),y:xt(e,"y")},a={x:bg(e,"x"),y:bg(e,"y")},o={x:Bn(e,"x").domain(a.x).range(e.horizontal?i.y:i.x),y:Bn(e,"y").domain(a.y).range(e.horizontal?i.x:i.y)},l=t?e.origin||Kl(e):void 0,s=ghe(e,o);return{style:r,data:s,scale:o,domain:a,origin:l}},vhe=function(e,t){var n=St(e,t,"area");e=R({},n,phe(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.groupComponent,s=r.height,u=r.horizontal,c=r.interpolation,f=r.origin,d=r.padding,h=r.polar,g=r.scale,p=r.sharedEvents,y=r.standalone,_=r.style,b=r.theme,S=r.width,O=r.labels,w=r.name,A=r.disableInlineStyles,T={parent:{style:_.parent,width:S,height:s,scale:g,data:i,domain:a,standalone:y,theme:b,polar:h,origin:f,padding:d,name:w,horizontal:u},all:{data:{horizontal:u,polar:h,origin:f,scale:g,data:i,interpolation:c,groupComponent:l,style:A?{}:_.data,disableInlineStyles:A}}};return i.reduce(function(k,j,N){var M=Fc(e,j,N);if(M!=null||O&&(o||p)){var E=pa(j.eventKey)?N:j.eventKey;k[E]={labels:F0(e,N)}}return k},T)};function uT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function id(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uT(Object(n),!0).forEach(function(r){yhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yhe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vp=function(e){var t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},cT=function(e){return function(t){return e.x(t._x1!==void 0?t._x1:t._x)}},Up=function(e){return function(t){return e.y(t._y1!==void 0?t._y1:t._y)}},Hp=function(e){return function(t){return e.y(t._y0)}},bhe=function(e){return function(t){var n=e.x(t._x1!==void 0?t._x1:t._x);return-1*n+Math.PI/2}},_he=function(e){var t=e.horizontal,n=e.scale,r=xf(e);return t?hf().defined(Vp).curve(r).x0(Hp(n)).x1(Up(n)).y(cT(n)):hf().defined(Vp).curve(r).x(cT(n)).y1(Up(n)).y0(Hp(n))},xhe=function(e){var t=e.polar,n=e.scale,r=xf(e);return t?Pg().defined(Vp).curve(r).angle(bhe(n)).outerRadius(Up(n)).innerRadius(Hp(n)):_he(e)},She=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Ze(R({fill:"black"},e.style),e),a=fe(e.tabIndex,e);return R({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},qp=function(e){e=She(e);var t=e,n=t.ariaLabel,r=t.role,i=t.shapeRendering,a=t.className,o=t.polar,l=t.origin,s=t.data,u=t.pathComponent,c=t.events,f=t.groupComponent,d=t.clipPath,h=t.id,g=t.style,p=t.desc,y=t.tabIndex,_=or(e),b=o&&l?"translate(".concat(l.x,", ").concat(l.y,")"):void 0,S=e.transform||b,O=g.stroke&&g.stroke!=="none"&&g.stroke!=="transparent",w=xhe(e),A=O&&YO(e),T=g.stroke?"none":g.fill,k=id(id({"aria-label":n,className:a,role:r,shapeRendering:i,transform:S},c),{},{clipPath:d,tabIndex:y}),j=x.cloneElement(u,R({key:"".concat(h,"-area"),style:R({},g,{stroke:T}),d:w(s),desc:p,tabIndex:y},k,_)),N=O?x.cloneElement(u,R({key:"".concat(h,"-area-stroke"),style:R({},g,{fill:"none"}),d:A(s)},k)):null;return O?x.cloneElement(f,_,[j,N]):j};qp.propTypes=id(id({},Ot.primitiveProps),{},{groupComponent:m.element,interpolation:m.oneOfType([m.string,m.func]),pathComponent:m.element}),qp.defaultProps={groupComponent:x.createElement("g",null),pathComponent:x.createElement(Mi,null),role:"presentation",shapeRendering:"auto"};function fT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fT(Object(n),!0).forEach(function(r){whe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function whe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ohe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Che(e,t,n){return t&&dT(e.prototype,t),n&&dT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ahe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yp(e,t)}function Yp(e,t){return Yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Yp(e,t)}function The(e){var t=Phe();return function(){var r=ad(e),i;if(t){var a=ad(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return khe(this,i)}}function khe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ehe(e)}function Ehe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Phe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ad(e){return ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ad(e)}var hT={width:450,height:300,padding:50,interpolation:"linear"},jhe={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},An=function(e){Ahe(n,e);var t=The(n);function n(){return Ohe(this,n),t.apply(this,arguments)}return Che(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,hT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Mc(s,o)}}]),n}(x.Component);An.animationWhitelist=["data","domain","height","padding","style","width"],An.propTypes=Gp(Gp(Gp({},Ot.baseProps),Ot.dataProps),{},{interpolation:m.oneOfType([m.oneOf(["basis","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),m.func]),label:pS(m.string,"Use `labels` instead for individual data labels")}),An.defaultProps={containerComponent:x.createElement(ze,null),dataComponent:x.createElement(qp,null),groupComponent:x.createElement(ga,null),labelComponent:x.createElement(wt,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Cr.grayscale},An.displayName="VictoryArea",An.role="area",An.continuous=!0,An.defaultTransitions=Yw(),An.defaultPolarTransitions=Kw(),An.getDomain=bg,An.getData=Gt,An.getBaseProps=function(e){return vhe(e,hT)},An.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var mT=ya(An,jhe),gT;(function(e){e.ascending="ascending",e.descending="descending"})(gT||(gT={}));const Kp=e=>{var{containerComponent:t=F.createElement(Gn,null),themeColor:n,themeVariant:r,theme:i=rn(n)}=e,a=Re(e,["containerComponent","themeColor","themeVariant","theme"]);const o=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(mT,Object.assign({containerComponent:o,theme:i},a))};Kp.displayName="ChartArea",Lt(Kp,mT);const od=e=>{var{axisLabelComponent:t=F.createElement(vn,null),containerComponent:n=F.createElement(Gn,null),name:r,showGrid:i=!1,themeColor:a,themeVariant:o,tickLabelComponent:l=F.createElement(vn,null),theme:s=rn(a)}=e,u=Re(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","themeVariant","tickLabelComponent","theme"]);const c=F.cloneElement(n,Object.assign({theme:s},n.props)),f=()=>F.cloneElement(t,Object.assign(Object.assign({},r&&{id:()=>`${r}-${t.type.displayName}`}),t.props)),d=()=>F.cloneElement(l,Object.assign(Object.assign({},r&&{id:h=>`${r}-${l.type.displayName}-${h.index}`}),l.props));return F.createElement(ps,Object.assign({axisLabelComponent:f(),containerComponent:c,name:r,theme:i?lhe(a):s,tickLabelComponent:d()},u))};od.displayName="ChartAxis",Lt(od,ps);function Zp(e){return $he(e)||Ihe(e)||Dhe(e)||Mhe()}function Mhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
329
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dhe(e,t){if(e){if(typeof e=="string")return Xp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xp(e,t)}}function Ihe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $he(e){if(Array.isArray(e))return Xp(e)}function Xp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Lhe=function(e,t){return t.bubbleProperty?"circle":e.symbol||t.symbol},Fhe=function(e,t){var n=t.data,r=t.z,i=t.maxBubbleSize,a=t.minBubbleSize,o=n.map(function(_){return _[r]}),l=Math.min.apply(Math,Zp(o)),s=Math.max.apply(Math,Zp(o)),u=function(){var _=Math.min.apply(Math,Zp(fc(lt(t))));return Math.max(_,5)},c=i||u(),f=a||c*.1;if(s===l)return Math.max(f,1);var d=Math.PI*Math.pow(c,2),h=Math.PI*Math.pow(f,2),g=(e[r]-l)/(s-l)*d,p=Math.max(g,h),y=Math.sqrt(p/Math.PI);return Math.max(y,1)},Nhe=function(e,t){var n=t.size,r=t.z;return e.size?typeof e.size=="function"?e.size:Math.max(e.size,1):typeof t.size=="function"?n:e[r]?Fhe(e,t):Math.max(n||0,1)},Bhe=function(e){var t=hc(e,"scatter"),n=Yl(e.style,t),r={x:xt(e,"x"),y:xt(e,"y")},i={x:ba(e,"x"),y:ba(e,"y")},a={x:Bn(e,"x").domain(i.x).range(e.horizontal?r.y:r.x),y:Bn(e,"y").domain(i.y).range(e.horizontal?r.x:r.y)},o=e.polar?e.origin||Kl(e):void 0,l=e.bubbleProperty||"z",s=Gt(e);return s=lJ(s,i),{domain:i,data:s,scale:a,style:n,origin:o,z:l}},Rhe=function(e,t){var n=St(e,t,"scatter");e=R({},n,Bhe(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.height,s=r.origin,u=r.padding,c=r.polar,f=r.scale,d=r.name,h=r.sharedEvents,g=r.standalone,p=r.style,y=r.theme,_=r.width,b=r.labels,S=r.horizontal,O=r.disableInlineStyles,w={parent:{style:p.parent,scale:f,domain:a,data:i,height:l,width:_,standalone:g,theme:y,origin:s,polar:c,padding:u,name:d,horizontal:S}};return i.reduce(function(A,T,k){var j=pa(T.eventKey)?k:T.eventKey,N=xo(e,T),M=N.x,E=N.y,D={x:M,y:E,datum:T,data:i,index:k,scale:f,polar:c,origin:s,horizontal:S,size:Nhe(T,e),symbol:Lhe(T,e),style:O?{}:p.data,disableInlineStyles:O};A[j]={data:D};var I=Fc(e,T,k);return(I!=null||b&&(o||h))&&(A[j].labels=F0(e,k)),A},w)};function pT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pT(Object(n),!0).forEach(function(r){Whe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Whe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vhe(e,t,n){return t&&vT(e.prototype,t),n&&vT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uhe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qp(e,t)}function Qp(e,t){return Qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qp(e,t)}function Hhe(e){var t=Yhe();return function(){var r=ld(e),i;if(t){var a=ld(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return qhe(this,i)}}function qhe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ghe(e)}function Ghe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yhe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ld(e)}var yT={width:450,height:300,padding:50,size:3,symbol:"circle"},ur=function(e){Uhe(n,e);var t=Hhe(n);function n(){return zhe(this,n),t.apply(this,arguments)}return Vhe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=sd.animationWhitelist,a=sd.role,o=St(this.props,yT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Mc(s,o)}}]),n}(x.Component);ur.animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"],ur.displayName="VictoryScatter",ur.role="scatter",ur.defaultTransitions=TJ(),ur.propTypes=Jp(Jp(Jp({},Ot.baseProps),Ot.dataProps),{},{bubbleProperty:m.string,maxBubbleSize:_e,minBubbleSize:_e,size:m.oneOfType([_e,m.func]),symbol:m.oneOfType([m.oneOf(["circle","cross","diamond","plus","minus","square","star","triangleDown","triangleUp"]),m.func])}),ur.defaultProps={containerComponent:x.createElement(ze,null),dataComponent:x.createElement(Xc,null),labelComponent:x.createElement(wt,null),groupComponent:x.createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Cr.grayscale},ur.getDomain=ba,ur.getData=Gt,ur.getBaseProps=function(e){return Rhe(e,yT)},ur.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var sd=ya(ur),bT;(function(e){e.ascending="ascending",e.descending="descending"})(bT||(bT={}));const ud=e=>{var{containerComponent:t=F.createElement(Gn,null),themeColor:n,themeVariant:r,theme:i=rn(n),size:a=({active:s})=>s?AA.activeSize:AA.size}=e,o=Re(e,["containerComponent","themeColor","themeVariant","theme","size"]);const l=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(sd,Object.assign({containerComponent:l,size:a,theme:i},o))};ud.displayName="ChartScatter",Lt(ud,sd);function _T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_T(Object(n),!0).forEach(function(r){Khe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_T(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Khe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zhe=function(e){var t=e.slice,n=e.radius,r=e.innerRadius,i=e.cornerRadius;if(Oe(e.pathFunction))return e.pathFunction(t);var a=st(e.padAngle),o=st(e.sliceStartAngle),l=st(e.sliceEndAngle),s=Cg().cornerRadius(i).outerRadius(n).innerRadius(r||0);return s(ae({startAngle:o,endAngle:l,padAngle:a},t))},Xhe=function(e){var t=Ze(e.style,e),n=fe(e.radius,R({},e,{style:t})),r=fe(e.innerRadius,R({},e,{style:t,radius:n})),i=fe(e.ariaLabel,e),a=fe(e.id,e),o=fe(e.cornerRadius,e),l=fe(e.padAngle,e),s=fe(e.sliceStartAngle,e),u=fe(e.sliceEndAngle,e),c=fe(e.tabIndex,e);return R({},e,{ariaLabel:i,style:t,radius:n,innerRadius:r,id:a,cornerRadius:o,padAngle:l,sliceStartAngle:s,sliceEndAngle:u,tabIndex:c})},ev=function(e){e=Xhe(e);var t=e.origin?"translate(".concat(e.origin.x,", ").concat(e.origin.y,")"):void 0;return x.cloneElement(e.pathComponent,cd(cd({},e.events),{},{"aria-label":e.ariaLabel,d:Zhe(e),style:e.style,transform:e.transform||t,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};ev.propTypes=cd(cd({},Ot.primitiveProps),{},{cornerRadius:m.oneOfType([m.number,m.func]),datum:m.object,innerRadius:m.oneOfType([m.number,m.func]),padAngle:m.oneOfType([m.number,m.func]),pathComponent:m.element,pathFunction:m.func,radius:m.oneOfType([m.number,m.func]),slice:m.object,sliceEndAngle:m.oneOfType([m.number,m.func]),sliceStartAngle:m.oneOfType([m.number,m.func])}),ev.defaultProps={pathComponent:x.createElement(Mi,null),role:"presentation",shapeRendering:"auto"};const Jhe=ev;var Qhe=function(e){return e==null||Oe(e)?e:"".concat(e)},eme=function(e,t,n){return e&&e.data&&e.data.fill?e.data.fill:t&&t[n%t.length]},tme=function(e,t){return typeof e.radius=="number"?e.radius:Math.min(e.width-t.left-t.right,e.height-t.top-t.bottom)/2},nme=function(e,t){var n=e.width,r=e.height,i=Qe(e.origin)?e.origin:{};return{x:i.x!==void 0?i.x:(t.left-t.right+n)/2,y:i.y!==void 0?i.y:(t.top-t.bottom+r)/2}},rme=function(e,t){var n=Oe(e.padAngle)?0:e.padAngle,r=lO().sort(null).startAngle(st(e.startAngle)).endAngle(st(e.endAngle)).padAngle(st(n)).value(function(i){return i._y});return r(t)},ime=function(e){var t=e.colorScale,n=hc(e,"pie"),r=Yl(e.style,n),i=Array.isArray(t)?t:B0(t),a=lt(e),o=tme(e,a),l=nme(e,a),s=Gt(e),u=rme(e,s);return R({},e,{style:r,colors:i,padding:a,defaultRadius:o,data:s,slices:u,origin:l})},ame=function(e,t){var n=t.style,r=t.colors,i=eme(n,r,e);return R({fill:i},n.data)},ome=function(e,t,n){var r;return t.label?r=t.label:Array.isArray(e.labels)?r=e.labels[n]:r=Oe(e.labels)?e.labels:t.xName||t._x,Qhe(r)},lme=function(e,t,n){var r=n&&n.padding||0,i=t||e+r;return Cg().outerRadius(i).innerRadius(i)},sme=function(e,t,n){var r={startAngle:n==="startAngle"?t.startAngle:t.endAngle,endAngle:n==="endAngle"?t.endAngle:t.startAngle},i=R({},t,r);return e.centroid(i)},ume=function(e,t){return t==="perpendicular"?e>90&&e<270?"bottom":"top":t==="parallel"?e>=0&&e<=180?"right":"left":e<45||e>315?"top":e>=45&&e<135?"right":e>=135&&e<225?"bottom":"left"},cme=function(e){return e==="top"||e==="bottom"?"middle":e==="right"?"start":"end"},fme=function(e){return e==="left"||e==="right"?"middle":e==="bottom"?"start":"end"},dme=function(e,t,n){var r=0;t.angle!==void 0?r=n.angle:t==="centroid"?r=Gr((e.startAngle+e.endAngle)/2):r=Gr(t==="startAngle"?e.startAngle:e.endAngle);var i=r<0?360-r:r;return i%360},hme=function(e,t){return t==="vertical"?0:t==="parallel"?e>180&&e<360?e+90:e-90:e>90&&e<270?e-180:e},mme=function(e,t,n){var r=t.index,i=t.datum,a=t.data,o=t.slice,l=t.labelComponent,s=t.theme,u=n.style,c=n.defaultRadius,f=n.origin,d=n.width,h=n.height,g=fe(n.labelRadius,R({text:e},t)),p=fe(n.labelPosition,R({text:e},t))||"centroid",y=fe(n.labelPlacement,R({text:e},t))||"vertical",_=R({padding:0},u.labels),b=Ze(_,R({labelRadius:g,text:e},t)),S=lme(c,g,b),O=sme(S,o,p),w=dme(o,p,_),A=hme(w,y),T=ume(w,y),k=_.textAnchor||cme(T),j=_.verticalAnchor||fme(T),N={width:d,height:h,index:r,datum:i,data:a,slice:o,orientation:T,text:e,style:_,x:Math.round(O[0])+f.x,y:Math.round(O[1])+f.y,textAnchor:k,verticalAnchor:j,angle:A};if(!dc(l))return N;var M=s&&s.tooltip||{};return ae({},N,_o(M,["style"]))},gme=function(e,t){e=St(e,t,"pie");var n=ime(e),r=n.slices,i=n.style,a=n.data,o=n.origin,l=n.defaultRadius,s=n.labels,u=n.events,c=n.sharedEvents,f=n.height,d=n.width,h=n.standalone,g=n.name,p=n.innerRadius,y=n.cornerRadius,_=n.padAngle,b=n.disableInlineStyles,S=e.radius||l,O={parent:{standalone:h,height:f,width:d,slices:r,name:g,style:i.parent}};return r.reduce(function(w,A,T){var k=ae({},a[T],{startAngle:Gr(A.startAngle),endAngle:Gr(A.endAngle),padAngle:Gr(A.padAngle)}),j=pa(k.eventKey)?T:k.eventKey,N={index:T,slice:A,datum:k,data:a,origin:o,innerRadius:p,radius:S,cornerRadius:y,padAngle:_,style:b?{}:ame(T,n),disableInlineStyles:b};w[j]={data:N};var M=ome(e,k,T);if(M!=null||s&&(u||c)){var E=fe(M,N);w[j].labels=mme(E,R({},e,N),n)}return w},O)};function pme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vme(e,t,n){return t&&xT(e.prototype,t),n&&xT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tv(e,t)}function tv(e,t){return tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tv(e,t)}function bme(e){var t=Sme();return function(){var r=fd(e),i;if(t){var a=fd(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return _me(this,i)}}function _me(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xme(e)}function xme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fd(e)}var ST={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid"},jr=function(e){yme(n,e);var t=bme(n);function n(){return pme(this,n),t.apply(this,arguments)}return vme(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,ST,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Mc(s,o)}}]),n}(x.Component);jr.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],jr.displayName="VictoryPie",jr.role="pie",jr.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(e){return{y_:e._y,label:e.label}}}},jr.propTypes={animate:m.oneOfType([m.bool,m.object]),colorScale:m.oneOfType([m.arrayOf(m.string),m.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:m.element,cornerRadius:m.oneOfType([_e,m.func]),data:m.array,dataComponent:m.element,disableInlineStyes:m.bool,endAngle:m.number,eventKey:m.oneOfType([m.func,ct([ut,_e]),m.string]),events:m.arrayOf(m.shape({target:m.oneOf(["data","labels","parent"]),eventKey:m.oneOfType([m.array,m.func,ct([ut,_e]),m.string]),eventHandlers:m.object})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ct([ut,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.element,height:_e,innerRadius:m.oneOfType([_e,m.func]),labelComponent:m.element,labelPlacement:m.oneOfType([m.func,m.oneOf(["parallel","perpendicular","vertical"])]),labelPosition:m.oneOfType([m.func,m.oneOf(["startAngle","centroid","endAngle"])]),labelRadius:m.oneOfType([_e,m.func]),labels:m.oneOfType([m.func,m.array]),name:m.string,origin:m.shape({x:_e,y:_e}),padAngle:m.oneOfType([_e,m.func]),padding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),radius:m.oneOfType([_e,m.func]),sharedEvents:m.shape({events:m.array,getEventState:m.func}),sortKey:m.oneOfType([m.func,ct([ut,_e]),m.string,m.arrayOf(m.string)]),sortOrder:m.oneOf(["ascending","descending"]),standalone:m.bool,startAngle:m.number,style:m.shape({parent:m.object,data:m.object,labels:m.object}),theme:m.object,width:_e,x:m.oneOfType([m.func,ct([ut,_e]),m.string,m.arrayOf(m.string)]),y:m.oneOfType([m.func,ct([ut,_e]),m.string,m.arrayOf(m.string)])},jr.defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:x.createElement(Jhe,null),labelComponent:x.createElement(wt,null),containerComponent:x.createElement(ze,null),groupComponent:x.createElement("g",null),sortOrder:"ascending",theme:Cr.grayscale},jr.getBaseProps=function(e){return gme(e,ST)},jr.getData=Gt,jr.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];const dd=ya(jr);var wT;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(wT||(wT={}));var OT;(function(e){e.bottom="bottom",e.right="right"})(OT||(OT={}));var CT;(function(e){e.ascending="ascending",e.descending="descending"})(CT||(CT={}));const nv=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,constrainToVisibleArea:a=!1,containerComponent:o=F.createElement(Gn,null),hasPatterns:l,legendAllowWrap:s=!1,legendComponent:u=F.createElement(Ro,null),legendData:c,legendPosition:f=Bt.legend.position,name:d,patternScale:h,patternUnshiftIndex:g,padding:p,radius:y,standalone:_=!0,style:b,themeColor:S,themeVariant:O,theme:w=rn(S),labelComponent:A=t?F.createElement(_s,{constrainToVisibleArea:a,theme:w}):void 0,legendOrientation:T=w.legend.orientation,height:k=w.pie.height,width:j=w.pie.width}=e,N=Re(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","themeVariant","theme","labelComponent","legendOrientation","height","width"]);const M={bottom:On("bottom",p,w.pie.padding),left:On("left",p,w.pie.padding),right:On("right",p,w.pie.padding),top:On("top",p,w.pie.padding)},{defaultColorScale:E,defaultPatternScale:D,isPatternDefs:I,patternId:W}=Fp({colorScale:i,hasPatterns:l,patternScale:h,themeColorScale:w.pie.colorScale}),ne=y||(()=>{const Y=wr({height:k,width:j,padding:M});return Y>-1?Y:void 0})(),re=()=>{if(!D)return b;const Y=b?Object.assign({},b):{};return Y.data=Object.assign({fill:({slice:G})=>{const ie=D[G.index%D.length];return ie||E[G.index%E.length]}},Y.data),Y},J=F.createElement(dd,Object.assign({colorScale:i,height:k,key:"pf-chart-pie",labelComponent:A,name:d,padding:p,radius:ne,standalone:!1,style:re(),theme:w,width:j},N)),z=F.cloneElement(u,Object.assign(Object.assign(Object.assign({colorScale:i,data:c},d&&{name:`${d}-${u.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:T,theme:w}),u.props)),X=()=>z.props.data?zA(Object.assign({allowWrap:s,chartType:"pie",height:k,legendComponent:z,padding:M,position:f,theme:w,width:j},D&&{patternScale:D})):null,H=_?F.cloneElement(o,Object.assign({desc:n,height:k,title:r,width:j,theme:w},o.props),[J,X(),I&&Lp({patternId:W,colorScale:E,patternUnshiftIndex:g})]):null;return _?F.createElement(F.Fragment,null,H):F.createElement(F.Fragment,null,J,X(),I&&Lp({patternId:W,colorScale:E,patternUnshiftIndex:g}))};nv.displayName="ChartPie",Lt(nv,dd);var AT;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(AT||(AT={}));var TT;(function(e){e.ascending="ascending",e.descending="descending"})(TT||(TT={}));var rv;(function(e){e.bottom="bottom",e.center="center",e.right="right"})(rv||(rv={}));const hd=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,capHeight:i=1.1,containerComponent:a=F.createElement(Gn,null),innerRadius:o,legendAllowWrap:l,legendPosition:s=Bt.legend.position,name:u,padAngle:c,padding:f,radius:d,standalone:h=!0,subTitle:g,subTitleComponent:p,subTitlePosition:y=bs.label.subTitlePosition,themeColor:_,themeVariant:b,title:S,titleComponent:O=F.createElement(vn,null),theme:w=uhe(_),height:A=w.pie.height,width:T=w.pie.width}=e,k=Re(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendAllowWrap","legendPosition","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","themeVariant","title","titleComponent","theme","height","width"]);const j={bottom:On("bottom",f,w.pie.padding),left:On("left",f,w.pie.padding),right:On("right",f,w.pie.padding),top:On("top",f,w.pie.padding)},N=d||wr({height:A,width:T,padding:j}),M=o||N-9,E=g&&y===rv.center,D=()=>!p&&E?Z({styles:[bs.label.title,bs.label.subTitle],titles:[S,g]}):F.createElement(F.Fragment,{key:"pf-chart-donut-titles"},Z({titles:S,dy:E?-8:0}),W({textComponent:p,dy:E?15:0})),I=({datum:J})=>J._y>0?w.pie.padAngle:0,W=({dy:J=0,textComponent:z=F.createElement(vn,null)})=>{if(!g)return null;const X=z.props?z.props:{};return F.cloneElement(z,Object.assign(Object.assign(Object.assign({},u&&{id:`${u}-${z.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:bs.label.subTitle,text:g,textAnchor:y==="right"?"start":"middle",verticalAnchor:"middle",x:EA({height:A,labelPosition:y,legendPosition:s,padding:j,width:T}),y:PA({dy:J,height:A,labelPosition:y,padding:j,width:T})}),X))},Z=({dy:J=0,styles:z=bs.label.title,titles:X=S})=>{if(!X)return null;const H=O?O.props:{};return F.cloneElement(O,Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(X)&&{capHeight:i}),u&&{id:`${u}-${O.type.displayName}-title`}),{key:"pf-chart-donut-title",style:z,text:X,textAnchor:"middle",verticalAnchor:"middle",x:EA({height:A,labelPosition:"center",legendPosition:s,padding:j,width:T}),y:PA({dy:J,height:A,labelPosition:"center",padding:j,width:T})}),H))},ne=F.createElement(nv,Object.assign({allowTooltip:t,height:A,innerRadius:M>0?M:0,key:"pf-chart-donut-pie",legendAllowWrap:l,legendPosition:s,name:u,padAngle:c!==void 0?c:I,padding:f,radius:N>0?N:0,standalone:!1,theme:w,width:T},k)),re=F.cloneElement(a,Object.assign({desc:n,height:A,title:r,width:T,theme:w},a.props),[ne,D()]);return h?F.createElement(F.Fragment,null,re):F.createElement(F.Fragment,null,ne,D())};hd.displayName="ChartDonut",Lt(hd,dd);var kT;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(kT||(kT={}));var ET;(function(e){e.horizontal="horizontal",e.vertical="vertical"})(ET||(ET={}));var PT;(function(e){e.bottom="bottom",e.right="right"})(PT||(PT={}));var jT;(function(e){e.ascending="ascending",e.descending="descending"})(jT||(jT={}));var MT;(function(e){e.bottom="bottom",e.center="center",e.right="right"})(MT||(MT={}));const iv=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,containerComponent:a=F.createElement(Gn,null),data:o,invert:l=!1,isStatic:s=!0,legendPosition:u=Bt.legend.position,padding:c,standalone:f=!0,themeColor:d,themeVariant:h,thresholds:g,x:p,y,theme:_=che(d),height:b=_.pie.height,width:S=_.pie.width}=e,O=Re(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","containerComponent","data","invert","isStatic","legendPosition","padding","standalone","themeColor","themeVariant","thresholds","x","y","theme","height","width"]);const w=()=>{const M=A(),E=[{x:M[0]._x,y:M[0]._y||0}];return s&&E.push({y:M[0]._x?Math.abs(100-M[0]._y):100}),E},A=()=>{const M=[Object.assign({},o)];return dg(M,Object.assign({x:p,y},O),["x","y"]).sort((E,D)=>E._y-D._y)},T=()=>{const M=[];if(g){const E=po(g,"value",l?"desc":"asc"),D=CA.thresholds.colorScale.length;for(let I=0;I<E.length;I++)M.push({color:E[I].color?E[I].color:CA.thresholds.colorScale[I%D],value:E[I].value})}return M},k=()=>{const M=Object.assign({},_),E=A();if(E){const D=T(),I=W=>{M.pie.colorScale instanceof Array?M.pie.colorScale[0]=D[W].color:M.pie.colorScale=D[W].color,M.legend.colorScale instanceof Array?M.legend.colorScale[0]=D[W].color:M.legend.colorScale=D[W].color};for(let W=0;W<D.length;W++)l?E[0]._y<=D[W].value&&I(W):E[0]._y>=D[W].value&&I(W)}return M},j=F.createElement(hd,Object.assign({allowTooltip:t,colorScale:i,data:w(),height:b,key:"pf-chart-donut-utilization",legendPosition:u,padding:c,standalone:!1,theme:k(),width:S},O)),N=F.cloneElement(a,Object.assign({desc:n,height:b,title:r,width:S,theme:_},a.props),[j]);return f?F.createElement(F.Fragment,null,N):F.createElement(F.Fragment,null,j)};iv.displayName="ChartDonutUtilization",Lt(iv,dd);const av=e=>{var{dx:t=0,index:n=0,legendData:r,legendLabelComponent:i=F.createElement(vn,null),style:a,text:o,textAnchor:l="end",valueLabelComponent:s=F.createElement(vn,null),x:u,y:c}=e,f=Re(e,["dx","index","legendData","legendLabelComponent","style","text","textAnchor","valueLabelComponent","x","y"]);const d=_=>{const b=S=>ae(Object.assign({},S),{fill:qn.label.fill});return Array.isArray(_)?_.map(b):b(_)},h=()=>{const _=r&&r.length?r[n].name:void 0;return F.cloneElement(i,{style:d({}),text:_,textAnchor:"start",x:u,y:c})},g=()=>{const _=u+fe(t);return F.cloneElement(s,Object.assign({style:d(a),text:o,textAnchor:l,x:_,y:c},f))},p=h(),y=g();return F.createElement(F.Fragment,null,p,y)};av.displayName="ChartLegendTooltipLabel",Lt(av,wt);const ov=e=>{var{activePoints:t,center:n,datum:r,dx:i=0,dy:a=0,flyoutHeight:o,flyoutWidth:l,height:s,labelComponent:u=F.createElement(av,null),legendComponent:c=F.createElement(Ro,null),legendData:f,patternScale:d,text:h,themeColor:g,themeVariant:p,title:y,titleComponent:_=F.createElement(vn,null),width:b,theme:S=rn(g)}=e,O=Re(e,["activePoints","center","datum","dx","dy","flyoutHeight","flyoutWidth","height","labelComponent","legendComponent","legendData","patternScale","text","themeColor","themeVariant","title","titleComponent","width","theme"]);const w=S&&S.tooltip?fe(S.tooltip.pointerLength):10,A=iT(c.props),T=Wp({activePoints:t,colorScale:A.colorScale,legendData:f,text:h,theme:S}),k=0,j=y?5:-10,N=10,M=0,E=()=>{if(!(n||l||b)){const z=O.x;return z||void 0}const J=fe(l);return b>n.x+J+w?n.x+qn.flyout.padding/2:n.x<J+w?qn.flyout.padding/2-w:n.x-J},D=()=>{if(!(n||o||s)){const z=O.y;return z||void 0}const J=fe(o);return n.y<J/2?qn.flyout.padding/2:n.y>s-J/2?s-J+qn.flyout.padding/2:n.y-J/2+qn.flyout.padding/2},I=Rp({legendData:T,legendProps:A,text:aT({activePoints:t,legendData:f,text:h}),theme:S}),W=Rp({legendData:[{name:""}],legendProps:A,theme:S}),Z=()=>F.cloneElement(u,Object.assign({dx:I.width-W.width,legendData:T},u.props)),ne=()=>{const J=y instanceof Function?y(r):y;return F.cloneElement(_,Object.assign({style:{fill:qn.label.fill,fontWeight:qn.label.fontWeight},text:J,textAnchor:"start",x:E()+N+fe(i),y:D()+M+fe(a)},_.props))},re=()=>F.cloneElement(c,Object.assign({data:Wp({activePoints:t,colorScale:A.colorScale,legendData:f,patternScale:d,text:h,textAsLegendData:!0,theme:S}),labelComponent:Z(),patternScale:d,standalone:!1,theme:S,x:E()+k+fe(i),y:D()+j+fe(a)},A));return F.createElement(F.Fragment,null,ne(),re())};ov.displayName="ChartLegendTooltipContent",Lt(ov,xs,{getBaseProps:!0});const lv=e=>{var{activePoints:t,datum:n,center:r={x:0,y:0},flyoutHeight:i,flyoutWidth:a,height:o,isCursorTooltip:l=!0,labelComponent:s=F.createElement(ov,null),legendData:u,patternScale:c,text:f,themeColor:d,themeVariant:h,title:g,width:p,theme:y=rn(d)}=e,_=Re(e,["activePoints","datum","center","flyoutHeight","flyoutWidth","height","isCursorTooltip","labelComponent","legendData","patternScale","text","themeColor","themeVariant","title","width","theme"]);const b=y&&y.tooltip?fe(y.tooltip.pointerLength):10,S=()=>({legendData:Wp({activePoints:t,legendData:u,text:f,theme:y}),legendProps:iT(s.props.legendComponent?s.props.legendComponent.props:void 0),text:aT({activePoints:t,legendData:u,text:f}),theme:y}),O=({height:k})=>{const j=k+qn.flyout.padding;return g?j:j-10},w=({width:k})=>k+qn.flyout.padding,A=k=>F.cloneElement(s,Object.assign({center:r,flyoutHeight:i||O(k),flyoutWidth:a||w(k),height:o,legendData:u,patternScale:c,title:g,width:p},s.props));return(()=>{const k=Rp(S());if(k.height===0&&k.width===0)return null;const j=w(k),N=l?F.createElement(Xf,null):F.createElement(_s,null);return F.cloneElement(N,Object.assign(Object.assign(Object.assign({activePoints:t,center:r,datum:n,flyoutHeight:i||O(k),flyoutWidth:a||w(k),height:o,labelComponent:A(k)},a===void 0&&{showPointer:p>j+r.x+b||r.x>j+b}),{text:f,theme:y,width:p}),_))})()};lv.displayName="ChartLegendTooltip",Lt(lv,kr);var wme=function(e){var t=Gt(e);t.length<2&&(t=[]);var n={x:xt(e,"x"),y:xt(e,"y")},r={x:ba(e,"x"),y:ba(e,"y")},i={x:Bn(e,"x").domain(r.x).range(e.horizontal?n.y:n.x),y:Bn(e,"y").domain(r.y).range(e.horizontal?n.x:n.y)},a=e.polar?e.origin||Kl(e):void 0,o=hc(e,"line"),l=Yl(e.style,o);return{domain:r,data:t,scale:i,style:l,origin:a}},Ome=function(e,t){var n=St(e,t,"line");e=R({},n,wme(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.groupComponent,s=r.height,u=r.horizontal,c=r.interpolation,f=r.origin,d=r.padding,h=r.polar,g=r.scale,p=r.sharedEvents,y=r.standalone,_=r.style,b=r.theme,S=r.width,O=r.labels,w=r.name,A=r.disableInlineStyles,T={parent:{style:_.parent,scale:g,data:i,height:s,width:S,name:w,domain:a,standalone:y,polar:h,origin:f,padding:d,horizontal:u},all:{data:{horizontal:u,polar:h,origin:f,scale:g,data:i,interpolation:c,groupComponent:l,style:A?{}:_.data,theme:b,disableInlineStyles:A}}};return i.reduce(function(k,j,N){var M=Fc(e,j,N);if(M!=null||O&&(o||p)){var E=pa(j.eventKey)?N:j.eventKey;k[E]={labels:F0(e,N)}}return k},T)};function DT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DT(Object(n),!0).forEach(function(r){Cme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cme(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ame=function(e){var t=fe(e.ariaLabel,e),n=fe(e.id,e),r=Ze(R({fill:"none",stroke:"black",pointerEvents:"stroke"},e.style),e),i=fe(e.tabIndex,e);return R({},e,{ariaLabel:t,id:n,style:r,tabIndex:i})},sv=function(e){e=Ame(e);var t=or(e),n=e,r=n.polar,i=n.origin,a=YO(e),o=r&&i?"translate(".concat(i.x,", ").concat(i.y,")"):void 0,l=a(e.data);return x.cloneElement(e.pathComponent,Ss(Ss(Ss({},e.events),t),{},{"aria-label":e.ariaLabel,d:l,style:e.style,transform:e.transform||o,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};sv.propTypes=Ss(Ss({},Ot.primitiveProps),{},{interpolation:m.oneOfType([m.string,m.func]),openCurve:m.bool,origin:m.shape({x:m.number.isRequired,y:m.number.isRequired}),pathComponent:m.element,polar:m.bool}),sv.defaultProps={pathComponent:x.createElement(Mi,null),role:"presentation",shapeRendering:"auto"};function IT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IT(Object(n),!0).forEach(function(r){Tme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tme(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Eme(e,t,n){return t&&$T(e.prototype,t),n&&$T(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cv(e,t)}function cv(e,t){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cv(e,t)}function jme(e){var t=Ime();return function(){var r=md(e),i;if(t){var a=md(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Mme(this,i)}}function Mme(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dme(e)}function Dme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ime(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function md(e){return md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},md(e)}var LT={width:450,height:300,padding:50,interpolation:"linear"},$me={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Tn=function(e){Pme(n,e);var t=jme(n);function n(r){return kme(this,n),t.call(this,r)}return Eme(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,LT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Mc(s,o)}}]),n}(x.Component);Tn.animationWhitelist=["data","domain","height","padding","samples","style","width"],Tn.displayName="VictoryLine",Tn.role="line",Tn.defaultTransitions=Yw(),Tn.defaultPolarTransitions=Kw(),Tn.continuous=!0,Tn.propTypes=uv(uv(uv({},Ot.baseProps),Ot.dataProps),{},{interpolation:m.oneOfType([m.oneOf(["basis","bundle","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),m.func]),label:pS(m.string,"Use `labels` instead for individual data labels")}),Tn.defaultProps={containerComponent:x.createElement(ze,null),dataComponent:x.createElement(sv,null),labelComponent:x.createElement(wt,{renderInPortal:!0}),groupComponent:x.createElement(ga,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Cr.grayscale},Tn.getDomain=ba,Tn.getData=Gt,Tn.getBaseProps=function(e){return Ome(e,LT)},Tn.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var FT=ya(Tn,$me),NT;(function(e){e.ascending="ascending",e.descending="descending"})(NT||(NT={}));const fv=e=>{var{containerComponent:t=F.createElement(Gn,null),themeColor:n,themeVariant:r,theme:i=rn(n)}=e,a=Re(e,["containerComponent","themeColor","themeVariant","theme"]);const o=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(FT,Object.assign({containerComponent:o,theme:i},a))};fv.displayName="ChartLine",Lt(fv,FT);function Lme(e,t){return Rme(e)||Bme(e,t)||Nme(e,t)||Fme()}function Fme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
330
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nme(e,t){if(e){if(typeof e=="string")return BT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BT(e,t)}}function BT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function Rme(e){if(Array.isArray(e))return e}function RT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RT(Object(n),!0).forEach(function(r){Wme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wme(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zT={width:450,height:300,padding:50};function zme(e,t){var n=e.fillInMissingData,r=t.reduce(function(o,l){return l.forEach(function(s){o[s._x instanceof Date?s._x.getTime():s._x]=!0}),o},{}),i=Ke(r).map(function(o){return Number(o)}),a=po(i);return t.map(function(o){var l=0,s=o[0]&&o[0]._x instanceof Date,u=a.map(function(c,f){c=Number(c);var d=o[f-l];if(d){var h=s?d._x.getTime():d._x;if(h===c)return d;l++;var g=n?0:null;return c=s?new Date(c):c,{x:c,y:g,_x:c,_y:g}}var p=n?0:null;return c=s?new Date(c):c,{x:c,y:p,_x:c,_y:p}});return u})}function Vme(e,t,n){if(e.y0)return e.y0;var r=e._y,i=e._group,a=n[0].map(function(u){return u.y0}),o=n.slice(0,t),l=o.reduce(function(u,c){return u.concat(c.filter(function(f){return e._x instanceof Date?f._x.getTime()===e._x.getTime():f._x===e._x}).map(function(f){return f._y||0}))},[]),s=l.length&&l.reduce(function(u,c){var f=r<0&&c<0||r>=0&&c>=0;return f?Number(c)+u:u},a[i]||0);return l.some(function(u){return u instanceof Date})?new Date(s):s}function Ume(e,t,n){var r=e.xOffset||0;return t[n].map(function(i){var a=Vme(i,n,t)||0;return R({},i,{_y0:i._y instanceof Date?a?new Date(a):i._y:a,_y1:i._y===null?null:i._y instanceof Date?new Date(Number(i._y)+Number(a)):i._y+a,_x1:i._x===null?null:i._x instanceof Date?new Date(Number(i._x)+Number(r)):i._x+r})})}function Hme(e,t){var n=Aee(e,t),r=n.map(function(a){return a.filter(function(o){return o._x!==null&&o._y!==null})}),i=zme(e,r);return i.map(function(a,o){return Ume(e,i,o)})}function VT(e,t){t=t||x.Children.toArray(e.children);var n="stack";e=St(e,zT,n);var r=Eee(e.theme,e.style,n),i=e.categories||iC(e,t),a=e.datasets||Hme(e,t),o=t.map(function(g,p){return x.cloneElement(g,{data:a[p]})}),l={x:Rg(R({},e,{categories:i}),"x",o),y:Rg(R({},e,{categories:i}),"y",o)},s=e.range||{x:xt(e,"x"),y:xt(e,"y")},u={x:as(e,"x")||Af(e,"x"),y:as(e,"y")||Af(e,"y")},c={x:u.x.domain(l.x).range(e.horizontal?s.y:s.x),y:u.y.domain(l.y).range(e.horizontal?s.x:s.y)},f=e,d=f.colorScale,h=f.horizontal;return{datasets:a,categories:i,range:s,domain:l,horizontal:h,scale:c,style:r,colorScale:d,role:n}}var qme=function(e){var t=e.children,n=x.Children.toArray(t).map(function(r){var i=r;return WT(WT({},i),{},{props:_o(i.props,["sharedEvents"])})});return e.children=n,e};function Gme(e){var t=qme(e),n=x.useState(t),r=Lme(n,2),i=r[0],a=r[1];return x.useEffect(function(){fn(t,i)||a(t)},[i,a,t]),x.useMemo(function(){return VT(i,i.children)},[i])}function Yme(e,t,n){if(e.labels)return t.length===n+1?e.labels:void 0}function Kme(e,t){var n=t.categories,r=t.domain,i=t.range,a=t.scale,o=t.horizontal;return{height:e.height,width:e.width,padding:lt(e),standalone:!1,theme:e.theme,categories:n,domain:r,range:i,scale:a,horizontal:o}}function Zme(e,t){var n=t.type&&t.type.role,r=t.props.colorScale||e.colorScale;if(!(n!=="group"&&n!=="stack"))return e.theme?r||e.theme.props.colorScale:r}function UT(e,t,n){e=St(e,zT,"stack"),t=t||x.Children.toArray(e.children),n=n||VT(e,t);var r=n,i=r.datasets,a=Kme(e,n),o=e.name||"stack";return t.map(function(l,s){var u=l.type&&l.type.role,c=i[s],f=Pee(l,s,n),d=e.labels?Yme(e,i,s):l.props.labels,h=l.props.name||"".concat(o,"-").concat(u,"-").concat(s);return x.cloneElement(l,R({key:"".concat(h,"-key-").concat(s),labels:d,name:h,domainPadding:l.props.domainPadding||e.domainPadding,theme:e.theme,labelComponent:e.labelComponent||l.props.labelComponent,style:f,colorScale:Zme(e,l),data:c,polar:e.polar},a))})}function HT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HT(Object(n),!0).forEach(function(r){Xme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xme(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jme={width:450,height:300,padding:50},dv=function(e){var t=gd.role,n=tO(),r=n.setAnimationState,i=n.getAnimationProps,a=n.getProps,o=a(e),l=St(o,Jme,t),s=l.eventKey,u=l.containerComponent,c=l.standalone,f=l.groupComponent,d=l.externalEventMutations,h=l.width,g=l.height,p=l.theme,y=l.polar,_=l.horizontal,b=l.name,S=x.Children.toArray(l.children),O=Gme(l),w=O.domain,A=O.scale,T=O.style,k=x.useMemo(function(){var I=UT(o,S,O),W=I.map(function(Z,ne){var re=R({animate:i(o,Z,ne)},Z.props);return x.cloneElement(Z,re)});return W.reverse()},[o,S,O,i]),j=x.useMemo(function(){return c?{domain:w,scale:A,width:h,height:g,standalone:c,theme:p,style:T.parent,horizontal:_,polar:y,name:b}:{}},[c,w,A,h,g,p,T,_,y,b]),N=x.useMemo(function(){return or(e)},[e]),M=x.useMemo(function(){if(c){var I=ae({},u.props,j,N);return x.cloneElement(u,I)}return x.cloneElement(f,N)},[f,c,u,j,N]),E=x.useMemo(function(){return tC(o)},[o]),D=Zw(e);return x.useEffect(function(){return function(){e.animate&&r(D,e)}},[r,D,e]),rt(E)?x.cloneElement(M,M.props,k):x.createElement(wa,{container:M,eventKey:s,events:E,externalEventMutations:d},k)};dv.propTypes=qT(qT({},Ot.baseProps),{},{bins:m.oneOfType([m.arrayOf(m.oneOfType([_e,m.instanceOf(Date)])),_e]),categories:m.oneOfType([m.arrayOf(m.string),m.shape({x:m.arrayOf(m.string),y:m.arrayOf(m.string)})]),children:m.oneOfType([m.arrayOf(m.node),m.node]),colorScale:m.oneOfType([m.arrayOf(m.string),m.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),fillInMissingData:m.bool,horizontal:m.bool,labelComponent:m.element,labels:m.oneOfType([m.func,m.array]),style:m.shape({parent:m.object,data:m.object,labels:m.object}),xOffset:m.number}),dv.defaultProps={containerComponent:x.createElement(ze,null),groupComponent:x.createElement("g",null),standalone:!0,theme:Cr.grayscale,fillInMissingData:!0};var Qme={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:UT},gd=Object.assign(x.memo(dv,fn),Qme);gd.displayName="VictoryStack";const pd=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,containerComponent:a=F.createElement(Gn,null),hasPatterns:o,patternScale:l,themeColor:s,themeVariant:u,theme:c=rn(s)}=e,f=Re(e,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","themeVariant","theme"]);const d=F.cloneElement(a,Object.assign(Object.assign({desc:t,title:n,theme:c},a.props),{className:jp({className:a.props.className})})),{defaultPatternScale:h}=Fp({colorScale:i,hasPatterns:o,patternScale:l,themeColorScale:c.stack.colorScale});return F.createElement(gd,Object.assign({colorScale:i,containerComponent:d,theme:c},f),dce({children:r,patternScale:h}))};pd.displayName="ChartStack",Lt(pd,gd);function e0e(e){return e.horizontal?v.jsx(t0e,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!=!0?v.jsx(x.Fragment,{},n):v.jsxs(n0e,{children:[v.jsx(GT,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,color:t.color}),e.showLegendCount==!1?null:v.jsx(YT,{count:t.count}),v.jsx(KT,{label:t.label,link:t.link})]},n))}):v.jsx(r0e,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!=!0?v.jsx(x.Fragment,{},n):v.jsxs(x.Fragment,{children:[v.jsx(GT,{color:t.color}),e.showLegendCount==!1?null:v.jsx(YT,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,count:t.count}),v.jsx(KT,{label:t.label,link:t.link})]},n))})}function GT(e){return v.jsx(i0e,{id:e.id,style:{backgroundColor:e.color}})}function YT(e){return v.jsx(a0e,{id:e.id,children:e.count})}function KT(e){return v.jsx(o0e,{children:e.link?v.jsx(Rt.Link,{to:e.link,style:{textDecoration:"none"},children:e.label}):e.label})}const t0e=De.div`
331
331
  display: flex;
332
332
  flex-wrap: wrap;
333
333
  flex-direction: row;
@@ -367,7 +367,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
367
367
  font-size: var(--pf-global--FontSize--sm);
368
368
  --pf-c-form__group-label-help--Color: var(--pf-global--Color--200);
369
369
  --pf-c-form__group-label-help--hover--Color: var(--pf-global--Color--100);
370
- `;function p0e(e){const{ariaLabel:t="",content:n,header:r,id:i="",maxWidth:a="",...o}=e,[l]=gt();return n?v.jsx(C.Popover,{bodyContent:n,headerContent:r,hideOnOutsideClick:!0,id:i,"data-cy":i,maxWidth:a,...o,children:v.jsx(g0e,{"aria-label":t??l.moreInformation,"aria-haspopup":"true",className:"pf-c-form__group-label-help",onClick:s=>s.preventDefault(),type:"button",children:v.jsx(Ce.HelpIcon,{noVerticalAlign:!0})})}):null}function ws(e){const t=cl(e),{label:n,children:r,helpText:i,isEmpty:a}=e;return r===null||typeof r>"u"||r===""?v.jsx(v.Fragment,{}):a?v.jsx(v.Fragment,{}):v.jsxs(C.DescriptionListGroup,{children:[n&&v.jsxs(C.DescriptionListTerm,{children:[n,i?v.jsx(p0e,{header:n,content:i}):null]}),v.jsx(C.DescriptionListDescription,{id:t,"data-cy":t,children:r})]})}function XT(e){const{disablePadding:t}=e,n=Ga(),r=n.formLayout,i=e.numberOfColumns?e.numberOfColumns:n.formColumns,a=!1;return v.jsx(C.PageSection,{variant:"light",padding:{default:"noPadding"},className:"dark-1",children:v.jsx(C.DescriptionList,{orientation:{sm:r,md:r,lg:r,xl:r,"2xl":r},columnModifier:i==="multiple"?{default:"1Col",sm:"1Col",md:"2Col",lg:"2Col",xl:"3Col","2xl":"3Col"}:void 0,style:{maxWidth:1200,padding:t?void 0:24},isCompact:a,children:e.children})})}var at=(e=>(e.Table="table",e.List="list",e.Cards="cards",e))(at||{}),Ri=(e=>(e.Description="description",e.Expanded="expanded",e.Hidden="hidden",e))(Ri||{}),JT=(e=>(e.Name="name",e.Subtitle="subtitle",e.Description="description",e.Hidden="hidden",e.Primary="primary",e.Secondary="secondary",e))(JT||{}),QT=(e=>(e.Name="name",e.Subtitle="subtitle",e.Description="description",e.Hidden="hidden",e))(QT||{}),ek=(e=>(e.Hidden="hidden",e))(ek||{});function Wt(e){const{item:t,column:n}=e;if(!n)return v.jsx(v.Fragment,{});switch(n.type){case"text":return v.jsx(Hh,{text:n.value(t)});case"description":return v.jsx(Hh,{text:n.value(t)});case"datetime":return v.jsx(sx,{format:"since",value:n.value(t)});case"count":return v.jsx(v.Fragment,{children:n.value(t)??"-"});case"labels":return v.jsx(ux,{labels:n.value(t)??[]});default:return v.jsx(v.Fragment,{children:n.cell(t)})}}function hv(e){return x.useMemo(()=>e.filter(t=>!(t.table==="hidden"||t.table==="description"||t.table==="expanded")),[e])}function tk(e){return x.useMemo(()=>e.filter(t=>t.list!=="hidden"),[e])}function nk(e){return x.useMemo(()=>e.filter(t=>t.card!=="hidden"),[e])}function mv(e){return x.useMemo(()=>e.filter(t=>t.modal!=="hidden"),[e])}function v0e(e,t){const n=hv(e),r=tk(e),i=nk(e);switch(t){case at.Table:return n;case at.List:return r;case at.Cards:return i}}function rk(e){return x.useMemo(()=>e.filter(t=>t.table==="hidden"?!1:t.table==="description"),[e])}function ik(e){return x.useMemo(()=>e.filter(t=>t.table==="hidden"?!1:t.table==="expanded"),[e])}function y0e(e){return x.useMemo(()=>e.map(t=>({...t,sort:void 0})),[e])}function b0e(e){return x.useMemo(()=>e.map(t=>({...t,table:t.table==="expanded"?void 0:t.table})),[e])}function ak(e){const{item:t,columns:n,disablePadding:r,numberOfColumns:i}=e;return t?v.jsx(XT,{disablePadding:r,numberOfColumns:i,children:n.map(a=>"value"in a&&a.value&&!a.value(t)?v.jsx(x.Fragment,{},a.id??a.header):v.jsx(ws,{label:a.header,children:v.jsx(Wt,{column:a,item:t})},a.id??a.header))}):v.jsx(v.Fragment,{})}class _0e{constructor(t){Fy(this,"value");Fy(this,"next");this.value=t}}class x0e{constructor(){th(this,Rr,void 0);th(this,Fa,void 0);th(this,Na,void 0);this.clear()}enqueue(t){const n=new _0e(t);Gi(this,Rr)?(Gi(this,Fa).next=n,yi(this,Fa,n)):(yi(this,Rr,n),yi(this,Fa,n)),Ny(this,Na)._++}dequeue(){const t=Gi(this,Rr);if(t)return yi(this,Rr,Gi(this,Rr).next),Ny(this,Na)._--,t.value}clear(){yi(this,Rr,void 0),yi(this,Fa,void 0),yi(this,Na,0)}get size(){return Gi(this,Na)}*[Symbol.iterator](){let t=Gi(this,Rr);for(;t;)yield t.value,t=t.next}}Rr=new WeakMap,Fa=new WeakMap,Na=new WeakMap;function S0e(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new x0e;let n=0;const r=()=>{n--,t.size>0&&t.dequeue()()},i=async(l,s,u)=>{n++;const c=(async()=>l(...u))();s(c);try{await c}catch{}r()},a=(l,s,u)=>{t.enqueue(i.bind(void 0,l,s,u)),(async()=>(await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()))()},o=(l,...s)=>new Promise(u=>{a(l,u,s)});return Object.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o}function ok(e){const[t,n]=x.useState(!1),r=un("sm"),[i]=gt(),{pageItems:a,selectedItems:o,selectItems:l,unselectAll:s,maxSelections:u}=e,c=e.itemCount!==void 0&&e.itemCount>0&&a&&a.length>0&&(a??[]).every(S=>o==null?void 0:o.includes(S)),f=x.useCallback(()=>{c?s==null||s():l==null||l(a??[])},[c,s,l,a]),d=x.useMemo(()=>r?o&&o.length>0?`${o.length} selected`:"":o&&o.length>0?`${o.length}`:"",[r,o]),h=x.useMemo(()=>a==null?void 0:a.filter(S=>!(o!=null&&o.includes(S))),[a,o]),g=x.useMemo(()=>!!(u&&o&&h&&!c&&(o==null?void 0:o.length)+h.length>u),[c,u,o,h]),p=x.useMemo(()=>{const S=o?o.length:0;return v.jsx(C.DropdownToggle,{splitButtonItems:[v.jsx(C.DropdownToggleCheckbox,{id:"select-all","aria-label":"Select all",isChecked:c?!0:S>0?null:!1,onChange:f,children:d},"select-all")],onToggle:O=>n(O),isDisabled:g})},[o,c,f,d,g]),y=x.useMemo(()=>v.jsx(C.DropdownItem,{id:"select-none",onClick:()=>{s==null||s(),n(!1)},children:e.selectNoneText??i.selectNone},"select-none"),[e.selectNoneText,i.selectNone,s]),_=x.useMemo(()=>v.jsx(C.DropdownItem,{id:"select-page",onClick:()=>{l==null||l(a??[]),n(!1)},children:`Select ${(a==null?void 0:a.length)??0} page items`},"select-page"),[l,a]),b=x.useMemo(()=>[y,_],[y,_]);return v.jsx("div",{style:{marginLeft:-8},children:v.jsx(C.Dropdown,{isOpen:t,toggle:p,dropdownItems:b,style:{zIndex:400}})})}const xwe="";function Xe(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const i=typeof r;if(i==="string"||i==="number")t.push(r);else if(Array.isArray(r)&&r.length){const a=Xe(...r);a&&t.push(a)}else if(i==="object")for(const a in r)n.call(r,a)&&r[a]&&t.push(a)}),t.join(" ")}const Swe="",Fe={breadcrumb:"pf-c-breadcrumb",divider:"pf-c-divider",menu:"pf-c-menu",menuBreadcrumb:"pf-c-menu__breadcrumb",menuContent:"pf-c-menu__content",menuFooter:"pf-c-menu__footer",menuGroup:"pf-c-menu__group",menuGroupTitle:"pf-c-menu__group-title",menuHeader:"pf-c-menu__header",menuItem:"pf-c-menu__item",menuItemAction:"pf-c-menu__item-action",menuItemActionIcon:"pf-c-menu__item-action-icon",menuItemCheck:"pf-c-menu__item-check",menuItemDescription:"pf-c-menu__item-description",menuItemExternalIcon:"pf-c-menu__item-external-icon",menuItemIcon:"pf-c-menu__item-icon",menuItemMain:"pf-c-menu__item-main",menuItemSelectIcon:"pf-c-menu__item-select-icon",menuItemText:"pf-c-menu__item-text",menuItemToggleIcon:"pf-c-menu__item-toggle-icon",menuList:"pf-c-menu__list",menuListItem:"pf-c-menu__list-item",menuSearch:"pf-c-menu__search",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",drilldown:"pf-m-drilldown",drilledIn:"pf-m-drilled-in",currentPath:"pf-m-current-path",static:"pf-m-static",plain:"pf-m-plain",scrollable:"pf-m-scrollable",nav:"pf-m-nav",focus:"pf-m-focus",disabled:"pf-m-disabled",load:"pf-m-load",loading:"pf-m-loading",danger:"pf-m-danger",selected:"pf-m-selected",favorite:"pf-m-favorite",favorited:"pf-m-favorited"},themeDark:"pf-theme-dark"};let w0e=0;class gv extends F.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${w0e++}`}render(){return this.props.children(this.id)}}gv.displayName="GenerateId",gv.defaultProps={prefix:"pf-random-id-"};const O0e="*";let C0e=0;const lk="OUIA-Generated-",pv={};function vv(e,t,n=!0){return{"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}function yv(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,pv[n]||(pv[n]=0),`${lk}${e}-${t?`${t}-`:""}${++pv[n]}`}catch{return`${lk}${e}-${t?`${t}-`:""}${++C0e}`}}const Wo=!!(typeof window<"u"&&window.document&&window.document.createElement);function Os(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Mr(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function bv(e){const t=Mr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cs(e){const t=Mr(e).Element;return e instanceof t||e instanceof Element}function Dr(e){const t=Mr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function A0e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function T0e(e){return e===Mr(e)||!Dr(e)?bv(e):A0e(e)}function cr(e){return e?(e.nodeName||"").toLowerCase():null}function ci(e){return(Cs(e)?e.ownerDocument:e.document).documentElement}function _v(e){return Os(ci(e)).left+bv(e).scrollLeft}function fi(e){return Mr(e).getComputedStyle(e)}function xv(e){const{overflow:t,overflowX:n,overflowY:r}=fi(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function k0e(e,t,n=!1){const r=ci(t),i=Os(e),a=Dr(t);let o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(a||!a&&!n)&&((cr(t)!=="body"||xv(r))&&(o=T0e(t)),Dr(t)?(l=Os(t),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=_v(r))),{x:i.left+o.scrollLeft-l.x,y:i.top+o.scrollTop-l.y,width:i.width,height:i.height}}function Sv(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function vd(e){return cr(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||ci(e)}function sk(e){return["html","body","#document"].indexOf(cr(e))>=0?e.ownerDocument.body:Dr(e)&&xv(e)?e:sk(vd(e))}function As(e,t=[]){const n=sk(e),r=cr(n)==="body",i=Mr(n),a=r?[i].concat(i.visualViewport||[],xv(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(As(vd(a)))}function E0e(e){return["table","td","th"].indexOf(cr(e))>=0}function uk(e){if(!Dr(e)||fi(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=ci(t);if(cr(t)==="body"&&fi(t).position==="static"&&fi(n).position!=="static")return n}return t}function P0e(e){let t=vd(e);for(;Dr(t)&&["html","body"].indexOf(cr(t))<0;){const n=fi(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function Ts(e){const t=Mr(e);let n=uk(e);for(;n&&E0e(n)&&fi(n).position==="static";)n=uk(n);return n&&cr(n)==="body"&&fi(n).position==="static"?t:n||P0e(e)||t}const Yn="top",fr="bottom",dr="right",Kn="left",wv="auto",ks=[Yn,fr,dr,Kn],zo="start",Ov="end",j0e="clippingParents",ck="viewport",Es="popper",M0e="reference",fk=ks.reduce((e,t)=>e.concat([`${t}-${zo}`,`${t}-${Ov}`]),[]),dk=[...ks,wv].reduce((e,t)=>e.concat([t,`${t}-${zo}`,`${t}-${Ov}`]),[]),D0e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function I0e(e){const t=new Map,n=new Set,r=[];e.forEach(a=>{t.set(a.name,a)});function i(a){n.add(a.name),[...a.requires||[],...a.requiresIfExists||[]].forEach(l=>{if(!n.has(l)){const s=t.get(l);s&&i(s)}}),r.push(a)}return e.forEach(a=>{n.has(a.name)||i(a)}),r}function $0e(e){const t=I0e(e);return D0e.reduce((n,r)=>n.concat(t.filter(i=>i.phase===r)),[])}function L0e(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function Ir(e){return e.split("-")[0]}function F0e(e){const t=e.reduce((n,r)=>{const i=n[r.name];return n[r.name]=i?Object.assign(Object.assign(Object.assign({},i),r),{options:Object.assign(Object.assign({},i.options),r.options),data:Object.assign(Object.assign({},i.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function N0e(e){const t=Mr(e),n=ci(e),r=t.visualViewport;let i=n.clientWidth,a=n.clientHeight,o=0,l=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,l=r.offsetTop)),{width:i,height:a,x:o+_v(e),y:l}}function B0e(e){const t=ci(e),n=bv(e),r=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let o=-n.scrollLeft+_v(e);const l=-n.scrollTop;return fi(r||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:l}}function hk(e,t){const n=!!(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cv(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function R0e(e){const t=Os(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function mk(e,t){return t===ck?Cv(N0e(e)):Dr(t)?R0e(t):Cv(B0e(ci(e)))}function W0e(e){const t=As(vd(e)),r=["absolute","fixed"].indexOf(fi(e).position)>=0&&Dr(e)?Ts(e):e;return Cs(r)?t.filter(i=>Cs(i)&&hk(i,r)&&cr(i)!=="body"):[]}function z0e(e,t,n){const i=[...t==="clippingParents"?W0e(e):[].concat(t),n],a=i[0],o=i.reduce((l,s)=>{const u=mk(e,s);return l.top=Math.max(u.top,l.top),l.right=Math.min(u.right,l.right),l.bottom=Math.min(u.bottom,l.bottom),l.left=Math.max(u.left,l.left),l},mk(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ps(e){return e.split("-")[1]}function Av(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gk({reference:e,element:t,placement:n}){const r=n?Ir(n):null,i=n?Ps(n):null,a=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2;let l;switch(r){case Yn:l={x:a,y:e.y-t.height};break;case fr:l={x:a,y:e.y+e.height};break;case dr:l={x:e.x+e.width,y:o};break;case Kn:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}const s=r?Av(r):null;if(s!=null){const u=s==="y"?"height":"width";switch(i){case zo:l[s]=Math.floor(l[s])-Math.floor(e[u]/2-t[u]/2);break;case Ov:l[s]=Math.floor(l[s])+Math.ceil(e[u]/2-t[u]/2);break}}return l}function pk(){return{top:0,right:0,bottom:0,left:0}}function vk(e){return Object.assign(Object.assign({},pk()),e)}function yk(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function js(e,t={}){const{placement:n=e.placement,boundary:r=j0e,rootBoundary:i=ck,elementContext:a=Es,altBoundary:o=!1,padding:l=0}=t,s=vk(typeof l!="number"?l:yk(l,ks)),u=a===Es?M0e:Es,c=e.elements.reference,f=e.rects.popper,d=e.elements[o?u:a],h=z0e(Cs(d)?d:d.contextElement||ci(e.elements.popper),r,i),g=Os(c),p=gk({reference:g,element:f,strategy:"absolute",placement:n}),y=Cv(Object.assign(Object.assign({},f),p)),_=a===Es?y:g,b={top:h.top-_.top+s.top,bottom:_.bottom-h.bottom+s.bottom,left:h.left-_.left+s.left,right:_.right-h.right+s.right},S=e.modifiersData.offset;if(a===Es&&S){const O=S[n];Object.keys(b).forEach(w=>{const A=[dr,fr].indexOf(w)>=0?1:-1,T=[Yn,fr].indexOf(w)>=0?"y":"x";b[w]+=O[T]*A})}return b}const bk={placement:"bottom",modifiers:[],strategy:"absolute"};function _k(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function V0e(e={}){const{defaultModifiers:t=[],defaultOptions:n=bk}=e;return function(i,a,o=n){let l={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},bk),n),modifiersData:{},elements:{reference:i,popper:a},attributes:{},styles:{}},s=[],u=!1;const c={state:l,setOptions(h){d(),l.options=Object.assign(Object.assign(Object.assign({},n),l.options),h),l.scrollParents={reference:Cs(i)?As(i):i.contextElement?As(i.contextElement):[],popper:As(a)};const g=$0e(F0e([...t,...l.options.modifiers]));return l.orderedModifiers=g.filter(p=>p.enabled),f(),c.update()},forceUpdate(){if(u)return;const{reference:h,popper:g}=l.elements;if(_k(h,g)){l.rects={reference:k0e(h,Ts(g),l.options.strategy==="fixed"),popper:Sv(g)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(p=>l.modifiersData[p.name]=Object.assign({},p.data));for(let p=0;p<l.orderedModifiers.length;p++){if(l.reset===!0){l.reset=!1,p=-1;continue}const{fn:y,options:_={},name:b}=l.orderedModifiers[p];typeof y=="function"&&(l=y({state:l,options:_,name:b,instance:c})||l)}}},update:L0e(()=>new Promise(h=>{c.forceUpdate(),h(l)})),destroy(){d(),u=!0}};if(!_k(i,a))return c;c.setOptions(o).then(h=>{!u&&o.onFirstUpdate&&o.onFirstUpdate(h)});function f(){l.orderedModifiers.forEach(({name:h,options:g={},effect:p})=>{if(typeof p=="function"){const y=p({state:l,name:h,instance:c,options:g}),_=()=>{};s.push(y||_)}})}function d(){s.forEach(h=>h()),s=[]}return c}}const yd={passive:!0};function U0e({state:e,instance:t,options:n}){const{scroll:r=!0,resize:i=!0}=n,a=Mr(e.elements.popper),o=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&o.forEach(l=>{l.addEventListener("scroll",t.update,yd)}),i&&a.addEventListener("resize",t.update,yd),()=>{r&&o.forEach(l=>{l.removeEventListener("scroll",t.update,yd)}),i&&a.removeEventListener("resize",t.update,yd)}}const H0e={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:U0e,data:{}};function q0e({state:e,name:t}){e.modifiersData[t]=gk({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const G0e={name:"popperOffsets",enabled:!0,phase:"read",fn:q0e,data:{}},Y0e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K0e({x:e,y:t}){const r=window.devicePixelRatio||1;return{x:Math.round(e*r)/r||0,y:Math.round(t*r)/r||0}}function xk({popper:e,popperRect:t,placement:n,offsets:r,position:i,gpuAcceleration:a,adaptive:o}){let{x:l,y:s}=K0e(r);const u=r.hasOwnProperty("x"),c=r.hasOwnProperty("y");let f=Kn,d=Yn;const h=window;if(o){let p=Ts(e);p===Mr(e)&&(p=ci(e)),n===Yn&&(d=fr,s-=p.clientHeight-t.height,s*=a?1:-1),n===Kn&&(f=dr,l-=p.clientWidth-t.width,l*=a?1:-1)}const g=Object.assign({position:i},o&&Y0e);return a?Object.assign(Object.assign({},g),{[d]:c?"0":"",[f]:u?"0":"",transform:(h.devicePixelRatio||1)<2?`translate(${l}px, ${s}px)`:`translate3d(${l}px, ${s}px, 0)`}):Object.assign(Object.assign({},g),{[d]:c?`${s}px`:"",[f]:u?`${l}px`:"",transform:""})}function Z0e({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,i={placement:Ir(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),xk(Object.assign(Object.assign({},i),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),xk(Object.assign(Object.assign({},i),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const X0e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Z0e,data:{}};function J0e({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!Dr(i)||!cr(i)||(Object.assign(i.style,n),Object.keys(r).forEach(a=>{const o=r[a];o===!1?i.removeAttribute(a):i.setAttribute(a,o===!0?"":o)}))})}function Q0e({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach(n=>{const r=e.elements[n],i=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((l,s)=>(l[s]="",l),{});!Dr(r)||!cr(r)||(Object.assign(r.style,o),Object.keys(i).forEach(l=>{r.removeAttribute(l)}))})}}const ege={name:"applyStyles",enabled:!0,phase:"write",fn:J0e,effect:Q0e,requires:["computeStyles"]};function tge(e,t,n){const r=Ir(e),i=[Kn,Yn].indexOf(r)>=0?-1:1;let[a,o]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return a=a||0,o=(o||0)*i,[Kn,dr].indexOf(r)>=0?{x:o,y:a}:{x:a,y:o}}function nge({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,i=dk.reduce((l,s)=>(l[s]=tge(s,e.rects,r),l),{}),{x:a,y:o}=i[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=o),e.modifiersData[n]=i}const rge={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nge},ige={left:"right",right:"left",bottom:"top",top:"bottom"};function bd(e){return e.replace(/left|right|bottom|top/g,t=>ige[t])}const age={start:"end",end:"start"};function Sk(e){return e.replace(/start|end/g,t=>age[t])}function oge(e,t={}){const{placement:n,boundary:r,rootBoundary:i,padding:a,flipVariations:o,allowedAutoPlacements:l=dk}=t,s=Ps(n),u=s?o?fk:fk.filter(d=>Ps(d)===s):ks;let c=u.filter(d=>l.indexOf(d)>=0);c.length===0&&(c=u);const f=c.reduce((d,h)=>(d[h]=js(e,{placement:h,boundary:r,rootBoundary:i,padding:a})[Ir(h)],d),{});return Object.keys(f).sort((d,h)=>f[d]-f[h])}function lge(e){if(Ir(e)===wv)return[];const t=bd(e);return[Sk(e),t,Sk(t)]}function sge({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:i=!0,fallbackPlacements:a,padding:o,boundary:l,rootBoundary:s,altBoundary:u,flipVariations:c=!0,allowedAutoPlacements:f}=t,d=e.options.placement,g=Ir(d)===d,p=a||(g||!c?[bd(d)]:lge(d)),y=[d,...p].reduce((A,T)=>A.concat(Ir(T)===wv?oge(e,{placement:T,boundary:l,rootBoundary:s,padding:o,flipVariations:c,allowedAutoPlacements:f}):T),[]),_=e.rects.reference,b=e.rects.popper,S=new Map;let O=!0,w=y[0];for(let A=0;A<y.length;A++){const T=y[A],k=Ir(T),j=Ps(T)===zo,N=[Yn,fr].indexOf(k)>=0,M=N?"width":"height",E=js(e,{placement:T,boundary:l,rootBoundary:s,altBoundary:u,padding:o});let I=N?j?dr:Kn:j?fr:Yn;_[M]>b[M]&&(I=bd(I));const D=bd(I),W=[];if(r&&W.push(E[k]<=0),i&&W.push(E[I]<=0,E[D]<=0),W.every(X=>X)){w=T,O=!1;break}S.set(T,W)}if(O){const A=c?3:1;for(let T=A;T>0;T--){const k=y.find(j=>{const N=S.get(j);if(N)return N.slice(0,T).every(M=>M)});if(k){w=k;break}}}e.placement!==w&&(e.modifiersData[n]._skip=!0,e.placement=w,e.reset=!0)}const uge={name:"flip",enabled:!0,phase:"main",fn:sge,requiresIfExists:["offset"],data:{_skip:!1}};function cge(e){return e==="x"?"y":"x"}function _d(e,t,n){return Math.max(e,Math.min(t,n))}function fge({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:i=!1,boundary:a,rootBoundary:o,altBoundary:l,padding:s,tether:u=!0,tetherOffset:c=0}=t,f=js(e,{boundary:a,rootBoundary:o,padding:s,altBoundary:l}),d=Ir(e.placement),h=Ps(e.placement),g=!h,p=Av(d),y=cge(p),_=e.modifiersData.popperOffsets,b=e.rects.reference,S=e.rects.popper,O=typeof c=="function"?c(Object.assign(Object.assign({},e.rects),{placement:e.placement})):c,w={x:0,y:0};if(_){if(r){const A=p==="y"?Yn:Kn,T=p==="y"?fr:dr,k=p==="y"?"height":"width",j=_[p],N=_[p]+f[A],M=_[p]-f[T],E=u?-S[k]/2:0,I=h===zo?b[k]:S[k],D=h===zo?-S[k]:-b[k],W=e.elements.arrow,X=u&&W?Sv(W):{width:0,height:0},re=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:pk(),ne=re[A],ee=re[T],z=_d(0,b[k],X[k]),Z=g?b[k]/2-E-z-ne-O:I-z-ne-O,q=g?-b[k]/2+E+z+ee+O:D+z+ee+O,Y=e.elements.arrow&&Ts(e.elements.arrow),G=Y?p==="y"?Y.clientTop||0:Y.clientLeft||0:0,ie=e.modifiersData.offset?e.modifiersData.offset[e.placement][p]:0,B=_[p]+Z-ie-G,se=_[p]+q-ie,K=_d(u?Math.min(N,B):N,j,u?Math.max(M,se):M);_[p]=K,w[p]=K-j}if(i){const A=p==="x"?Yn:Kn,T=p==="x"?fr:dr,k=_[y],j=k+f[A],N=k-f[T],M=_d(j,k,N);_[y]=M,w[y]=M-k}e.modifiersData[n]=w}}const dge={name:"preventOverflow",enabled:!0,phase:"main",fn:fge,requiresIfExists:["offset"]};function hge({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,i=Ir(e.placement),a=Av(i),l=[Kn,dr].indexOf(i)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,u=Sv(n),c=a==="y"?Yn:Kn,f=a==="y"?fr:dr,d=e.rects.reference[l]+e.rects.reference[a]-r[a]-e.rects.popper[l],h=r[a]-e.rects.reference[a],g=Ts(n),p=g?a==="y"?g.clientHeight||0:g.clientWidth||0:0,y=d/2-h/2,_=s[c],b=p-u[l]-s[f],S=p/2-u[l]/2+y,O=_d(_,S,b),w=a;e.modifiersData[t]={[w]:O,centerOffset:O-S}}function mge({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:i=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||hk(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:vk(typeof i!="number"?i:yk(i,ks))}))}const gge={name:"arrow",enabled:!0,phase:"main",fn:hge,effect:mge,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wk(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ok(e){return[Yn,dr,fr,Kn].some(t=>e[t]>=0)}function pge({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,a=js(e,{elementContext:"reference"}),o=js(e,{altBoundary:!0}),l=wk(a,n),s=wk(o,r,i),u=Ok(l),c=Ok(s);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:s,isReferenceHidden:u,hasPopperEscaped:c},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const vge=V0e({defaultModifiers:[H0e,G0e,X0e,ege,rge,uge,dge,gge,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pge}]}),Tv=Wo?F.useLayoutEffect:F.useEffect,yge=(e,t)=>JSON.stringify(e)===JSON.stringify(t),Ck=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),bge=[],_ge=(e,t,n={})=>{const r=F.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||bge},[a,o]=F.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),l=F.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const f=Object.keys(c.elements);o({styles:Ck(f.map(d=>[d,c.styles[d]||{}])),attributes:Ck(f.map(d=>[d,c.attributes[d]]))})},requires:["computeStyles"]}),[]),s=F.useMemo(()=>{const c={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[...i.modifiers,l,{name:"applyStyles",enabled:!1}]};return yge(r.current,c)?r.current||c:(r.current=c,c)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),u=F.useRef();return Tv(()=>{u&&u.current&&u.current.setOptions(s)},[s]),Tv(()=>{if(e==null||t==null)return;const f=(n.createPopper||vge)(e,t,s);return u.current=f,()=>{f.destroy(),u.current=null}},[e,t,n.createPopper]),{state:u.current?u.current.state:null,styles:a.styles,attributes:a.attributes,update:u.current?u.current.update:null,forceUpdate:u.current?u.current.forceUpdate:null}};class kv extends F.Component{componentDidMount(){const t=By.findDOMNode(this);this.props.onFoundRef(t)}render(){return this.props.children||null}}kv.displayName="FindRefWrapper";const Iwe="",xge={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},Sge=e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,t=>xge[t]),Ak=({trigger:e,popper:t,popperMatchesTriggerWidth:n=!0,direction:r="down",position:i="left",placement:a,appendTo:o=()=>document.body,zIndex:l=9999,isVisible:s=!0,positionModifiers:u,distance:c=0,onMouseEnter:f,onMouseLeave:d,onFocus:h,onBlur:g,onDocumentClick:p,onTriggerClick:y,onTriggerEnter:_,onPopperClick:b,onPopperMouseEnter:S,onPopperMouseLeave:O,onDocumentKeyDown:w,enableFlip:A=!0,flipBehavior:T="flip",reference:k,removeFindDomNode:j=!1,popperRef:N})=>{const[M,E]=F.useState(null),[I,D]=F.useState(null),[W,X]=F.useState(null),[re,ne]=F.useState(!1),ee=I||M,z=F.useCallback(ge=>p(ge,ee,W),[s,M,I,W,p]);F.useEffect(()=>{ne(!0)},[]),F.useEffect(()=>{k&&(k.current?D(k.current):typeof k=="function"&&D(k()))},[k]),F.useEffect(()=>{N&&(N.current?X(N.current):typeof N=="function"&&X(N()))},[s,N]);const Z=(ge,P,V,Q=!1)=>{ge&&P&&P.addEventListener(V,ge,{capture:Q})},q=(ge,P,V,Q=!1)=>{ge&&P&&P.removeEventListener(V,ge,{capture:Q})};F.useEffect(()=>{Z(f,ee,"mouseenter"),Z(d,ee,"mouseleave"),Z(h,ee,"focus"),Z(g,ee,"blur"),Z(y,ee,"click"),Z(_,ee,"keydown"),Z(b,W,"click"),Z(S,W,"mouseenter"),Z(O,W,"mouseleave"),p&&Z(z,document,"click",!0),Z(w,document,"keydown",!0);const ge=new MutationObserver(()=>{J&&J()});return W&&ge.observe(W,{attributes:!0,childList:!0,subtree:!0}),()=>{q(f,ee,"mouseenter"),q(d,ee,"mouseleave"),q(h,ee,"focus"),q(g,ee,"blur"),q(y,ee,"click"),q(_,ee,"keydown"),q(b,W,"click"),q(S,W,"mouseenter"),q(O,W,"mouseleave"),p&&q(z,document,"click",!0),q(w,document,"keydown",!0),ge.disconnect()}},[M,W,f,d,h,g,y,_,b,S,O,p,w,I]);const Y=()=>{if(a)return a;let ge=r==="up"?"top":"bottom";return i!=="center"&&(ge=`${ge}-${i==="right"?"end":"start"}`),ge},G=F.useMemo(Y,[r,i,a]),ie=F.useMemo(()=>Sge(Y()),[r,i,a]),B=F.useMemo(()=>({name:"sameWidth",enabled:n,phase:"beforeWrite",requires:["computeStyles"],fn:({state:ge})=>{ge.styles.popper.width=`${ge.rects.reference.width}px`},effect:({state:ge})=>(ge.elements.popper.style.width=`${ge.elements.reference.offsetWidth}px`,()=>{})}),[n]),{styles:se,attributes:K,update:J,forceUpdate:te}=_ge(ee,W,{placement:G,modifiers:[{name:"offset",options:{offset:[0,c]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:G.startsWith("auto")||A,options:{fallbackPlacements:T==="flip"?[ie]:T}},B]});F.useEffect(()=>{te&&te()},[t]);const ue=()=>{if(K&&K.popper&&K.popper["data-popper-placement"]){const ge=K.popper["data-popper-placement"];return u[ge]}return u.top},$=Object.assign({className:Xe(t.props&&t.props.className,u&&ue()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),se.popper),{zIndex:l})},K.popper),xe=F.cloneElement(t,$),Se=()=>typeof o=="function"?o():o;let be;return j?be=F.createElement("div",{style:{display:"contents"},ref:ge=>X(ge==null?void 0:ge.firstElementChild)},xe):N?be=xe:be=F.createElement(kv,{onFoundRef:ge=>X(ge)},xe),F.createElement(F.Fragment,null,!k&&e&&F.isValidElement(e)&&!j&&F.createElement(kv,{onFoundRef:ge=>E(ge)},e),!k&&e&&F.isValidElement(e)&&j&&F.createElement("div",{style:{display:"contents"},ref:ge=>E(ge==null?void 0:ge.firstElementChild)},e),re&&s&&By.createPortal(be,Se()))};Ak.displayName="Popper";const wge=(e,t,n=u=>document.activeElement.contains(u),r=u=>u,i=["A","BUTTON","INPUT"],a=!1,o=!1,l=!0,s=!0)=>{const u=document.activeElement,c=e.key;let f=null;if(!a&&["ArrowUp","ArrowDown"].includes(c)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,g)=>{if(n(h)){let p=0;for(;!f&&p<t.length&&p*-1<t.length;)c==="ArrowUp"?p--:p++,d=g+p,d>=t.length&&(d=0),d<0&&(d=t.length-1),f=r(t[d])}})}if(!o&&["ArrowLeft","ArrowRight"].includes(c)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,g)=>{if(n(h)){const p=t[g].querySelectorAll(i.join(","));if(!p.length||s){let y=u;for(;y;)if(y=c==="ArrowLeft"?y.previousElementSibling:y.nextElementSibling,y&&i.includes(y.tagName)){f=y;break}}else p.forEach((y,_)=>{e.target===y&&(d=_+(c==="ArrowLeft"?-1:1),d>=p.length&&(d=0),d<0&&(d=p.length-1),f=p[d])})}})}f&&(l&&(u.tabIndex=-1,f.tabIndex=0),f.focus())};class Ev extends F.Component{constructor(){super(...arguments),this.keyHandler=t=>{const{isEventFromContainer:n}=this.props;if(n?!n(t):!this._isEventFromContainer(t))return;const{isActiveElement:r,getFocusableElement:i,noVerticalArrowHandling:a,noHorizontalArrowHandling:o,noEnterHandling:l,noSpaceHandling:s,updateTabIndex:u,validSiblingTags:c,additionalKeyHandler:f,createNavigableElements:d,onlyTraverseSiblings:h}=this.props;f&&f(t);const g=d();if(!g){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const p=t.key;l||p==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),s||p===" "&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),wge(t,g,r,i,c,a,o,u,h)},this._isEventFromContainer=t=>{const{containerRef:n}=this.props;return n.current&&n.current.contains(t.target)}}componentDidMount(){Wo&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Wo&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Ev.displayName="KeyboardHandler",Ev.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:e=>document.activeElement===e,getFocusableElement:e=>e,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};const Ta=F.createContext({menuId:null,parentMenu:null,onActionClick:()=>null,onSelect:()=>null,activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:()=>null,flyoutRef:null,setFlyoutRef:()=>null,disableHover:!1,role:"menu"}),Tk=F.createContext({itemId:null,isDisabled:!1});class xd extends F.Component{constructor(t){super(t),this.menuRef=F.createRef(),this.activeMenu=null,this.state={ouiaStateId:yv(Sd.displayName),searchInputValue:"",transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=n=>{const r=this.menuRef.current;if(!(!r||r!==n.target.closest(".pf-c-menu")&&!Array.from(r.getElementsByClassName("pf-c-menu")).includes(n.target.closest(".pf-c-menu"))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const i=r.querySelector("#"+this.props.activeMenu)||r||null,a=Array.from(i.getElementsByTagName("UL")[0].children);if(!this.state.currentDrilldownMenuId||i.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:i.id});else return;const o=a.filter(l=>!(l.classList.contains("pf-m-disabled")||l.classList.contains("pf-c-divider")))[0].firstChild;o.focus(),o.tabIndex=0}},this.handleExtraKeys=n=>{const r=this.props.containsDrilldown,i=document.activeElement;if(n.target.closest(".pf-c-menu")!==this.activeMenu&&!n.target.classList.contains("pf-c-breadcrumb__link")&&(this.activeMenu=n.target.closest(".pf-c-menu"),this.setState({disableHover:!0})),n.target.tagName==="INPUT")return;const a=this.activeMenu,o=n.key,l=i.classList.contains("pf-c-breadcrumb__link")||i.classList.contains("pf-c-dropdown__toggle");if(o===" "||o==="Enter"){if(n.preventDefault(),r&&!l){if(i.closest("li").classList.contains("pf-m-current-path")&&a.parentElement.tagName==="LI")i.tabIndex=-1,a.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:a.parentElement.firstChild});else if(i.nextElementSibling&&i.nextElementSibling.classList.contains("pf-c-menu")){const u=Array.from(i.nextElementSibling.getElementsByTagName("UL")[0].children).filter(c=>!(c.classList.contains("pf-m-disabled")||c.classList.contains("pf-c-divider")));i.tabIndex=-1,u[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:u[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains("pf-c-divider"))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains("pf-c-divider"))):[],t.innerRef&&(this.menuRef=t.innerRef)}allowTabFirstItem(){const t=this.menuRef.current;if(t){const n=t.querySelector("ul button:not(:disabled), ul a:not(:disabled)");n&&(n.tabIndex=0)}}componentDidMount(){this.context&&this.setState({disableHover:this.context.disableHover}),Wo&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Wo&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(t){t.children!==this.props.children&&this.allowTabFirstItem()}render(){const t=this.props,{"aria-label":n,id:r,children:i,className:a,onSelect:o,selected:l=null,onActionClick:s,ouiaId:u,ouiaSafe:c,containsFlyout:f,isNavFlyout:d,containsDrilldown:h,isMenuDrilledIn:g,isPlain:p,isScrollable:y,drilldownItemPath:_,drilledInMenus:b,onDrillIn:S,onDrillOut:O,onGetMenuHeight:w,parentMenu:A=null,activeItemId:T=null,innerRef:k,isRootMenu:j,activeMenu:N,role:M}=t,E=Re(t,["aria-label","id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","isNavFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role"]),I=g||b&&b.includes(r)||!1;return F.createElement(Ta.Provider,{value:{menuId:r,parentMenu:A||r,onSelect:o,onActionClick:s,activeItemId:T,selected:l,drilledInMenus:b,drilldownItemPath:_,onDrillIn:S,onDrillOut:O,onGetMenuHeight:w,flyoutRef:this.state.flyoutRef,setFlyoutRef:D=>this.setState({flyoutRef:D}),disableHover:this.state.disableHover,role:M}},j&&F.createElement(Ev,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:D=>document.activeElement.closest("li")===D||document.activeElement.parentElement===D||document.activeElement.closest(".pf-c-menu__search")===D||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===D,getFocusableElement:D=>D.tagName==="DIV"&&D.querySelector("input")||D.firstChild.tagName==="LABEL"&&D.querySelector("input")||D.firstChild,noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains("pf-c-breadcrumb__link")||document.activeElement.classList.contains("pf-c-dropdown__toggle")),noEnterHandling:!0,noSpaceHandling:!0}),F.createElement("div",Object.assign({id:r,className:Xe(Fe.menu,p&&Fe.modifiers.plain,y&&Fe.modifiers.scrollable,f&&Fe.modifiers.flyout,d&&Fe.modifiers.nav,h&&Fe.modifiers.drilldown,I&&Fe.modifiers.drilledIn,a),"aria-label":n,ref:this.menuRef},vv(Sd.displayName,u!==void 0?u:this.state.ouiaStateId,c),E),i))}}xd.displayName="Menu",xd.contextType=Ta,xd.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const Sd=F.forwardRef((e,t)=>F.createElement(xd,Object.assign({},e,{innerRef:t})));Sd.displayName="Menu";const kk=F.forwardRef((e,t)=>{const{getHeight:n,children:r,menuHeight:i,maxMenuHeight:a}=e,o=Re(e,["getHeight","children","menuHeight","maxMenuHeight"]),l=F.createRef(),s=(u,c,f)=>{if(u){let d=u.clientHeight,h=null,g=u.closest(`.${Fe.menuList}`);for(;g!==null&&g.nodeType===1;)g.classList.contains(Fe.menuList)&&(h=g),g=g.parentElement;if(h){const p=getComputedStyle(h),y=parseFloat(p.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(p.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(h.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));d=d+y}f&&f(c,d),n&&n(d.toString())}return t||l};return F.createElement(Ta.Consumer,null,({menuId:u,onGetMenuHeight:c})=>F.createElement("div",Object.assign({},o,{className:Xe(Fe.menuContent,e.className),ref:f=>s(f,u,c),style:Object.assign(Object.assign({},i&&{"--pf-c-menu__content--Height":i}),a&&{"--pf-c-menu__content--MaxHeight":a})}),r))});kk.displayName="MenuContent";const Oge={name:"--pf-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--top-offset)"},Cge={name:"--pf-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--m-left--right-offset)"},Age={name:"--pf-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--left-offset)"};var ka;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(ka||(ka={}));const Tge=e=>{switch(e){case ka.sm:return"1em";case ka.md:return"1.5em";case ka.lg:return"2em";case ka.xl:return"3em";default:return"1em"}};let kge=0;function Ms({name:e,xOffset:t=0,yOffset:n=0,width:r,height:i,svgPath:a}){var o;return o=class extends F.Component{constructor(){super(...arguments),this.id=`icon-title-${kge++}`}render(){const s=this.props,{size:u,color:c,title:f,noVerticalAlign:d}=s,h=Re(s,["size","color","title","noVerticalAlign"]),g=!!f,p=Tge(u),y=-.125*Number.parseFloat(p),_=d?null:{verticalAlign:`${y}em`},b=[t,n,r,i].join(" ");return F.createElement("svg",Object.assign({style:_,fill:c,height:p,width:p,viewBox:b,"aria-labelledby":g?this.id:null,"aria-hidden":g?null:!0,role:"img"},h),g&&F.createElement("title",{id:this.id},f),F.createElement("path",{d:a}))}},o.displayName=e,o.defaultProps={color:"currentColor",size:ka.sm,noVerticalAlign:!1},o}const Ege=Ms({name:"ExternalLinkAltIcon",height:512,width:512,svgPath:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z",yOffset:0,xOffset:0}),Pge=Ms({name:"AngleRightIcon",height:512,width:256,svgPath:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",yOffset:0,xOffset:0}),jge=Ms({name:"AngleLeftIcon",height:512,width:256,svgPath:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",yOffset:0,xOffset:0}),Mge=Ms({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0}),qwe="",Wi={check:"pf-c-check",checkBody:"pf-c-check__body",checkDescription:"pf-c-check__description",checkInput:"pf-c-check__input",checkLabel:"pf-c-check__label",checkLabelRequired:"pf-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},Ek=()=>{};class Vo extends F.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n.currentTarget.checked,n)},this.state={ouiaStateId:yv(Vo.displayName)}}render(){const t=this.props,{"aria-label":n,className:r,onChange:i,isValid:a,isDisabled:o,isRequired:l,isChecked:s,label:u,checked:c,defaultChecked:f,description:d,body:h,ouiaId:g,ouiaSafe:p,component:y}=t,_=Re(t,["aria-label","className","onChange","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);_.id||console.error("Checkbox:","id is required to make input accessible");const b={};return([!0,!1].includes(c)||s===!0)&&(b.checked=c||s),i!==Ek&&(b.checked=s),[!1,!0].includes(f)&&(b.defaultChecked=f),b.checked=b.checked===null?!1:b.checked,F.createElement(y,{className:Xe(Wi.check,!u&&Wi.modifiers.standalone,r)},F.createElement("input",Object.assign({},_,{className:Xe(Wi.checkInput),type:"checkbox",onChange:this.handleChange,"aria-invalid":!a,"aria-label":n,disabled:o,required:l,ref:S=>S&&(S.indeterminate=s===null)},b,vv(Vo.displayName,g!==void 0?g:this.state.ouiaStateId,p))),u&&F.createElement("label",{className:Xe(Wi.checkLabel,o&&Wi.modifiers.disabled),htmlFor:_.id},u,l&&F.createElement("span",{className:Xe(Wi.checkLabelRequired),"aria-hidden":"true"},O0e)),d&&F.createElement("span",{className:Xe(Wi.checkDescription)},d),h&&F.createElement("span",{className:Xe(Wi.checkBody)},h))}}Vo.displayName="Checkbox",Vo.defaultProps={className:"",isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Ek,ouiaSafe:!0,component:"div"};const Dge=Ms({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0}),Ige=e=>{var{className:t="",icon:n,onClick:r,"aria-label":i,isFavorited:a=null,isDisabled:o,actionId:l,innerRef:s}=e,u=Re(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return F.createElement(Ta.Consumer,null,({onActionClick:c})=>F.createElement(Tk.Consumer,null,({itemId:f,isDisabled:d})=>{const h=g=>{r&&r(g),c&&c(g,f,l)};return F.createElement("button",Object.assign({className:Xe(Fe.menuItemAction,a!==null&&Fe.modifiers.favorite,a&&Fe.modifiers.favorited,t),"aria-label":i,onClick:h},(o===!0||d===!0)&&{disabled:!0},{ref:s,tabIndex:-1},u),F.createElement("span",{className:Xe(Fe.menuItemActionIcon)},n==="favorites"||a!==null?F.createElement(Dge,{"aria-hidden":!0}):n))}))},Pk=F.forwardRef((e,t)=>F.createElement(Ige,Object.assign({},e,{innerRef:t})));Pk.displayName="MenuItemAction";const jk=F.createContext({direction:"right"}),$ge=e=>{var{children:t,className:n,itemId:r=null,to:i,hasCheck:a=!1,isActive:o=null,isFavorited:l=null,isLoadButton:s=!1,isLoading:u=!1,flyoutMenu:c,direction:f,description:d=null,onClick:h=()=>{},component:g="button",isDisabled:p=!1,isExternalLink:y=!1,isSelected:_=null,isFocused:b,isDanger:S=!1,icon:O,actions:w,onShowFlyout:A,drilldownMenu:T,isOnPath:k,innerRef:j}=e,N=Re(e,["children","className","itemId","to","hasCheck","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef"]);const{menuId:M,parentMenu:E,onSelect:I,onActionClick:D,activeItemId:W,selected:X,drilldownItemPath:re,onDrillIn:ne,onDrillOut:ee,flyoutRef:z,setFlyoutRef:Z,disableHover:q,role:Y}=F.useContext(Ta);let G=i?"a":g;a&&!i&&(G="label");const[ie,B]=F.useState(null),se=F.useContext(jk),[K,J]=F.useState(se.direction),te=F.useRef(),ue=te===z,$=c!==void 0,xe=le=>{!ue&&le?Z(te):ue&&!le&&Z(null),A&&le&&A()};Tv(()=>{if($&&te.current&&Wo){const le=te.current.lastElementChild;if(le&&le.classList.contains(Fe.menu)){const U=te.current.getClientRects()[0],oe=le.getClientRects()[0];if(U&&oe){const Ee=U.x-oe.width,Ie=window.innerWidth-U.x-U.width-oe.width;let Me=K;Ie<0&&Me!=="left"?(J("left"),Me="left"):Ee<0&&Me!=="right"&&(J("right"),Me="right");let Ve=0;Ee<0&&Ie<0&&(Ve=Me==="right"?-Ie:-Ee),Me==="left"?(le.classList.add(Fe.modifiers.left),le.style.setProperty(Cge.name,`-${Ve}px`)):le.style.setProperty(Age.name,`-${Ve}px`);const dt=window.innerHeight-U.y-oe.height;window.innerHeight-oe.height<0&&dt<0||dt<0&&le.style.setProperty(Oge.name,`${dt}px`)}}}},[ue,c]),F.useEffect(()=>{J(se.direction)},[se]),F.useEffect(()=>{if(ie)if(ue){const le=ie.nextElementSibling;Array.from(le.getElementsByTagName("UL")[0].children).filter(oe=>!(oe.classList.contains("pf-m-disabled")||oe.classList.contains("pf-c-divider")))[0].firstChild.focus()}else ie.focus()},[ue,ie]);const Se=le=>{const U=le.key,oe=le.target,Ee=le.type;(U===" "||U==="Enter"||U==="ArrowRight"||Ee==="click")&&(le.stopPropagation(),le.preventDefault(),ue||(xe(!0),B(oe))),(U==="Escape"||U==="ArrowLeft")&&ue&&(le.stopPropagation(),xe(!1))},be=(le,U)=>{U&&U(le,r),h&&h(le)},ge=k&&k||re&&re.includes(r)||!1;let P;f&&(f==="down"?P=le=>ne&&ne(le,M,typeof T=="function"?T().props.id:T.props.id,r):P=le=>ee&&ee(le,E,r));let V={};G==="a"?V={href:i,"aria-disabled":p?!0:null,disabled:null}:G==="button"&&(V={type:"button"}),k?V["aria-expanded"]=!0:$&&(V["aria-haspopup"]="menu",V["aria-expanded"]=ue);const Q=()=>o!==null?o?"page":null:r!==null&&W!==null?r===W:null,he=()=>_!==null?_:X!==null&&r!==null?Array.isArray(X)&&X.includes(r)||r===X:!1,me=()=>{q||($?xe(!0):Z(null))},ce=Y==="listbox";return F.createElement("li",Object.assign({className:Xe(Fe.menuListItem,p&&Fe.modifiers.disabled,ge&&Fe.modifiers.currentPath,s&&Fe.modifiers.load,u&&Fe.modifiers.loading,b&&Fe.modifiers.focus,S&&Fe.modifiers.danger,n),onMouseOver:me},c&&{onKeyDown:Se},{ref:te,role:a?"menuitem":"none"},N),F.createElement(gv,null,le=>F.createElement(G,Object.assign({tabIndex:-1,className:Xe(Fe.menuItem,he()&&!a&&Fe.modifiers.selected,n),"aria-current":Q()},!a&&{disabled:p},!a&&!c&&{role:ce?"option":"menuitem"},!a&&!c&&ce&&{"aria-selected":he()},{ref:j},!a&&{onClick:U=>{be(U,I),P&&P(U),c&&Se(U)}},a&&{htmlFor:le},V),F.createElement("span",{className:Xe(Fe.menuItemMain)},f==="up"&&F.createElement("span",{className:Xe(Fe.menuItemToggleIcon)},F.createElement(jge,{"aria-hidden":!0})),O&&F.createElement("span",{className:Xe(Fe.menuItemIcon)},O),a&&F.createElement("span",{className:Xe("pf-c-menu__item-check")},F.createElement(Vo,{id:le,component:"span",isChecked:_||!1,onChange:U=>be(U,I),isDisabled:p})),F.createElement("span",{className:Xe(Fe.menuItemText)},t),y&&F.createElement("span",{className:Xe(Fe.menuItemExternalIcon)},F.createElement(Ege,{"aria-hidden":!0})),(c||f==="down")&&F.createElement("span",{className:Xe(Fe.menuItemToggleIcon)},F.createElement(Pge,{"aria-hidden":!0})),he()&&F.createElement("span",{className:Xe(Fe.menuItemSelectIcon)},F.createElement(Mge,{"aria-hidden":!0}))),d&&f!=="up"&&F.createElement("span",{className:Xe(Fe.menuItemDescription)},F.createElement("span",null,d)))),ue&&F.createElement(Ta.Provider,{value:{disableHover:q}},F.createElement(jk.Provider,{value:{direction:K}},c)),typeof T=="function"?T():T,F.createElement(Tk.Provider,{value:{itemId:r,isDisabled:p}},w,l!==null&&F.createElement(Pk,{icon:"favorites",isFavorited:l,"aria-label":l?"starred":"not starred",onClick:le=>D(le,r),tabIndex:-1,actionId:"fav"})))},Mk=F.forwardRef((e,t)=>F.createElement($ge,Object.assign({},e,{innerRef:t})));Mk.displayName="MenuItem";const Dk=e=>{var{children:t=null,className:n,isAriaMultiselectable:r=!1}=e,i=Re(e,["children","className","isAriaMultiselectable"]);const{role:a}=F.useContext(Ta);return F.createElement("ul",Object.assign({role:a},a==="listbox"&&{"aria-multiselectable":r},{className:Xe(Fe.menuList,n)},i),t)};Dk.displayName="MenuList";const Lge=e=>{var{children:t,className:n,onSelect:r,isOpen:i,selected:a,toggle:o,onOpenChange:l,isPlain:s,minWidth:u,innerRef:c,zIndex:f=9999,role:d="listbox"}=e,h=Re(e,["children","className","onSelect","isOpen","selected","toggle","onOpenChange","isPlain","minWidth","innerRef","zIndex","role"]);const g=x.useRef(),p=x.useRef(),y=x.useRef(),_=c||g;x.useEffect(()=>{const S=w=>{var A,T,k;(i&&l&&(!((A=_.current)===null||A===void 0)&&A.contains(w.target))||!((T=p.current)===null||T===void 0)&&T.contains(w.target))&&(w.key==="Escape"||w.key==="Tab")&&(l(!1),(k=p.current)===null||k===void 0||k.focus())},O=w=>{var A,T,k;i&&(!((A=p.current)===null||A===void 0)&&A.contains(w.target))&&w.detail===0&&setTimeout(()=>{var j;const N=(j=_==null?void 0:_.current)===null||j===void 0?void 0:j.querySelector("li button:not(:disabled),li input:not(:disabled)");N&&N.focus()},0),i&&l&&!(!((T=p==null?void 0:p.current)===null||T===void 0)&&T.contains(w.target))&&i&&!(!((k=_.current)===null||k===void 0)&&k.contains(w.target))&&l(!1)};return window.addEventListener("keydown",S),window.addEventListener("click",O),()=>{window.removeEventListener("keydown",S),window.removeEventListener("click",O)}},[i,_,l]);const b=x.createElement(Sd,Object.assign({role:d,className:Xe(n),ref:_,onSelect:(S,O)=>r(S,O),isPlain:s,selected:a},u&&{style:{"--pf-c-menu--MinWidth":u}},vv(Ds.displayName,h.ouiaId!==void 0?h.ouiaId:yv(Ds.displayName),h.ouiaSafe!==void 0?h.ouiaSafe:!0),h),x.createElement(kk,null,t));return x.createElement("div",{ref:y},x.createElement(Ak,{trigger:o(p),removeFindDomNode:!0,popper:b,appendTo:y.current||void 0,isVisible:i,zIndex:f}))},Ds=x.forwardRef((e,t)=>x.createElement(Lge,Object.assign({innerRef:t},e)));Ds.displayName="Select";const Pv=e=>{var{children:t,className:n,isAriaMultiselectable:r=!1}=e,i=Re(e,["children","className","isAriaMultiselectable"]);return x.createElement(Dk,Object.assign({isAriaMultiselectable:r,className:Xe(n)},i),t)};Pv.displayName="SelectList";const jv=e=>{var{children:t,className:n}=e,r=Re(e,["children","className"]);return x.createElement(Mk,Object.assign({className:Xe(n)},r),t)};jv.displayName="SelectOption";const Kwe="",Zwe="";function zi(e){const{t}=yt(),{id:n,icon:r,value:i,onSelect:a,options:o,placeholder:l}=e,[s,u]=x.useState(!1),c=x.useMemo(()=>o.find(_=>i===_.value),[o,i]),f=_=>v.jsxs(C.MenuToggle,{id:n,ref:_,onClick:()=>u(b=>!b),isExpanded:s,onKeyDown:b=>{switch(b.key){default:u(!0);break}},"data-cy":n,children:[r&&v.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:r}),c?c.label:v.jsx("span",{className:"page-select-placeholder",children:l})]}),d=x.useCallback((_,b)=>{const S=o.find(O=>O.key!==void 0?O.key===b:O.label===b);S&&(a(S.value),u(!1))},[a,o]),[h,g]=x.useState(""),p=x.useRef(null);x.useEffect(()=>{g(""),s&&p.current&&p.current.focus()},[s]),x.useEffect(()=>{e.isRequired&&!c&&o.length>0&&a(o[0].value)},[a,o,e.isRequired,c]);const y=x.useMemo(()=>o.filter(_=>h===""?!0:_.label.toLowerCase().includes(h.toLowerCase())),[o,h]);return v.jsx("div",{className:"page-single-select",children:v.jsxs(Ds,{selected:c==null?void 0:c.label,onSelect:d,isOpen:s,onOpenChange:u,toggle:f,style:{zIndex:s?9999:void 0},children:[v.jsx("div",{className:"page-select-header",children:v.jsx(C.SearchInput,{id:n?`${n}-search`:void 0,ref:p,value:h,onChange:(_,b)=>g(b),onClear:_=>{_.stopPropagation(),g("")}})}),y.length===0?v.jsx("div",{style:{margin:16},children:t("No results found")}):v.jsx(Pv,{className:"page-select-list",children:y.map(_=>{const b=jn(_);return v.jsx(jv,{itemId:_.key!==void 0?_.key:_.label,description:_.description,"daya-cy":b,children:_.label},_.key!==void 0?_.key:_.label)})}),e.footer&&v.jsx("div",{className:"page-select-footer",children:e.footer})]})})}function Fge(e){const{t}=yt(),[n,r]=x.useState(!1),[i,a]=x.useState(),[o,l]=x.useState(0),[s,u]=x.useState(),[c,f]=x.useState(1),d=x.useRef(new AbortController).current;x.useEffect(()=>()=>d.abort(),[d]);const h=x.useRef(e.onSelect).current,g=x.useRef(e.queryOptions).current,p=x.useCallback(_=>{r(b=>{if(b)return b;a(void 0),u(S=>{if(S)return S});try{g(_,d.signal).then(S=>{d.signal.aborted||(u(O=>{let w;return O?w=[...O,...S.options]:w=S.options,S.total===1&&h(w[0].value),w}),l(S.total))}).catch(S=>{d.signal.aborted||(S instanceof Error?a(S):a(new Error(t("Unknown error"))))}).finally(()=>{d.signal.aborted||r(!1)})}catch(S){S instanceof Error?a(S):a(new Error(t("Unknown error"))),r(!1)}return!0})},[d.signal,h,g,t]);x.useEffect(()=>p(c),[c,p]);const y=v.jsxs(C.Stack,{hasGutter:!0,children:[n?v.jsxs(C.Flex,{alignItems:{default:"alignItemsCenter"},spaceItems:{default:"spaceItemsMd"},children:[v.jsx(C.FlexItem,{children:v.jsx(C.Spinner,{size:"md"})}),v.jsx(C.FlexItem,{children:t("Loading...")})]}):v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{isFilled:!0,children:(s==null?void 0:s.length)!==o&&v.jsx(C.Button,{variant:"link",isInline:!0,onClick:_=>{_.preventDefault(),_.stopPropagation(),f(b=>b+1)},isSmall:!0,children:t("Load more")})}),v.jsx(C.SplitItem,{children:t("{{count}} of {{total}}",{count:(s==null?void 0:s.length)??0,total:o})})]}),e.footer]});return s?v.jsx(zi,{id:e.id,icon:e.icon,placeholder:e.placeholder,options:s??[],value:e.value,onSelect:e.onSelect,footer:y}):i?v.jsx(C.Button,{id:e.id,variant:"secondary",isDanger:!0,icon:v.jsx(Ce.SyncAltIcon,{}),iconPosition:"right",onClick:_=>{f(b=>(b===1&&p(1),1))},children:typeof e.queryErrorText=="function"?e.queryErrorText(i):e.queryErrorText??t("Error loading options")}):v.jsx(C.Button,{id:e.id,variant:"control",isLoading:!0,children:e.queryPlaceholder??t("Loading options...")})}const Xwe="";function Ik(e){const{t}=yt(),{id:n,icon:r,placeholder:i,values:a,onSelect:o,options:l,variant:s,disableClearSelection:u}=e,[c,f]=x.useState(!1),d=x.useMemo(()=>l.filter(O=>a==null?!1:a.includes(O.value)),[l,a]),h=O=>v.jsxs(C.MenuToggle,{isFullWidth:!0,id:n,ref:O,onClick:()=>f(w=>!w),isExpanded:c,onKeyDown:w=>{switch(w.key){default:f(!0);break}},"data-cy":n,children:[r&&v.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:r}),d.length>0?v.jsx(v.Fragment,{children:s==="count"?v.jsx(C.Chip,{isReadOnly:u,onClick:()=>o(()=>[]),style:{marginTop:-2,marginBottom:-2},children:d.length}):v.jsxs(v.Fragment,{children:[v.jsx(C.ChipGroup,{children:d.map(w=>v.jsx(C.Chip,{isReadOnly:!0,style:{marginTop:-2,marginBottom:-2},children:w.label},w.label))}),!u&&v.jsx(Ce.TimesIcon,{role:"button","aria-hidden":!0,onClick:()=>o(()=>[]),style:{verticalAlign:"middle",marginLeft:8},size:"sm"})]})}):v.jsx("span",{className:"page-select-placeholder",children:i})]}),g=x.useMemo(()=>d.map(O=>O.label),[d]),p=x.useCallback((O,w)=>{o(A=>{const T=l.find(k=>k.key!==void 0?k.key===w:k.label===w);return T&&((A==null?void 0:A.find(k=>k===T.value))!==void 0?A=A.filter(k=>k!==T.value):(A=A?[...A]:[],A.push(T.value))),A})},[o,l]),[y,_]=x.useState(""),b=x.useRef(null);x.useEffect(()=>{_(""),c&&b.current&&b.current.focus()},[c]);const S=x.useMemo(()=>l.filter(O=>y===""?!0:O.label.toLowerCase().includes(y.toLowerCase())),[l,y]);return v.jsx("div",{className:"page-multi-select",children:v.jsxs(Ds,{selected:g,onSelect:p,isOpen:c,onOpenChange:f,toggle:h,style:{zIndex:c?9999:void 0},children:[v.jsx("div",{className:"page-select-header",children:v.jsx(C.SearchInput,{id:n?`${n}-search`:void 0,ref:b,value:y,onChange:(O,w)=>_(w),onClear:O=>{O.stopPropagation(),_("")}})}),S.length===0?v.jsx("div",{style:{margin:16},children:t("No results found")}):v.jsx(Pv,{className:"page-select-list",children:S.map(O=>{const w=jn(O);return v.jsx(jv,{itemId:O.key!==void 0?O.key:O.label,description:O.description?v.jsx("div",{style:{maxWidth:300},children:O.description}):void 0,hasCheck:!0,isSelected:d.includes(O),"data-cy":w,children:O.label},O.key!==void 0?O.key:O.label)})}),e.footer&&v.jsx("div",{className:"page-select-footer",children:e.footer})]})})}function Nge(e){const{t}=yt(),[n,r]=x.useState(!1),[i,a]=x.useState(),[o,l]=x.useState(0),[s,u]=x.useState(),[c,f]=x.useState(1),d=x.useRef(new AbortController).current;x.useEffect(()=>()=>d.abort(),[d]);const h=x.useRef(e.onSelect).current,g=x.useRef(e.queryOptions).current,p=x.useCallback(_=>{r(b=>{if(b)return b;a(void 0),u(S=>{if(S)return S});try{g(_,d.signal).then(S=>{d.signal.aborted||(u(O=>{let w;return O?w=[...O,...S.options]:w=S.options,S.total===1&&h(()=>w.map(A=>A.value)),w}),l(S.total))}).catch(S=>{d.signal.aborted||(S instanceof Error?a(S):a(new Error(t("Unknown error"))))}).finally(()=>{d.signal.aborted||r(!1)})}catch(S){S instanceof Error?a(S):a(new Error(t("Unknown error"))),r(!1)}return!0})},[d.signal,h,g,t]);x.useEffect(()=>p(c),[c,p]);const y=v.jsxs(C.Stack,{hasGutter:!0,children:[n?v.jsxs(C.Flex,{alignItems:{default:"alignItemsCenter"},spaceItems:{default:"spaceItemsMd"},children:[v.jsx(C.FlexItem,{children:v.jsx(C.Spinner,{size:"md"})}),v.jsx(C.FlexItem,{children:t("Loading...")})]}):v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{isFilled:!0,children:(s==null?void 0:s.length)!==o&&v.jsx(C.Button,{variant:"link",isInline:!0,onClick:_=>{_.preventDefault(),_.stopPropagation(),f(b=>b+1)},isSmall:!0,children:t("Load more")})}),v.jsx(C.SplitItem,{children:t("{{count}} of {{total}}",{count:(s==null?void 0:s.length)??0,total:o})})]}),e.footer]});return s?v.jsx(Ik,{id:e.id,icon:e.icon,placeholder:e.placeholder,options:s??[],values:e.values,onSelect:e.onSelect,variant:e.variant,footer:y}):i?v.jsx(C.Button,{id:e.id,variant:"secondary",isDanger:!0,icon:v.jsx(Ce.SyncAltIcon,{}),iconPosition:"right",onClick:_=>{f(b=>(b===1&&p(1),1))},children:typeof e.queryErrorText=="function"?e.queryErrorText(i):e.queryErrorText??t("Error loading options")}):v.jsx(C.Button,{id:e.id,variant:"control",isLoading:!0,children:e.queryPlaceholder??t("Loading options...")})}function Bge(e){const{filterValues:t,setFilterValues:n,placeholder:r,isRequired:i,defaultValue:a}=e,o=t&&t.length>0?t[0]:void 0,l=e.options.find(h=>h.value===o);i&&!l&&n(()=>[a??e.options[0].value]);function s(h){e.options.find(p=>p.value===h)&&n(()=>[h])}const[u,c]=x.useState(()=>{if(t&&t.length>1)return t[1]}),[f,d]=x.useState(()=>{if(t&&t.length>2)return t[2]});return x.useEffect(()=>{if(l&&l.isCustom){const h=[l.value];u&&(h.push(u),f&&h.push(f)),n(()=>h)}},[l,u,f,n]),v.jsxs(C.ToolbarItem,{children:[v.jsx(zi,{value:(l==null?void 0:l.value)??"",onSelect:s,options:e.options,placeholder:r}),l&&l.isCustom&&v.jsx(Rge,{to:f,setTo:d,from:u,setFrom:c})]})}function Rge(e){const{to:t,setTo:n,from:r,setFrom:i}=e,{t:a}=yt(),o=(c,f)=>{i(f)},l=(c,f)=>{n(f)},s=r?new Date(r):void 0,u=c=>s?C.isValidDate(s)&&c>=s?"":a('The "to" date must be after the "from" date'):"";return v.jsxs(v.Fragment,{children:[v.jsx(C.DatePicker,{value:r,onChange:o,"aria-label":"Start date",placeholder:"YYYY-MM-DD"}),v.jsx("div",{style:{alignSelf:"baseline",padding:6},children:a("to")}),v.jsx(C.DatePicker,{value:t,onChange:l,isDisabled:!s||!C.isValidDate(s),rangeStart:s,validators:[u],"aria-label":"End date",placeholder:a("now"),invalidFormatText:a("Invalid date format")}),t!==void 0&&v.jsx(C.Button,{variant:"control",style:{alignSelf:"flex-start"},onClick:()=>n(void 0),children:v.jsx(Ce.TimesCircleIcon,{})})]})}function Wge(e){const{t}=yt(),[n,r]=x.useState("");let i=e.placeholder;if(!i)switch(e.comparison){case"contains":i=t("contains");break;case"startsWith":i=t("starts with");break;case"endsWith":i=t("ends with");break;case"equals":i=t("equals");break}return v.jsxs(C.InputGroup,{children:[v.jsxs(C.TextInputGroup,{style:{minWidth:220},children:[v.jsx(C.TextInputGroupMain,{id:e.id,value:n,onChange:(a,o)=>{r(typeof a=="string"?a:o)},onKeyUp:a=>{n&&a.key==="Enter"&&(e.addFilter(n),r(""))},placeholder:i}),n!==""&&v.jsx(C.TextInputGroupUtilities,{children:v.jsx(C.Button,{variant:"plain","aria-label":"clear filter",onClick:()=>r(""),style:{opacity:n?void 0:0},tabIndex:-1,children:v.jsx(Ce.TimesIcon,{})})})]}),v.jsx(C.Button,{variant:n?"primary":"control","aria-label":"apply filter",onClick:()=>{e.addFilter(n),r("")},tabIndex:-1,isDisabled:!n,children:v.jsx(Ce.ArrowRightIcon,{})})]})}var $k=(e=>(e[e.Text=0]="Text",e[e.SingleSelect=1]="SingleSelect",e[e.MultiSelect=2]="MultiSelect",e[e.DateRange=3]="DateRange",e[e.AsyncSingleSelect=4]="AsyncSingleSelect",e[e.AsyncMultiSelect=5]="AsyncMultiSelect",e))($k||{});function Lk(e){var s;const{toolbarFilters:t,filterState:n,setFilterState:r}=e,[i,a]=x.useState(()=>t&&(t==null?void 0:t.length)>0?t[0].key:""),o=t==null?void 0:t.find(u=>u.key===i);if(!o)return v.jsx(v.Fragment,{});if(!t)return v.jsx(v.Fragment,{});if(t.length===0)return v.jsx(v.Fragment,{});let l=t.length===1;return t.length>=1&&(t[0].type===2&&t[0].isPinned||t[0].type===1&&t[0].isPinned&&(n[t[0].key]==null||((s=n[t[0].key])==null?void 0:s.length)===0))&&(l=!1),v.jsx(v.Fragment,{children:t.length===1?v.jsxs(C.ToolbarItem,{children:[l&&v.jsx("div",{style:{marginTop:6,marginRight:6,whiteSpace:"nowrap"},children:t[0].label}),v.jsx(Nk,{id:"filter-input",filter:o,filterState:n,setFilterState:r})]}):v.jsxs(C.ToolbarItem,{children:[v.jsx(zi,{id:"filter",value:i,onSelect:a,icon:v.jsx(Ce.FilterIcon,{}),options:t.map(u=>({label:u.label,value:u.key})),placeholder:""}),v.jsx(Nk,{id:"filter-input",filter:o,filterState:n,setFilterState:r})]})})}function Fk(e){const{toolbarFilters:t,setFilterState:n,filterState:r}=e,[i]=gt(),a=!un("md");if(!t)return v.jsx(v.Fragment,{});if(t.length===0)return v.jsx(v.Fragment,{});const o=t.filter(s=>!s.isPinned),l=t.filter(s=>!!s.isPinned);return v.jsx(C.ToolbarToggleGroup,{toggleIcon:v.jsx(Ce.FilterIcon,{}),breakpoint:"md",children:v.jsxs(C.ToolbarGroup,{variant:"filter-group",style:{flexWrap:"wrap",gap:16},children:[a&&v.jsx(C.ToolbarItem,{variant:"label",children:i.filter}),v.jsx(Lk,{toolbarFilters:o,setFilterState:n,filterState:r}),l==null?void 0:l.map(s=>v.jsx(Lk,{toolbarFilters:[s],setFilterState:n,filterState:r},s.key)),t==null?void 0:t.map(s=>{const u=(r==null?void 0:r[s.key])||[];return s.isPinned&&s.type===1?v.jsx(v.Fragment,{}):s.isPinned&&s.type===3?v.jsx(v.Fragment,{}):v.jsx(C.ToolbarFilter,{categoryName:s.label,chips:u.map(c=>{var f;switch(s.type){case 1:case 2:return((f=s.options.find(d=>d.value===c))==null?void 0:f.label)??c;default:return c}}),deleteChip:(c,f)=>{n==null||n(d=>{var p;const h={...d};switch(f=typeof f=="string"?f:f.key,s.type){case 1:case 2:f=((p=s.options.find(y=>y.value===f))==null?void 0:p.label)??f;break}let g=d[s.key];return g&&(g=g.filter(y=>y!==f),g.length===0?delete h[s.key]:h[s.key]=g),h})},deleteChipGroup:()=>{n==null||n(c=>{const f={...c};return delete f[s.key],f})},showToolbarItem:!1,children:v.jsx(v.Fragment,{})},s.label)})]})})}function Nk(e){const{filter:t,filterState:n,setFilterState:r}=e,i=n==null?void 0:n[t.key],a=x.useCallback(l=>{r(s=>{const u={...s},c=u[t.key]??[];return u[t.key]=l(c),u})},[t.key,r]),o=x.useCallback(l=>{r(s=>{const u={...s},c=u[t.key]??[];return u[t.key]=[...c,l],u})},[t.key,r]);switch(t.type){case 0:return v.jsx(Wge,{id:e.id??t.key,addFilter:o,placeholder:t.placeholder,comparison:t.comparison});case 1:return v.jsx(zi,{id:e.id??t.key,placeholder:t.placeholder,value:i&&(i==null?void 0:i.length)>0?i[0]:"",onSelect:l=>a(()=>[l]),options:t.options,isRequired:t.isRequired});case 4:return v.jsx(Fge,{id:e.id??t.key,value:i&&(i==null?void 0:i.length)>0?i[0]:"",onSelect:l=>a(()=>[l]),placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,isRequired:t.isRequired,footer:t.openBrowse?v.jsx(C.Button,{variant:"link",onClick:()=>{var l;(l=t.openBrowse)==null||l.call(t,s=>a(()=>[s]),i&&i.length>0?i[0]:void 0)},children:"Browse"}):void 0});case 5:return v.jsx(Nge,{id:e.id??t.key,values:i,onSelect:a,placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,footer:t.openBrowse?v.jsx(C.Button,{variant:"link",onClick:()=>{var l;(l=t.openBrowse)==null||l.call(t,s=>a(()=>s),i)},children:"Browse"}):void 0});case 2:return v.jsx(Ik,{id:e.id??t.key,placeholder:t.placeholder,values:i,onSelect:a,options:t.options,variant:"count",disableClearSelection:!0});case 3:return v.jsx(Bge,{id:e.id??t.key,label:t.label,placeholder:t.placeholder??"",filterValues:i,setFilterValues:a,options:t.options,isRequired:t.isRequired,defaultValue:t.defaultValue})}}function zge(e){const{sort:t,setSort:n,sortDirection:r,setSortDirection:i,sortOptions:a}=e,o=a==null?void 0:a.find(c=>c.value===t),l=o?o.type:void 0,[s]=gt(),u=x.useMemo(()=>{switch(l){case"text":switch(r){case"asc":return v.jsx(Ce.SortAlphaUpIcon,{});case"desc":return v.jsx(Ce.SortAlphaDownAltIcon,{})}break;case"number":switch(r){case"asc":return v.jsx(Ce.SortNumericUpIcon,{});case"desc":return v.jsx(Ce.SortNumericDownAltIcon,{})}break;default:switch(r){case"asc":return v.jsx(Ce.SortAmountUpIcon,{});case"desc":return v.jsx(Ce.SortAmountDownIcon,{})}break}return v.jsx(v.Fragment,{})},[r,l]);return!a||a.length<=0?v.jsx(v.Fragment,{}):v.jsx(C.ToolbarToggleGroup,{breakpoint:"md",toggleIcon:void 0,children:v.jsxs(C.ToolbarGroup,{variant:"filter-group",children:[v.jsx(C.ToolbarItem,{variant:"label",children:s.sort}),v.jsx(C.ToolbarItem,{children:v.jsxs(C.Split,{children:[v.jsx(Vge,{sortOptions:a,sort:t,setSort:n,setSortDirection:i}),v.jsx(C.Button,{variant:"control",icon:u,onClick:()=>{r==="asc"?i==null||i("desc"):i==null||i("asc")}})]})})]})})}function Vge(e){const{sortOptions:t,sort:n,setSort:r,setSortDirection:i}=e,a=x.useCallback(o=>{if(o){const l=t.find(s=>s.value===o);l&&n!==o&&l.defaultDirection&&(i==null||i(l.defaultDirection)),r==null||r(o)}},[t,r,i,n]);return v.jsx(zi,{placeholder:"",value:n,onSelect:a,options:t.map(o=>({label:o.label,value:o.value}))})}function Uge(e){return x.useMemo(()=>{const n=[];for(const r of e)if(r.sort){if(r.defaultSort){n.push({label:r.header,value:r.sort,type:"text",defaultDirection:r.defaultSortDirection});continue}switch(r.type){case"count":n.push({label:r.header,value:r.sort,type:"number",defaultDirection:r.defaultSortDirection});break;case"text":n.push({label:r.header,value:r.sort,type:"text",defaultDirection:r.defaultSortDirection});break;default:n.push({label:r.header,value:r.sort,defaultDirection:r.defaultSortDirection});break}}return n},[e])}function Hge(e){const{viewType:t,setViewType:n,openColumnModal:r}=e,[i]=gt();let a=0;return e.disableTableView||a++,e.disableCardView||a++,e.disableListView||a++,v.jsxs(C.ToolbarGroup,{variant:"button-group",style:{justifyContent:"end",marginRight:0},children:[r&&v.jsx(C.ToolbarItem,{children:v.jsx(C.Tooltip,{content:i.manageColumns,children:v.jsx(C.Button,{variant:"plain",icon:v.jsx(Ce.ColumnsIcon,{}),onClick:r})})}),a>1&&v.jsx(C.ToolbarItem,{children:v.jsx(C.ToggleGroup,{"aria-label":"table view toggle",children:[!e.disableTableView&&at.Table,!e.disableListView&&at.List,!e.disableCardView&&at.Cards].filter(o=>o).map(o=>{switch(o){case at.Cards:return v.jsx(C.Tooltip,{content:i.cardView,position:"top-end",enableFlip:!1,children:v.jsx(C.ToggleGroupItem,{icon:v.jsx(Ce.ThLargeIcon,{}),isSelected:t===at.Cards,onClick:()=>n==null?void 0:n(at.Cards),"aria-label":"card view"})},o);case at.List:return v.jsx(C.Tooltip,{content:i.listView,position:"top-end",enableFlip:!1,children:v.jsx(C.ToggleGroupItem,{icon:v.jsx(Ce.ListIcon,{}),isSelected:t===at.List,onClick:()=>n==null?void 0:n(at.List),"aria-label":"list view"})},o);case at.Table:return v.jsx(C.Tooltip,{content:i.tableView,position:"top-end",enableFlip:!1,children:v.jsx(C.ToggleGroupItem,{icon:v.jsx(Ce.TableIcon,{}),isSelected:t===at.Table,onClick:()=>n==null?void 0:n(at.Table),"aria-label":"table view"})},o)}})})})]})}const qge=De.div`
370
+ `;function p0e(e){const{ariaLabel:t="",content:n,header:r,id:i="",maxWidth:a="",...o}=e,[l]=gt();return n?v.jsx(C.Popover,{bodyContent:n,headerContent:r,hideOnOutsideClick:!0,id:i,"data-cy":i,maxWidth:a,...o,children:v.jsx(g0e,{"aria-label":t??l.moreInformation,"aria-haspopup":"true",className:"pf-c-form__group-label-help",onClick:s=>s.preventDefault(),type:"button",children:v.jsx(Ce.HelpIcon,{noVerticalAlign:!0})})}):null}function ws(e){const t=cl(e),{label:n,children:r,helpText:i,isEmpty:a}=e;return r===null||typeof r>"u"||r===""?v.jsx(v.Fragment,{}):a?v.jsx(v.Fragment,{}):v.jsxs(C.DescriptionListGroup,{children:[n&&v.jsxs(C.DescriptionListTerm,{children:[n,i?v.jsx(p0e,{header:n,content:i}):null]}),v.jsx(C.DescriptionListDescription,{id:t,"data-cy":t,children:r})]})}function XT(e){const{disablePadding:t}=e,n=Ga(),r=n.formLayout,i=e.numberOfColumns?e.numberOfColumns:n.formColumns,a=!1;return v.jsx(C.PageSection,{variant:"light",padding:{default:"noPadding"},className:"dark-1",children:v.jsx(C.DescriptionList,{orientation:{sm:r,md:r,lg:r,xl:r,"2xl":r},columnModifier:i==="multiple"?{default:"1Col",sm:"1Col",md:"2Col",lg:"2Col",xl:"3Col","2xl":"3Col"}:void 0,style:{maxWidth:1200,padding:t?void 0:24},isCompact:a,children:e.children})})}var at=(e=>(e.Table="table",e.List="list",e.Cards="cards",e))(at||{}),Ri=(e=>(e.Description="description",e.Expanded="expanded",e.Hidden="hidden",e))(Ri||{}),JT=(e=>(e.Name="name",e.Subtitle="subtitle",e.Description="description",e.Hidden="hidden",e.Primary="primary",e.Secondary="secondary",e))(JT||{}),QT=(e=>(e.Name="name",e.Subtitle="subtitle",e.Description="description",e.Hidden="hidden",e))(QT||{}),ek=(e=>(e.Hidden="hidden",e))(ek||{});function Wt(e){const{item:t,column:n}=e;if(!n)return v.jsx(v.Fragment,{});switch(n.type){case"text":return v.jsx(Hh,{text:n.value(t)});case"description":return v.jsx(Hh,{text:n.value(t)});case"datetime":return v.jsx(sx,{format:"since",value:n.value(t)});case"count":return v.jsx(v.Fragment,{children:n.value(t)??"-"});case"labels":return v.jsx(ux,{labels:n.value(t)??[]});default:return v.jsx(v.Fragment,{children:n.cell(t)})}}function hv(e){return x.useMemo(()=>e.filter(t=>!(t.table==="hidden"||t.table==="description"||t.table==="expanded")),[e])}function tk(e){return x.useMemo(()=>e.filter(t=>t.list!=="hidden"),[e])}function nk(e){return x.useMemo(()=>e.filter(t=>t.card!=="hidden"),[e])}function mv(e){return x.useMemo(()=>e.filter(t=>t.modal!=="hidden"),[e])}function v0e(e,t){const n=hv(e),r=tk(e),i=nk(e);switch(t){case at.Table:return n;case at.List:return r;case at.Cards:return i}}function rk(e){return x.useMemo(()=>e.filter(t=>t.table==="hidden"?!1:t.table==="description"),[e])}function ik(e){return x.useMemo(()=>e.filter(t=>t.table==="hidden"?!1:t.table==="expanded"),[e])}function y0e(e){return x.useMemo(()=>e.map(t=>({...t,sort:void 0})),[e])}function b0e(e){return x.useMemo(()=>e.map(t=>({...t,table:t.table==="expanded"?void 0:t.table})),[e])}function ak(e){const{item:t,columns:n,disablePadding:r,numberOfColumns:i}=e;return t?v.jsx(XT,{disablePadding:r,numberOfColumns:i,children:n.map(a=>"value"in a&&a.value&&!a.value(t)?v.jsx(x.Fragment,{},a.id??a.header):v.jsx(ws,{label:a.header,children:v.jsx(Wt,{column:a,item:t})},a.id??a.header))}):v.jsx(v.Fragment,{})}class _0e{constructor(t){Fy(this,"value");Fy(this,"next");this.value=t}}class x0e{constructor(){th(this,Rr,void 0);th(this,Fa,void 0);th(this,Na,void 0);this.clear()}enqueue(t){const n=new _0e(t);Gi(this,Rr)?(Gi(this,Fa).next=n,yi(this,Fa,n)):(yi(this,Rr,n),yi(this,Fa,n)),Ny(this,Na)._++}dequeue(){const t=Gi(this,Rr);if(t)return yi(this,Rr,Gi(this,Rr).next),Ny(this,Na)._--,t.value}clear(){yi(this,Rr,void 0),yi(this,Fa,void 0),yi(this,Na,0)}get size(){return Gi(this,Na)}*[Symbol.iterator](){let t=Gi(this,Rr);for(;t;)yield t.value,t=t.next}}Rr=new WeakMap,Fa=new WeakMap,Na=new WeakMap;function S0e(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new x0e;let n=0;const r=()=>{n--,t.size>0&&t.dequeue()()},i=async(l,s,u)=>{n++;const c=(async()=>l(...u))();s(c);try{await c}catch{}r()},a=(l,s,u)=>{t.enqueue(i.bind(void 0,l,s,u)),(async()=>(await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()))()},o=(l,...s)=>new Promise(u=>{a(l,u,s)});return Object.defineProperties(o,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o}function ok(e){const[t,n]=x.useState(!1),r=un("sm"),[i]=gt(),{pageItems:a,selectedItems:o,selectItems:l,unselectAll:s,maxSelections:u}=e,c=e.itemCount!==void 0&&e.itemCount>0&&a&&a.length>0&&(a??[]).every(S=>o==null?void 0:o.includes(S)),f=x.useCallback(()=>{c?s==null||s():l==null||l(a??[])},[c,s,l,a]),d=x.useMemo(()=>r?o&&o.length>0?`${o.length} selected`:"":o&&o.length>0?`${o.length}`:"",[r,o]),h=x.useMemo(()=>a==null?void 0:a.filter(S=>!(o!=null&&o.includes(S))),[a,o]),g=x.useMemo(()=>!!(u&&o&&h&&!c&&(o==null?void 0:o.length)+h.length>u),[c,u,o,h]),p=x.useMemo(()=>{const S=o?o.length:0;return v.jsx(C.DropdownToggle,{splitButtonItems:[v.jsx(C.DropdownToggleCheckbox,{id:"select-all","aria-label":"Select all",isChecked:c?!0:S>0?null:!1,onChange:f,children:d},"select-all")],onToggle:O=>n(O),isDisabled:g})},[o,c,f,d,g]),y=x.useMemo(()=>v.jsx(C.DropdownItem,{id:"select-none",onClick:()=>{s==null||s(),n(!1)},children:e.selectNoneText??i.selectNone},"select-none"),[e.selectNoneText,i.selectNone,s]),_=x.useMemo(()=>v.jsx(C.DropdownItem,{id:"select-page",onClick:()=>{l==null||l(a??[]),n(!1)},children:`Select ${(a==null?void 0:a.length)??0} page items`},"select-page"),[l,a]),b=x.useMemo(()=>[y,_],[y,_]);return v.jsx("div",{style:{marginLeft:-8},children:v.jsx(C.Dropdown,{isOpen:t,toggle:p,dropdownItems:b,style:{zIndex:400}})})}const xwe="";function Xe(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const i=typeof r;if(i==="string"||i==="number")t.push(r);else if(Array.isArray(r)&&r.length){const a=Xe(...r);a&&t.push(a)}else if(i==="object")for(const a in r)n.call(r,a)&&r[a]&&t.push(a)}),t.join(" ")}const Swe="",Fe={breadcrumb:"pf-c-breadcrumb",divider:"pf-c-divider",menu:"pf-c-menu",menuBreadcrumb:"pf-c-menu__breadcrumb",menuContent:"pf-c-menu__content",menuFooter:"pf-c-menu__footer",menuGroup:"pf-c-menu__group",menuGroupTitle:"pf-c-menu__group-title",menuHeader:"pf-c-menu__header",menuItem:"pf-c-menu__item",menuItemAction:"pf-c-menu__item-action",menuItemActionIcon:"pf-c-menu__item-action-icon",menuItemCheck:"pf-c-menu__item-check",menuItemDescription:"pf-c-menu__item-description",menuItemExternalIcon:"pf-c-menu__item-external-icon",menuItemIcon:"pf-c-menu__item-icon",menuItemMain:"pf-c-menu__item-main",menuItemSelectIcon:"pf-c-menu__item-select-icon",menuItemText:"pf-c-menu__item-text",menuItemToggleIcon:"pf-c-menu__item-toggle-icon",menuList:"pf-c-menu__list",menuListItem:"pf-c-menu__list-item",menuSearch:"pf-c-menu__search",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",drilldown:"pf-m-drilldown",drilledIn:"pf-m-drilled-in",currentPath:"pf-m-current-path",static:"pf-m-static",plain:"pf-m-plain",scrollable:"pf-m-scrollable",nav:"pf-m-nav",focus:"pf-m-focus",disabled:"pf-m-disabled",load:"pf-m-load",loading:"pf-m-loading",danger:"pf-m-danger",selected:"pf-m-selected",favorite:"pf-m-favorite",favorited:"pf-m-favorited"},themeDark:"pf-theme-dark"};let w0e=0;class gv extends F.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${w0e++}`}render(){return this.props.children(this.id)}}gv.displayName="GenerateId",gv.defaultProps={prefix:"pf-random-id-"};const O0e="*";let C0e=0;const lk="OUIA-Generated-",pv={};function vv(e,t,n=!0){return{"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}function yv(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,pv[n]||(pv[n]=0),`${lk}${e}-${t?`${t}-`:""}${++pv[n]}`}catch{return`${lk}${e}-${t?`${t}-`:""}${++C0e}`}}const Wo=!!(typeof window<"u"&&window.document&&window.document.createElement);function Os(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Mr(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function bv(e){const t=Mr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cs(e){const t=Mr(e).Element;return e instanceof t||e instanceof Element}function Dr(e){const t=Mr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function A0e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function T0e(e){return e===Mr(e)||!Dr(e)?bv(e):A0e(e)}function cr(e){return e?(e.nodeName||"").toLowerCase():null}function ci(e){return(Cs(e)?e.ownerDocument:e.document).documentElement}function _v(e){return Os(ci(e)).left+bv(e).scrollLeft}function fi(e){return Mr(e).getComputedStyle(e)}function xv(e){const{overflow:t,overflowX:n,overflowY:r}=fi(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function k0e(e,t,n=!1){const r=ci(t),i=Os(e),a=Dr(t);let o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(a||!a&&!n)&&((cr(t)!=="body"||xv(r))&&(o=T0e(t)),Dr(t)?(l=Os(t),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=_v(r))),{x:i.left+o.scrollLeft-l.x,y:i.top+o.scrollTop-l.y,width:i.width,height:i.height}}function Sv(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function vd(e){return cr(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||ci(e)}function sk(e){return["html","body","#document"].indexOf(cr(e))>=0?e.ownerDocument.body:Dr(e)&&xv(e)?e:sk(vd(e))}function As(e,t=[]){const n=sk(e),r=cr(n)==="body",i=Mr(n),a=r?[i].concat(i.visualViewport||[],xv(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(As(vd(a)))}function E0e(e){return["table","td","th"].indexOf(cr(e))>=0}function uk(e){if(!Dr(e)||fi(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=ci(t);if(cr(t)==="body"&&fi(t).position==="static"&&fi(n).position!=="static")return n}return t}function P0e(e){let t=vd(e);for(;Dr(t)&&["html","body"].indexOf(cr(t))<0;){const n=fi(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function Ts(e){const t=Mr(e);let n=uk(e);for(;n&&E0e(n)&&fi(n).position==="static";)n=uk(n);return n&&cr(n)==="body"&&fi(n).position==="static"?t:n||P0e(e)||t}const Yn="top",fr="bottom",dr="right",Kn="left",wv="auto",ks=[Yn,fr,dr,Kn],zo="start",Ov="end",j0e="clippingParents",ck="viewport",Es="popper",M0e="reference",fk=ks.reduce((e,t)=>e.concat([`${t}-${zo}`,`${t}-${Ov}`]),[]),dk=[...ks,wv].reduce((e,t)=>e.concat([t,`${t}-${zo}`,`${t}-${Ov}`]),[]),D0e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function I0e(e){const t=new Map,n=new Set,r=[];e.forEach(a=>{t.set(a.name,a)});function i(a){n.add(a.name),[...a.requires||[],...a.requiresIfExists||[]].forEach(l=>{if(!n.has(l)){const s=t.get(l);s&&i(s)}}),r.push(a)}return e.forEach(a=>{n.has(a.name)||i(a)}),r}function $0e(e){const t=I0e(e);return D0e.reduce((n,r)=>n.concat(t.filter(i=>i.phase===r)),[])}function L0e(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function Ir(e){return e.split("-")[0]}function F0e(e){const t=e.reduce((n,r)=>{const i=n[r.name];return n[r.name]=i?Object.assign(Object.assign(Object.assign({},i),r),{options:Object.assign(Object.assign({},i.options),r.options),data:Object.assign(Object.assign({},i.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function N0e(e){const t=Mr(e),n=ci(e),r=t.visualViewport;let i=n.clientWidth,a=n.clientHeight,o=0,l=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,l=r.offsetTop)),{width:i,height:a,x:o+_v(e),y:l}}function B0e(e){const t=ci(e),n=bv(e),r=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let o=-n.scrollLeft+_v(e);const l=-n.scrollTop;return fi(r||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:l}}function hk(e,t){const n=!!(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cv(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function R0e(e){const t=Os(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function mk(e,t){return t===ck?Cv(N0e(e)):Dr(t)?R0e(t):Cv(B0e(ci(e)))}function W0e(e){const t=As(vd(e)),r=["absolute","fixed"].indexOf(fi(e).position)>=0&&Dr(e)?Ts(e):e;return Cs(r)?t.filter(i=>Cs(i)&&hk(i,r)&&cr(i)!=="body"):[]}function z0e(e,t,n){const i=[...t==="clippingParents"?W0e(e):[].concat(t),n],a=i[0],o=i.reduce((l,s)=>{const u=mk(e,s);return l.top=Math.max(u.top,l.top),l.right=Math.min(u.right,l.right),l.bottom=Math.min(u.bottom,l.bottom),l.left=Math.max(u.left,l.left),l},mk(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ps(e){return e.split("-")[1]}function Av(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gk({reference:e,element:t,placement:n}){const r=n?Ir(n):null,i=n?Ps(n):null,a=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2;let l;switch(r){case Yn:l={x:a,y:e.y-t.height};break;case fr:l={x:a,y:e.y+e.height};break;case dr:l={x:e.x+e.width,y:o};break;case Kn:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}const s=r?Av(r):null;if(s!=null){const u=s==="y"?"height":"width";switch(i){case zo:l[s]=Math.floor(l[s])-Math.floor(e[u]/2-t[u]/2);break;case Ov:l[s]=Math.floor(l[s])+Math.ceil(e[u]/2-t[u]/2);break}}return l}function pk(){return{top:0,right:0,bottom:0,left:0}}function vk(e){return Object.assign(Object.assign({},pk()),e)}function yk(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function js(e,t={}){const{placement:n=e.placement,boundary:r=j0e,rootBoundary:i=ck,elementContext:a=Es,altBoundary:o=!1,padding:l=0}=t,s=vk(typeof l!="number"?l:yk(l,ks)),u=a===Es?M0e:Es,c=e.elements.reference,f=e.rects.popper,d=e.elements[o?u:a],h=z0e(Cs(d)?d:d.contextElement||ci(e.elements.popper),r,i),g=Os(c),p=gk({reference:g,element:f,strategy:"absolute",placement:n}),y=Cv(Object.assign(Object.assign({},f),p)),_=a===Es?y:g,b={top:h.top-_.top+s.top,bottom:_.bottom-h.bottom+s.bottom,left:h.left-_.left+s.left,right:_.right-h.right+s.right},S=e.modifiersData.offset;if(a===Es&&S){const O=S[n];Object.keys(b).forEach(w=>{const A=[dr,fr].indexOf(w)>=0?1:-1,T=[Yn,fr].indexOf(w)>=0?"y":"x";b[w]+=O[T]*A})}return b}const bk={placement:"bottom",modifiers:[],strategy:"absolute"};function _k(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function V0e(e={}){const{defaultModifiers:t=[],defaultOptions:n=bk}=e;return function(i,a,o=n){let l={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},bk),n),modifiersData:{},elements:{reference:i,popper:a},attributes:{},styles:{}},s=[],u=!1;const c={state:l,setOptions(h){d(),l.options=Object.assign(Object.assign(Object.assign({},n),l.options),h),l.scrollParents={reference:Cs(i)?As(i):i.contextElement?As(i.contextElement):[],popper:As(a)};const g=$0e(F0e([...t,...l.options.modifiers]));return l.orderedModifiers=g.filter(p=>p.enabled),f(),c.update()},forceUpdate(){if(u)return;const{reference:h,popper:g}=l.elements;if(_k(h,g)){l.rects={reference:k0e(h,Ts(g),l.options.strategy==="fixed"),popper:Sv(g)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(p=>l.modifiersData[p.name]=Object.assign({},p.data));for(let p=0;p<l.orderedModifiers.length;p++){if(l.reset===!0){l.reset=!1,p=-1;continue}const{fn:y,options:_={},name:b}=l.orderedModifiers[p];typeof y=="function"&&(l=y({state:l,options:_,name:b,instance:c})||l)}}},update:L0e(()=>new Promise(h=>{c.forceUpdate(),h(l)})),destroy(){d(),u=!0}};if(!_k(i,a))return c;c.setOptions(o).then(h=>{!u&&o.onFirstUpdate&&o.onFirstUpdate(h)});function f(){l.orderedModifiers.forEach(({name:h,options:g={},effect:p})=>{if(typeof p=="function"){const y=p({state:l,name:h,instance:c,options:g}),_=()=>{};s.push(y||_)}})}function d(){s.forEach(h=>h()),s=[]}return c}}const yd={passive:!0};function U0e({state:e,instance:t,options:n}){const{scroll:r=!0,resize:i=!0}=n,a=Mr(e.elements.popper),o=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&o.forEach(l=>{l.addEventListener("scroll",t.update,yd)}),i&&a.addEventListener("resize",t.update,yd),()=>{r&&o.forEach(l=>{l.removeEventListener("scroll",t.update,yd)}),i&&a.removeEventListener("resize",t.update,yd)}}const H0e={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:U0e,data:{}};function q0e({state:e,name:t}){e.modifiersData[t]=gk({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const G0e={name:"popperOffsets",enabled:!0,phase:"read",fn:q0e,data:{}},Y0e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K0e({x:e,y:t}){const r=window.devicePixelRatio||1;return{x:Math.round(e*r)/r||0,y:Math.round(t*r)/r||0}}function xk({popper:e,popperRect:t,placement:n,offsets:r,position:i,gpuAcceleration:a,adaptive:o}){let{x:l,y:s}=K0e(r);const u=r.hasOwnProperty("x"),c=r.hasOwnProperty("y");let f=Kn,d=Yn;const h=window;if(o){let p=Ts(e);p===Mr(e)&&(p=ci(e)),n===Yn&&(d=fr,s-=p.clientHeight-t.height,s*=a?1:-1),n===Kn&&(f=dr,l-=p.clientWidth-t.width,l*=a?1:-1)}const g=Object.assign({position:i},o&&Y0e);return a?Object.assign(Object.assign({},g),{[d]:c?"0":"",[f]:u?"0":"",transform:(h.devicePixelRatio||1)<2?`translate(${l}px, ${s}px)`:`translate3d(${l}px, ${s}px, 0)`}):Object.assign(Object.assign({},g),{[d]:c?`${s}px`:"",[f]:u?`${l}px`:"",transform:""})}function Z0e({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,i={placement:Ir(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),xk(Object.assign(Object.assign({},i),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),xk(Object.assign(Object.assign({},i),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const X0e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Z0e,data:{}};function J0e({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!Dr(i)||!cr(i)||(Object.assign(i.style,n),Object.keys(r).forEach(a=>{const o=r[a];o===!1?i.removeAttribute(a):i.setAttribute(a,o===!0?"":o)}))})}function Q0e({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach(n=>{const r=e.elements[n],i=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((l,s)=>(l[s]="",l),{});!Dr(r)||!cr(r)||(Object.assign(r.style,o),Object.keys(i).forEach(l=>{r.removeAttribute(l)}))})}}const ege={name:"applyStyles",enabled:!0,phase:"write",fn:J0e,effect:Q0e,requires:["computeStyles"]};function tge(e,t,n){const r=Ir(e),i=[Kn,Yn].indexOf(r)>=0?-1:1;let[a,o]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return a=a||0,o=(o||0)*i,[Kn,dr].indexOf(r)>=0?{x:o,y:a}:{x:a,y:o}}function nge({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,i=dk.reduce((l,s)=>(l[s]=tge(s,e.rects,r),l),{}),{x:a,y:o}=i[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=o),e.modifiersData[n]=i}const rge={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nge},ige={left:"right",right:"left",bottom:"top",top:"bottom"};function bd(e){return e.replace(/left|right|bottom|top/g,t=>ige[t])}const age={start:"end",end:"start"};function Sk(e){return e.replace(/start|end/g,t=>age[t])}function oge(e,t={}){const{placement:n,boundary:r,rootBoundary:i,padding:a,flipVariations:o,allowedAutoPlacements:l=dk}=t,s=Ps(n),u=s?o?fk:fk.filter(d=>Ps(d)===s):ks;let c=u.filter(d=>l.indexOf(d)>=0);c.length===0&&(c=u);const f=c.reduce((d,h)=>(d[h]=js(e,{placement:h,boundary:r,rootBoundary:i,padding:a})[Ir(h)],d),{});return Object.keys(f).sort((d,h)=>f[d]-f[h])}function lge(e){if(Ir(e)===wv)return[];const t=bd(e);return[Sk(e),t,Sk(t)]}function sge({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:i=!0,fallbackPlacements:a,padding:o,boundary:l,rootBoundary:s,altBoundary:u,flipVariations:c=!0,allowedAutoPlacements:f}=t,d=e.options.placement,g=Ir(d)===d,p=a||(g||!c?[bd(d)]:lge(d)),y=[d,...p].reduce((A,T)=>A.concat(Ir(T)===wv?oge(e,{placement:T,boundary:l,rootBoundary:s,padding:o,flipVariations:c,allowedAutoPlacements:f}):T),[]),_=e.rects.reference,b=e.rects.popper,S=new Map;let O=!0,w=y[0];for(let A=0;A<y.length;A++){const T=y[A],k=Ir(T),j=Ps(T)===zo,N=[Yn,fr].indexOf(k)>=0,M=N?"width":"height",E=js(e,{placement:T,boundary:l,rootBoundary:s,altBoundary:u,padding:o});let D=N?j?dr:Kn:j?fr:Yn;_[M]>b[M]&&(D=bd(D));const I=bd(D),W=[];if(r&&W.push(E[k]<=0),i&&W.push(E[D]<=0,E[I]<=0),W.every(Z=>Z)){w=T,O=!1;break}S.set(T,W)}if(O){const A=c?3:1;for(let T=A;T>0;T--){const k=y.find(j=>{const N=S.get(j);if(N)return N.slice(0,T).every(M=>M)});if(k){w=k;break}}}e.placement!==w&&(e.modifiersData[n]._skip=!0,e.placement=w,e.reset=!0)}const uge={name:"flip",enabled:!0,phase:"main",fn:sge,requiresIfExists:["offset"],data:{_skip:!1}};function cge(e){return e==="x"?"y":"x"}function _d(e,t,n){return Math.max(e,Math.min(t,n))}function fge({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:i=!1,boundary:a,rootBoundary:o,altBoundary:l,padding:s,tether:u=!0,tetherOffset:c=0}=t,f=js(e,{boundary:a,rootBoundary:o,padding:s,altBoundary:l}),d=Ir(e.placement),h=Ps(e.placement),g=!h,p=Av(d),y=cge(p),_=e.modifiersData.popperOffsets,b=e.rects.reference,S=e.rects.popper,O=typeof c=="function"?c(Object.assign(Object.assign({},e.rects),{placement:e.placement})):c,w={x:0,y:0};if(_){if(r){const A=p==="y"?Yn:Kn,T=p==="y"?fr:dr,k=p==="y"?"height":"width",j=_[p],N=_[p]+f[A],M=_[p]-f[T],E=u?-S[k]/2:0,D=h===zo?b[k]:S[k],I=h===zo?-S[k]:-b[k],W=e.elements.arrow,Z=u&&W?Sv(W):{width:0,height:0},ne=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:pk(),re=ne[A],J=ne[T],z=_d(0,b[k],Z[k]),X=g?b[k]/2-E-z-re-O:D-z-re-O,H=g?-b[k]/2+E+z+J+O:I+z+J+O,Y=e.elements.arrow&&Ts(e.elements.arrow),G=Y?p==="y"?Y.clientTop||0:Y.clientLeft||0:0,ie=e.modifiersData.offset?e.modifiersData.offset[e.placement][p]:0,B=_[p]+X-ie-G,se=_[p]+H-ie,K=_d(u?Math.min(N,B):N,j,u?Math.max(M,se):M);_[p]=K,w[p]=K-j}if(i){const A=p==="x"?Yn:Kn,T=p==="x"?fr:dr,k=_[y],j=k+f[A],N=k-f[T],M=_d(j,k,N);_[y]=M,w[y]=M-k}e.modifiersData[n]=w}}const dge={name:"preventOverflow",enabled:!0,phase:"main",fn:fge,requiresIfExists:["offset"]};function hge({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,i=Ir(e.placement),a=Av(i),l=[Kn,dr].indexOf(i)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,u=Sv(n),c=a==="y"?Yn:Kn,f=a==="y"?fr:dr,d=e.rects.reference[l]+e.rects.reference[a]-r[a]-e.rects.popper[l],h=r[a]-e.rects.reference[a],g=Ts(n),p=g?a==="y"?g.clientHeight||0:g.clientWidth||0:0,y=d/2-h/2,_=s[c],b=p-u[l]-s[f],S=p/2-u[l]/2+y,O=_d(_,S,b),w=a;e.modifiersData[t]={[w]:O,centerOffset:O-S}}function mge({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:i=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||hk(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:vk(typeof i!="number"?i:yk(i,ks))}))}const gge={name:"arrow",enabled:!0,phase:"main",fn:hge,effect:mge,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wk(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ok(e){return[Yn,dr,fr,Kn].some(t=>e[t]>=0)}function pge({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,a=js(e,{elementContext:"reference"}),o=js(e,{altBoundary:!0}),l=wk(a,n),s=wk(o,r,i),u=Ok(l),c=Ok(s);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:s,isReferenceHidden:u,hasPopperEscaped:c},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const vge=V0e({defaultModifiers:[H0e,G0e,X0e,ege,rge,uge,dge,gge,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pge}]}),Tv=Wo?F.useLayoutEffect:F.useEffect,yge=(e,t)=>JSON.stringify(e)===JSON.stringify(t),Ck=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),bge=[],_ge=(e,t,n={})=>{const r=F.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||bge},[a,o]=F.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),l=F.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const f=Object.keys(c.elements);o({styles:Ck(f.map(d=>[d,c.styles[d]||{}])),attributes:Ck(f.map(d=>[d,c.attributes[d]]))})},requires:["computeStyles"]}),[]),s=F.useMemo(()=>{const c={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[...i.modifiers,l,{name:"applyStyles",enabled:!1}]};return yge(r.current,c)?r.current||c:(r.current=c,c)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),u=F.useRef();return Tv(()=>{u&&u.current&&u.current.setOptions(s)},[s]),Tv(()=>{if(e==null||t==null)return;const f=(n.createPopper||vge)(e,t,s);return u.current=f,()=>{f.destroy(),u.current=null}},[e,t,n.createPopper]),{state:u.current?u.current.state:null,styles:a.styles,attributes:a.attributes,update:u.current?u.current.update:null,forceUpdate:u.current?u.current.forceUpdate:null}};class kv extends F.Component{componentDidMount(){const t=By.findDOMNode(this);this.props.onFoundRef(t)}render(){return this.props.children||null}}kv.displayName="FindRefWrapper";const Iwe="",xge={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},Sge=e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,t=>xge[t]),Ak=({trigger:e,popper:t,popperMatchesTriggerWidth:n=!0,direction:r="down",position:i="left",placement:a,appendTo:o=()=>document.body,zIndex:l=9999,isVisible:s=!0,positionModifiers:u,distance:c=0,onMouseEnter:f,onMouseLeave:d,onFocus:h,onBlur:g,onDocumentClick:p,onTriggerClick:y,onTriggerEnter:_,onPopperClick:b,onPopperMouseEnter:S,onPopperMouseLeave:O,onDocumentKeyDown:w,enableFlip:A=!0,flipBehavior:T="flip",reference:k,removeFindDomNode:j=!1,popperRef:N})=>{const[M,E]=F.useState(null),[D,I]=F.useState(null),[W,Z]=F.useState(null),[ne,re]=F.useState(!1),J=D||M,z=F.useCallback(ge=>p(ge,J,W),[s,M,D,W,p]);F.useEffect(()=>{re(!0)},[]),F.useEffect(()=>{k&&(k.current?I(k.current):typeof k=="function"&&I(k()))},[k]),F.useEffect(()=>{N&&(N.current?Z(N.current):typeof N=="function"&&Z(N()))},[s,N]);const X=(ge,P,V,ee=!1)=>{ge&&P&&P.addEventListener(V,ge,{capture:ee})},H=(ge,P,V,ee=!1)=>{ge&&P&&P.removeEventListener(V,ge,{capture:ee})};F.useEffect(()=>{X(f,J,"mouseenter"),X(d,J,"mouseleave"),X(h,J,"focus"),X(g,J,"blur"),X(y,J,"click"),X(_,J,"keydown"),X(b,W,"click"),X(S,W,"mouseenter"),X(O,W,"mouseleave"),p&&X(z,document,"click",!0),X(w,document,"keydown",!0);const ge=new MutationObserver(()=>{Q&&Q()});return W&&ge.observe(W,{attributes:!0,childList:!0,subtree:!0}),()=>{H(f,J,"mouseenter"),H(d,J,"mouseleave"),H(h,J,"focus"),H(g,J,"blur"),H(y,J,"click"),H(_,J,"keydown"),H(b,W,"click"),H(S,W,"mouseenter"),H(O,W,"mouseleave"),p&&H(z,document,"click",!0),H(w,document,"keydown",!0),ge.disconnect()}},[M,W,f,d,h,g,y,_,b,S,O,p,w,D]);const Y=()=>{if(a)return a;let ge=r==="up"?"top":"bottom";return i!=="center"&&(ge=`${ge}-${i==="right"?"end":"start"}`),ge},G=F.useMemo(Y,[r,i,a]),ie=F.useMemo(()=>Sge(Y()),[r,i,a]),B=F.useMemo(()=>({name:"sameWidth",enabled:n,phase:"beforeWrite",requires:["computeStyles"],fn:({state:ge})=>{ge.styles.popper.width=`${ge.rects.reference.width}px`},effect:({state:ge})=>(ge.elements.popper.style.width=`${ge.elements.reference.offsetWidth}px`,()=>{})}),[n]),{styles:se,attributes:K,update:Q,forceUpdate:te}=_ge(J,W,{placement:G,modifiers:[{name:"offset",options:{offset:[0,c]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:G.startsWith("auto")||A,options:{fallbackPlacements:T==="flip"?[ie]:T}},B]});F.useEffect(()=>{te&&te()},[t]);const ue=()=>{if(K&&K.popper&&K.popper["data-popper-placement"]){const ge=K.popper["data-popper-placement"];return u[ge]}return u.top},$=Object.assign({className:Xe(t.props&&t.props.className,u&&ue()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),se.popper),{zIndex:l})},K.popper),xe=F.cloneElement(t,$),Se=()=>typeof o=="function"?o():o;let be;return j?be=F.createElement("div",{style:{display:"contents"},ref:ge=>Z(ge==null?void 0:ge.firstElementChild)},xe):N?be=xe:be=F.createElement(kv,{onFoundRef:ge=>Z(ge)},xe),F.createElement(F.Fragment,null,!k&&e&&F.isValidElement(e)&&!j&&F.createElement(kv,{onFoundRef:ge=>E(ge)},e),!k&&e&&F.isValidElement(e)&&j&&F.createElement("div",{style:{display:"contents"},ref:ge=>E(ge==null?void 0:ge.firstElementChild)},e),ne&&s&&By.createPortal(be,Se()))};Ak.displayName="Popper";const wge=(e,t,n=u=>document.activeElement.contains(u),r=u=>u,i=["A","BUTTON","INPUT"],a=!1,o=!1,l=!0,s=!0)=>{const u=document.activeElement,c=e.key;let f=null;if(!a&&["ArrowUp","ArrowDown"].includes(c)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,g)=>{if(n(h)){let p=0;for(;!f&&p<t.length&&p*-1<t.length;)c==="ArrowUp"?p--:p++,d=g+p,d>=t.length&&(d=0),d<0&&(d=t.length-1),f=r(t[d])}})}if(!o&&["ArrowLeft","ArrowRight"].includes(c)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,g)=>{if(n(h)){const p=t[g].querySelectorAll(i.join(","));if(!p.length||s){let y=u;for(;y;)if(y=c==="ArrowLeft"?y.previousElementSibling:y.nextElementSibling,y&&i.includes(y.tagName)){f=y;break}}else p.forEach((y,_)=>{e.target===y&&(d=_+(c==="ArrowLeft"?-1:1),d>=p.length&&(d=0),d<0&&(d=p.length-1),f=p[d])})}})}f&&(l&&(u.tabIndex=-1,f.tabIndex=0),f.focus())};class Ev extends F.Component{constructor(){super(...arguments),this.keyHandler=t=>{const{isEventFromContainer:n}=this.props;if(n?!n(t):!this._isEventFromContainer(t))return;const{isActiveElement:r,getFocusableElement:i,noVerticalArrowHandling:a,noHorizontalArrowHandling:o,noEnterHandling:l,noSpaceHandling:s,updateTabIndex:u,validSiblingTags:c,additionalKeyHandler:f,createNavigableElements:d,onlyTraverseSiblings:h}=this.props;f&&f(t);const g=d();if(!g){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const p=t.key;l||p==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),s||p===" "&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),wge(t,g,r,i,c,a,o,u,h)},this._isEventFromContainer=t=>{const{containerRef:n}=this.props;return n.current&&n.current.contains(t.target)}}componentDidMount(){Wo&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Wo&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Ev.displayName="KeyboardHandler",Ev.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:e=>document.activeElement===e,getFocusableElement:e=>e,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};const Ta=F.createContext({menuId:null,parentMenu:null,onActionClick:()=>null,onSelect:()=>null,activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:()=>null,flyoutRef:null,setFlyoutRef:()=>null,disableHover:!1,role:"menu"}),Tk=F.createContext({itemId:null,isDisabled:!1});class xd extends F.Component{constructor(t){super(t),this.menuRef=F.createRef(),this.activeMenu=null,this.state={ouiaStateId:yv(Sd.displayName),searchInputValue:"",transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=n=>{const r=this.menuRef.current;if(!(!r||r!==n.target.closest(".pf-c-menu")&&!Array.from(r.getElementsByClassName("pf-c-menu")).includes(n.target.closest(".pf-c-menu"))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const i=r.querySelector("#"+this.props.activeMenu)||r||null,a=Array.from(i.getElementsByTagName("UL")[0].children);if(!this.state.currentDrilldownMenuId||i.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:i.id});else return;const o=a.filter(l=>!(l.classList.contains("pf-m-disabled")||l.classList.contains("pf-c-divider")))[0].firstChild;o.focus(),o.tabIndex=0}},this.handleExtraKeys=n=>{const r=this.props.containsDrilldown,i=document.activeElement;if(n.target.closest(".pf-c-menu")!==this.activeMenu&&!n.target.classList.contains("pf-c-breadcrumb__link")&&(this.activeMenu=n.target.closest(".pf-c-menu"),this.setState({disableHover:!0})),n.target.tagName==="INPUT")return;const a=this.activeMenu,o=n.key,l=i.classList.contains("pf-c-breadcrumb__link")||i.classList.contains("pf-c-dropdown__toggle");if(o===" "||o==="Enter"){if(n.preventDefault(),r&&!l){if(i.closest("li").classList.contains("pf-m-current-path")&&a.parentElement.tagName==="LI")i.tabIndex=-1,a.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:a.parentElement.firstChild});else if(i.nextElementSibling&&i.nextElementSibling.classList.contains("pf-c-menu")){const u=Array.from(i.nextElementSibling.getElementsByTagName("UL")[0].children).filter(c=>!(c.classList.contains("pf-m-disabled")||c.classList.contains("pf-c-divider")));i.tabIndex=-1,u[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:u[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains("pf-c-divider"))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains("pf-c-divider"))):[],t.innerRef&&(this.menuRef=t.innerRef)}allowTabFirstItem(){const t=this.menuRef.current;if(t){const n=t.querySelector("ul button:not(:disabled), ul a:not(:disabled)");n&&(n.tabIndex=0)}}componentDidMount(){this.context&&this.setState({disableHover:this.context.disableHover}),Wo&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Wo&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(t){t.children!==this.props.children&&this.allowTabFirstItem()}render(){const t=this.props,{"aria-label":n,id:r,children:i,className:a,onSelect:o,selected:l=null,onActionClick:s,ouiaId:u,ouiaSafe:c,containsFlyout:f,isNavFlyout:d,containsDrilldown:h,isMenuDrilledIn:g,isPlain:p,isScrollable:y,drilldownItemPath:_,drilledInMenus:b,onDrillIn:S,onDrillOut:O,onGetMenuHeight:w,parentMenu:A=null,activeItemId:T=null,innerRef:k,isRootMenu:j,activeMenu:N,role:M}=t,E=Re(t,["aria-label","id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","isNavFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role"]),D=g||b&&b.includes(r)||!1;return F.createElement(Ta.Provider,{value:{menuId:r,parentMenu:A||r,onSelect:o,onActionClick:s,activeItemId:T,selected:l,drilledInMenus:b,drilldownItemPath:_,onDrillIn:S,onDrillOut:O,onGetMenuHeight:w,flyoutRef:this.state.flyoutRef,setFlyoutRef:I=>this.setState({flyoutRef:I}),disableHover:this.state.disableHover,role:M}},j&&F.createElement(Ev,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:I=>document.activeElement.closest("li")===I||document.activeElement.parentElement===I||document.activeElement.closest(".pf-c-menu__search")===I||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===I,getFocusableElement:I=>I.tagName==="DIV"&&I.querySelector("input")||I.firstChild.tagName==="LABEL"&&I.querySelector("input")||I.firstChild,noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains("pf-c-breadcrumb__link")||document.activeElement.classList.contains("pf-c-dropdown__toggle")),noEnterHandling:!0,noSpaceHandling:!0}),F.createElement("div",Object.assign({id:r,className:Xe(Fe.menu,p&&Fe.modifiers.plain,y&&Fe.modifiers.scrollable,f&&Fe.modifiers.flyout,d&&Fe.modifiers.nav,h&&Fe.modifiers.drilldown,D&&Fe.modifiers.drilledIn,a),"aria-label":n,ref:this.menuRef},vv(Sd.displayName,u!==void 0?u:this.state.ouiaStateId,c),E),i))}}xd.displayName="Menu",xd.contextType=Ta,xd.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const Sd=F.forwardRef((e,t)=>F.createElement(xd,Object.assign({},e,{innerRef:t})));Sd.displayName="Menu";const kk=F.forwardRef((e,t)=>{const{getHeight:n,children:r,menuHeight:i,maxMenuHeight:a}=e,o=Re(e,["getHeight","children","menuHeight","maxMenuHeight"]),l=F.createRef(),s=(u,c,f)=>{if(u){let d=u.clientHeight,h=null,g=u.closest(`.${Fe.menuList}`);for(;g!==null&&g.nodeType===1;)g.classList.contains(Fe.menuList)&&(h=g),g=g.parentElement;if(h){const p=getComputedStyle(h),y=parseFloat(p.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(p.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(h.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));d=d+y}f&&f(c,d),n&&n(d.toString())}return t||l};return F.createElement(Ta.Consumer,null,({menuId:u,onGetMenuHeight:c})=>F.createElement("div",Object.assign({},o,{className:Xe(Fe.menuContent,e.className),ref:f=>s(f,u,c),style:Object.assign(Object.assign({},i&&{"--pf-c-menu__content--Height":i}),a&&{"--pf-c-menu__content--MaxHeight":a})}),r))});kk.displayName="MenuContent";const Oge={name:"--pf-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--top-offset)"},Cge={name:"--pf-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--m-left--right-offset)"},Age={name:"--pf-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--left-offset)"};var ka;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(ka||(ka={}));const Tge=e=>{switch(e){case ka.sm:return"1em";case ka.md:return"1.5em";case ka.lg:return"2em";case ka.xl:return"3em";default:return"1em"}};let kge=0;function Ms({name:e,xOffset:t=0,yOffset:n=0,width:r,height:i,svgPath:a}){var o;return o=class extends F.Component{constructor(){super(...arguments),this.id=`icon-title-${kge++}`}render(){const s=this.props,{size:u,color:c,title:f,noVerticalAlign:d}=s,h=Re(s,["size","color","title","noVerticalAlign"]),g=!!f,p=Tge(u),y=-.125*Number.parseFloat(p),_=d?null:{verticalAlign:`${y}em`},b=[t,n,r,i].join(" ");return F.createElement("svg",Object.assign({style:_,fill:c,height:p,width:p,viewBox:b,"aria-labelledby":g?this.id:null,"aria-hidden":g?null:!0,role:"img"},h),g&&F.createElement("title",{id:this.id},f),F.createElement("path",{d:a}))}},o.displayName=e,o.defaultProps={color:"currentColor",size:ka.sm,noVerticalAlign:!1},o}const Ege=Ms({name:"ExternalLinkAltIcon",height:512,width:512,svgPath:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z",yOffset:0,xOffset:0}),Pge=Ms({name:"AngleRightIcon",height:512,width:256,svgPath:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",yOffset:0,xOffset:0}),jge=Ms({name:"AngleLeftIcon",height:512,width:256,svgPath:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",yOffset:0,xOffset:0}),Mge=Ms({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0}),qwe="",Wi={check:"pf-c-check",checkBody:"pf-c-check__body",checkDescription:"pf-c-check__description",checkInput:"pf-c-check__input",checkLabel:"pf-c-check__label",checkLabelRequired:"pf-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},Ek=()=>{};class Vo extends F.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n.currentTarget.checked,n)},this.state={ouiaStateId:yv(Vo.displayName)}}render(){const t=this.props,{"aria-label":n,className:r,onChange:i,isValid:a,isDisabled:o,isRequired:l,isChecked:s,label:u,checked:c,defaultChecked:f,description:d,body:h,ouiaId:g,ouiaSafe:p,component:y}=t,_=Re(t,["aria-label","className","onChange","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);_.id||console.error("Checkbox:","id is required to make input accessible");const b={};return([!0,!1].includes(c)||s===!0)&&(b.checked=c||s),i!==Ek&&(b.checked=s),[!1,!0].includes(f)&&(b.defaultChecked=f),b.checked=b.checked===null?!1:b.checked,F.createElement(y,{className:Xe(Wi.check,!u&&Wi.modifiers.standalone,r)},F.createElement("input",Object.assign({},_,{className:Xe(Wi.checkInput),type:"checkbox",onChange:this.handleChange,"aria-invalid":!a,"aria-label":n,disabled:o,required:l,ref:S=>S&&(S.indeterminate=s===null)},b,vv(Vo.displayName,g!==void 0?g:this.state.ouiaStateId,p))),u&&F.createElement("label",{className:Xe(Wi.checkLabel,o&&Wi.modifiers.disabled),htmlFor:_.id},u,l&&F.createElement("span",{className:Xe(Wi.checkLabelRequired),"aria-hidden":"true"},O0e)),d&&F.createElement("span",{className:Xe(Wi.checkDescription)},d),h&&F.createElement("span",{className:Xe(Wi.checkBody)},h))}}Vo.displayName="Checkbox",Vo.defaultProps={className:"",isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Ek,ouiaSafe:!0,component:"div"};const Dge=Ms({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0}),Ige=e=>{var{className:t="",icon:n,onClick:r,"aria-label":i,isFavorited:a=null,isDisabled:o,actionId:l,innerRef:s}=e,u=Re(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return F.createElement(Ta.Consumer,null,({onActionClick:c})=>F.createElement(Tk.Consumer,null,({itemId:f,isDisabled:d})=>{const h=g=>{r&&r(g),c&&c(g,f,l)};return F.createElement("button",Object.assign({className:Xe(Fe.menuItemAction,a!==null&&Fe.modifiers.favorite,a&&Fe.modifiers.favorited,t),"aria-label":i,onClick:h},(o===!0||d===!0)&&{disabled:!0},{ref:s,tabIndex:-1},u),F.createElement("span",{className:Xe(Fe.menuItemActionIcon)},n==="favorites"||a!==null?F.createElement(Dge,{"aria-hidden":!0}):n))}))},Pk=F.forwardRef((e,t)=>F.createElement(Ige,Object.assign({},e,{innerRef:t})));Pk.displayName="MenuItemAction";const jk=F.createContext({direction:"right"}),$ge=e=>{var{children:t,className:n,itemId:r=null,to:i,hasCheck:a=!1,isActive:o=null,isFavorited:l=null,isLoadButton:s=!1,isLoading:u=!1,flyoutMenu:c,direction:f,description:d=null,onClick:h=()=>{},component:g="button",isDisabled:p=!1,isExternalLink:y=!1,isSelected:_=null,isFocused:b,isDanger:S=!1,icon:O,actions:w,onShowFlyout:A,drilldownMenu:T,isOnPath:k,innerRef:j}=e,N=Re(e,["children","className","itemId","to","hasCheck","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef"]);const{menuId:M,parentMenu:E,onSelect:D,onActionClick:I,activeItemId:W,selected:Z,drilldownItemPath:ne,onDrillIn:re,onDrillOut:J,flyoutRef:z,setFlyoutRef:X,disableHover:H,role:Y}=F.useContext(Ta);let G=i?"a":g;a&&!i&&(G="label");const[ie,B]=F.useState(null),se=F.useContext(jk),[K,Q]=F.useState(se.direction),te=F.useRef(),ue=te===z,$=c!==void 0,xe=le=>{!ue&&le?X(te):ue&&!le&&X(null),A&&le&&A()};Tv(()=>{if($&&te.current&&Wo){const le=te.current.lastElementChild;if(le&&le.classList.contains(Fe.menu)){const U=te.current.getClientRects()[0],oe=le.getClientRects()[0];if(U&&oe){const Ee=U.x-oe.width,Ie=window.innerWidth-U.x-U.width-oe.width;let Me=K;Ie<0&&Me!=="left"?(Q("left"),Me="left"):Ee<0&&Me!=="right"&&(Q("right"),Me="right");let Ve=0;Ee<0&&Ie<0&&(Ve=Me==="right"?-Ie:-Ee),Me==="left"?(le.classList.add(Fe.modifiers.left),le.style.setProperty(Cge.name,`-${Ve}px`)):le.style.setProperty(Age.name,`-${Ve}px`);const dt=window.innerHeight-U.y-oe.height;window.innerHeight-oe.height<0&&dt<0||dt<0&&le.style.setProperty(Oge.name,`${dt}px`)}}}},[ue,c]),F.useEffect(()=>{Q(se.direction)},[se]),F.useEffect(()=>{if(ie)if(ue){const le=ie.nextElementSibling;Array.from(le.getElementsByTagName("UL")[0].children).filter(oe=>!(oe.classList.contains("pf-m-disabled")||oe.classList.contains("pf-c-divider")))[0].firstChild.focus()}else ie.focus()},[ue,ie]);const Se=le=>{const U=le.key,oe=le.target,Ee=le.type;(U===" "||U==="Enter"||U==="ArrowRight"||Ee==="click")&&(le.stopPropagation(),le.preventDefault(),ue||(xe(!0),B(oe))),(U==="Escape"||U==="ArrowLeft")&&ue&&(le.stopPropagation(),xe(!1))},be=(le,U)=>{U&&U(le,r),h&&h(le)},ge=k&&k||ne&&ne.includes(r)||!1;let P;f&&(f==="down"?P=le=>re&&re(le,M,typeof T=="function"?T().props.id:T.props.id,r):P=le=>J&&J(le,E,r));let V={};G==="a"?V={href:i,"aria-disabled":p?!0:null,disabled:null}:G==="button"&&(V={type:"button"}),k?V["aria-expanded"]=!0:$&&(V["aria-haspopup"]="menu",V["aria-expanded"]=ue);const ee=()=>o!==null?o?"page":null:r!==null&&W!==null?r===W:null,he=()=>_!==null?_:Z!==null&&r!==null?Array.isArray(Z)&&Z.includes(r)||r===Z:!1,me=()=>{H||($?xe(!0):X(null))},ce=Y==="listbox";return F.createElement("li",Object.assign({className:Xe(Fe.menuListItem,p&&Fe.modifiers.disabled,ge&&Fe.modifiers.currentPath,s&&Fe.modifiers.load,u&&Fe.modifiers.loading,b&&Fe.modifiers.focus,S&&Fe.modifiers.danger,n),onMouseOver:me},c&&{onKeyDown:Se},{ref:te,role:a?"menuitem":"none"},N),F.createElement(gv,null,le=>F.createElement(G,Object.assign({tabIndex:-1,className:Xe(Fe.menuItem,he()&&!a&&Fe.modifiers.selected,n),"aria-current":ee()},!a&&{disabled:p},!a&&!c&&{role:ce?"option":"menuitem"},!a&&!c&&ce&&{"aria-selected":he()},{ref:j},!a&&{onClick:U=>{be(U,D),P&&P(U),c&&Se(U)}},a&&{htmlFor:le},V),F.createElement("span",{className:Xe(Fe.menuItemMain)},f==="up"&&F.createElement("span",{className:Xe(Fe.menuItemToggleIcon)},F.createElement(jge,{"aria-hidden":!0})),O&&F.createElement("span",{className:Xe(Fe.menuItemIcon)},O),a&&F.createElement("span",{className:Xe("pf-c-menu__item-check")},F.createElement(Vo,{id:le,component:"span",isChecked:_||!1,onChange:U=>be(U,D),isDisabled:p})),F.createElement("span",{className:Xe(Fe.menuItemText)},t),y&&F.createElement("span",{className:Xe(Fe.menuItemExternalIcon)},F.createElement(Ege,{"aria-hidden":!0})),(c||f==="down")&&F.createElement("span",{className:Xe(Fe.menuItemToggleIcon)},F.createElement(Pge,{"aria-hidden":!0})),he()&&F.createElement("span",{className:Xe(Fe.menuItemSelectIcon)},F.createElement(Mge,{"aria-hidden":!0}))),d&&f!=="up"&&F.createElement("span",{className:Xe(Fe.menuItemDescription)},F.createElement("span",null,d)))),ue&&F.createElement(Ta.Provider,{value:{disableHover:H}},F.createElement(jk.Provider,{value:{direction:K}},c)),typeof T=="function"?T():T,F.createElement(Tk.Provider,{value:{itemId:r,isDisabled:p}},w,l!==null&&F.createElement(Pk,{icon:"favorites",isFavorited:l,"aria-label":l?"starred":"not starred",onClick:le=>I(le,r),tabIndex:-1,actionId:"fav"})))},Mk=F.forwardRef((e,t)=>F.createElement($ge,Object.assign({},e,{innerRef:t})));Mk.displayName="MenuItem";const Dk=e=>{var{children:t=null,className:n,isAriaMultiselectable:r=!1}=e,i=Re(e,["children","className","isAriaMultiselectable"]);const{role:a}=F.useContext(Ta);return F.createElement("ul",Object.assign({role:a},a==="listbox"&&{"aria-multiselectable":r},{className:Xe(Fe.menuList,n)},i),t)};Dk.displayName="MenuList";const Lge=e=>{var{children:t,className:n,onSelect:r,isOpen:i,selected:a,toggle:o,onOpenChange:l,isPlain:s,minWidth:u,innerRef:c,zIndex:f=9999,role:d="listbox"}=e,h=Re(e,["children","className","onSelect","isOpen","selected","toggle","onOpenChange","isPlain","minWidth","innerRef","zIndex","role"]);const g=x.useRef(),p=x.useRef(),y=x.useRef(),_=c||g;x.useEffect(()=>{const S=w=>{var A,T,k;(i&&l&&(!((A=_.current)===null||A===void 0)&&A.contains(w.target))||!((T=p.current)===null||T===void 0)&&T.contains(w.target))&&(w.key==="Escape"||w.key==="Tab")&&(l(!1),(k=p.current)===null||k===void 0||k.focus())},O=w=>{var A,T,k;i&&(!((A=p.current)===null||A===void 0)&&A.contains(w.target))&&w.detail===0&&setTimeout(()=>{var j;const N=(j=_==null?void 0:_.current)===null||j===void 0?void 0:j.querySelector("li button:not(:disabled),li input:not(:disabled)");N&&N.focus()},0),i&&l&&!(!((T=p==null?void 0:p.current)===null||T===void 0)&&T.contains(w.target))&&i&&!(!((k=_.current)===null||k===void 0)&&k.contains(w.target))&&l(!1)};return window.addEventListener("keydown",S),window.addEventListener("click",O),()=>{window.removeEventListener("keydown",S),window.removeEventListener("click",O)}},[i,_,l]);const b=x.createElement(Sd,Object.assign({role:d,className:Xe(n),ref:_,onSelect:(S,O)=>r(S,O),isPlain:s,selected:a},u&&{style:{"--pf-c-menu--MinWidth":u}},vv(Ds.displayName,h.ouiaId!==void 0?h.ouiaId:yv(Ds.displayName),h.ouiaSafe!==void 0?h.ouiaSafe:!0),h),x.createElement(kk,null,t));return x.createElement("div",{ref:y},x.createElement(Ak,{trigger:o(p),removeFindDomNode:!0,popper:b,appendTo:y.current||void 0,isVisible:i,zIndex:f}))},Ds=x.forwardRef((e,t)=>x.createElement(Lge,Object.assign({innerRef:t},e)));Ds.displayName="Select";const Pv=e=>{var{children:t,className:n,isAriaMultiselectable:r=!1}=e,i=Re(e,["children","className","isAriaMultiselectable"]);return x.createElement(Dk,Object.assign({isAriaMultiselectable:r,className:Xe(n)},i),t)};Pv.displayName="SelectList";const jv=e=>{var{children:t,className:n}=e,r=Re(e,["children","className"]);return x.createElement(Mk,Object.assign({className:Xe(n)},r),t)};jv.displayName="SelectOption";const Kwe="",Zwe="";function zi(e){const{t}=yt(),{id:n,icon:r,value:i,onSelect:a,options:o,placeholder:l}=e,[s,u]=x.useState(!1),c=x.useMemo(()=>o.find(_=>i===_.value),[o,i]),f=_=>v.jsxs(C.MenuToggle,{id:n,ref:_,onClick:()=>u(b=>!b),isExpanded:s,onKeyDown:b=>{switch(b.key){default:u(!0);break}},"data-cy":n,children:[r&&v.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:r}),c?c.label:v.jsx("span",{className:"page-select-placeholder",children:l})]}),d=x.useCallback((_,b)=>{const S=o.find(O=>O.key!==void 0?O.key===b:O.label===b);S&&(a(S.value),u(!1))},[a,o]),[h,g]=x.useState(""),p=x.useRef(null);x.useEffect(()=>{g(""),s&&p.current&&p.current.focus()},[s]),x.useEffect(()=>{e.isRequired&&!c&&o.length>0&&a(o[0].value)},[a,o,e.isRequired,c]);const y=x.useMemo(()=>o.filter(_=>h===""?!0:_.label.toLowerCase().includes(h.toLowerCase())),[o,h]);return v.jsx("div",{className:"page-single-select",children:v.jsxs(Ds,{selected:c==null?void 0:c.label,onSelect:d,isOpen:s,onOpenChange:u,toggle:f,style:{zIndex:s?9999:void 0},children:[v.jsx("div",{className:"page-select-header",children:v.jsx(C.SearchInput,{id:n?`${n}-search`:void 0,ref:p,value:h,onChange:(_,b)=>g(b),onClear:_=>{_.stopPropagation(),g("")}})}),y.length===0?v.jsx("div",{style:{margin:16},children:t("No results found")}):v.jsx(Pv,{className:"page-select-list",children:y.map(_=>{const b=jn(_);return v.jsx(jv,{itemId:_.key!==void 0?_.key:_.label,description:_.description,"daya-cy":b,children:_.label},_.key!==void 0?_.key:_.label)})}),e.footer&&v.jsx("div",{className:"page-select-footer",children:e.footer})]})})}function Fge(e){const{t}=yt(),[n,r]=x.useState(!1),[i,a]=x.useState(),[o,l]=x.useState(0),[s,u]=x.useState(),[c,f]=x.useState(1),d=x.useRef(new AbortController).current;x.useEffect(()=>()=>d.abort(),[d]);const h=x.useRef(e.onSelect).current,g=x.useRef(e.queryOptions).current,p=x.useCallback(_=>{r(b=>{if(b)return b;a(void 0),u(S=>{if(S)return S});try{g(_,d.signal).then(S=>{d.signal.aborted||(u(O=>{let w;return O?w=[...O,...S.options]:w=S.options,S.total===1&&h(w[0].value),w}),l(S.total))}).catch(S=>{d.signal.aborted||(S instanceof Error?a(S):a(new Error(t("Unknown error"))))}).finally(()=>{d.signal.aborted||r(!1)})}catch(S){S instanceof Error?a(S):a(new Error(t("Unknown error"))),r(!1)}return!0})},[d.signal,h,g,t]);x.useEffect(()=>p(c),[c,p]);const y=v.jsxs(C.Stack,{hasGutter:!0,children:[n?v.jsxs(C.Flex,{alignItems:{default:"alignItemsCenter"},spaceItems:{default:"spaceItemsMd"},children:[v.jsx(C.FlexItem,{children:v.jsx(C.Spinner,{size:"md"})}),v.jsx(C.FlexItem,{children:t("Loading...")})]}):v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{isFilled:!0,children:(s==null?void 0:s.length)!==o&&v.jsx(C.Button,{variant:"link",isInline:!0,onClick:_=>{_.preventDefault(),_.stopPropagation(),f(b=>b+1)},isSmall:!0,children:t("Load more")})}),v.jsx(C.SplitItem,{children:t("{{count}} of {{total}}",{count:(s==null?void 0:s.length)??0,total:o})})]}),e.footer]});return s?v.jsx(zi,{id:e.id,icon:e.icon,placeholder:e.placeholder,options:s??[],value:e.value,onSelect:e.onSelect,footer:y}):i?v.jsx(C.Button,{id:e.id,variant:"secondary",isDanger:!0,icon:v.jsx(Ce.SyncAltIcon,{}),iconPosition:"right",onClick:_=>{f(b=>(b===1&&p(1),1))},children:typeof e.queryErrorText=="function"?e.queryErrorText(i):e.queryErrorText??t("Error loading options")}):v.jsx(C.Button,{id:e.id,variant:"control",isLoading:!0,children:e.queryPlaceholder??t("Loading options...")})}const Xwe="";function Ik(e){const{t}=yt(),{id:n,icon:r,placeholder:i,values:a,onSelect:o,options:l,variant:s,disableClearSelection:u}=e,[c,f]=x.useState(!1),d=x.useMemo(()=>l.filter(O=>a==null?!1:a.includes(O.value)),[l,a]),h=O=>v.jsxs(C.MenuToggle,{isFullWidth:!0,id:n,ref:O,onClick:()=>f(w=>!w),isExpanded:c,onKeyDown:w=>{switch(w.key){default:f(!0);break}},"data-cy":n,children:[r&&v.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:r}),d.length>0?v.jsx(v.Fragment,{children:s==="count"?v.jsx(C.Chip,{isReadOnly:u,onClick:()=>o(()=>[]),style:{marginTop:-2,marginBottom:-2},children:d.length}):v.jsxs(v.Fragment,{children:[v.jsx(C.ChipGroup,{children:d.map(w=>v.jsx(C.Chip,{isReadOnly:!0,style:{marginTop:-2,marginBottom:-2},children:w.label},w.label))}),!u&&v.jsx(Ce.TimesIcon,{role:"button","aria-hidden":!0,onClick:()=>o(()=>[]),style:{verticalAlign:"middle",marginLeft:8},size:"sm"})]})}):v.jsx("span",{className:"page-select-placeholder",children:i})]}),g=x.useMemo(()=>d.map(O=>O.label),[d]),p=x.useCallback((O,w)=>{o(A=>{const T=l.find(k=>k.key!==void 0?k.key===w:k.label===w);return T&&((A==null?void 0:A.find(k=>k===T.value))!==void 0?A=A.filter(k=>k!==T.value):(A=A?[...A]:[],A.push(T.value))),A})},[o,l]),[y,_]=x.useState(""),b=x.useRef(null);x.useEffect(()=>{_(""),c&&b.current&&b.current.focus()},[c]);const S=x.useMemo(()=>l.filter(O=>y===""?!0:O.label.toLowerCase().includes(y.toLowerCase())),[l,y]);return v.jsx("div",{className:"page-multi-select",children:v.jsxs(Ds,{selected:g,onSelect:p,isOpen:c,onOpenChange:f,toggle:h,style:{zIndex:c?9999:void 0},children:[v.jsx("div",{className:"page-select-header",children:v.jsx(C.SearchInput,{id:n?`${n}-search`:void 0,ref:b,value:y,onChange:(O,w)=>_(w),onClear:O=>{O.stopPropagation(),_("")}})}),S.length===0?v.jsx("div",{style:{margin:16},children:t("No results found")}):v.jsx(Pv,{className:"page-select-list",children:S.map(O=>{const w=jn(O);return v.jsx(jv,{itemId:O.key!==void 0?O.key:O.label,description:O.description?v.jsx("div",{style:{maxWidth:300},children:O.description}):void 0,hasCheck:!0,isSelected:d.includes(O),"data-cy":w,children:O.label},O.key!==void 0?O.key:O.label)})}),e.footer&&v.jsx("div",{className:"page-select-footer",children:e.footer})]})})}function Nge(e){const{t}=yt(),[n,r]=x.useState(!1),[i,a]=x.useState(),[o,l]=x.useState(0),[s,u]=x.useState(),[c,f]=x.useState(1),d=x.useRef(new AbortController).current;x.useEffect(()=>()=>d.abort(),[d]);const h=x.useRef(e.onSelect).current,g=x.useRef(e.queryOptions).current,p=x.useCallback(_=>{r(b=>{if(b)return b;a(void 0),u(S=>{if(S)return S});try{g(_,d.signal).then(S=>{d.signal.aborted||(u(O=>{let w;return O?w=[...O,...S.options]:w=S.options,S.total===1&&h(()=>w.map(A=>A.value)),w}),l(S.total))}).catch(S=>{d.signal.aborted||(S instanceof Error?a(S):a(new Error(t("Unknown error"))))}).finally(()=>{d.signal.aborted||r(!1)})}catch(S){S instanceof Error?a(S):a(new Error(t("Unknown error"))),r(!1)}return!0})},[d.signal,h,g,t]);x.useEffect(()=>p(c),[c,p]);const y=v.jsxs(C.Stack,{hasGutter:!0,children:[n?v.jsxs(C.Flex,{alignItems:{default:"alignItemsCenter"},spaceItems:{default:"spaceItemsMd"},children:[v.jsx(C.FlexItem,{children:v.jsx(C.Spinner,{size:"md"})}),v.jsx(C.FlexItem,{children:t("Loading...")})]}):v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{isFilled:!0,children:(s==null?void 0:s.length)!==o&&v.jsx(C.Button,{variant:"link",isInline:!0,onClick:_=>{_.preventDefault(),_.stopPropagation(),f(b=>b+1)},isSmall:!0,children:t("Load more")})}),v.jsx(C.SplitItem,{children:t("{{count}} of {{total}}",{count:(s==null?void 0:s.length)??0,total:o})})]}),e.footer]});return s?v.jsx(Ik,{id:e.id,icon:e.icon,placeholder:e.placeholder,options:s??[],values:e.values,onSelect:e.onSelect,variant:e.variant,footer:y}):i?v.jsx(C.Button,{id:e.id,variant:"secondary",isDanger:!0,icon:v.jsx(Ce.SyncAltIcon,{}),iconPosition:"right",onClick:_=>{f(b=>(b===1&&p(1),1))},children:typeof e.queryErrorText=="function"?e.queryErrorText(i):e.queryErrorText??t("Error loading options")}):v.jsx(C.Button,{id:e.id,variant:"control",isLoading:!0,children:e.queryPlaceholder??t("Loading options...")})}function Bge(e){const{filterValues:t,setFilterValues:n,placeholder:r,isRequired:i,defaultValue:a}=e,o=t&&t.length>0?t[0]:void 0,l=e.options.find(h=>h.value===o);i&&!l&&n(()=>[a??e.options[0].value]);function s(h){e.options.find(p=>p.value===h)&&n(()=>[h])}const[u,c]=x.useState(()=>{if(t&&t.length>1)return t[1]}),[f,d]=x.useState(()=>{if(t&&t.length>2)return t[2]});return x.useEffect(()=>{if(l&&l.isCustom){const h=[l.value];u&&(h.push(u),f&&h.push(f)),n(()=>h)}},[l,u,f,n]),v.jsxs(C.ToolbarItem,{children:[v.jsx(zi,{value:(l==null?void 0:l.value)??"",onSelect:s,options:e.options,placeholder:r}),l&&l.isCustom&&v.jsx(Rge,{to:f,setTo:d,from:u,setFrom:c})]})}function Rge(e){const{to:t,setTo:n,from:r,setFrom:i}=e,{t:a}=yt(),o=(c,f)=>{i(f)},l=(c,f)=>{n(f)},s=r?new Date(r):void 0,u=c=>s?C.isValidDate(s)&&c>=s?"":a('The "to" date must be after the "from" date'):"";return v.jsxs(v.Fragment,{children:[v.jsx(C.DatePicker,{value:r,onChange:o,"aria-label":"Start date",placeholder:"YYYY-MM-DD"}),v.jsx("div",{style:{alignSelf:"baseline",padding:6},children:a("to")}),v.jsx(C.DatePicker,{value:t,onChange:l,isDisabled:!s||!C.isValidDate(s),rangeStart:s,validators:[u],"aria-label":"End date",placeholder:a("now"),invalidFormatText:a("Invalid date format")}),t!==void 0&&v.jsx(C.Button,{variant:"control",style:{alignSelf:"flex-start"},onClick:()=>n(void 0),children:v.jsx(Ce.TimesCircleIcon,{})})]})}function Wge(e){const{t}=yt(),[n,r]=x.useState("");let i=e.placeholder;if(!i)switch(e.comparison){case"contains":i=t("contains");break;case"startsWith":i=t("starts with");break;case"endsWith":i=t("ends with");break;case"equals":i=t("equals");break}return v.jsxs(C.InputGroup,{children:[v.jsxs(C.TextInputGroup,{style:{minWidth:220},children:[v.jsx(C.TextInputGroupMain,{id:e.id,value:n,onChange:(a,o)=>{r(typeof a=="string"?a:o)},onKeyUp:a=>{n&&a.key==="Enter"&&(e.addFilter(n),r(""))},placeholder:i}),n!==""&&v.jsx(C.TextInputGroupUtilities,{children:v.jsx(C.Button,{variant:"plain","aria-label":"clear filter",onClick:()=>r(""),style:{opacity:n?void 0:0},tabIndex:-1,children:v.jsx(Ce.TimesIcon,{})})})]}),v.jsx(C.Button,{variant:n?"primary":"control","aria-label":"apply filter",onClick:()=>{e.addFilter(n),r("")},tabIndex:-1,isDisabled:!n,children:v.jsx(Ce.ArrowRightIcon,{})})]})}var $k=(e=>(e[e.Text=0]="Text",e[e.SingleSelect=1]="SingleSelect",e[e.MultiSelect=2]="MultiSelect",e[e.DateRange=3]="DateRange",e[e.AsyncSingleSelect=4]="AsyncSingleSelect",e[e.AsyncMultiSelect=5]="AsyncMultiSelect",e))($k||{});function Lk(e){var s;const{toolbarFilters:t,filterState:n,setFilterState:r}=e,[i,a]=x.useState(()=>t&&(t==null?void 0:t.length)>0?t[0].key:""),o=t==null?void 0:t.find(u=>u.key===i);if(!o)return v.jsx(v.Fragment,{});if(!t)return v.jsx(v.Fragment,{});if(t.length===0)return v.jsx(v.Fragment,{});let l=t.length===1;return t.length>=1&&(t[0].type===2&&t[0].isPinned||t[0].type===1&&t[0].isPinned&&(n[t[0].key]==null||((s=n[t[0].key])==null?void 0:s.length)===0))&&(l=!1),v.jsx(v.Fragment,{children:t.length===1?v.jsxs(C.ToolbarItem,{children:[l&&v.jsx("div",{style:{marginTop:6,marginRight:6,whiteSpace:"nowrap"},children:t[0].label}),v.jsx(Nk,{id:"filter-input",filter:o,filterState:n,setFilterState:r})]}):v.jsxs(C.ToolbarItem,{children:[v.jsx(zi,{id:"filter",value:i,onSelect:a,icon:v.jsx(Ce.FilterIcon,{}),options:t.map(u=>({label:u.label,value:u.key})),placeholder:""}),v.jsx(Nk,{id:"filter-input",filter:o,filterState:n,setFilterState:r})]})})}function Fk(e){const{toolbarFilters:t,setFilterState:n,filterState:r}=e,[i]=gt(),a=!un("md");if(!t)return v.jsx(v.Fragment,{});if(t.length===0)return v.jsx(v.Fragment,{});const o=t.filter(s=>!s.isPinned),l=t.filter(s=>!!s.isPinned);return v.jsx(C.ToolbarToggleGroup,{toggleIcon:v.jsx(Ce.FilterIcon,{}),breakpoint:"md",children:v.jsxs(C.ToolbarGroup,{variant:"filter-group",style:{flexWrap:"wrap",gap:16},children:[a&&v.jsx(C.ToolbarItem,{variant:"label",children:i.filter}),v.jsx(Lk,{toolbarFilters:o,setFilterState:n,filterState:r}),l==null?void 0:l.map(s=>v.jsx(Lk,{toolbarFilters:[s],setFilterState:n,filterState:r},s.key)),t==null?void 0:t.map(s=>{const u=(r==null?void 0:r[s.key])||[];return s.isPinned&&s.type===1?v.jsx(v.Fragment,{}):s.isPinned&&s.type===3?v.jsx(v.Fragment,{}):v.jsx(C.ToolbarFilter,{categoryName:s.label,chips:u.map(c=>{var f;switch(s.type){case 1:case 2:return((f=s.options.find(d=>d.value===c))==null?void 0:f.label)??c;default:return c}}),deleteChip:(c,f)=>{n==null||n(d=>{var p;const h={...d};switch(f=typeof f=="string"?f:f.key,s.type){case 1:case 2:f=((p=s.options.find(y=>y.value===f))==null?void 0:p.label)??f;break}let g=d[s.key];return g&&(g=g.filter(y=>y!==f),g.length===0?delete h[s.key]:h[s.key]=g),h})},deleteChipGroup:()=>{n==null||n(c=>{const f={...c};return delete f[s.key],f})},showToolbarItem:!1,children:v.jsx(v.Fragment,{})},s.label)})]})})}function Nk(e){const{filter:t,filterState:n,setFilterState:r}=e,i=n==null?void 0:n[t.key],a=x.useCallback(l=>{r(s=>{const u={...s},c=u[t.key]??[];return u[t.key]=l(c),u})},[t.key,r]),o=x.useCallback(l=>{r(s=>{const u={...s},c=u[t.key]??[];return u[t.key]=[...c,l],u})},[t.key,r]);switch(t.type){case 0:return v.jsx(Wge,{id:e.id??t.key,addFilter:o,placeholder:t.placeholder,comparison:t.comparison});case 1:return v.jsx(zi,{id:e.id??t.key,placeholder:t.placeholder,value:i&&(i==null?void 0:i.length)>0?i[0]:"",onSelect:l=>a(()=>[l]),options:t.options,isRequired:t.isRequired});case 4:return v.jsx(Fge,{id:e.id??t.key,value:i&&(i==null?void 0:i.length)>0?i[0]:"",onSelect:l=>a(()=>[l]),placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,isRequired:t.isRequired,footer:t.openBrowse?v.jsx(C.Button,{variant:"link",onClick:()=>{var l;(l=t.openBrowse)==null||l.call(t,s=>a(()=>[s]),i&&i.length>0?i[0]:void 0)},children:"Browse"}):void 0});case 5:return v.jsx(Nge,{id:e.id??t.key,values:i,onSelect:a,placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,footer:t.openBrowse?v.jsx(C.Button,{variant:"link",onClick:()=>{var l;(l=t.openBrowse)==null||l.call(t,s=>a(()=>s),i)},children:"Browse"}):void 0});case 2:return v.jsx(Ik,{id:e.id??t.key,placeholder:t.placeholder,values:i,onSelect:a,options:t.options,variant:"count",disableClearSelection:!0});case 3:return v.jsx(Bge,{id:e.id??t.key,label:t.label,placeholder:t.placeholder??"",filterValues:i,setFilterValues:a,options:t.options,isRequired:t.isRequired,defaultValue:t.defaultValue})}}function zge(e){const{sort:t,setSort:n,sortDirection:r,setSortDirection:i,sortOptions:a}=e,o=a==null?void 0:a.find(c=>c.value===t),l=o?o.type:void 0,[s]=gt(),u=x.useMemo(()=>{switch(l){case"text":switch(r){case"asc":return v.jsx(Ce.SortAlphaUpIcon,{});case"desc":return v.jsx(Ce.SortAlphaDownAltIcon,{})}break;case"number":switch(r){case"asc":return v.jsx(Ce.SortNumericUpIcon,{});case"desc":return v.jsx(Ce.SortNumericDownAltIcon,{})}break;default:switch(r){case"asc":return v.jsx(Ce.SortAmountUpIcon,{});case"desc":return v.jsx(Ce.SortAmountDownIcon,{})}break}return v.jsx(v.Fragment,{})},[r,l]);return!a||a.length<=0?v.jsx(v.Fragment,{}):v.jsx(C.ToolbarToggleGroup,{breakpoint:"md",toggleIcon:void 0,children:v.jsxs(C.ToolbarGroup,{variant:"filter-group",children:[v.jsx(C.ToolbarItem,{variant:"label",children:s.sort}),v.jsx(C.ToolbarItem,{children:v.jsxs(C.Split,{children:[v.jsx(Vge,{sortOptions:a,sort:t,setSort:n,setSortDirection:i}),v.jsx(C.Button,{variant:"control",icon:u,onClick:()=>{r==="asc"?i==null||i("desc"):i==null||i("asc")}})]})})]})})}function Vge(e){const{sortOptions:t,sort:n,setSort:r,setSortDirection:i}=e,a=x.useCallback(o=>{if(o){const l=t.find(s=>s.value===o);l&&n!==o&&l.defaultDirection&&(i==null||i(l.defaultDirection)),r==null||r(o)}},[t,r,i,n]);return v.jsx(zi,{placeholder:"",value:n,onSelect:a,options:t.map(o=>({label:o.label,value:o.value}))})}function Uge(e){return x.useMemo(()=>{const n=[];for(const r of e)if(r.sort){if(r.defaultSort){n.push({label:r.header,value:r.sort,type:"text",defaultDirection:r.defaultSortDirection});continue}switch(r.type){case"count":n.push({label:r.header,value:r.sort,type:"number",defaultDirection:r.defaultSortDirection});break;case"text":n.push({label:r.header,value:r.sort,type:"text",defaultDirection:r.defaultSortDirection});break;default:n.push({label:r.header,value:r.sort,defaultDirection:r.defaultSortDirection});break}}return n},[e])}function Hge(e){const{viewType:t,setViewType:n,openColumnModal:r}=e,[i]=gt();let a=0;return e.disableTableView||a++,e.disableCardView||a++,e.disableListView||a++,v.jsxs(C.ToolbarGroup,{variant:"button-group",style:{justifyContent:"end",marginRight:0},children:[r&&v.jsx(C.ToolbarItem,{children:v.jsx(C.Tooltip,{content:i.manageColumns,children:v.jsx(C.Button,{variant:"plain",icon:v.jsx(Ce.ColumnsIcon,{}),onClick:r})})}),a>1&&v.jsx(C.ToolbarItem,{children:v.jsx(C.ToggleGroup,{"aria-label":"table view toggle",children:[!e.disableTableView&&at.Table,!e.disableListView&&at.List,!e.disableCardView&&at.Cards].filter(o=>o).map(o=>{switch(o){case at.Cards:return v.jsx(C.Tooltip,{content:i.cardView,position:"top-end",enableFlip:!1,children:v.jsx(C.ToggleGroupItem,{icon:v.jsx(Ce.ThLargeIcon,{}),isSelected:t===at.Cards,onClick:()=>n==null?void 0:n(at.Cards),"aria-label":"card view"})},o);case at.List:return v.jsx(C.Tooltip,{content:i.listView,position:"top-end",enableFlip:!1,children:v.jsx(C.ToggleGroupItem,{icon:v.jsx(Ce.ListIcon,{}),isSelected:t===at.List,onClick:()=>n==null?void 0:n(at.List),"aria-label":"list view"})},o);case at.Table:return v.jsx(C.Tooltip,{content:i.tableView,position:"top-end",enableFlip:!1,children:v.jsx(C.ToggleGroupItem,{icon:v.jsx(Ce.TableIcon,{}),isSelected:t===at.Table,onClick:()=>n==null?void 0:n(at.Table),"aria-label":"table view"})},o)}})})})]})}const qge=De.div`
371
371
  display: flex;
372
372
  flex-grow: 1;
373
373
  justify-content: end;
@@ -377,7 +377,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
377
377
  row-gap: 16px;
378
378
  justify-content: end;
379
379
  }
380
- `;function Rk(e){const{itemCount:t,page:n,perPage:r,setPage:i,setPerPage:a,toolbarFilters:o,selectedItems:l,filterState:s,setFilterState:u,openColumnModal:c,bottomBorder:f,sort:d,setSort:h,sortDirection:g,setSortDirection:p,sortOptions:y,clearAllFilters:_}=e,b=x.useCallback(()=>{_?_():u&&u({})},[u,_]),S=un("md"),{viewType:O,setViewType:w}=e;let{toolbarActions:A}=e;A=A??[];const T=x.useCallback((I,D)=>i?i(D):null,[i]),k=x.useCallback((I,D)=>a?a(D):null,[a]),j=o!==void 0,N=A!==void 0&&A.length>0,M=e.showSelect===!0||l!==void 0&&A&&A.find(I=>"selection"in I&&I.selection===ot.Multiple);return M||j||N?t===void 0?v.jsx(C.Toolbar,{className:"border-bottom dark-2",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8,zIndex:400},children:v.jsx(Bk,{children:v.jsx(C.ToolbarItem,{style:{width:"100%"},children:v.jsx(C.Skeleton,{height:"36px"})})})}):v.jsx(C.Toolbar,{clearAllFilters:b,className:"dark-2 page-table-toolbar",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8,borderBottom:f?"thin solid var(--pf-global--BorderColor--100)":void 0},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:v.jsxs(Bk,{children:[M&&v.jsx(C.ToolbarGroup,{children:v.jsx(C.ToolbarItem,{variant:"bulk-select",children:v.jsx(ok,{...e})})}),s&&u&&v.jsx(Fk,{toolbarFilters:o,filterState:s,setFilterState:u}),v.jsx(C.ToolbarGroup,{variant:"button-group",children:v.jsx(Va,{actions:A,selectedItems:l,wrapper:C.ToolbarItem})}),v.jsxs(qge,{children:[v.jsx(zge,{sort:d,setSort:h,sortDirection:g,setSortDirection:p,sortOptions:y}),O&&w&&v.jsx(Hge,{disableTableView:e.disableTableView,disableListView:e.disableListView,disableCardView:e.disableCardView,viewType:O,setViewType:w,openColumnModal:c}),!e.disablePagination&&v.jsx(C.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24,alignSelf:"center"},children:v.jsx(C.Pagination,{variant:C.PaginationVariant.top,isCompact:!0,itemCount:t,perPage:r,page:n,onSetPage:T,onPerPageSelect:k,style:{marginTop:-8,marginBottom:-8}})})]})]})}):v.jsx(x.Fragment,{})}function Gge(e){const{t}=yt(),n=t("Something went wrong"),r=t("Please refresh the page by using the button below."),i=t("Refresh"),{titleProp:a,message:o}=e;return v.jsxs(C.EmptyState,{variant:C.EmptyStateVariant.small,style:{paddingTop:48},children:[v.jsx(C.EmptyStateIcon,{icon:Ce.ExclamationCircleIcon,color:"var(--pf-global--danger-color--100)"}),v.jsx(C.Title,{headingLevel:"h2",size:"lg",children:a||n}),v.jsx(C.EmptyStateBody,{children:o}),v.jsx(C.EmptyStateBody,{children:r}),v.jsx(C.Button,{variant:"primary",onClick:()=>window.location.reload(),children:i})]})}function Yge(e){const{title:t,description:n,icon:r,button:i,footNote:a,image:o,variant:l,style:s}=e;return v.jsxs(C.EmptyState,{variant:l||C.EmptyStateVariant.full,style:s,children:[r&&v.jsx(C.EmptyStateIcon,{icon:r}),v.jsx(C.Title,{headingLevel:"h4",size:"lg",children:t}),v.jsx(C.EmptyStateBody,{children:n}),i&&v.jsx(C.EmptyStatePrimary,{children:i}),o&&v.jsxs(v.Fragment,{children:[" ",v.jsx("br",{})," ",v.jsx(C.EmptyStateBody,{children:o})]}),a&&v.jsx(C.EmptyStateBody,{children:a})]})}function Kge(e){const{button:t,description:n,title:r,variant:i}=e;return v.jsx(Yge,{icon:t?Ce.PlusCircleIcon:Ce.CubesIcon,title:r,description:n,button:t,variant:i,style:{paddingTop:"48px"}})}function Mv(e,t,n){var r,i,a,o,l;t==null&&(t=100);function s(){var c=Date.now()-o;c<t&&c>=0?r=setTimeout(s,t-c):(r=null,n||(l=e.apply(a,i),a=i=null))}var u=function(){a=this,i=arguments,o=Date.now();var c=n&&!r;return r||(r=setTimeout(s,t)),c&&(l=e.apply(a,i),a=i=null),l};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(l=e.apply(a,i),a=i=null,clearTimeout(r),r=null)},u}Mv.debounce=Mv;var Zge=Mv;const Xge=Ae(Zge);function Jge(e,t,n){const{selectedItems:r,selectItem:i,unselectItem:a,isSelected:o,selectItems:l,unselectAll:s,allSelected:u}=Dv(e,t),{sorted:c,sort:f,setSort:d}=Iv(e),{filtered:h,setFilterFn:g}=$v(c,t),{searched:p,search:y,setSearch:_,setSearchFn:b}=Qge(h,t,n==null?void 0:n.search),{paged:S,page:O,setPage:w,perPage:A,setPerPage:T}=Is(p),k=x.useCallback(()=>l(S),[S,l]),j=x.useCallback(()=>l(p),[p,l]);return x.useMemo(()=>({allSelected:u,filtered:h,isSelected:o,page:O,paged:S,perPage:A,search:y,searched:p,selectAll:j,selectItem:i,selectPage:k,selectedItems:r,setFilterFn:g,setPage:w,setPerPage:T,setSearch:_,setSearchFn:b,setSort:d,sort:f,sorted:c,unselectAll:s,unselectItem:a}),[u,h,o,O,S,A,y,p,j,i,k,r,g,w,T,_,b,d,f,c,s,a])}function Dv(e,t,n){const[r,i]=x.useState(()=>n?n.reduce((g,p)=>(g[t(p)]=p,g),{}):{});x.useEffect(()=>{i(g=>{let p=!1;return e.forEach(y=>{const _=t(y);g[_]&&g[_]!==y&&(p=!0,g[_]=y)}),p?{...g}:g})},[e,t]);const a=x.useCallback(g=>{i(p=>{const y=t(g);return p[y]!==g&&(p={...p},p[y]=g),p})},[t]),o=x.useCallback(g=>{i(p=>{const y=t(g);return p[y]&&(p={...p},delete p[y]),p})},[t]),l=x.useCallback(g=>{const p=t(g);return r[p]!==void 0},[t,r]),s=x.useCallback(g=>{i(p=>{p={...p};for(const y of g){const _=t(y);p[_]=y}return p})},[t]),u=x.useCallback(()=>s(e),[e,s]),c=x.useCallback(g=>{for(const p of g)o(p)},[o]),f=x.useCallback(()=>{i(g=>Object.keys(g).length>0?{}:g)},[]),d=x.useMemo(()=>Object.values(r),[r]),h=x.useMemo(()=>d.length===e.length,[e.length,d.length]);return x.useMemo(()=>({selectedItems:d,selectItem:a,unselectItem:o,isSelected:l,selectItems:s,selectAll:u,unselectAll:f,allSelected:h,keyFn:t,unselectItems:c}),[h,l,t,u,a,s,d,f,o,c])}function Wk(e,t){const[n,r]=x.useState({});x.useEffect(()=>{r(h=>{let g=!1;const p=e?e.reduce((b,S)=>{const O=t(S);return b[O]=S,h[O]&&h[O]!==S&&(g=!0,h[O]=S),b},{}):{},y={};for(const b in h)p[b]||(y[b]=!0);const _=Object.keys(y);if(_.length){g=!0;for(const b of _)delete h[b]}return g?{...h}:h})},[e,t]);const i=x.useCallback(h=>{r(g=>{const p=t(h);return g[p]!==h&&(g={...g},g[p]=h),g})},[t]),a=x.useCallback(h=>{r(g=>{const p=t(h);return g[p]&&(g={...g},delete g[p]),g})},[t]),o=x.useCallback(h=>{for(const g of h)a(g)},[a]),l=x.useCallback(h=>{const g=t(h);return n[g]!==void 0},[t,n]),s=x.useCallback(h=>{r(g=>{g={...g};for(const p of h){const y=t(p);g[y]=p}return g})},[t]),u=x.useCallback(()=>{s(e??[])},[e,s]),c=x.useCallback(()=>{r(h=>Object.keys(h).length>0?{}:h)},[]),f=x.useMemo(()=>Object.values(n),[n]),d=x.useMemo(()=>f.length===(e==null?void 0:e.length),[e,f.length]);return x.useMemo(()=>({selectedItems:f,selectItem:i,unselectItem:a,isSelected:l,selectItems:s,selectAll:u,unselectAll:c,allSelected:d,keyFn:t,unselectItems:o}),[d,l,t,u,i,s,f,c,a,o])}function Iv(e){const[t,n]=x.useState(),{direction:r,sortFn:i}=t??{},a=x.useMemo(()=>e?i?r==="asc"?[...e.sort(i)]:[...e.sort(i).reverse()]:e:[],[r,e,i]);return x.useMemo(()=>({sorted:a,sort:t,setSort:n}),[t,a])}function $v(e,t){const n=x.useRef({map:{}}),[r,i]=x.useState(),a=x.useCallback(u=>i(()=>u),[]),[o,l]=x.useState([]);x.useEffect(()=>{n.current.map={}},[r]);const s=x.useCallback(u=>{const c=t(u);let f=n.current.map[c];return f?f.item!==u&&(f.item=u,f.passes=r?r(u):!0):(f={item:u,passes:r?r(u):!0},n.current.map[c]=f),f.passes},[r,t]);return x.useEffect(()=>{l(r?e.filter(s):e)},[e,r,s]),x.useMemo(function(){return{filtered:o,setFilterFn:a}},[o,a])}function Qge(e,t,n){const r=x.useRef({map:{}}),[i,a]=x.useState(),o=x.useCallback(h=>a(()=>h),[]),[l,s]=x.useState([]),[u,c]=x.useState(n??""),f=x.useCallback(Xge(h=>c(h),200),[]);x.useEffect(()=>{r.current.map={}},[u,i]);const d=x.useCallback(h=>{const g=t(h);let p=r.current.map[g];return p?p.item!==h&&(p.item=h,p.score=i?i(h,u):0):(p={item:h,score:i?i(h,u):0},r.current.map[g]=p),p},[t,i,u]);return x.useEffect(()=>{s(i&&u?e.map(d).filter(h=>h.score<.5).sort((h,g)=>h.score-g.score).map(h=>h.item):e)},[u,e,i,d]),x.useMemo(function(){return{searched:l,search:u,setSearch:f,setSearchFn:o}},[l,u,f,o])}function Is(e){const[t,n]=x.useState([]),[r,i]=x.useState(1),[a,o]=x.useState(10);return x.useEffect(()=>{n(l=>{const s=e.slice((r-1)*a,r*a);if(l.length!==s.length)return s;let u=0;for(const c of s)if(l[u++]!==c)return s;return l})},[r,a,e]),x.useEffect(()=>{r>Math.ceil(e.length/a)&&i(1)},[r,a,e.length]),x.useMemo(()=>({paged:t,page:r,setPage:i,perPage:a,setPerPage:o}),[r,t,a])}const Jwe="",Lv={button:"pf-c-button",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon",themeDark:"pf-theme-dark"};function epe(e){const{t}=yt(),{columns:n,keyFn:r,items:i,setItems:a,isSelected:o,selectItem:l,unselectItem:s,allSelected:u,selectAll:c,unselectAll:f,hideColumnHeaders:d,isSelectableWithCheckbox:h}=e,[g,p]=x.useState(null),[y,_]=x.useState(null),[b,S]=x.useState(!1),O=x.useRef(null),w=D=>{if(O.current){const W=O.current.getBoundingClientRect();return D.clientX>W.x&&D.clientX<W.x+W.width&&D.clientY>W.y&&D.clientY<W.y+W.height}return!1},A=D=>{w(D)||T()},T=()=>{O.current&&Array.from(O.current.children).forEach(D=>{D.classList.remove(Lv.modifiers.ghostRow),D.setAttribute("aria-pressed","false")}),_(null),p(null),S(!1)},k=D=>{D.preventDefault();const W=D.target.closest("tr");if(!W||!(O.current&&O.current.contains(W))||W.id===y)return null;{const X=W.id,re=Array.from(O.current.children).findIndex(ne=>ne.id===X);if(re!==g&&y){const ne=j([...i],y,re);a(ne)}}return null},j=(D,W,X)=>{const re=D.findIndex(ee=>r(ee)===W);if(re===X)return D;const ne=D.splice(re,1);return D.splice(X,0,ne[0]),D},N=D=>{w(D)||p(null)},M=D=>{const W=D.target;W.classList.remove(Lv.modifiers.ghostRow),W.setAttribute("aria-pressed","false"),_(null),p(null),S(!1)},E=D=>{if(O.current){D.dataTransfer.effectAllowed="move";const W=D.currentTarget.id,X=Array.from(O.current.children).findIndex(re=>re.id===D.currentTarget.id);D.currentTarget.setAttribute("aria-pressed","true"),_(W),p(X)}},I=x.useCallback(D=>{const W=i.findIndex(re=>r(re)===r(D)),X=[...i];X[W]=D,a(X)},[i,a,r]);return v.jsxs(je.TableComposable,{"aria-label":t("Table with draggable rows"),className:b?Lv.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!d&&v.jsx(je.Thead,{children:v.jsxs(je.Tr,{children:[v.jsx(je.Th,{}),h&&v.jsx(je.Th,{select:{onSelect:(D,W)=>{W?c():f()},isSelected:u}}),n.map((D,W)=>v.jsx(je.Th,{children:D.header},W))]})}),v.jsx(je.Tbody,{ref:O,onDragOver:k,onDragLeave:N,children:i.map((D,W)=>{const X=r(D);return v.jsxs(je.Tr,{id:X.toString(),draggable:!0,onDrop:A,onDragEnd:M,onDragStart:E,children:[v.jsx(je.Td,{draggableRow:{id:`draggable-row-${X.toString()}`}}),h&&v.jsx(je.Td,{select:{rowIndex:W,variant:"checkbox",onSelect:(re,ne)=>{ne?l(D):s(D)},isSelected:o(D)}}),n.map(re=>v.jsx(je.Td,{children:re.cell(D,I)},re.header))]},X)})})]})}function tpe(e){const[t,n]=yr(),[r]=x.useState(()=>e.keyFn),[i]=x.useState(()=>e.saveFn),[a]=x.useState(()=>e.loadFn),[o,l]=x.useState(()=>{try{const d=localStorage.getItem(e.id);if(typeof d=="string"){const h=JSON.parse(d);if(Array.isArray(h)&&h.every(g=>typeof g=="object")&&h.every(g=>"key"in g&&"enabled"in g))return h}}catch{}}),s=x.useMemo(()=>o?e.items.map(d=>{if(a){const h=o.find(g=>g.key===r(d));h&&h.state&&a(d,h.state)}return d}).sort((d,h)=>{const g=o.findIndex(y=>y.key===r(d)),p=o.findIndex(y=>y.key===r(h));return g===-1&&p===-1?0:g===-1?1:p===-1?-1:g-p}):e.items,[o,r,a,e.items]),u=x.useMemo(()=>o?s.filter(d=>{const h=o.find(g=>g.key===r(d));return h?h.enabled:!0}):s,[s,o,r]),c=x.useCallback((d,h)=>{const g=d.map(p=>({key:r(p),enabled:h.includes(p),state:i?i(p):void 0}));l(g),localStorage.setItem(e.id,JSON.stringify(g))},[r,e.id,i]);return{openManageItems:()=>n(v.jsx(npe,{...e,keyFn:r,items:s,defaultSelectedItems:u,onApplyChanges:c})),managedItems:u}}function npe(e){const{t}=yt(),{title:n,description:r,columns:i,onApplyChanges:a}=e,[o]=x.useState(()=>e.keyFn),[l,s]=yr(),u=()=>s(void 0),[c,f]=x.useState(()=>e.items),{selectedItems:d,isSelected:h,selectItem:g,unselectItem:p,allSelected:y,selectAll:_,unselectAll:b}=Dv(c,o,e.defaultSelectedItems),S=()=>{a(c,d),s(void 0)};return v.jsxs(C.Modal,{title:n,"aria-label":n,description:v.jsx("div",{style:{marginBottom:16},children:r}),variant:e.variant??C.ModalVariant.medium,isOpen:!0,onClose:u,actions:[v.jsx(C.Button,{variant:"primary",onClick:S,children:t`Apply`},"apply"),v.jsx(C.Button,{variant:"link",onClick:u,children:t`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.Divider,{}),v.jsx(C.ModalBoxBody,{style:{padding:0},children:v.jsx(epe,{keyFn:o,items:c,setItems:f,columns:i,isSelected:h,selectItem:g,unselectItem:p,allSelected:y,selectAll:_,unselectAll:b,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),v.jsx(C.Divider,{})]})}function rpe(e,t,n,r,i){const{t:a}=yt(),o=x.useMemo(()=>{const f=[{header:a("Column Name"),cell:d=>d.header}];return n||f.push({header:a("Table View"),cell:(d,h)=>v.jsx(zi,{value:d.table??"",onSelect:g=>{switch(g){case"":h({...d,table:void 0});break;case Ri.Description:case Ri.Expanded:case Ri.Hidden:h({...d,table:g});break}},placeholder:a("Column"),options:[{value:"",label:a("Column"),description:a("Show the column in the table.")},{value:Ri.Description,label:a("Description"),description:a("Show the column when the item is expanded as a full width description.")},{value:Ri.Expanded,label:a("Expanded"),description:a("Show the column when the item is expanded as a detail.")},{value:Ri.Hidden,label:a("Hidden"),description:a("Hide the column.")}]})}),r||f.push({header:a("List View"),cell:(d,h)=>v.jsx(zi,{value:d.list??"",onSelect:g=>{switch(g){case"":h({...d,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":h({...d,list:g});break}},options:[{value:"name",label:a("Name"),description:a("Show the column as the name of the list item.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the list.")},{value:"description",label:a("Description"),description:a("Show the column as the list item description.")},{value:"",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"primary",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"secondary",label:a("Right side"),description:a("Show the column on the right side of the list.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the list.")}],placeholder:a("Left side")})}),i||f.push({header:a("Card View"),cell:(d,h)=>v.jsx(zi,{value:d.card??"",onSelect:g=>{switch(g){case"":h({...d,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":h({...d,card:g});break}},placeholder:a("Detail"),options:[{value:"name",label:a("Name"),description:a("Show the column as the name on the card.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the card.")},{value:"description",label:a("Description"),description:a("Show the column as the card description.")},{value:"",label:a("Detail"),description:a("Show the column one of the details on the card.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the card.")}]})}),f},[i,r,n,a]),l=x.useCallback((f,d)=>{typeof d=="object"&&d!==null&&("table"in d&&typeof d.table=="string"?f.table=d.table:f.table=void 0,"list"in d&&typeof d.list=="string"?f.list=d.list:f.list=void 0,"card"in d&&typeof d.card=="string"?f.card=d.card:f.card=void 0)},[]),s=x.useCallback(f=>{const{table:d,list:h,card:g}=f;return{table:d,list:h,card:g}},[]),{openManageItems:u,managedItems:c}=tpe({id:e,title:a("Manage Columns"),description:a("Manage the order, placement, and format of columns."),items:t,keyFn:f=>f.id??f.header,columns:o,loadFn:l,saveFn:s,hideSelection:!0});return{openColumnManagement:u,managedColumns:c}}function ipe(e){const{setPage:t,setPerPage:n}=e,r=x.useCallback((o,l)=>t(l),[t]),i=x.useCallback((o,l)=>n(l),[n]),a=!un("md");return v.jsx(C.Pagination,{variant:C.PaginationVariant.bottom,itemCount:e.itemCount,page:e.page,perPage:e.perPage,onSetPage:r,onPerPageSelect:i,style:{...e.style,boxShadow:"none",zIndex:400,paddingTop:a?4:6,paddingBottom:a?4:6,borderTop:e.topBorder?"thin solid var(--pf-global--BorderColor--100)":void 0},className:"dark-2"})}const Qwe="";function ape(e){const t=e.size??350,n=x.useRef(null),[r,i]=x.useState("1fr"),a=x.useCallback(l=>{let s=Math.min(e.maxColumns??12,Math.max(Math.floor(l/t),1));s<1&&(s=1),i(()=>new Array(s).fill("1fr").join(" "))},[e.maxColumns,t]);ro(n,l=>a(l.contentRect.width)),x.useLayoutEffect(()=>{var l;a(((l=n.current)==null?void 0:l.clientWidth)??0)},[a]);const o=16;return v.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:o},children:e.children})}const ope=De.small`
380
+ `;function Rk(e){const{itemCount:t,page:n,perPage:r,setPage:i,setPerPage:a,toolbarFilters:o,selectedItems:l,filterState:s,setFilterState:u,openColumnModal:c,bottomBorder:f,sort:d,setSort:h,sortDirection:g,setSortDirection:p,sortOptions:y,clearAllFilters:_}=e,b=x.useCallback(()=>{_?_():u&&u({})},[u,_]),S=un("md"),{viewType:O,setViewType:w}=e;let{toolbarActions:A}=e;A=A??[];const T=x.useCallback((D,I)=>i?i(I):null,[i]),k=x.useCallback((D,I)=>a?a(I):null,[a]),j=o!==void 0,N=A!==void 0&&A.length>0,M=e.showSelect===!0||l!==void 0&&A&&A.find(D=>"selection"in D&&D.selection===ot.Multiple);return M||j||N?t===void 0?v.jsx(C.Toolbar,{className:"border-bottom dark-2",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8,zIndex:400},children:v.jsx(Bk,{children:v.jsx(C.ToolbarItem,{style:{width:"100%"},children:v.jsx(C.Skeleton,{height:"36px"})})})}):v.jsx(C.Toolbar,{clearAllFilters:b,className:"dark-2 page-table-toolbar",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8,borderBottom:f?"thin solid var(--pf-global--BorderColor--100)":void 0},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:v.jsxs(Bk,{children:[M&&v.jsx(C.ToolbarGroup,{children:v.jsx(C.ToolbarItem,{variant:"bulk-select",children:v.jsx(ok,{...e})})}),s&&u&&v.jsx(Fk,{toolbarFilters:o,filterState:s,setFilterState:u}),v.jsx(C.ToolbarGroup,{variant:"button-group",children:v.jsx(Va,{actions:A,selectedItems:l,wrapper:C.ToolbarItem})}),v.jsxs(qge,{children:[v.jsx(zge,{sort:d,setSort:h,sortDirection:g,setSortDirection:p,sortOptions:y}),O&&w&&v.jsx(Hge,{disableTableView:e.disableTableView,disableListView:e.disableListView,disableCardView:e.disableCardView,viewType:O,setViewType:w,openColumnModal:c}),!e.disablePagination&&v.jsx(C.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24,alignSelf:"center"},children:v.jsx(C.Pagination,{variant:C.PaginationVariant.top,isCompact:!0,itemCount:t,perPage:r,page:n,onSetPage:T,onPerPageSelect:k,style:{marginTop:-8,marginBottom:-8}})})]})]})}):v.jsx(x.Fragment,{})}function Gge(e){const{t}=yt(),n=t("Something went wrong"),r=t("Please refresh the page by using the button below."),i=t("Refresh"),{titleProp:a,message:o}=e;return v.jsxs(C.EmptyState,{variant:C.EmptyStateVariant.small,style:{paddingTop:48},children:[v.jsx(C.EmptyStateIcon,{icon:Ce.ExclamationCircleIcon,color:"var(--pf-global--danger-color--100)"}),v.jsx(C.Title,{headingLevel:"h2",size:"lg",children:a||n}),v.jsx(C.EmptyStateBody,{children:o}),v.jsx(C.EmptyStateBody,{children:r}),v.jsx(C.Button,{variant:"primary",onClick:()=>window.location.reload(),children:i})]})}function Yge(e){const{title:t,description:n,icon:r,button:i,footNote:a,image:o,variant:l,style:s}=e;return v.jsxs(C.EmptyState,{variant:l||C.EmptyStateVariant.full,style:s,children:[r&&v.jsx(C.EmptyStateIcon,{icon:r}),v.jsx(C.Title,{headingLevel:"h4",size:"lg",children:t}),v.jsx(C.EmptyStateBody,{children:n}),i&&v.jsx(C.EmptyStatePrimary,{children:i}),o&&v.jsxs(v.Fragment,{children:[" ",v.jsx("br",{})," ",v.jsx(C.EmptyStateBody,{children:o})]}),a&&v.jsx(C.EmptyStateBody,{children:a})]})}function Kge(e){const{button:t,description:n,title:r,variant:i}=e;return v.jsx(Yge,{icon:t?Ce.PlusCircleIcon:Ce.CubesIcon,title:r,description:n,button:t,variant:i,style:{paddingTop:"48px"}})}function Mv(e,t,n){var r,i,a,o,l;t==null&&(t=100);function s(){var c=Date.now()-o;c<t&&c>=0?r=setTimeout(s,t-c):(r=null,n||(l=e.apply(a,i),a=i=null))}var u=function(){a=this,i=arguments,o=Date.now();var c=n&&!r;return r||(r=setTimeout(s,t)),c&&(l=e.apply(a,i),a=i=null),l};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(l=e.apply(a,i),a=i=null,clearTimeout(r),r=null)},u}Mv.debounce=Mv;var Zge=Mv;const Xge=Ae(Zge);function Jge(e,t,n){const{selectedItems:r,selectItem:i,unselectItem:a,isSelected:o,selectItems:l,unselectAll:s,allSelected:u}=Dv(e,t),{sorted:c,sort:f,setSort:d}=Iv(e),{filtered:h,setFilterFn:g}=$v(c,t),{searched:p,search:y,setSearch:_,setSearchFn:b}=Qge(h,t,n==null?void 0:n.search),{paged:S,page:O,setPage:w,perPage:A,setPerPage:T}=Is(p),k=x.useCallback(()=>l(S),[S,l]),j=x.useCallback(()=>l(p),[p,l]);return x.useMemo(()=>({allSelected:u,filtered:h,isSelected:o,page:O,paged:S,perPage:A,search:y,searched:p,selectAll:j,selectItem:i,selectPage:k,selectedItems:r,setFilterFn:g,setPage:w,setPerPage:T,setSearch:_,setSearchFn:b,setSort:d,sort:f,sorted:c,unselectAll:s,unselectItem:a}),[u,h,o,O,S,A,y,p,j,i,k,r,g,w,T,_,b,d,f,c,s,a])}function Dv(e,t,n){const[r,i]=x.useState(()=>n?n.reduce((g,p)=>(g[t(p)]=p,g),{}):{});x.useEffect(()=>{i(g=>{let p=!1;return e.forEach(y=>{const _=t(y);g[_]&&g[_]!==y&&(p=!0,g[_]=y)}),p?{...g}:g})},[e,t]);const a=x.useCallback(g=>{i(p=>{const y=t(g);return p[y]!==g&&(p={...p},p[y]=g),p})},[t]),o=x.useCallback(g=>{i(p=>{const y=t(g);return p[y]&&(p={...p},delete p[y]),p})},[t]),l=x.useCallback(g=>{const p=t(g);return r[p]!==void 0},[t,r]),s=x.useCallback(g=>{i(p=>{p={...p};for(const y of g){const _=t(y);p[_]=y}return p})},[t]),u=x.useCallback(()=>s(e),[e,s]),c=x.useCallback(g=>{for(const p of g)o(p)},[o]),f=x.useCallback(()=>{i(g=>Object.keys(g).length>0?{}:g)},[]),d=x.useMemo(()=>Object.values(r),[r]),h=x.useMemo(()=>d.length===e.length,[e.length,d.length]);return x.useMemo(()=>({selectedItems:d,selectItem:a,unselectItem:o,isSelected:l,selectItems:s,selectAll:u,unselectAll:f,allSelected:h,keyFn:t,unselectItems:c}),[h,l,t,u,a,s,d,f,o,c])}function Wk(e,t){const[n,r]=x.useState({});x.useEffect(()=>{r(h=>{let g=!1;const p=e?e.reduce((b,S)=>{const O=t(S);return b[O]=S,h[O]&&h[O]!==S&&(g=!0,h[O]=S),b},{}):{},y={};for(const b in h)p[b]||(y[b]=!0);const _=Object.keys(y);if(_.length){g=!0;for(const b of _)delete h[b]}return g?{...h}:h})},[e,t]);const i=x.useCallback(h=>{r(g=>{const p=t(h);return g[p]!==h&&(g={...g},g[p]=h),g})},[t]),a=x.useCallback(h=>{r(g=>{const p=t(h);return g[p]&&(g={...g},delete g[p]),g})},[t]),o=x.useCallback(h=>{for(const g of h)a(g)},[a]),l=x.useCallback(h=>{const g=t(h);return n[g]!==void 0},[t,n]),s=x.useCallback(h=>{r(g=>{g={...g};for(const p of h){const y=t(p);g[y]=p}return g})},[t]),u=x.useCallback(()=>{s(e??[])},[e,s]),c=x.useCallback(()=>{r(h=>Object.keys(h).length>0?{}:h)},[]),f=x.useMemo(()=>Object.values(n),[n]),d=x.useMemo(()=>f.length===(e==null?void 0:e.length),[e,f.length]);return x.useMemo(()=>({selectedItems:f,selectItem:i,unselectItem:a,isSelected:l,selectItems:s,selectAll:u,unselectAll:c,allSelected:d,keyFn:t,unselectItems:o}),[d,l,t,u,i,s,f,c,a,o])}function Iv(e){const[t,n]=x.useState(),{direction:r,sortFn:i}=t??{},a=x.useMemo(()=>e?i?r==="asc"?[...e.sort(i)]:[...e.sort(i).reverse()]:e:[],[r,e,i]);return x.useMemo(()=>({sorted:a,sort:t,setSort:n}),[t,a])}function $v(e,t){const n=x.useRef({map:{}}),[r,i]=x.useState(),a=x.useCallback(u=>i(()=>u),[]),[o,l]=x.useState([]);x.useEffect(()=>{n.current.map={}},[r]);const s=x.useCallback(u=>{const c=t(u);let f=n.current.map[c];return f?f.item!==u&&(f.item=u,f.passes=r?r(u):!0):(f={item:u,passes:r?r(u):!0},n.current.map[c]=f),f.passes},[r,t]);return x.useEffect(()=>{l(r?e.filter(s):e)},[e,r,s]),x.useMemo(function(){return{filtered:o,setFilterFn:a}},[o,a])}function Qge(e,t,n){const r=x.useRef({map:{}}),[i,a]=x.useState(),o=x.useCallback(h=>a(()=>h),[]),[l,s]=x.useState([]),[u,c]=x.useState(n??""),f=x.useCallback(Xge(h=>c(h),200),[]);x.useEffect(()=>{r.current.map={}},[u,i]);const d=x.useCallback(h=>{const g=t(h);let p=r.current.map[g];return p?p.item!==h&&(p.item=h,p.score=i?i(h,u):0):(p={item:h,score:i?i(h,u):0},r.current.map[g]=p),p},[t,i,u]);return x.useEffect(()=>{s(i&&u?e.map(d).filter(h=>h.score<.5).sort((h,g)=>h.score-g.score).map(h=>h.item):e)},[u,e,i,d]),x.useMemo(function(){return{searched:l,search:u,setSearch:f,setSearchFn:o}},[l,u,f,o])}function Is(e){const[t,n]=x.useState([]),[r,i]=x.useState(1),[a,o]=x.useState(10);return x.useEffect(()=>{n(l=>{const s=e.slice((r-1)*a,r*a);if(l.length!==s.length)return s;let u=0;for(const c of s)if(l[u++]!==c)return s;return l})},[r,a,e]),x.useEffect(()=>{r>Math.ceil(e.length/a)&&i(1)},[r,a,e.length]),x.useMemo(()=>({paged:t,page:r,setPage:i,perPage:a,setPerPage:o}),[r,t,a])}const Jwe="",Lv={button:"pf-c-button",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon",themeDark:"pf-theme-dark"};function epe(e){const{t}=yt(),{columns:n,keyFn:r,items:i,setItems:a,isSelected:o,selectItem:l,unselectItem:s,allSelected:u,selectAll:c,unselectAll:f,hideColumnHeaders:d,isSelectableWithCheckbox:h}=e,[g,p]=x.useState(null),[y,_]=x.useState(null),[b,S]=x.useState(!1),O=x.useRef(null),w=I=>{if(O.current){const W=O.current.getBoundingClientRect();return I.clientX>W.x&&I.clientX<W.x+W.width&&I.clientY>W.y&&I.clientY<W.y+W.height}return!1},A=I=>{w(I)||T()},T=()=>{O.current&&Array.from(O.current.children).forEach(I=>{I.classList.remove(Lv.modifiers.ghostRow),I.setAttribute("aria-pressed","false")}),_(null),p(null),S(!1)},k=I=>{I.preventDefault();const W=I.target.closest("tr");if(!W||!(O.current&&O.current.contains(W))||W.id===y)return null;{const Z=W.id,ne=Array.from(O.current.children).findIndex(re=>re.id===Z);if(ne!==g&&y){const re=j([...i],y,ne);a(re)}}return null},j=(I,W,Z)=>{const ne=I.findIndex(J=>r(J)===W);if(ne===Z)return I;const re=I.splice(ne,1);return I.splice(Z,0,re[0]),I},N=I=>{w(I)||p(null)},M=I=>{const W=I.target;W.classList.remove(Lv.modifiers.ghostRow),W.setAttribute("aria-pressed","false"),_(null),p(null),S(!1)},E=I=>{if(O.current){I.dataTransfer.effectAllowed="move";const W=I.currentTarget.id,Z=Array.from(O.current.children).findIndex(ne=>ne.id===I.currentTarget.id);I.currentTarget.setAttribute("aria-pressed","true"),_(W),p(Z)}},D=x.useCallback(I=>{const W=i.findIndex(ne=>r(ne)===r(I)),Z=[...i];Z[W]=I,a(Z)},[i,a,r]);return v.jsxs(je.TableComposable,{"aria-label":t("Table with draggable rows"),className:b?Lv.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!d&&v.jsx(je.Thead,{children:v.jsxs(je.Tr,{children:[v.jsx(je.Th,{}),h&&v.jsx(je.Th,{select:{onSelect:(I,W)=>{W?c():f()},isSelected:u}}),n.map((I,W)=>v.jsx(je.Th,{children:I.header},W))]})}),v.jsx(je.Tbody,{ref:O,onDragOver:k,onDragLeave:N,children:i.map((I,W)=>{const Z=r(I);return v.jsxs(je.Tr,{id:Z.toString(),draggable:!0,onDrop:A,onDragEnd:M,onDragStart:E,children:[v.jsx(je.Td,{draggableRow:{id:`draggable-row-${Z.toString()}`}}),h&&v.jsx(je.Td,{select:{rowIndex:W,variant:"checkbox",onSelect:(ne,re)=>{re?l(I):s(I)},isSelected:o(I)}}),n.map(ne=>v.jsx(je.Td,{children:ne.cell(I,D)},ne.header))]},Z)})})]})}function tpe(e){const[t,n]=yr(),[r]=x.useState(()=>e.keyFn),[i]=x.useState(()=>e.saveFn),[a]=x.useState(()=>e.loadFn),[o,l]=x.useState(()=>{try{const d=localStorage.getItem(e.id);if(typeof d=="string"){const h=JSON.parse(d);if(Array.isArray(h)&&h.every(g=>typeof g=="object")&&h.every(g=>"key"in g&&"enabled"in g))return h}}catch{}}),s=x.useMemo(()=>o?e.items.map(d=>{if(a){const h=o.find(g=>g.key===r(d));h&&h.state&&a(d,h.state)}return d}).sort((d,h)=>{const g=o.findIndex(y=>y.key===r(d)),p=o.findIndex(y=>y.key===r(h));return g===-1&&p===-1?0:g===-1?1:p===-1?-1:g-p}):e.items,[o,r,a,e.items]),u=x.useMemo(()=>o?s.filter(d=>{const h=o.find(g=>g.key===r(d));return h?h.enabled:!0}):s,[s,o,r]),c=x.useCallback((d,h)=>{const g=d.map(p=>({key:r(p),enabled:h.includes(p),state:i?i(p):void 0}));l(g),localStorage.setItem(e.id,JSON.stringify(g))},[r,e.id,i]);return{openManageItems:()=>n(v.jsx(npe,{...e,keyFn:r,items:s,defaultSelectedItems:u,onApplyChanges:c})),managedItems:u}}function npe(e){const{t}=yt(),{title:n,description:r,columns:i,onApplyChanges:a}=e,[o]=x.useState(()=>e.keyFn),[l,s]=yr(),u=()=>s(void 0),[c,f]=x.useState(()=>e.items),{selectedItems:d,isSelected:h,selectItem:g,unselectItem:p,allSelected:y,selectAll:_,unselectAll:b}=Dv(c,o,e.defaultSelectedItems),S=()=>{a(c,d),s(void 0)};return v.jsxs(C.Modal,{title:n,"aria-label":n,description:v.jsx("div",{style:{marginBottom:16},children:r}),variant:e.variant??C.ModalVariant.medium,isOpen:!0,onClose:u,actions:[v.jsx(C.Button,{variant:"primary",onClick:S,children:t`Apply`},"apply"),v.jsx(C.Button,{variant:"link",onClick:u,children:t`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.Divider,{}),v.jsx(C.ModalBoxBody,{style:{padding:0},children:v.jsx(epe,{keyFn:o,items:c,setItems:f,columns:i,isSelected:h,selectItem:g,unselectItem:p,allSelected:y,selectAll:_,unselectAll:b,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),v.jsx(C.Divider,{})]})}function rpe(e,t,n,r,i){const{t:a}=yt(),o=x.useMemo(()=>{const f=[{header:a("Column Name"),cell:d=>d.header}];return n||f.push({header:a("Table View"),cell:(d,h)=>v.jsx(zi,{value:d.table??"",onSelect:g=>{switch(g){case"":h({...d,table:void 0});break;case Ri.Description:case Ri.Expanded:case Ri.Hidden:h({...d,table:g});break}},placeholder:a("Column"),options:[{value:"",label:a("Column"),description:a("Show the column in the table.")},{value:Ri.Description,label:a("Description"),description:a("Show the column when the item is expanded as a full width description.")},{value:Ri.Expanded,label:a("Expanded"),description:a("Show the column when the item is expanded as a detail.")},{value:Ri.Hidden,label:a("Hidden"),description:a("Hide the column.")}]})}),r||f.push({header:a("List View"),cell:(d,h)=>v.jsx(zi,{value:d.list??"",onSelect:g=>{switch(g){case"":h({...d,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":h({...d,list:g});break}},options:[{value:"name",label:a("Name"),description:a("Show the column as the name of the list item.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the list.")},{value:"description",label:a("Description"),description:a("Show the column as the list item description.")},{value:"",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"primary",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"secondary",label:a("Right side"),description:a("Show the column on the right side of the list.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the list.")}],placeholder:a("Left side")})}),i||f.push({header:a("Card View"),cell:(d,h)=>v.jsx(zi,{value:d.card??"",onSelect:g=>{switch(g){case"":h({...d,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":h({...d,card:g});break}},placeholder:a("Detail"),options:[{value:"name",label:a("Name"),description:a("Show the column as the name on the card.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the card.")},{value:"description",label:a("Description"),description:a("Show the column as the card description.")},{value:"",label:a("Detail"),description:a("Show the column one of the details on the card.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the card.")}]})}),f},[i,r,n,a]),l=x.useCallback((f,d)=>{typeof d=="object"&&d!==null&&("table"in d&&typeof d.table=="string"?f.table=d.table:f.table=void 0,"list"in d&&typeof d.list=="string"?f.list=d.list:f.list=void 0,"card"in d&&typeof d.card=="string"?f.card=d.card:f.card=void 0)},[]),s=x.useCallback(f=>{const{table:d,list:h,card:g}=f;return{table:d,list:h,card:g}},[]),{openManageItems:u,managedItems:c}=tpe({id:e,title:a("Manage Columns"),description:a("Manage the order, placement, and format of columns."),items:t,keyFn:f=>f.id??f.header,columns:o,loadFn:l,saveFn:s,hideSelection:!0});return{openColumnManagement:u,managedColumns:c}}function ipe(e){const{setPage:t,setPerPage:n}=e,r=x.useCallback((o,l)=>t(l),[t]),i=x.useCallback((o,l)=>n(l),[n]),a=!un("md");return v.jsx(C.Pagination,{variant:C.PaginationVariant.bottom,itemCount:e.itemCount,page:e.page,perPage:e.perPage,onSetPage:r,onPerPageSelect:i,style:{...e.style,boxShadow:"none",zIndex:400,paddingTop:a?4:6,paddingBottom:a?4:6,borderTop:e.topBorder?"thin solid var(--pf-global--BorderColor--100)":void 0},className:"dark-2"})}const Qwe="";function ape(e){const t=e.size??350,n=x.useRef(null),[r,i]=x.useState("1fr"),a=x.useCallback(l=>{let s=Math.min(e.maxColumns??12,Math.max(Math.floor(l/t),1));s<1&&(s=1),i(()=>new Array(s).fill("1fr").join(" "))},[e.maxColumns,t]);ro(n,l=>a(l.contentRect.width)),x.useLayoutEffect(()=>{var l;a(((l=n.current)==null?void 0:l.clientWidth)??0)},[a]);const o=16;return v.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:o},children:e.children})}const ope=De.small`
381
381
  opacity: 0.7;
382
382
  `,lpe=De.div`
383
383
  display: flex;
@@ -420,7 +420,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
420
420
  `,xpe=De.div`
421
421
  padding-top: 5px;
422
422
  padding-bottom: 5px;
423
- `;function $s(e){const{id:t,toolbarActions:n,filterState:r,error:i,itemCount:a}=e,{openColumnManagement:o,managedColumns:l}=rpe((t??"")+"-columns",e.tableColumns,e.disableTableView,e.disableListView,e.disableCardView),s=e.showSelect||(n==null?void 0:n.find(y=>"selection"in y&&y.selection===ot.Multiple))!==void 0,u=!e.disableTableView,c=!e.disableListView,[f,d]=x.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return at.Table;case"list":return at.List;case"cards":return at.Cards}return e.defaultTableView??(u?at.Table:c?at.List:at.Cards)}),h=x.useCallback(y=>{d(y),e.id&&localStorage.setItem(e.id+"-view",y)},[e.id]),g=Uge(e.tableColumns);if(i)return v.jsx(bpe,{children:v.jsx(Gge,{titleProp:e.errorStateTitle,message:i.message})});if(a===0&&Object.keys(r??{}).length===0)return v.jsx(C.PageSection,{style:{backgroundColor:"transparent"},children:v.jsx(Kge,{title:e.emptyStateTitle,description:e.emptyStateDescription,button:e.emptyStateButtonClick&&v.jsx(C.Button,{variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&v.jsx(C.Flex,{justifyContent:{default:"justifyContentCenter"},children:v.jsx(Va,{actions:e.emptyStateActions})}),variant:C.EmptyStateVariant.large})});if(a===void 0)return v.jsx(C.PageSection,{isFilled:!0,variant:"light",children:v.jsx(C.Bullseye,{children:v.jsx(C.Spinner,{})})});let p=e.topContent;return p&&(p=v.jsx(C.PageSection,{variant:"light",padding:{default:"noPadding"},style:{borderBottom:"thin solid var(--pf-global--BorderColor--100)"},children:e.topContent})),v.jsxs(v.Fragment,{children:[v.jsx(Rk,{...e,openColumnModal:e.id?o:void 0,showSelect:s,viewType:f,setViewType:h,bottomBorder:!0,sortOptions:g}),f===at.Table&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(ta,{children:[p,v.jsx(Vk,{...e,tableColumns:l})]}):v.jsxs(v.Fragment,{children:[p,v.jsx(Vk,{...e,tableColumns:l})]})}),f===at.List&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(ta,{children:[p,v.jsx(C.PageSection,{padding:{default:"noPadding"},children:v.jsx(zk,{...e,showSelect:s,tableColumns:l})})]}):v.jsxs(v.Fragment,{children:[p,v.jsx(ta,{children:v.jsx(C.PageSection,{padding:{default:"noPadding"},children:v.jsx(zk,{...e,showSelect:s,tableColumns:l})})})]})}),f===at.Cards&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(ta,{children:[p,v.jsx(Fv,{...e,showSelect:s,tableColumns:l})]}):v.jsxs(v.Fragment,{children:[p,v.jsx(ta,{children:v.jsx(Fv,{...e,showSelect:s,tableColumns:l})})]})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&v.jsx(ipe,{...e,topBorder:!0})]})}function Vk(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:i,isSelectMultiple:a,keyFn:o,rowActions:l,toolbarActions:s,itemCount:u,clearAllFilters:c,onSelect:f,unselectAll:d,maxSelections:h}=e,g=hv(e.tableColumns),p=rk(e.tableColumns),y=ik(e.tableColumns),_=x.useMemo(()=>{const M=[];if(p.length)for(const I of p)"value"in I?M.push(D=>{var X;const W=(X=I.value)==null?void 0:X.call(I,D);if(W)return v.jsx("div",{children:W},I.id??I.header)}):M.push(D=>I.cell(D));return y.length&&M.push(I=>v.jsx(ak,{item:I,columns:y,disablePadding:!0,numberOfColumns:"multiple"},o(I))),e.expandedRow&&M.push(e.expandedRow),M.length===0?void 0:M.length===1?M[0]:I=>v.jsx(C.Stack,{hasGutter:!0,style:{gap:12},children:M.map(D=>D(I))})},[p,y,o,e.expandedRow]),[b]=gt(),S=e.showSelect||(s==null?void 0:s.find(M=>"selection"in M&&M.selection===ot.Multiple))!==void 0,O=x.useRef(null),[w,A]=x.useState({left:0,right:0,top:0,bottom:0}),T=x.useCallback(M=>{M&&A({top:M.scrollTop,bottom:M.scrollHeight-M.clientHeight-M.scrollTop,left:M.scrollLeft,right:M.scrollWidth-M.clientWidth-M.scrollLeft})},[]),k=x.useCallback(M=>T(M.currentTarget),[T]);ro(O,()=>T(O.current)),x.useEffect(()=>T(O.current),[T]);const j=Ga();let N=v.jsxs(v.Fragment,{children:[v.jsxs(je.TableComposable,{"aria-label":"Simple table",variant:e.compact||j.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[u===void 0?v.jsx(je.Thead,{children:v.jsx(je.Tr,{children:v.jsx(je.Th,{children:v.jsx(C.Skeleton,{})})})}):v.jsx(Spe,{...e,showSelect:S,scrollLeft:w.left>0,scrollRight:w.right>1,tableColumns:g,onSelect:f,expandedRow:_}),v.jsx(je.Tbody,{children:u===void 0?new Array(10).fill(0).map((M,E)=>v.jsx(je.Tr,{children:v.jsx(je.Td,{children:v.jsx(_pe,{children:v.jsx(C.Skeleton,{height:"27px"})})})},E)):t===void 0?new Array(Math.min(10,u)).fill(0).map((M,E)=>v.jsxs(je.Tr,{children:[S&&v.jsx(je.Td,{}),v.jsx(je.Td,{colSpan:g.length,children:v.jsx(xpe,{children:v.jsx(C.Skeleton,{height:"27px"})})})]},E)):t==null?void 0:t.map((M,E)=>v.jsx(wpe,{columns:g,item:M,isItemSelected:i==null?void 0:i(M),isSelectMultiple:a,selectItem:n,unselectItem:r,rowActions:l,rowIndex:E,showSelect:S,scrollLeft:w.left>0,scrollRight:w.right>1,unselectAll:d,onSelect:f,expandedRow:_,isLastRow:E===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:h,selectedItems:e.selectedItems},o?o(M):E))})]}),u===0&&v.jsxs(C.EmptyState,{style:{paddingTop:48},children:[v.jsx(C.EmptyStateIcon,{icon:Ce.SearchIcon}),v.jsx(C.Title,{headingLevel:"h2",size:"lg",children:b.noResultsFound}),v.jsx(C.EmptyStateBody,{children:b.noResultsMatchCriteria}),c&&v.jsx(C.EmptyStateSecondaryActions,{children:v.jsx(C.Button,{variant:"primary",onClick:c,children:b.clearAllFilters})})]})]});return e.scrollTopContent||(N=v.jsx(ype,{className:"pf-c-scroll-inner-wrapper",ref:O,onScroll:k,style:{backgroundColor:"var(--pf-global--BackgroundColor--100)"},children:N})),N}function Spe(e){const{tableColumns:t,rowActions:n,sort:r,setSort:i,sortDirection:a,setSortDirection:o,showSelect:l,onSelect:s,expandedRow:u}=e,c=x.useCallback((f,d)=>{if(d.sort)return{onSort:(h,g,p)=>{d.sort&&(i==null||i(d.sort),o==null||o(p))},sortBy:{index:d.sort===r?f:void 0,direction:d.sort===r?a:void 0,defaultDirection:d.defaultSortDirection},columnIndex:f}},[i,o,r,a]);return v.jsx(je.Thead,{children:v.jsxs(je.Tr,{className:"light dark-2",children:[u&&v.jsx(je.Th,{style:{padding:0,backgroundColor:"inherit"}}),(l||s)&&v.jsx(je.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,style:{backgroundColor:"inherit"},"data-cy":"selections-column-header",children:" "}),t.map((f,d)=>v.jsx(je.Th,{sort:c(d,f),modifier:"nowrap",style:{minWidth:f.minWidth===0?"1%":f.minWidth!==void 0?f.minWidth:void 0,maxWidth:f.maxWidth!==void 0?f.maxWidth:void 0,backgroundColor:"inherit"},"data-cy":jn(f.header+"-column-header"),children:f.header},f.header)),n!==void 0&&v.jsx(je.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0,backgroundColor:"inherit",zIndex:302},className:e.scrollRight?"pf-m-border-left":void 0,"data-cy":"action-column-header",children:" "})]})})}function wpe(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:i,isItemSelected:a,isSelectMultiple:o,item:l,rowActions:s,rowIndex:u,showSelect:c,onSelect:f,expandedRow:d,disableLastRowBorder:h,maxSelections:g,selectedItems:p}=e,[y,_]=x.useState(!1),b=Ga(),S=d==null?void 0:d(l),O=x.useCallback(w=>(p==null?void 0:p.length)===g?!(p!=null&&p.includes(w)):!1,[g,p]);return v.jsxs(v.Fragment,{children:[v.jsxs(je.Tr,{isRowSelected:y,style:{boxShadow:"unset",borderBottom:y||e.isLastRow&&h?"unset":void 0},"data-cy":"id"in l&&(typeof l.id=="string"||typeof l.id=="number")?`row-id-${l.id.toString()}`:`row-${u}`,children:[d&&v.jsx(je.Td,{expand:S?{rowIndex:u,isExpanded:y,onToggle:()=>_(w=>!w)}:void 0,style:{paddingLeft:S?8:4},"data-cy":"expand-column-cell"}),c&&v.jsx(je.Th,{select:a!==void 0?{onSelect:(w,A)=>{A?r==null||r(l):i==null||i(l)},isSelected:a,isDisabled:g&&p?O(l):!1}:void 0,isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell"}),f&&v.jsx(je.Td,{select:{rowIndex:u,onSelect:()=>{o||n==null||n(),r==null||r(l),f==null||f(l)},isSelected:a??!1,variant:o?"checkbox":"radio",disable:g&&p?O(l):!1},isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell"}),v.jsx(Ope,{columns:t,item:l,rowActions:s,scrollLeft:e.scrollLeft,scrollRight:e.scrollRight})]}),d&&y&&S&&v.jsxs(je.Tr,{isExpanded:y,style:{boxShadow:"unset"},children:[v.jsx(je.Td,{}),c&&v.jsx(je.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),f&&v.jsx(je.Td,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),v.jsx(je.Td,{colSpan:t.length,style:{paddingBottom:b.tableLayout==="compact"?12:24,paddingTop:0},children:v.jsx(je.CollapseColumn,{children:S})}),s!==void 0&&s.length>0&&v.jsx(je.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0},className:e.scrollRight?"pf-m-border-left":void 0,children:" "})]})]})}function Ope(e){const{columns:t,item:n,rowActions:r}=e,[i,a]=x.useState(!1);return v.jsxs(x.Fragment,{children:[t.map(o=>v.jsx(je.Td,{dataLabel:o.header,modifier:"nowrap",style:{width:o.minWidth===0?"0%":void 0},"data-cy":jn(o.header+"-column-cell"),children:v.jsx(Wt,{item:n,column:o})},o.header)),r!==void 0&&r.length>0&&v.jsx(je.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:8,zIndex:i?400:void 0},className:e.scrollRight?"pf-m-border-left":void 0,"data-cy":"actions-column-cell",children:v.jsx(Va,{actions:r,selectedItem:n,position:C.DropdownPosition.right,iconOnly:!0,onOpen:a})})]})}function Cpe(e){const{title:t,items:n,keyFn:r,actionColumns:i,actionFn:a,onComplete:o,onClose:l,processingText:s,isDanger:u}=e,[c]=gt(),[f,d]=x.useState(!0),[h,g]=x.useState(!1),[p,y]=x.useState(0),[_,b]=x.useState(""),[S,O]=x.useState(),[w]=x.useState(()=>new AbortController),[A,T]=yr(),k=x.useCallback(()=>{g(!0),w.abort(),d(!1),O(E=>{const I={...E};for(const D of n){const W=r(D);I[W]===void 0&&(I[W]="Cancelled")}return I})},[w,n,r]),j=x.useCallback(()=>{T(void 0),l==null||l()},[l,T]);x.useEffect(()=>{async function E(){const I=S0e(5);let D=0;const W=[];await Promise.all(n.map(X=>I(async()=>{if(w.signal.aborted)return;const re=r(X);try{await a(X,w.signal),w.signal.aborted||O(ne=>({...ne??{},[re]:null})),W.push(X)}catch(ne){if(!w.signal.aborted){if(ne instanceof Error){const ee=ne.message;O(z=>({...z??{},[re]:ee}))}else O(ee=>({...ee??{},[re]:"Unknown error"}));b(c.errorText)}}finally{w.signal.aborted||y(++D)}}))),w.signal.aborted||d(!1),o==null||o(W)}E()},[w,a,n,r,o,c.errorText]);const N=Is(n),M=mv(i);return v.jsxs(C.Modal,{titleIconVariant:u?"warning":void 0,title:t,"aria-label":t,variant:C.ModalVariant.medium,isOpen:!0,onClose:()=>{k(),j()},actions:f?[v.jsx(C.Button,{variant:"link",onClick:k,children:c.cancelText},"cancel")]:[v.jsx(C.Button,{variant:"secondary",onClick:j,children:c.closeText},"close")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"thin solid var(--pf-global--BorderColor--100)"},children:v.jsx($s,{pageItems:[...N.paged],itemCount:n.length,tableColumns:[...M,{header:"Status",cell:E=>{const I=r(E),D=S==null?void 0:S[I];return D===void 0?v.jsxs("span",{style:{color:Vh},children:[v.jsx(Ce.PendingIcon,{}),"  ",c.pendingText]}):D===null?v.jsxs("span",{style:{color:Wh},children:[v.jsx(Ce.CheckCircleIcon,{}),"  ",c.successText]}):v.jsxs("span",{style:{color:zh},children:[v.jsx(Ce.ExclamationCircleIcon,{}),"  ",S==null?void 0:S[I]]})}}],keyFn:r,compact:!0,errorStateTitle:"",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0,...N},"status")})}),v.jsx(C.ModalBoxBody,{style:{paddingTop:0},children:v.jsx(C.Progress,{value:p/n.length*100,title:w.signal.aborted?c.canceledText:_?c.errorText:f?s??c.processingText:c.successText,size:C.ProgressSize.lg,variant:_||h?C.ProgressVariant.danger:p===n.length?C.ProgressVariant.success:void 0})})]})}function Uk(){const[e,t]=yr(),[n,r]=x.useState();return x.useEffect(()=>{if(n){const i=()=>{var a;r(void 0),(a=n.onClose)==null||a.call(n)};t(v.jsx(Cpe,{...n,onClose:i}))}else t(void 0)},[n,t]),r}function Hk(e,t){if(e==null&&t==null)return 0;if(e==null)return 1;if(t==null)return-1;if(typeof e=="string"){if(typeof t=="string")return Ls(e,t);if(typeof t=="number")return Ls(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return qk(e,t);if(typeof t=="string")return Ls(e.toString(),t)}return 0}function Ls(e,t){return e==null&&t==null?0:e==null?1:t==null||e<t?-1:e>t?1:0}function qk(e,t){return e==null&&t==null?0:e==null?1:t==null||e<t?-1:e>t?1:0}const Ape=De.div`
423
+ `;function $s(e){const{id:t,toolbarActions:n,filterState:r,error:i,itemCount:a}=e,{openColumnManagement:o,managedColumns:l}=rpe((t??"")+"-columns",e.tableColumns,e.disableTableView,e.disableListView,e.disableCardView),s=e.showSelect||(n==null?void 0:n.find(y=>"selection"in y&&y.selection===ot.Multiple))!==void 0,u=!e.disableTableView,c=!e.disableListView,[f,d]=x.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return at.Table;case"list":return at.List;case"cards":return at.Cards}return e.defaultTableView??(u?at.Table:c?at.List:at.Cards)}),h=x.useCallback(y=>{d(y),e.id&&localStorage.setItem(e.id+"-view",y)},[e.id]),g=Uge(e.tableColumns);if(i)return v.jsx(bpe,{children:v.jsx(Gge,{titleProp:e.errorStateTitle,message:i.message})});if(a===0&&Object.keys(r??{}).length===0)return v.jsx(C.PageSection,{style:{backgroundColor:"transparent"},children:v.jsx(Kge,{title:e.emptyStateTitle,description:e.emptyStateDescription,button:e.emptyStateButtonClick&&v.jsx(C.Button,{variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&v.jsx(C.Flex,{justifyContent:{default:"justifyContentCenter"},children:v.jsx(Va,{actions:e.emptyStateActions})}),variant:C.EmptyStateVariant.large})});if(a===void 0)return v.jsx(C.PageSection,{isFilled:!0,variant:"light",children:v.jsx(C.Bullseye,{children:v.jsx(C.Spinner,{})})});let p=e.topContent;return p&&(p=v.jsx(C.PageSection,{variant:"light",padding:{default:"noPadding"},style:{borderBottom:"thin solid var(--pf-global--BorderColor--100)"},children:e.topContent})),v.jsxs(v.Fragment,{children:[v.jsx(Rk,{...e,openColumnModal:e.id?o:void 0,showSelect:s,viewType:f,setViewType:h,bottomBorder:!0,sortOptions:g}),f===at.Table&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(ta,{children:[p,v.jsx(Vk,{...e,tableColumns:l})]}):v.jsxs(v.Fragment,{children:[p,v.jsx(Vk,{...e,tableColumns:l})]})}),f===at.List&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(ta,{children:[p,v.jsx(C.PageSection,{padding:{default:"noPadding"},children:v.jsx(zk,{...e,showSelect:s,tableColumns:l})})]}):v.jsxs(v.Fragment,{children:[p,v.jsx(ta,{children:v.jsx(C.PageSection,{padding:{default:"noPadding"},children:v.jsx(zk,{...e,showSelect:s,tableColumns:l})})})]})}),f===at.Cards&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(ta,{children:[p,v.jsx(Fv,{...e,showSelect:s,tableColumns:l})]}):v.jsxs(v.Fragment,{children:[p,v.jsx(ta,{children:v.jsx(Fv,{...e,showSelect:s,tableColumns:l})})]})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&v.jsx(ipe,{...e,topBorder:!0})]})}function Vk(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:i,isSelectMultiple:a,keyFn:o,rowActions:l,toolbarActions:s,itemCount:u,clearAllFilters:c,onSelect:f,unselectAll:d,maxSelections:h}=e,g=hv(e.tableColumns),p=rk(e.tableColumns),y=ik(e.tableColumns),_=x.useMemo(()=>{const M=[];if(p.length)for(const D of p)"value"in D?M.push(I=>{var Z;const W=(Z=D.value)==null?void 0:Z.call(D,I);if(W)return v.jsx("div",{children:W},D.id??D.header)}):M.push(I=>D.cell(I));return y.length&&M.push(D=>v.jsx(ak,{item:D,columns:y,disablePadding:!0,numberOfColumns:"multiple"},o(D))),e.expandedRow&&M.push(e.expandedRow),M.length===0?void 0:M.length===1?M[0]:D=>v.jsx(C.Stack,{hasGutter:!0,style:{gap:12},children:M.map(I=>I(D))})},[p,y,o,e.expandedRow]),[b]=gt(),S=e.showSelect||(s==null?void 0:s.find(M=>"selection"in M&&M.selection===ot.Multiple))!==void 0,O=x.useRef(null),[w,A]=x.useState({left:0,right:0,top:0,bottom:0}),T=x.useCallback(M=>{M&&A({top:M.scrollTop,bottom:M.scrollHeight-M.clientHeight-M.scrollTop,left:M.scrollLeft,right:M.scrollWidth-M.clientWidth-M.scrollLeft})},[]),k=x.useCallback(M=>T(M.currentTarget),[T]);ro(O,()=>T(O.current)),x.useEffect(()=>T(O.current),[T]);const j=Ga();let N=v.jsxs(v.Fragment,{children:[v.jsxs(je.TableComposable,{"aria-label":"Simple table",variant:e.compact||j.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[u===void 0?v.jsx(je.Thead,{children:v.jsx(je.Tr,{children:v.jsx(je.Th,{children:v.jsx(C.Skeleton,{})})})}):v.jsx(Spe,{...e,showSelect:S,scrollLeft:w.left>0,scrollRight:w.right>1,tableColumns:g,onSelect:f,expandedRow:_}),v.jsx(je.Tbody,{children:u===void 0?new Array(10).fill(0).map((M,E)=>v.jsx(je.Tr,{children:v.jsx(je.Td,{children:v.jsx(_pe,{children:v.jsx(C.Skeleton,{height:"27px"})})})},E)):t===void 0?new Array(Math.min(10,u)).fill(0).map((M,E)=>v.jsxs(je.Tr,{children:[S&&v.jsx(je.Td,{}),v.jsx(je.Td,{colSpan:g.length,children:v.jsx(xpe,{children:v.jsx(C.Skeleton,{height:"27px"})})})]},E)):t==null?void 0:t.map((M,E)=>v.jsx(wpe,{columns:g,item:M,isItemSelected:i==null?void 0:i(M),isSelectMultiple:a,selectItem:n,unselectItem:r,rowActions:l,rowIndex:E,showSelect:S,scrollLeft:w.left>0,scrollRight:w.right>1,unselectAll:d,onSelect:f,expandedRow:_,isLastRow:E===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:h,selectedItems:e.selectedItems},o?o(M):E))})]}),u===0&&v.jsxs(C.EmptyState,{style:{paddingTop:48},children:[v.jsx(C.EmptyStateIcon,{icon:Ce.SearchIcon}),v.jsx(C.Title,{headingLevel:"h2",size:"lg",children:b.noResultsFound}),v.jsx(C.EmptyStateBody,{children:b.noResultsMatchCriteria}),c&&v.jsx(C.EmptyStateSecondaryActions,{children:v.jsx(C.Button,{variant:"primary",onClick:c,children:b.clearAllFilters})})]})]});return e.scrollTopContent||(N=v.jsx(ype,{className:"pf-c-scroll-inner-wrapper",ref:O,onScroll:k,style:{backgroundColor:"var(--pf-global--BackgroundColor--100)"},children:N})),N}function Spe(e){const{tableColumns:t,rowActions:n,sort:r,setSort:i,sortDirection:a,setSortDirection:o,showSelect:l,onSelect:s,expandedRow:u}=e,c=x.useCallback((f,d)=>{if(d.sort)return{onSort:(h,g,p)=>{d.sort&&(i==null||i(d.sort),o==null||o(p))},sortBy:{index:d.sort===r?f:void 0,direction:d.sort===r?a:void 0,defaultDirection:d.defaultSortDirection},columnIndex:f}},[i,o,r,a]);return v.jsx(je.Thead,{children:v.jsxs(je.Tr,{className:"light dark-2",children:[u&&v.jsx(je.Th,{style:{padding:0,backgroundColor:"inherit"}}),(l||s)&&v.jsx(je.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,style:{backgroundColor:"inherit"},"data-cy":"selections-column-header",children:" "}),t.map((f,d)=>v.jsx(je.Th,{sort:c(d,f),modifier:"nowrap",style:{minWidth:f.minWidth===0?"1%":f.minWidth!==void 0?f.minWidth:void 0,maxWidth:f.maxWidth!==void 0?f.maxWidth:void 0,backgroundColor:"inherit"},"data-cy":jn(f.header+"-column-header"),children:f.header},f.header)),n!==void 0&&v.jsx(je.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0,backgroundColor:"inherit",zIndex:302},className:e.scrollRight?"pf-m-border-left":void 0,"data-cy":"action-column-header",children:" "})]})})}function wpe(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:i,isItemSelected:a,isSelectMultiple:o,item:l,rowActions:s,rowIndex:u,showSelect:c,onSelect:f,expandedRow:d,disableLastRowBorder:h,maxSelections:g,selectedItems:p}=e,[y,_]=x.useState(!1),b=Ga(),S=d==null?void 0:d(l),O=x.useCallback(w=>(p==null?void 0:p.length)===g?!(p!=null&&p.includes(w)):!1,[g,p]);return v.jsxs(v.Fragment,{children:[v.jsxs(je.Tr,{isRowSelected:y,style:{boxShadow:"unset",borderBottom:y||e.isLastRow&&h?"unset":void 0},"data-cy":"id"in l&&(typeof l.id=="string"||typeof l.id=="number")?`row-id-${l.id.toString()}`:`row-${u}`,children:[d&&v.jsx(je.Td,{expand:S?{rowIndex:u,isExpanded:y,onToggle:()=>_(w=>!w)}:void 0,style:{paddingLeft:S?8:4},"data-cy":"expand-column-cell"}),c&&v.jsx(je.Th,{select:a!==void 0?{onSelect:(w,A)=>{A?r==null||r(l):i==null||i(l)},isSelected:a,isDisabled:g&&p?O(l):!1}:void 0,isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell"}),f&&v.jsx(je.Td,{select:{rowIndex:u,onSelect:()=>{o||n==null||n(),r==null||r(l),f==null||f(l)},isSelected:a??!1,variant:o?"checkbox":"radio",disable:g&&p?O(l):!1},isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell"}),v.jsx(Ope,{columns:t,item:l,rowActions:s,scrollLeft:e.scrollLeft,scrollRight:e.scrollRight})]}),d&&y&&S&&v.jsxs(je.Tr,{isExpanded:y,style:{boxShadow:"unset"},children:[v.jsx(je.Td,{}),c&&v.jsx(je.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),f&&v.jsx(je.Td,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),v.jsx(je.Td,{colSpan:t.length,style:{paddingBottom:b.tableLayout==="compact"?12:24,paddingTop:0},children:v.jsx(je.CollapseColumn,{children:S})}),s!==void 0&&s.length>0&&v.jsx(je.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0},className:e.scrollRight?"pf-m-border-left":void 0,children:" "})]})]})}function Ope(e){const{columns:t,item:n,rowActions:r}=e,[i,a]=x.useState(!1);return v.jsxs(x.Fragment,{children:[t.map(o=>v.jsx(je.Td,{dataLabel:o.header,modifier:"nowrap",style:{width:o.minWidth===0?"0%":void 0},"data-cy":jn(o.header+"-column-cell"),children:v.jsx(Wt,{item:n,column:o})},o.header)),r!==void 0&&r.length>0&&v.jsx(je.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:8,zIndex:i?400:void 0},className:e.scrollRight?"pf-m-border-left":void 0,"data-cy":"actions-column-cell",children:v.jsx(Va,{actions:r,selectedItem:n,position:C.DropdownPosition.right,iconOnly:!0,onOpen:a})})]})}function Cpe(e){const{title:t,items:n,keyFn:r,actionColumns:i,actionFn:a,onComplete:o,onClose:l,processingText:s,isDanger:u}=e,[c]=gt(),[f,d]=x.useState(!0),[h,g]=x.useState(!1),[p,y]=x.useState(0),[_,b]=x.useState(""),[S,O]=x.useState(),[w]=x.useState(()=>new AbortController),[A,T]=yr(),k=x.useCallback(()=>{g(!0),w.abort(),d(!1),O(E=>{const D={...E};for(const I of n){const W=r(I);D[W]===void 0&&(D[W]="Cancelled")}return D})},[w,n,r]),j=x.useCallback(()=>{T(void 0),l==null||l()},[l,T]);x.useEffect(()=>{async function E(){const D=S0e(5);let I=0;const W=[];await Promise.all(n.map(Z=>D(async()=>{if(w.signal.aborted)return;const ne=r(Z);try{await a(Z,w.signal),w.signal.aborted||O(re=>({...re??{},[ne]:null})),W.push(Z)}catch(re){if(!w.signal.aborted){if(re instanceof Error){const J=re.message;O(z=>({...z??{},[ne]:J}))}else O(J=>({...J??{},[ne]:"Unknown error"}));b(c.errorText)}}finally{w.signal.aborted||y(++I)}}))),w.signal.aborted||d(!1),o==null||o(W)}E()},[w,a,n,r,o,c.errorText]);const N=Is(n),M=mv(i);return v.jsxs(C.Modal,{titleIconVariant:u?"warning":void 0,title:t,"aria-label":t,variant:C.ModalVariant.medium,isOpen:!0,onClose:()=>{k(),j()},actions:f?[v.jsx(C.Button,{variant:"link",onClick:k,children:c.cancelText},"cancel")]:[v.jsx(C.Button,{variant:"secondary",onClick:j,children:c.closeText},"close")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"thin solid var(--pf-global--BorderColor--100)"},children:v.jsx($s,{pageItems:[...N.paged],itemCount:n.length,tableColumns:[...M,{header:"Status",cell:E=>{const D=r(E),I=S==null?void 0:S[D];return I===void 0?v.jsxs("span",{style:{color:Vh},children:[v.jsx(Ce.PendingIcon,{}),"  ",c.pendingText]}):I===null?v.jsxs("span",{style:{color:Wh},children:[v.jsx(Ce.CheckCircleIcon,{}),"  ",c.successText]}):v.jsxs("span",{style:{color:zh},children:[v.jsx(Ce.ExclamationCircleIcon,{}),"  ",S==null?void 0:S[D]]})}}],keyFn:r,compact:!0,errorStateTitle:"",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0,...N},"status")})}),v.jsx(C.ModalBoxBody,{style:{paddingTop:0},children:v.jsx(C.Progress,{value:p/n.length*100,title:w.signal.aborted?c.canceledText:_?c.errorText:f?s??c.processingText:c.successText,size:C.ProgressSize.lg,variant:_||h?C.ProgressVariant.danger:p===n.length?C.ProgressVariant.success:void 0})})]})}function Uk(){const[e,t]=yr(),[n,r]=x.useState();return x.useEffect(()=>{if(n){const i=()=>{var a;r(void 0),(a=n.onClose)==null||a.call(n)};t(v.jsx(Cpe,{...n,onClose:i}))}else t(void 0)},[n,t]),r}function Hk(e,t){if(e==null&&t==null)return 0;if(e==null)return 1;if(t==null)return-1;if(typeof e=="string"){if(typeof t=="string")return Ls(e,t);if(typeof t=="number")return Ls(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return qk(e,t);if(typeof t=="string")return Ls(e.toString(),t)}return 0}function Ls(e,t){return e==null&&t==null?0:e==null?1:t==null||e<t?-1:e>t?1:0}function qk(e,t){return e==null&&t==null?0:e==null?1:t==null||e<t?-1:e>t?1:0}const Ape=De.div`
424
424
  display: flex;
425
425
  flex-direction: column;
426
426
  max-height: 560px;
@@ -431,11 +431,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
431
431
  height: 64px;
432
432
  display: flex;
433
433
  align-items: center;
434
- `;function kpe(e){const{title:t,items:n,keyFn:r,prompt:i,alertPrompts:a,confirmationColumns:o,isItemNonActionable:l,onConfirm:s,onClose:u,confirmText:c,actionButtonText:f,isDanger:d}=e,[h,g]=yr(),[p]=gt(),y=x.useCallback(()=>{g(void 0),u==null||u()},[u,g]),_=x.useMemo(()=>l&&n.some(l)?n.sort((k,j)=>Ls(l(k),l(j))):n,[n,l]),b=Is(_),[S,O]=x.useState(!c),w=x.useMemo(()=>l&&n.some(l)?[{header:"",cell:k=>l(k)?v.jsx(C.Tooltip,{content:l(k),trigger:l(k)?void 0:"manual",children:v.jsx(C.Icon,{status:"warning",children:v.jsx(Ce.ExclamationTriangleIcon,{})})}):null},...o]:o,[o,l,n]),A=x.useMemo(()=>l?n.filter(k=>!l(k)):n,[l,n]),T=mv(w);return v.jsx(C.Modal,{titleIconVariant:d?"warning":void 0,title:t,"aria-label":t,description:i,variant:C.ModalVariant.medium,isOpen:!0,onClose:y,actions:[v.jsx(C.Button,{variant:d?"danger":"primary",onClick:()=>{y(),s()},isAriaDisabled:!S,children:f},"submit"),v.jsx(C.Button,{variant:"link",onClick:u,children:p.cancelText},"cancel")],hasNoBodyWrapper:!0,children:n.length>0&&v.jsxs(C.ModalBoxBody,{style:{paddingLeft:0,paddingRight:0},children:[v.jsxs(Ape,{children:[a&&a.length>0&&a.map((k,j)=>v.jsx(C.Alert,{isInline:!0,title:k,variant:"warning"},j)),v.jsx($s,{pageItems:b.paged,itemCount:n.length,tableColumns:T,keyFn:r,compact:!0,errorStateTitle:"Error",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0,...b},"items")]}),c&&A.length>0&&v.jsx(Tpe,{children:v.jsx(C.Checkbox,{id:"confirm",label:c,isChecked:S,onChange:O})})]})})}function Epe(){const[e,t]=yr(),[n,r]=x.useState();return x.useEffect(()=>{if(n){const i=()=>{var a;r(void 0),(a=n.onClose)==null||a.call(n)};t(v.jsx(kpe,{...n,onClose:i}))}else t(void 0)},[n,t]),r}function Ppe(){const e=Epe(),t=Uk();return x.useCallback(n=>{const r=Object.assign({},n);return n.isItemNonActionable&&n.isItemNonActionable!==void 0&&(r.items=n.items.filter(i=>n.isItemNonActionable!==void 0&&!n.isItemNonActionable(i))),e({...n,onConfirm:()=>t(r)})},[t,e])}const eOe="";function Fs(e){let t="collapsed";return e.open&&(t+=" expanded"),v.jsx("div",{className:t,children:e.children})}function jpe(e){const{title:t,description:n,view:r,tableColumns:i,toolbarFilters:a,confirmText:o,cancelText:l,onSelect:s,defaultSort:u,maxSelections:c,allowZeroSelections:f}=e,[d,h]=yr(),g=x.useCallback(()=>h(void 0),[h]),[p]=gt();return v.jsxs(C.Modal,{title:t,"aria-label":t,description:n,isOpen:!0,onClose:g,variant:C.ModalVariant.medium,tabIndex:0,actions:[v.jsx(C.Button,{variant:"primary",id:"confirm",onClick:()=>{g(),s(r.selectedItems)},isAriaDisabled:r.selectedItems.length===0&&!f,children:o??p.confirmText},"confirm"),v.jsx(C.Button,{variant:"link",onClick:g,children:l??p.cancelText},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{style:{fontWeight:"bold"},children:p.selectedText}),r.selectedItems.length>0?v.jsx(C.LabelGroup,{children:r.selectedItems.map((y,_)=>i&&i.length>0?v.jsx(C.Label,{onClose:()=>r.unselectItem(y),children:v.jsx(Wt,{item:y,column:i.find(b=>b.card==="name"||b.list==="name")??i[0]})},_):v.jsx(v.Fragment,{}))}):v.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:p.noneSelectedText})]})}),v.jsx(Fs,{open:r.itemCount===void 0,children:v.jsx(C.Skeleton,{height:"80px"})}),v.jsx(Fs,{open:r.itemCount!==void 0,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:v.jsx($s,{tableColumns:i,toolbarFilters:a,...r,emptyStateTitle:e.emptyStateTitle??p.noItemsFound,errorStateTitle:e.errorStateTitle??p.errorText,showSelect:!0,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0,sort:u,maxSelections:c})})})]})}function Mpe(e){const{view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:a,selected:o,isMultiple:l}=e,[s,u]=x.useState(""),[c,f]=x.useState(),d=x.useCallback((p,y)=>{u(y??""),f(()=>p)},[]),[h,g]=yr();return x.useEffect(()=>{c!==void 0?g(v.jsx(Gk,{title:s,open:!0,isMultiple:l,setOpen:()=>f(void 0),onSelect:c,view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:a,selected:o,keyFn:t.keyFn})):(g(void 0),t.unselectAll())},[a,i,c,o,g,n,s,r,t,l]),d}function Gk(e){const{title:t,open:n,isMultiple:r=!1,setOpen:i,onSelect:a,view:o,tableColumns:l,toolbarFilters:s,confirm:u,cancel:c,selected:f}=e,d=()=>i(!1),{t:h}=yt();return v.jsxs(C.Modal,{title:t,"aria-label":t,isOpen:n,onClose:d,variant:C.ModalVariant.medium,tabIndex:0,actions:[v.jsx(C.Button,{variant:"primary",onClick:()=>{!r&&o.selectedItems.length>0?a(o.selectedItems[0]):r&&a(o.selectedItems),d()},isAriaDisabled:o.selectedItems.length===0,children:u},"confirm"),v.jsx(C.Button,{variant:"link",onClick:d,children:c},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{style:{fontWeight:"bold"},children:f}),o.selectedItems.length>0?v.jsx(C.ChipGroup,{children:o.selectedItems.map((g,p)=>l&&l.length>0?v.jsx(C.Chip,{onClick:()=>o.unselectItem(g),children:v.jsx(Wt,{item:g,column:l.find(y=>y.card==="name"||y.list==="name")??l[0]})},p):v.jsx(v.Fragment,{}))}):v.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:h`None - Please make a selection below.`})]})}),v.jsx(Fs,{open:o.itemCount===void 0,children:v.jsx(C.Skeleton,{height:"80px"})}),v.jsx(Fs,{open:o.itemCount!==void 0,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:v.jsx($s,{tableColumns:l,toolbarFilters:s,emptyStateTitle:"No organizations found",errorStateTitle:"Error loading organizations",...o,isSelectMultiple:r,onSelect:()=>null,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})]})}function Dpe(e){const{onSelect:t,value:n}=e,r=x.useCallback((s,u)=>{var c;t(s,(c=e.options.find(f=>f.label===u.toString()))==null?void 0:c.value)},[t,e.options]),{options:i}=e;i.sort((s,u)=>(s.group??"")<(u.group??"")?-1:(s.group??"")>(u.group??"")?1:s.label<u.label?-1:s.label>u.label?1:0);const a=i.reduce((s,u)=>{const c=u.group??"";let f=s[c];return f||(f=[],s[c]=f),f.push(u),s},{}),o=Object.keys(a).length>1||Object.keys(a).length===1&&Object.keys(a)[0]!=="",l=e.options.find(s=>s.value===n);return v.jsx(Ha,{...e,value:l==null?void 0:l.label,onSelect:r,isGrouped:o,children:o?Object.keys(a).map(s=>v.jsx(C.SelectGroup,{label:s,children:a[s].map(u=>{const c=jn(u);return v.jsx(C.SelectOption,{value:u.label,label:u.label,description:u.description,"data-cy":c,children:u.label},u.label)})},s)):i.map(s=>{const u=jn(s);return v.jsx(C.SelectOption,{value:s.label,label:s.label,description:s.description,"data-cy":u,children:s.label},s.label)})})}function Yk(e){const[t,n]=x.useState(!1),{helperTextInvalid:r,...i}=e;return v.jsx(lu,{...e,children:v.jsxs(C.InputGroup,{children:[v.jsx(C.TextArea,{...i,id:e.id,label:void 0,"aria-describedby":e.id?`${e.id}-form-group`:void 0,validated:e.helperTextInvalid?"error":void 0}),e.type==="password"&&v.jsx(C.Button,{variant:"control",onClick:()=>n(!t),isDisabled:e.isDisabled||e.isReadOnly,children:t?v.jsx(Ce.EyeIcon,{}):v.jsx(Ce.EyeSlashIcon,{})})]})})}function Ipe(e){const[t,n]=x.useState(!1),{children:r,isReadOnly:i,placeholder:a,...o}=e,l=e.id?e.id:typeof e.label=="string"?e.label.toLowerCase().split(" ").join("-"):void 0;return v.jsx(lu,{...o,id:l,children:v.jsxs(C.InputGroup,{children:[v.jsx(C.TextInput,{autoComplete:"off",placeholder:a,onChange:e.onChange,id:l,onBlur:e.onBlur,label:void 0,value:e.value,"aria-describedby":l?`${l}-form-group`:void 0,validated:e.helperTextInvalid?"error":void 0,type:e.type==="password"?t?"text":"password":e.type,readOnlyVariant:i?"default":void 0,isDisabled:e.isDisabled,min:e.min}),e.type==="password"&&v.jsx(C.Button,{variant:"control",onClick:()=>n(!t),isDisabled:e.isDisabled||e.isReadOnly,children:t?v.jsx(Ce.EyeIcon,{}):v.jsx(Ce.EyeSlashIcon,{})}),e.children]})})}var Ns=e=>e.type==="checkbox",Uo=e=>e instanceof Date,an=e=>e==null;const Kk=e=>typeof e=="object";var Mt=e=>!an(e)&&!Array.isArray(e)&&Kk(e)&&!Uo(e),Zk=e=>Mt(e)&&e.target?Ns(e.target)?e.target.checked:e.target.value:e,$pe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Xk=(e,t)=>e.has($pe(t)),Lpe=e=>{const t=e.constructor&&e.constructor.prototype;return Mt(t)&&t.hasOwnProperty("isPrototypeOf")},Nv=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hr(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Nv&&(e instanceof Blob||e instanceof FileList))&&(n||Mt(e)))if(t=n?[]:{},!n&&!Lpe(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=hr(e[r]));else return e;return t}var Bs=e=>Array.isArray(e)?e.filter(Boolean):[],pt=e=>e===void 0,ye=(e,t,n)=>{if(!t||!Mt(e))return n;const r=Bs(t.split(/[,[\].]+?/)).reduce((i,a)=>an(i)?i:i[a],e);return pt(r)||r===e?pt(e[t])?n:e[t]:r};const wd={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},mr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},di={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Jk=x.createContext(null),hi=()=>x.useContext(Jk),Fpe=e=>{const{children:t,...n}=e;return x.createElement(Jk.Provider,{value:n},t)};var Qk=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==mr.all&&(t._proxyFormState[o]=!r||mr.all),n&&(n[o]=!0),e[o]}});return i},Zn=e=>Mt(e)&&!Object.keys(e).length,e6=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Zn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||mr.all))},Od=e=>Array.isArray(e)?e:[e],t6=(e,t,n)=>n&&t?e===t||Array.isArray(e)&&e.some(r=>r&&n&&r===t):!e||!t||e===t||Od(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function Bv(e){const t=x.useRef(e);t.current=e,x.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function n6(e){const t=hi(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,l]=x.useState(n._formState),s=x.useRef(!0),u=x.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=x.useRef(i);return c.current=i,Bv({disabled:r,next:f=>s.current&&t6(c.current,f.name,a)&&e6(f,u.current,n._updateFormState)&&l({...n._formState,...f}),subject:n._subjects.state}),x.useEffect(()=>(s.current=!0,u.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),Qk(o,n,u.current,!1)}var $r=e=>typeof e=="string",r6=(e,t,n,r,i)=>$r(e)?(r&&t.watch.add(e),ye(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ye(n,a))):(r&&(t.watchAll=!0),n);function Npe(e){const t=hi(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},l=x.useRef(r);l.current=r,Bv({disabled:a,subject:n._subjects.values,next:c=>{t6(l.current,c.name,o)&&u(hr(r6(l.current,n._names,c.values||n._formValues,!1,i)))}});const[s,u]=x.useState(n._getWatch(r,i));return x.useEffect(()=>n._removeUnmounted()),s}var Rv=e=>/^\w*$/.test(e),i6=e=>Bs(e.replace(/["|']|\]/g,"").split(/\.|\[/));function et(e,t,n){let r=-1;const i=Rv(t)?[t]:i6(t),a=i.length,o=a-1;for(;++r<a;){const l=i[r];let s=n;if(r!==o){const u=e[l];s=Mt(u)||Array.isArray(u)?u:isNaN(+i[r+1])?{}:[]}e[l]=s,e=e[l]}return e}function Bpe(e){const t=hi(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=Xk(i._names.array,n),l=Npe({control:i,name:n,defaultValue:ye(i._formValues,n,ye(i._defaultValues,n,e.defaultValue)),exact:!0}),s=n6({control:i,name:n}),u=x.useRef(i.register(n,{...e.rules,value:l}));return u.current=i.register(n,e.rules),x.useEffect(()=>{const c=i._options.shouldUnregister||a,f=(d,h)=>{const g=ye(i._fields,d);g&&(g._f.mount=h)};if(f(n,!0),c){const d=hr(ye(i._options.defaultValues,n));et(i._defaultValues,n,d),pt(ye(i._formValues,n))&&et(i._formValues,n,d)}return()=>{(o?c&&!i._state.action:c)?i.unregister(n):f(n,!1)}},[n,i,o,a]),x.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),{field:{name:n,value:l,disabled:r,onChange:x.useCallback(c=>u.current.onChange({target:{value:Zk(c),name:n},type:wd.CHANGE}),[n]),onBlur:x.useCallback(()=>u.current.onBlur({target:{value:ye(i._formValues,n),name:n},type:wd.BLUR}),[n,i]),ref:c=>{const f=ye(i._fields,n);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:d=>c.setCustomValidity(d),reportValidity:()=>c.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ye(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!ye(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ye(s.touchedFields,n)},error:{enumerable:!0,get:()=>ye(s.errors,n)}})}}const Ho=e=>e.render(Bpe(e));var Rpe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const Wv=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=ye(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else Mt(o)&&Wv(o,t)}}};var a6=e=>({isOnSubmit:!e||e===mr.onSubmit,isOnBlur:e===mr.onBlur,isOnChange:e===mr.onChange,isOnAll:e===mr.all,isOnTouch:e===mr.onTouched}),o6=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),Wpe=(e,t,n)=>{const r=Bs(ye(e,n));return et(r,"root",t[n]),et(e,n,r),e},Ea=e=>typeof e=="boolean",zv=e=>e.type==="file",Vi=e=>typeof e=="function",Cd=e=>{if(!Nv)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ad=e=>$r(e),Vv=e=>e.type==="radio",Td=e=>e instanceof RegExp;const l6={value:!1,isValid:!1},s6={value:!0,isValid:!0};var u6=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!pt(e[0].attributes.value)?pt(e[0].value)||e[0].value===""?s6:{value:e[0].value,isValid:!0}:s6:l6}return l6};const c6={isValid:!1,value:null};var f6=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,c6):c6;function d6(e,t,n="validate"){if(Ad(e)||Array.isArray(e)&&e.every(Ad)||Ea(e)&&!e)return{type:n,message:Ad(e)?e:"",ref:t}}var qo=e=>Mt(e)&&!Td(e)?e:{value:e,message:""},h6=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:l,maxLength:s,minLength:u,min:c,max:f,pattern:d,validate:h,name:g,valueAsNumber:p,mount:y,disabled:_}=e._f,b=ye(t,g);if(!y||_)return{};const S=o?o[0]:a,O=E=>{r&&S.reportValidity&&(S.setCustomValidity(Ea(E)?"":E||""),S.reportValidity())},w={},A=Vv(a),T=Ns(a),k=A||T,j=(p||zv(a))&&pt(a.value)&&pt(b)||Cd(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,N=Rpe.bind(null,g,n,w),M=(E,I,D,W=di.maxLength,X=di.minLength)=>{const re=E?I:D;w[g]={type:E?W:X,message:re,ref:a,...N(E?W:X,re)}};if(i?!Array.isArray(b)||!b.length:l&&(!k&&(j||an(b))||Ea(b)&&!b||T&&!u6(o).isValid||A&&!f6(o).isValid)){const{value:E,message:I}=Ad(l)?{value:!!l,message:l}:qo(l);if(E&&(w[g]={type:di.required,message:I,ref:S,...N(di.required,I)},!n))return O(I),w}if(!j&&(!an(c)||!an(f))){let E,I;const D=qo(f),W=qo(c);if(!an(b)&&!isNaN(b)){const X=a.valueAsNumber||b&&+b;an(D.value)||(E=X>D.value),an(W.value)||(I=X<W.value)}else{const X=a.valueAsDate||new Date(b),re=z=>new Date(new Date().toDateString()+" "+z),ne=a.type=="time",ee=a.type=="week";$r(D.value)&&b&&(E=ne?re(b)>re(D.value):ee?b>D.value:X>new Date(D.value)),$r(W.value)&&b&&(I=ne?re(b)<re(W.value):ee?b<W.value:X<new Date(W.value))}if((E||I)&&(M(!!E,D.message,W.message,di.max,di.min),!n))return O(w[g].message),w}if((s||u)&&!j&&($r(b)||i&&Array.isArray(b))){const E=qo(s),I=qo(u),D=!an(E.value)&&b.length>+E.value,W=!an(I.value)&&b.length<+I.value;if((D||W)&&(M(D,E.message,I.message),!n))return O(w[g].message),w}if(d&&!j&&$r(b)){const{value:E,message:I}=qo(d);if(Td(E)&&!b.match(E)&&(w[g]={type:di.pattern,message:I,ref:a,...N(di.pattern,I)},!n))return O(I),w}if(h){if(Vi(h)){const E=await h(b,t),I=d6(E,S);if(I&&(w[g]={...I,...N(di.validate,I.message)},!n))return O(I.message),w}else if(Mt(h)){let E={};for(const I in h){if(!Zn(E)&&!n)break;const D=d6(await h[I](b,t),S,I);D&&(E={...D,...N(I,D.message)},O(D.message),n&&(w[g]=E))}if(!Zn(E)&&(w[g]={ref:S,...E},!n))return w}}return O(!0),w};function zpe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=pt(e)?r++:e[t[r++]];return e}function Vpe(e){for(const t in e)if(e.hasOwnProperty(t)&&!pt(e[t]))return!1;return!0}function zt(e,t){const n=Array.isArray(t)?t:Rv(t)?[t]:i6(t),r=n.length===1?e:zpe(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Mt(r)&&Zn(r)||Array.isArray(r)&&Vpe(r))&&zt(e,n.slice(0,-1)),e}function Uv(){let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var kd=e=>an(e)||!Kk(e);function Pa(e,t){if(kd(e)||kd(t))return e===t;if(Uo(e)&&Uo(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(Uo(a)&&Uo(o)||Mt(a)&&Mt(o)||Array.isArray(a)&&Array.isArray(o)?!Pa(a,o):a!==o)return!1}}return!0}var m6=e=>e.type==="select-multiple",Upe=e=>Vv(e)||Ns(e),Hv=e=>Cd(e)&&e.isConnected,g6=e=>{for(const t in e)if(Vi(e[t]))return!0;return!1};function Ed(e,t={}){const n=Array.isArray(e);if(Mt(e)||n)for(const r in e)Array.isArray(e[r])||Mt(e[r])&&!g6(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ed(e[r],t[r])):an(e[r])||(t[r]=!0);return t}function p6(e,t,n){const r=Array.isArray(e);if(Mt(e)||r)for(const i in e)Array.isArray(e[i])||Mt(e[i])&&!g6(e[i])?pt(t)||kd(n[i])?n[i]=Array.isArray(e[i])?Ed(e[i],[]):{...Ed(e[i])}:p6(e[i],an(t)?{}:t[i],n[i]):n[i]=!Pa(e[i],t[i]);return n}var qv=(e,t)=>p6(e,t,Ed(t)),v6=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>pt(e)?e:t?e===""?NaN:e&&+e:n&&$r(e)?new Date(e):r?r(e):e;function Gv(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return zv(t)?t.files:Vv(t)?f6(e.refs).value:m6(t)?[...t.selectedOptions].map(({value:n})=>n):Ns(t)?u6(e.refs).value:v6(pt(t.value)?e.ref.value:t.value,e)}var Hpe=(e,t,n,r)=>{const i={};for(const a of e){const o=ye(t,a);o&&et(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Rs=e=>pt(e)?e:Td(e)?e.source:Mt(e)?Td(e.value)?e.value.source:e.value:e,qpe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function y6(e,t,n){const r=ye(e,n);if(r||Rv(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=ye(t,a),l=ye(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(l&&l.type)return{name:a,error:l};i.pop()}return{name:n}}var Gpe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Ype=(e,t)=>!Bs(ye(e,t)).length&&zt(e,t);const Kpe={mode:mr.onSubmit,reValidateMode:mr.onChange,shouldFocusError:!0};function Zpe(e={},t){let n={...Kpe,...e},r={submitCount:0,isDirty:!1,isLoading:Vi(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=Mt(n.defaultValues)||Mt(n.values)?hr(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:hr(a),l={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Uv(),array:Uv(),state:Uv()},h=e.resetOptions&&e.resetOptions.keepDirtyValues,g=a6(n.mode),p=a6(n.reValidateMode),y=n.criteriaMode===mr.all,_=P=>V=>{clearTimeout(c),c=setTimeout(P,V)},b=async P=>{if(f.isValid||P){const V=n.resolver?Zn((await j()).errors):await M(i,!0);V!==r.isValid&&d.state.next({isValid:V})}},S=P=>f.isValidating&&d.state.next({isValidating:P}),O=(P,V=[],Q,he,me=!0,ce=!0)=>{if(he&&Q){if(l.action=!0,ce&&Array.isArray(ye(i,P))){const le=Q(ye(i,P),he.argA,he.argB);me&&et(i,P,le)}if(ce&&Array.isArray(ye(r.errors,P))){const le=Q(ye(r.errors,P),he.argA,he.argB);me&&et(r.errors,P,le),Ype(r.errors,P)}if(f.touchedFields&&ce&&Array.isArray(ye(r.touchedFields,P))){const le=Q(ye(r.touchedFields,P),he.argA,he.argB);me&&et(r.touchedFields,P,le)}f.dirtyFields&&(r.dirtyFields=qv(a,o)),d.state.next({name:P,isDirty:I(P,V),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else et(o,P,V)},w=(P,V)=>{et(r.errors,P,V),d.state.next({errors:r.errors})},A=(P,V,Q,he)=>{const me=ye(i,P);if(me){const ce=ye(o,P,pt(Q)?ye(a,P):Q);pt(ce)||he&&he.defaultChecked||V?et(o,P,V?ce:Gv(me._f)):X(P,ce),l.mount&&b()}},T=(P,V,Q,he,me)=>{let ce=!1,le=!1;const U={name:P};if(!Q||he){f.isDirty&&(le=r.isDirty,r.isDirty=U.isDirty=I(),ce=le!==U.isDirty);const oe=Pa(ye(a,P),V);le=ye(r.dirtyFields,P),oe?zt(r.dirtyFields,P):et(r.dirtyFields,P,!0),U.dirtyFields=r.dirtyFields,ce=ce||f.dirtyFields&&le!==!oe}if(Q){const oe=ye(r.touchedFields,P);oe||(et(r.touchedFields,P,Q),U.touchedFields=r.touchedFields,ce=ce||f.touchedFields&&oe!==Q)}return ce&&me&&d.state.next(U),ce?U:{}},k=(P,V,Q,he)=>{const me=ye(r.errors,P),ce=f.isValid&&Ea(V)&&r.isValid!==V;if(e.delayError&&Q?(u=_(()=>w(P,Q)),u(e.delayError)):(clearTimeout(c),u=null,Q?et(r.errors,P,Q):zt(r.errors,P)),(Q?!Pa(me,Q):me)||!Zn(he)||ce){const le={...he,...ce&&Ea(V)?{isValid:V}:{},errors:r.errors,name:P};r={...r,...le},d.state.next(le)}S(!1)},j=async P=>n.resolver(o,n.context,Hpe(P||s.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),N=async P=>{const{errors:V}=await j(P);if(P)for(const Q of P){const he=ye(V,Q);he?et(r.errors,Q,he):zt(r.errors,Q)}else r.errors=V;return V},M=async(P,V,Q={valid:!0})=>{for(const he in P){const me=P[he];if(me){const{_f:ce,...le}=me;if(ce){const U=s.array.has(ce.name),oe=await h6(me,o,y,n.shouldUseNativeValidation&&!V,U);if(oe[ce.name]&&(Q.valid=!1,V))break;!V&&(ye(oe,ce.name)?U?Wpe(r.errors,oe,ce.name):et(r.errors,ce.name,oe[ce.name]):zt(r.errors,ce.name))}le&&await M(le,V,Q)}}return Q.valid},E=()=>{for(const P of s.unMount){const V=ye(i,P);V&&(V._f.refs?V._f.refs.every(Q=>!Hv(Q)):!Hv(V._f.ref))&&B(P)}s.unMount=new Set},I=(P,V)=>(P&&V&&et(o,P,V),!Pa(Z(),a)),D=(P,V,Q)=>r6(P,s,{...l.mount?o:pt(V)?a:$r(P)?{[P]:V}:V},Q,V),W=P=>Bs(ye(l.mount?o:a,P,e.shouldUnregister?ye(a,P,[]):[])),X=(P,V,Q={})=>{const he=ye(i,P);let me=V;if(he){const ce=he._f;ce&&(!ce.disabled&&et(o,P,v6(V,ce)),me=Cd(ce.ref)&&an(V)?"":V,m6(ce.ref)?[...ce.ref.options].forEach(le=>le.selected=me.includes(le.value)):ce.refs?Ns(ce.ref)?ce.refs.length>1?ce.refs.forEach(le=>(!le.defaultChecked||!le.disabled)&&(le.checked=Array.isArray(me)?!!me.find(U=>U===le.value):me===le.value)):ce.refs[0]&&(ce.refs[0].checked=!!me):ce.refs.forEach(le=>le.checked=le.value===me):zv(ce.ref)?ce.ref.value="":(ce.ref.value=me,ce.ref.type||d.values.next({name:P,values:{...o}})))}(Q.shouldDirty||Q.shouldTouch)&&T(P,me,Q.shouldTouch,Q.shouldDirty,!0),Q.shouldValidate&&z(P)},re=(P,V,Q)=>{for(const he in V){const me=V[he],ce=`${P}.${he}`,le=ye(i,ce);(s.array.has(P)||!kd(me)||le&&!le._f)&&!Uo(me)?re(ce,me,Q):X(ce,me,Q)}},ne=(P,V,Q={})=>{const he=ye(i,P),me=s.array.has(P),ce=hr(V);et(o,P,ce),me?(d.array.next({name:P,values:{...o}}),(f.isDirty||f.dirtyFields)&&Q.shouldDirty&&d.state.next({name:P,dirtyFields:qv(a,o),isDirty:I(P,ce)})):he&&!he._f&&!an(ce)?re(P,ce,Q):X(P,ce,Q),o6(P,s)&&d.state.next({...r}),d.values.next({name:P,values:{...o}}),!l.mount&&t()},ee=async P=>{const V=P.target;let Q=V.name,he=!0;const me=ye(i,Q),ce=()=>V.type?Gv(me._f):Zk(P);if(me){let le,U;const oe=ce(),Ee=P.type===wd.BLUR||P.type===wd.FOCUS_OUT,Ie=!qpe(me._f)&&!n.resolver&&!ye(r.errors,Q)&&!me._f.deps||Gpe(Ee,ye(r.touchedFields,Q),r.isSubmitted,p,g),Me=o6(Q,s,Ee);et(o,Q,oe),Ee?(me._f.onBlur&&me._f.onBlur(P),u&&u(0)):me._f.onChange&&me._f.onChange(P);const Ve=T(Q,oe,Ee,!1),dt=!Zn(Ve)||Me;if(!Ee&&d.values.next({name:Q,type:P.type,values:{...o}}),Ie)return f.isValid&&b(),dt&&d.state.next({name:Q,...Me?{}:Ve});if(!Ee&&Me&&d.state.next({...r}),S(!0),n.resolver){const{errors:$t}=await j([Q]),Ht=y6(r.errors,i,Q),Xn=y6($t,i,Ht.name||Q);le=Xn.error,Q=Xn.name,U=Zn($t)}else le=(await h6(me,o,y,n.shouldUseNativeValidation))[Q],he=isNaN(oe)||oe===ye(o,Q,oe),he&&(le?U=!1:f.isValid&&(U=await M(i,!0)));he&&(me._f.deps&&z(me._f.deps),k(Q,U,le,Ve))}},z=async(P,V={})=>{let Q,he;const me=Od(P);if(S(!0),n.resolver){const ce=await N(pt(P)?P:me);Q=Zn(ce),he=P?!me.some(le=>ye(ce,le)):Q}else P?(he=(await Promise.all(me.map(async ce=>{const le=ye(i,ce);return await M(le&&le._f?{[ce]:le}:le)}))).every(Boolean),!(!he&&!r.isValid)&&b()):he=Q=await M(i);return d.state.next({...!$r(P)||f.isValid&&Q!==r.isValid?{}:{name:P},...n.resolver||!P?{isValid:Q}:{},errors:r.errors,isValidating:!1}),V.shouldFocus&&!he&&Wv(i,ce=>ce&&ye(r.errors,ce),P?me:s.mount),he},Z=P=>{const V={...a,...l.mount?o:{}};return pt(P)?V:$r(P)?ye(V,P):P.map(Q=>ye(V,Q))},q=(P,V)=>({invalid:!!ye((V||r).errors,P),isDirty:!!ye((V||r).dirtyFields,P),isTouched:!!ye((V||r).touchedFields,P),error:ye((V||r).errors,P)}),Y=P=>{P&&Od(P).forEach(V=>zt(r.errors,V)),d.state.next({errors:P?r.errors:{}})},G=(P,V,Q)=>{const he=(ye(i,P,{_f:{}})._f||{}).ref;et(r.errors,P,{...V,ref:he}),d.state.next({name:P,errors:r.errors,isValid:!1}),Q&&Q.shouldFocus&&he&&he.focus&&he.focus()},ie=(P,V)=>Vi(P)?d.values.subscribe({next:Q=>P(D(void 0,V),Q)}):D(P,V,!0),B=(P,V={})=>{for(const Q of P?Od(P):s.mount)s.mount.delete(Q),s.array.delete(Q),V.keepValue||(zt(i,Q),zt(o,Q)),!V.keepError&&zt(r.errors,Q),!V.keepDirty&&zt(r.dirtyFields,Q),!V.keepTouched&&zt(r.touchedFields,Q),!n.shouldUnregister&&!V.keepDefaultValue&&zt(a,Q);d.values.next({values:{...o}}),d.state.next({...r,...V.keepDirty?{isDirty:I()}:{}}),!V.keepIsValid&&b()},se=({disabled:P,name:V,field:Q,fields:he})=>{if(Ea(P)){const me=P?void 0:ye(o,V,Gv(Q?Q._f:ye(he,V)._f));et(o,V,me),T(V,me,!1,!1,!0)}},K=(P,V={})=>{let Q=ye(i,P);const he=Ea(V.disabled);return et(i,P,{...Q||{},_f:{...Q&&Q._f?Q._f:{ref:{name:P}},name:P,mount:!0,...V}}),s.mount.add(P),Q?se({field:Q,disabled:V.disabled,name:P}):A(P,!0,V.value),{...he?{disabled:V.disabled}:{},...n.progressive?{required:!!V.required,min:Rs(V.min),max:Rs(V.max),minLength:Rs(V.minLength),maxLength:Rs(V.maxLength),pattern:Rs(V.pattern)}:{},name:P,onChange:ee,onBlur:ee,ref:me=>{if(me){K(P,V),Q=ye(i,P);const ce=pt(me.value)&&me.querySelectorAll&&me.querySelectorAll("input,select,textarea")[0]||me,le=Upe(ce),U=Q._f.refs||[];if(le?U.find(oe=>oe===ce):ce===Q._f.ref)return;et(i,P,{_f:{...Q._f,...le?{refs:[...U.filter(Hv),ce,...Array.isArray(ye(a,P))?[{}]:[]],ref:{type:ce.type,name:P}}:{ref:ce}}}),A(P,!1,void 0,ce)}else Q=ye(i,P,{}),Q._f&&(Q._f.mount=!1),(n.shouldUnregister||V.shouldUnregister)&&!(Xk(s.array,P)&&l.action)&&s.unMount.add(P)}}},J=()=>n.shouldFocusError&&Wv(i,P=>P&&ye(r.errors,P),s.mount),te=(P,V)=>async Q=>{Q&&(Q.preventDefault&&Q.preventDefault(),Q.persist&&Q.persist());let he=hr(o);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:me,values:ce}=await j();r.errors=me,he=ce}else await M(i);zt(r.errors,"root"),Zn(r.errors)?(d.state.next({errors:{}}),await P(he,Q)):(V&&await V({...r.errors},Q),J(),setTimeout(J)),d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zn(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ue=(P,V={})=>{ye(i,P)&&(pt(V.defaultValue)?ne(P,ye(a,P)):(ne(P,V.defaultValue),et(a,P,V.defaultValue)),V.keepTouched||zt(r.touchedFields,P),V.keepDirty||(zt(r.dirtyFields,P),r.isDirty=V.defaultValue?I(P,ye(a,P)):I()),V.keepError||(zt(r.errors,P),f.isValid&&b()),d.state.next({...r}))},$=(P,V={})=>{const Q=P?hr(P):a,he=hr(Q),me=P&&!Zn(P)?he:a;if(V.keepDefaultValues||(a=Q),!V.keepValues){if(V.keepDirtyValues||h)for(const ce of s.mount)ye(r.dirtyFields,ce)?et(me,ce,ye(o,ce)):ne(ce,ye(me,ce));else{if(Nv&&pt(P))for(const ce of s.mount){const le=ye(i,ce);if(le&&le._f){const U=Array.isArray(le._f.refs)?le._f.refs[0]:le._f.ref;if(Cd(U)){const oe=U.closest("form");if(oe){oe.reset();break}}}}i={}}o=e.shouldUnregister?V.keepDefaultValues?hr(a):{}:hr(me),d.array.next({values:{...me}}),d.values.next({values:{...me}})}s={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!f.isValid||!!V.keepIsValid,l.watch=!!e.shouldUnregister,d.state.next({submitCount:V.keepSubmitCount?r.submitCount:0,isDirty:V.keepDirty?r.isDirty:!!(V.keepDefaultValues&&!Pa(P,a)),isSubmitted:V.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:V.keepDirtyValues?r.dirtyFields:V.keepDefaultValues&&P?qv(a,P):{},touchedFields:V.keepTouched?r.touchedFields:{},errors:V.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},xe=(P,V)=>$(Vi(P)?P(o):P,V);return{control:{register:K,unregister:B,getFieldState:q,handleSubmit:te,setError:G,_executeSchema:j,_getWatch:D,_getDirty:I,_updateValid:b,_removeUnmounted:E,_updateFieldArray:O,_updateDisabledField:se,_getFieldArray:W,_reset:$,_resetDefaultValues:()=>Vi(n.defaultValues)&&n.defaultValues().then(P=>{xe(P,n.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:P=>{r={...r,...P}},_subjects:d,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return l},set _state(P){l=P},get _defaultValues(){return a},get _names(){return s},set _names(P){s=P},get _formState(){return r},set _formState(P){r=P},get _options(){return n},set _options(P){n={...n,...P}}},trigger:z,register:K,handleSubmit:te,watch:ie,setValue:ne,getValues:Z,reset:xe,resetField:ue,clearErrors:Y,unregister:B,setError:G,setFocus:(P,V={})=>{const Q=ye(i,P),he=Q&&Q._f;if(he){const me=he.refs?he.refs[0]:he.ref;me.focus&&(me.focus(),V.shouldSelect&&me.select())}},getFieldState:q}}function Xpe(e={}){const t=x.useRef(),n=x.useRef(),[r,i]=x.useState({isDirty:!1,isValidating:!1,isLoading:Vi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Vi(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Zpe(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,Bv({subject:a._subjects.state,next:o=>{e6(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),x.useEffect(()=>{e.values&&!Pa(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),x.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Qk(r,a),t.current}function Jpe(e){const{name:t,readOnly:n,validate:r,...i}=e,{control:a,formState:{isSubmitting:o}}=hi();return v.jsx(Ho,{name:t,control:a,shouldUnregister:!0,render:({field:{onChange:l,value:s}})=>v.jsx(C.Checkbox,{...i,id:e.id??t.split(".").join("-"),isChecked:!!s,onChange:l,readOnly:n||o,minLength:void 0,maxLength:void 0,ref:void 0}),rules:{validate:r}})}var Qpe=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Ws(e,t){var n=eve(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function eve(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=Qpe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var tve=[".DS_Store","Thumbs.db"];function nve(e){return io(this,void 0,void 0,function(){return ao(this,function(t){return Pd(e)&&rve(e.dataTransfer)?[2,lve(e.dataTransfer,e.type)]:ive(e)?[2,ave(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,ove(e)]:[2,[]]})})}function rve(e){return Pd(e)}function ive(e){return Pd(e)&&Pd(e.target)}function Pd(e){return typeof e=="object"&&e!==null}function ave(e){return Yv(e.target.files).map(function(t){return Ws(t)})}function ove(e){return io(this,void 0,void 0,function(){var t;return ao(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Ws(r)})]}})})}function lve(e,t){return io(this,void 0,void 0,function(){var n,r;return ao(this,function(i){switch(i.label){case 0:return e.items?(n=Yv(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(sve))]):[3,2];case 1:return r=i.sent(),[2,b6(_6(r))];case 2:return[2,b6(Yv(e.files).map(function(a){return Ws(a)}))]}})})}function b6(e){return e.filter(function(t){return tve.indexOf(t.name)===-1})}function Yv(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function sve(e){if(typeof e.webkitGetAsEntry!="function")return x6(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?S6(t):x6(e)}function _6(e){return e.reduce(function(t,n){return jx(jx([],Px(t),!1),Px(Array.isArray(n)?_6(n):[n]),!1)},[])}function x6(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Ws(t);return Promise.resolve(n)}function uve(e){return io(this,void 0,void 0,function(){return ao(this,function(t){return[2,e.isDirectory?S6(e):cve(e)]})})}function S6(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function a(){var o=this;t.readEntries(function(l){return io(o,void 0,void 0,function(){var s,u,c;return ao(this,function(f){switch(f.label){case 0:if(l.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return s=f.sent(),n(s),[3,4];case 3:return u=f.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(l.map(uve)),i.push(c),a(),f.label=6;case 6:return[2]}})})},function(l){r(l)})}a()})}function cve(e){return io(this,void 0,void 0,function(){return ao(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var a=Ws(i,e.fullPath);n(a)},function(i){r(i)})})]})})}var fve=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var l=o.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):i===l})}return!0};function w6(e){return mve(e)||hve(e)||T6(e)||dve()}function dve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
434
+ `;function kpe(e){const{title:t,items:n,keyFn:r,prompt:i,alertPrompts:a,confirmationColumns:o,isItemNonActionable:l,onConfirm:s,onClose:u,confirmText:c,actionButtonText:f,isDanger:d}=e,[h,g]=yr(),[p]=gt(),y=x.useCallback(()=>{g(void 0),u==null||u()},[u,g]),_=x.useMemo(()=>l&&n.some(l)?n.sort((k,j)=>Ls(l(k),l(j))):n,[n,l]),b=Is(_),[S,O]=x.useState(!c),w=x.useMemo(()=>l&&n.some(l)?[{header:"",cell:k=>l(k)?v.jsx(C.Tooltip,{content:l(k),trigger:l(k)?void 0:"manual",children:v.jsx(C.Icon,{status:"warning",children:v.jsx(Ce.ExclamationTriangleIcon,{})})}):null},...o]:o,[o,l,n]),A=x.useMemo(()=>l?n.filter(k=>!l(k)):n,[l,n]),T=mv(w);return v.jsx(C.Modal,{titleIconVariant:d?"warning":void 0,title:t,"aria-label":t,description:i,variant:C.ModalVariant.medium,isOpen:!0,onClose:y,actions:[v.jsx(C.Button,{variant:d?"danger":"primary",onClick:()=>{y(),s()},isAriaDisabled:!S,children:f},"submit"),v.jsx(C.Button,{variant:"link",onClick:u,children:p.cancelText},"cancel")],hasNoBodyWrapper:!0,children:n.length>0&&v.jsxs(C.ModalBoxBody,{style:{paddingLeft:0,paddingRight:0},children:[v.jsxs(Ape,{children:[a&&a.length>0&&a.map((k,j)=>v.jsx(C.Alert,{isInline:!0,title:k,variant:"warning"},j)),v.jsx($s,{pageItems:b.paged,itemCount:n.length,tableColumns:T,keyFn:r,compact:!0,errorStateTitle:"Error",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0,...b},"items")]}),c&&A.length>0&&v.jsx(Tpe,{children:v.jsx(C.Checkbox,{id:"confirm",label:c,isChecked:S,onChange:O})})]})})}function Epe(){const[e,t]=yr(),[n,r]=x.useState();return x.useEffect(()=>{if(n){const i=()=>{var a;r(void 0),(a=n.onClose)==null||a.call(n)};t(v.jsx(kpe,{...n,onClose:i}))}else t(void 0)},[n,t]),r}function Ppe(){const e=Epe(),t=Uk();return x.useCallback(n=>{const r=Object.assign({},n);return n.isItemNonActionable&&n.isItemNonActionable!==void 0&&(r.items=n.items.filter(i=>n.isItemNonActionable!==void 0&&!n.isItemNonActionable(i))),e({...n,onConfirm:()=>t(r)})},[t,e])}const eOe="";function Fs(e){let t="collapsed";return e.open&&(t+=" expanded"),v.jsx("div",{className:t,children:e.children})}function jpe(e){const{title:t,description:n,view:r,tableColumns:i,toolbarFilters:a,confirmText:o,cancelText:l,onSelect:s,defaultSort:u,maxSelections:c,allowZeroSelections:f}=e,[d,h]=yr(),g=x.useCallback(()=>h(void 0),[h]),[p]=gt();return v.jsxs(C.Modal,{title:t,"aria-label":t,description:n,isOpen:!0,onClose:g,variant:C.ModalVariant.medium,tabIndex:0,actions:[v.jsx(C.Button,{variant:"primary",id:"confirm",onClick:()=>{g(),s(r.selectedItems)},isAriaDisabled:r.selectedItems.length===0&&!f,children:o??p.confirmText},"confirm"),v.jsx(C.Button,{variant:"link",onClick:g,children:l??p.cancelText},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{style:{fontWeight:"bold"},children:p.selectedText}),r.selectedItems.length>0?v.jsx(C.LabelGroup,{children:r.selectedItems.map((y,_)=>i&&i.length>0?v.jsx(C.Label,{onClose:()=>r.unselectItem(y),children:v.jsx(Wt,{item:y,column:i.find(b=>b.card==="name"||b.list==="name")??i[0]})},_):v.jsx(v.Fragment,{}))}):v.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:p.noneSelectedText})]})}),v.jsx(Fs,{open:r.itemCount===void 0,children:v.jsx(C.Skeleton,{height:"80px"})}),v.jsx(Fs,{open:r.itemCount!==void 0,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:v.jsx($s,{tableColumns:i,toolbarFilters:a,...r,emptyStateTitle:e.emptyStateTitle??p.noItemsFound,errorStateTitle:e.errorStateTitle??p.errorText,showSelect:!0,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0,sort:u,maxSelections:c})})})]})}function Mpe(e){const{view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:a,selected:o,isMultiple:l}=e,[s,u]=x.useState(""),[c,f]=x.useState(),d=x.useCallback((p,y)=>{u(y??""),f(()=>p)},[]),[h,g]=yr();return x.useEffect(()=>{c!==void 0?g(v.jsx(Gk,{title:s,open:!0,isMultiple:l,setOpen:()=>f(void 0),onSelect:c,view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:a,selected:o,keyFn:t.keyFn})):(g(void 0),t.unselectAll())},[a,i,c,o,g,n,s,r,t,l]),d}function Gk(e){const{title:t,open:n,isMultiple:r=!1,setOpen:i,onSelect:a,view:o,tableColumns:l,toolbarFilters:s,confirm:u,cancel:c,selected:f}=e,d=()=>i(!1),{t:h}=yt();return v.jsxs(C.Modal,{title:t,"aria-label":t,isOpen:n,onClose:d,variant:C.ModalVariant.medium,tabIndex:0,actions:[v.jsx(C.Button,{variant:"primary",onClick:()=>{!r&&o.selectedItems.length>0?a(o.selectedItems[0]):r&&a(o.selectedItems),d()},isAriaDisabled:o.selectedItems.length===0,children:u},"confirm"),v.jsx(C.Button,{variant:"link",onClick:d,children:c},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{style:{fontWeight:"bold"},children:f}),o.selectedItems.length>0?v.jsx(C.ChipGroup,{children:o.selectedItems.map((g,p)=>l&&l.length>0?v.jsx(C.Chip,{onClick:()=>o.unselectItem(g),children:v.jsx(Wt,{item:g,column:l.find(y=>y.card==="name"||y.list==="name")??l[0]})},p):v.jsx(v.Fragment,{}))}):v.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:h`None - Please make a selection below.`})]})}),v.jsx(Fs,{open:o.itemCount===void 0,children:v.jsx(C.Skeleton,{height:"80px"})}),v.jsx(Fs,{open:o.itemCount!==void 0,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:v.jsx($s,{tableColumns:l,toolbarFilters:s,emptyStateTitle:"No organizations found",errorStateTitle:"Error loading organizations",...o,isSelectMultiple:r,onSelect:()=>null,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})]})}function Dpe(e){const{onSelect:t,value:n}=e,r=x.useCallback((s,u)=>{var c;t(s,(c=e.options.find(f=>f.label===u.toString()))==null?void 0:c.value)},[t,e.options]),{options:i}=e;i.sort((s,u)=>(s.group??"")<(u.group??"")?-1:(s.group??"")>(u.group??"")?1:s.label<u.label?-1:s.label>u.label?1:0);const a=i.reduce((s,u)=>{const c=u.group??"";let f=s[c];return f||(f=[],s[c]=f),f.push(u),s},{}),o=Object.keys(a).length>1||Object.keys(a).length===1&&Object.keys(a)[0]!=="",l=e.options.find(s=>s.value===n);return v.jsx(Ha,{...e,value:l==null?void 0:l.label,onSelect:r,isGrouped:o,children:o?Object.keys(a).map(s=>v.jsx(C.SelectGroup,{label:s,children:a[s].map(u=>{const c=jn(u);return v.jsx(C.SelectOption,{value:u.label,label:u.label,description:u.description,"data-cy":c,children:u.label},u.label)})},s)):i.map(s=>{const u=jn(s);return v.jsx(C.SelectOption,{value:s.label,label:s.label,description:s.description,"data-cy":u,children:s.label},s.label)})})}function Yk(e){const[t,n]=x.useState(!1),{helperTextInvalid:r,...i}=e;return v.jsx(lu,{...e,children:v.jsxs(C.InputGroup,{children:[v.jsx(C.TextArea,{...i,id:e.id,label:void 0,"aria-describedby":e.id?`${e.id}-form-group`:void 0,validated:e.helperTextInvalid?"error":void 0}),e.type==="password"&&v.jsx(C.Button,{variant:"control",onClick:()=>n(!t),isDisabled:e.isDisabled||e.isReadOnly,children:t?v.jsx(Ce.EyeIcon,{}):v.jsx(Ce.EyeSlashIcon,{})})]})})}function Ipe(e){const[t,n]=x.useState(!1),{children:r,isReadOnly:i,placeholder:a,...o}=e,l=e.id?e.id:typeof e.label=="string"?e.label.toLowerCase().split(" ").join("-"):void 0;return v.jsx(lu,{...o,id:l,children:v.jsxs(C.InputGroup,{children:[v.jsx(C.TextInput,{autoComplete:"off",placeholder:a,onChange:e.onChange,id:l,onBlur:e.onBlur,label:void 0,value:e.value,"aria-describedby":l?`${l}-form-group`:void 0,validated:e.helperTextInvalid?"error":void 0,type:e.type==="password"?t?"text":"password":e.type,readOnlyVariant:i?"default":void 0,isDisabled:e.isDisabled,min:e.min}),e.type==="password"&&v.jsx(C.Button,{variant:"control",onClick:()=>n(!t),isDisabled:e.isDisabled||e.isReadOnly,children:t?v.jsx(Ce.EyeIcon,{}):v.jsx(Ce.EyeSlashIcon,{})}),e.children]})})}var Ns=e=>e.type==="checkbox",Uo=e=>e instanceof Date,an=e=>e==null;const Kk=e=>typeof e=="object";var Mt=e=>!an(e)&&!Array.isArray(e)&&Kk(e)&&!Uo(e),Zk=e=>Mt(e)&&e.target?Ns(e.target)?e.target.checked:e.target.value:e,$pe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Xk=(e,t)=>e.has($pe(t)),Lpe=e=>{const t=e.constructor&&e.constructor.prototype;return Mt(t)&&t.hasOwnProperty("isPrototypeOf")},Nv=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hr(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Nv&&(e instanceof Blob||e instanceof FileList))&&(n||Mt(e)))if(t=n?[]:{},!n&&!Lpe(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=hr(e[r]));else return e;return t}var Bs=e=>Array.isArray(e)?e.filter(Boolean):[],pt=e=>e===void 0,ye=(e,t,n)=>{if(!t||!Mt(e))return n;const r=Bs(t.split(/[,[\].]+?/)).reduce((i,a)=>an(i)?i:i[a],e);return pt(r)||r===e?pt(e[t])?n:e[t]:r};const wd={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},mr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},di={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Jk=x.createContext(null),hi=()=>x.useContext(Jk),Fpe=e=>{const{children:t,...n}=e;return x.createElement(Jk.Provider,{value:n},t)};var Qk=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==mr.all&&(t._proxyFormState[o]=!r||mr.all),n&&(n[o]=!0),e[o]}});return i},Zn=e=>Mt(e)&&!Object.keys(e).length,e6=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Zn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||mr.all))},Od=e=>Array.isArray(e)?e:[e],t6=(e,t,n)=>n&&t?e===t||Array.isArray(e)&&e.some(r=>r&&n&&r===t):!e||!t||e===t||Od(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function Bv(e){const t=x.useRef(e);t.current=e,x.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function n6(e){const t=hi(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,l]=x.useState(n._formState),s=x.useRef(!0),u=x.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=x.useRef(i);return c.current=i,Bv({disabled:r,next:f=>s.current&&t6(c.current,f.name,a)&&e6(f,u.current,n._updateFormState)&&l({...n._formState,...f}),subject:n._subjects.state}),x.useEffect(()=>(s.current=!0,u.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),Qk(o,n,u.current,!1)}var $r=e=>typeof e=="string",r6=(e,t,n,r,i)=>$r(e)?(r&&t.watch.add(e),ye(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ye(n,a))):(r&&(t.watchAll=!0),n);function Npe(e){const t=hi(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},l=x.useRef(r);l.current=r,Bv({disabled:a,subject:n._subjects.values,next:c=>{t6(l.current,c.name,o)&&u(hr(r6(l.current,n._names,c.values||n._formValues,!1,i)))}});const[s,u]=x.useState(n._getWatch(r,i));return x.useEffect(()=>n._removeUnmounted()),s}var Rv=e=>/^\w*$/.test(e),i6=e=>Bs(e.replace(/["|']|\]/g,"").split(/\.|\[/));function et(e,t,n){let r=-1;const i=Rv(t)?[t]:i6(t),a=i.length,o=a-1;for(;++r<a;){const l=i[r];let s=n;if(r!==o){const u=e[l];s=Mt(u)||Array.isArray(u)?u:isNaN(+i[r+1])?{}:[]}e[l]=s,e=e[l]}return e}function Bpe(e){const t=hi(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=Xk(i._names.array,n),l=Npe({control:i,name:n,defaultValue:ye(i._formValues,n,ye(i._defaultValues,n,e.defaultValue)),exact:!0}),s=n6({control:i,name:n}),u=x.useRef(i.register(n,{...e.rules,value:l}));return u.current=i.register(n,e.rules),x.useEffect(()=>{const c=i._options.shouldUnregister||a,f=(d,h)=>{const g=ye(i._fields,d);g&&(g._f.mount=h)};if(f(n,!0),c){const d=hr(ye(i._options.defaultValues,n));et(i._defaultValues,n,d),pt(ye(i._formValues,n))&&et(i._formValues,n,d)}return()=>{(o?c&&!i._state.action:c)?i.unregister(n):f(n,!1)}},[n,i,o,a]),x.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),{field:{name:n,value:l,disabled:r,onChange:x.useCallback(c=>u.current.onChange({target:{value:Zk(c),name:n},type:wd.CHANGE}),[n]),onBlur:x.useCallback(()=>u.current.onBlur({target:{value:ye(i._formValues,n),name:n},type:wd.BLUR}),[n,i]),ref:c=>{const f=ye(i._fields,n);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:d=>c.setCustomValidity(d),reportValidity:()=>c.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ye(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!ye(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ye(s.touchedFields,n)},error:{enumerable:!0,get:()=>ye(s.errors,n)}})}}const Ho=e=>e.render(Bpe(e));var Rpe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const Wv=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=ye(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else Mt(o)&&Wv(o,t)}}};var a6=e=>({isOnSubmit:!e||e===mr.onSubmit,isOnBlur:e===mr.onBlur,isOnChange:e===mr.onChange,isOnAll:e===mr.all,isOnTouch:e===mr.onTouched}),o6=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),Wpe=(e,t,n)=>{const r=Bs(ye(e,n));return et(r,"root",t[n]),et(e,n,r),e},Ea=e=>typeof e=="boolean",zv=e=>e.type==="file",Vi=e=>typeof e=="function",Cd=e=>{if(!Nv)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ad=e=>$r(e),Vv=e=>e.type==="radio",Td=e=>e instanceof RegExp;const l6={value:!1,isValid:!1},s6={value:!0,isValid:!0};var u6=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!pt(e[0].attributes.value)?pt(e[0].value)||e[0].value===""?s6:{value:e[0].value,isValid:!0}:s6:l6}return l6};const c6={isValid:!1,value:null};var f6=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,c6):c6;function d6(e,t,n="validate"){if(Ad(e)||Array.isArray(e)&&e.every(Ad)||Ea(e)&&!e)return{type:n,message:Ad(e)?e:"",ref:t}}var qo=e=>Mt(e)&&!Td(e)?e:{value:e,message:""},h6=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:l,maxLength:s,minLength:u,min:c,max:f,pattern:d,validate:h,name:g,valueAsNumber:p,mount:y,disabled:_}=e._f,b=ye(t,g);if(!y||_)return{};const S=o?o[0]:a,O=E=>{r&&S.reportValidity&&(S.setCustomValidity(Ea(E)?"":E||""),S.reportValidity())},w={},A=Vv(a),T=Ns(a),k=A||T,j=(p||zv(a))&&pt(a.value)&&pt(b)||Cd(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,N=Rpe.bind(null,g,n,w),M=(E,D,I,W=di.maxLength,Z=di.minLength)=>{const ne=E?D:I;w[g]={type:E?W:Z,message:ne,ref:a,...N(E?W:Z,ne)}};if(i?!Array.isArray(b)||!b.length:l&&(!k&&(j||an(b))||Ea(b)&&!b||T&&!u6(o).isValid||A&&!f6(o).isValid)){const{value:E,message:D}=Ad(l)?{value:!!l,message:l}:qo(l);if(E&&(w[g]={type:di.required,message:D,ref:S,...N(di.required,D)},!n))return O(D),w}if(!j&&(!an(c)||!an(f))){let E,D;const I=qo(f),W=qo(c);if(!an(b)&&!isNaN(b)){const Z=a.valueAsNumber||b&&+b;an(I.value)||(E=Z>I.value),an(W.value)||(D=Z<W.value)}else{const Z=a.valueAsDate||new Date(b),ne=z=>new Date(new Date().toDateString()+" "+z),re=a.type=="time",J=a.type=="week";$r(I.value)&&b&&(E=re?ne(b)>ne(I.value):J?b>I.value:Z>new Date(I.value)),$r(W.value)&&b&&(D=re?ne(b)<ne(W.value):J?b<W.value:Z<new Date(W.value))}if((E||D)&&(M(!!E,I.message,W.message,di.max,di.min),!n))return O(w[g].message),w}if((s||u)&&!j&&($r(b)||i&&Array.isArray(b))){const E=qo(s),D=qo(u),I=!an(E.value)&&b.length>+E.value,W=!an(D.value)&&b.length<+D.value;if((I||W)&&(M(I,E.message,D.message),!n))return O(w[g].message),w}if(d&&!j&&$r(b)){const{value:E,message:D}=qo(d);if(Td(E)&&!b.match(E)&&(w[g]={type:di.pattern,message:D,ref:a,...N(di.pattern,D)},!n))return O(D),w}if(h){if(Vi(h)){const E=await h(b,t),D=d6(E,S);if(D&&(w[g]={...D,...N(di.validate,D.message)},!n))return O(D.message),w}else if(Mt(h)){let E={};for(const D in h){if(!Zn(E)&&!n)break;const I=d6(await h[D](b,t),S,D);I&&(E={...I,...N(D,I.message)},O(I.message),n&&(w[g]=E))}if(!Zn(E)&&(w[g]={ref:S,...E},!n))return w}}return O(!0),w};function zpe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=pt(e)?r++:e[t[r++]];return e}function Vpe(e){for(const t in e)if(e.hasOwnProperty(t)&&!pt(e[t]))return!1;return!0}function zt(e,t){const n=Array.isArray(t)?t:Rv(t)?[t]:i6(t),r=n.length===1?e:zpe(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Mt(r)&&Zn(r)||Array.isArray(r)&&Vpe(r))&&zt(e,n.slice(0,-1)),e}function Uv(){let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var kd=e=>an(e)||!Kk(e);function Pa(e,t){if(kd(e)||kd(t))return e===t;if(Uo(e)&&Uo(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(Uo(a)&&Uo(o)||Mt(a)&&Mt(o)||Array.isArray(a)&&Array.isArray(o)?!Pa(a,o):a!==o)return!1}}return!0}var m6=e=>e.type==="select-multiple",Upe=e=>Vv(e)||Ns(e),Hv=e=>Cd(e)&&e.isConnected,g6=e=>{for(const t in e)if(Vi(e[t]))return!0;return!1};function Ed(e,t={}){const n=Array.isArray(e);if(Mt(e)||n)for(const r in e)Array.isArray(e[r])||Mt(e[r])&&!g6(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ed(e[r],t[r])):an(e[r])||(t[r]=!0);return t}function p6(e,t,n){const r=Array.isArray(e);if(Mt(e)||r)for(const i in e)Array.isArray(e[i])||Mt(e[i])&&!g6(e[i])?pt(t)||kd(n[i])?n[i]=Array.isArray(e[i])?Ed(e[i],[]):{...Ed(e[i])}:p6(e[i],an(t)?{}:t[i],n[i]):n[i]=!Pa(e[i],t[i]);return n}var qv=(e,t)=>p6(e,t,Ed(t)),v6=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>pt(e)?e:t?e===""?NaN:e&&+e:n&&$r(e)?new Date(e):r?r(e):e;function Gv(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return zv(t)?t.files:Vv(t)?f6(e.refs).value:m6(t)?[...t.selectedOptions].map(({value:n})=>n):Ns(t)?u6(e.refs).value:v6(pt(t.value)?e.ref.value:t.value,e)}var Hpe=(e,t,n,r)=>{const i={};for(const a of e){const o=ye(t,a);o&&et(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Rs=e=>pt(e)?e:Td(e)?e.source:Mt(e)?Td(e.value)?e.value.source:e.value:e,qpe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function y6(e,t,n){const r=ye(e,n);if(r||Rv(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=ye(t,a),l=ye(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(l&&l.type)return{name:a,error:l};i.pop()}return{name:n}}var Gpe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Ype=(e,t)=>!Bs(ye(e,t)).length&&zt(e,t);const Kpe={mode:mr.onSubmit,reValidateMode:mr.onChange,shouldFocusError:!0};function Zpe(e={},t){let n={...Kpe,...e},r={submitCount:0,isDirty:!1,isLoading:Vi(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=Mt(n.defaultValues)||Mt(n.values)?hr(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:hr(a),l={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Uv(),array:Uv(),state:Uv()},h=e.resetOptions&&e.resetOptions.keepDirtyValues,g=a6(n.mode),p=a6(n.reValidateMode),y=n.criteriaMode===mr.all,_=P=>V=>{clearTimeout(c),c=setTimeout(P,V)},b=async P=>{if(f.isValid||P){const V=n.resolver?Zn((await j()).errors):await M(i,!0);V!==r.isValid&&d.state.next({isValid:V})}},S=P=>f.isValidating&&d.state.next({isValidating:P}),O=(P,V=[],ee,he,me=!0,ce=!0)=>{if(he&&ee){if(l.action=!0,ce&&Array.isArray(ye(i,P))){const le=ee(ye(i,P),he.argA,he.argB);me&&et(i,P,le)}if(ce&&Array.isArray(ye(r.errors,P))){const le=ee(ye(r.errors,P),he.argA,he.argB);me&&et(r.errors,P,le),Ype(r.errors,P)}if(f.touchedFields&&ce&&Array.isArray(ye(r.touchedFields,P))){const le=ee(ye(r.touchedFields,P),he.argA,he.argB);me&&et(r.touchedFields,P,le)}f.dirtyFields&&(r.dirtyFields=qv(a,o)),d.state.next({name:P,isDirty:D(P,V),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else et(o,P,V)},w=(P,V)=>{et(r.errors,P,V),d.state.next({errors:r.errors})},A=(P,V,ee,he)=>{const me=ye(i,P);if(me){const ce=ye(o,P,pt(ee)?ye(a,P):ee);pt(ce)||he&&he.defaultChecked||V?et(o,P,V?ce:Gv(me._f)):Z(P,ce),l.mount&&b()}},T=(P,V,ee,he,me)=>{let ce=!1,le=!1;const U={name:P};if(!ee||he){f.isDirty&&(le=r.isDirty,r.isDirty=U.isDirty=D(),ce=le!==U.isDirty);const oe=Pa(ye(a,P),V);le=ye(r.dirtyFields,P),oe?zt(r.dirtyFields,P):et(r.dirtyFields,P,!0),U.dirtyFields=r.dirtyFields,ce=ce||f.dirtyFields&&le!==!oe}if(ee){const oe=ye(r.touchedFields,P);oe||(et(r.touchedFields,P,ee),U.touchedFields=r.touchedFields,ce=ce||f.touchedFields&&oe!==ee)}return ce&&me&&d.state.next(U),ce?U:{}},k=(P,V,ee,he)=>{const me=ye(r.errors,P),ce=f.isValid&&Ea(V)&&r.isValid!==V;if(e.delayError&&ee?(u=_(()=>w(P,ee)),u(e.delayError)):(clearTimeout(c),u=null,ee?et(r.errors,P,ee):zt(r.errors,P)),(ee?!Pa(me,ee):me)||!Zn(he)||ce){const le={...he,...ce&&Ea(V)?{isValid:V}:{},errors:r.errors,name:P};r={...r,...le},d.state.next(le)}S(!1)},j=async P=>n.resolver(o,n.context,Hpe(P||s.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),N=async P=>{const{errors:V}=await j(P);if(P)for(const ee of P){const he=ye(V,ee);he?et(r.errors,ee,he):zt(r.errors,ee)}else r.errors=V;return V},M=async(P,V,ee={valid:!0})=>{for(const he in P){const me=P[he];if(me){const{_f:ce,...le}=me;if(ce){const U=s.array.has(ce.name),oe=await h6(me,o,y,n.shouldUseNativeValidation&&!V,U);if(oe[ce.name]&&(ee.valid=!1,V))break;!V&&(ye(oe,ce.name)?U?Wpe(r.errors,oe,ce.name):et(r.errors,ce.name,oe[ce.name]):zt(r.errors,ce.name))}le&&await M(le,V,ee)}}return ee.valid},E=()=>{for(const P of s.unMount){const V=ye(i,P);V&&(V._f.refs?V._f.refs.every(ee=>!Hv(ee)):!Hv(V._f.ref))&&B(P)}s.unMount=new Set},D=(P,V)=>(P&&V&&et(o,P,V),!Pa(X(),a)),I=(P,V,ee)=>r6(P,s,{...l.mount?o:pt(V)?a:$r(P)?{[P]:V}:V},ee,V),W=P=>Bs(ye(l.mount?o:a,P,e.shouldUnregister?ye(a,P,[]):[])),Z=(P,V,ee={})=>{const he=ye(i,P);let me=V;if(he){const ce=he._f;ce&&(!ce.disabled&&et(o,P,v6(V,ce)),me=Cd(ce.ref)&&an(V)?"":V,m6(ce.ref)?[...ce.ref.options].forEach(le=>le.selected=me.includes(le.value)):ce.refs?Ns(ce.ref)?ce.refs.length>1?ce.refs.forEach(le=>(!le.defaultChecked||!le.disabled)&&(le.checked=Array.isArray(me)?!!me.find(U=>U===le.value):me===le.value)):ce.refs[0]&&(ce.refs[0].checked=!!me):ce.refs.forEach(le=>le.checked=le.value===me):zv(ce.ref)?ce.ref.value="":(ce.ref.value=me,ce.ref.type||d.values.next({name:P,values:{...o}})))}(ee.shouldDirty||ee.shouldTouch)&&T(P,me,ee.shouldTouch,ee.shouldDirty,!0),ee.shouldValidate&&z(P)},ne=(P,V,ee)=>{for(const he in V){const me=V[he],ce=`${P}.${he}`,le=ye(i,ce);(s.array.has(P)||!kd(me)||le&&!le._f)&&!Uo(me)?ne(ce,me,ee):Z(ce,me,ee)}},re=(P,V,ee={})=>{const he=ye(i,P),me=s.array.has(P),ce=hr(V);et(o,P,ce),me?(d.array.next({name:P,values:{...o}}),(f.isDirty||f.dirtyFields)&&ee.shouldDirty&&d.state.next({name:P,dirtyFields:qv(a,o),isDirty:D(P,ce)})):he&&!he._f&&!an(ce)?ne(P,ce,ee):Z(P,ce,ee),o6(P,s)&&d.state.next({...r}),d.values.next({name:P,values:{...o}}),!l.mount&&t()},J=async P=>{const V=P.target;let ee=V.name,he=!0;const me=ye(i,ee),ce=()=>V.type?Gv(me._f):Zk(P);if(me){let le,U;const oe=ce(),Ee=P.type===wd.BLUR||P.type===wd.FOCUS_OUT,Ie=!qpe(me._f)&&!n.resolver&&!ye(r.errors,ee)&&!me._f.deps||Gpe(Ee,ye(r.touchedFields,ee),r.isSubmitted,p,g),Me=o6(ee,s,Ee);et(o,ee,oe),Ee?(me._f.onBlur&&me._f.onBlur(P),u&&u(0)):me._f.onChange&&me._f.onChange(P);const Ve=T(ee,oe,Ee,!1),dt=!Zn(Ve)||Me;if(!Ee&&d.values.next({name:ee,type:P.type,values:{...o}}),Ie)return f.isValid&&b(),dt&&d.state.next({name:ee,...Me?{}:Ve});if(!Ee&&Me&&d.state.next({...r}),S(!0),n.resolver){const{errors:$t}=await j([ee]),Ht=y6(r.errors,i,ee),Xn=y6($t,i,Ht.name||ee);le=Xn.error,ee=Xn.name,U=Zn($t)}else le=(await h6(me,o,y,n.shouldUseNativeValidation))[ee],he=isNaN(oe)||oe===ye(o,ee,oe),he&&(le?U=!1:f.isValid&&(U=await M(i,!0)));he&&(me._f.deps&&z(me._f.deps),k(ee,U,le,Ve))}},z=async(P,V={})=>{let ee,he;const me=Od(P);if(S(!0),n.resolver){const ce=await N(pt(P)?P:me);ee=Zn(ce),he=P?!me.some(le=>ye(ce,le)):ee}else P?(he=(await Promise.all(me.map(async ce=>{const le=ye(i,ce);return await M(le&&le._f?{[ce]:le}:le)}))).every(Boolean),!(!he&&!r.isValid)&&b()):he=ee=await M(i);return d.state.next({...!$r(P)||f.isValid&&ee!==r.isValid?{}:{name:P},...n.resolver||!P?{isValid:ee}:{},errors:r.errors,isValidating:!1}),V.shouldFocus&&!he&&Wv(i,ce=>ce&&ye(r.errors,ce),P?me:s.mount),he},X=P=>{const V={...a,...l.mount?o:{}};return pt(P)?V:$r(P)?ye(V,P):P.map(ee=>ye(V,ee))},H=(P,V)=>({invalid:!!ye((V||r).errors,P),isDirty:!!ye((V||r).dirtyFields,P),isTouched:!!ye((V||r).touchedFields,P),error:ye((V||r).errors,P)}),Y=P=>{P&&Od(P).forEach(V=>zt(r.errors,V)),d.state.next({errors:P?r.errors:{}})},G=(P,V,ee)=>{const he=(ye(i,P,{_f:{}})._f||{}).ref;et(r.errors,P,{...V,ref:he}),d.state.next({name:P,errors:r.errors,isValid:!1}),ee&&ee.shouldFocus&&he&&he.focus&&he.focus()},ie=(P,V)=>Vi(P)?d.values.subscribe({next:ee=>P(I(void 0,V),ee)}):I(P,V,!0),B=(P,V={})=>{for(const ee of P?Od(P):s.mount)s.mount.delete(ee),s.array.delete(ee),V.keepValue||(zt(i,ee),zt(o,ee)),!V.keepError&&zt(r.errors,ee),!V.keepDirty&&zt(r.dirtyFields,ee),!V.keepTouched&&zt(r.touchedFields,ee),!n.shouldUnregister&&!V.keepDefaultValue&&zt(a,ee);d.values.next({values:{...o}}),d.state.next({...r,...V.keepDirty?{isDirty:D()}:{}}),!V.keepIsValid&&b()},se=({disabled:P,name:V,field:ee,fields:he})=>{if(Ea(P)){const me=P?void 0:ye(o,V,Gv(ee?ee._f:ye(he,V)._f));et(o,V,me),T(V,me,!1,!1,!0)}},K=(P,V={})=>{let ee=ye(i,P);const he=Ea(V.disabled);return et(i,P,{...ee||{},_f:{...ee&&ee._f?ee._f:{ref:{name:P}},name:P,mount:!0,...V}}),s.mount.add(P),ee?se({field:ee,disabled:V.disabled,name:P}):A(P,!0,V.value),{...he?{disabled:V.disabled}:{},...n.progressive?{required:!!V.required,min:Rs(V.min),max:Rs(V.max),minLength:Rs(V.minLength),maxLength:Rs(V.maxLength),pattern:Rs(V.pattern)}:{},name:P,onChange:J,onBlur:J,ref:me=>{if(me){K(P,V),ee=ye(i,P);const ce=pt(me.value)&&me.querySelectorAll&&me.querySelectorAll("input,select,textarea")[0]||me,le=Upe(ce),U=ee._f.refs||[];if(le?U.find(oe=>oe===ce):ce===ee._f.ref)return;et(i,P,{_f:{...ee._f,...le?{refs:[...U.filter(Hv),ce,...Array.isArray(ye(a,P))?[{}]:[]],ref:{type:ce.type,name:P}}:{ref:ce}}}),A(P,!1,void 0,ce)}else ee=ye(i,P,{}),ee._f&&(ee._f.mount=!1),(n.shouldUnregister||V.shouldUnregister)&&!(Xk(s.array,P)&&l.action)&&s.unMount.add(P)}}},Q=()=>n.shouldFocusError&&Wv(i,P=>P&&ye(r.errors,P),s.mount),te=(P,V)=>async ee=>{ee&&(ee.preventDefault&&ee.preventDefault(),ee.persist&&ee.persist());let he=hr(o);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:me,values:ce}=await j();r.errors=me,he=ce}else await M(i);zt(r.errors,"root"),Zn(r.errors)?(d.state.next({errors:{}}),await P(he,ee)):(V&&await V({...r.errors},ee),Q(),setTimeout(Q)),d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zn(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ue=(P,V={})=>{ye(i,P)&&(pt(V.defaultValue)?re(P,ye(a,P)):(re(P,V.defaultValue),et(a,P,V.defaultValue)),V.keepTouched||zt(r.touchedFields,P),V.keepDirty||(zt(r.dirtyFields,P),r.isDirty=V.defaultValue?D(P,ye(a,P)):D()),V.keepError||(zt(r.errors,P),f.isValid&&b()),d.state.next({...r}))},$=(P,V={})=>{const ee=P?hr(P):a,he=hr(ee),me=P&&!Zn(P)?he:a;if(V.keepDefaultValues||(a=ee),!V.keepValues){if(V.keepDirtyValues||h)for(const ce of s.mount)ye(r.dirtyFields,ce)?et(me,ce,ye(o,ce)):re(ce,ye(me,ce));else{if(Nv&&pt(P))for(const ce of s.mount){const le=ye(i,ce);if(le&&le._f){const U=Array.isArray(le._f.refs)?le._f.refs[0]:le._f.ref;if(Cd(U)){const oe=U.closest("form");if(oe){oe.reset();break}}}}i={}}o=e.shouldUnregister?V.keepDefaultValues?hr(a):{}:hr(me),d.array.next({values:{...me}}),d.values.next({values:{...me}})}s={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!f.isValid||!!V.keepIsValid,l.watch=!!e.shouldUnregister,d.state.next({submitCount:V.keepSubmitCount?r.submitCount:0,isDirty:V.keepDirty?r.isDirty:!!(V.keepDefaultValues&&!Pa(P,a)),isSubmitted:V.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:V.keepDirtyValues?r.dirtyFields:V.keepDefaultValues&&P?qv(a,P):{},touchedFields:V.keepTouched?r.touchedFields:{},errors:V.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},xe=(P,V)=>$(Vi(P)?P(o):P,V);return{control:{register:K,unregister:B,getFieldState:H,handleSubmit:te,setError:G,_executeSchema:j,_getWatch:I,_getDirty:D,_updateValid:b,_removeUnmounted:E,_updateFieldArray:O,_updateDisabledField:se,_getFieldArray:W,_reset:$,_resetDefaultValues:()=>Vi(n.defaultValues)&&n.defaultValues().then(P=>{xe(P,n.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:P=>{r={...r,...P}},_subjects:d,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return l},set _state(P){l=P},get _defaultValues(){return a},get _names(){return s},set _names(P){s=P},get _formState(){return r},set _formState(P){r=P},get _options(){return n},set _options(P){n={...n,...P}}},trigger:z,register:K,handleSubmit:te,watch:ie,setValue:re,getValues:X,reset:xe,resetField:ue,clearErrors:Y,unregister:B,setError:G,setFocus:(P,V={})=>{const ee=ye(i,P),he=ee&&ee._f;if(he){const me=he.refs?he.refs[0]:he.ref;me.focus&&(me.focus(),V.shouldSelect&&me.select())}},getFieldState:H}}function Xpe(e={}){const t=x.useRef(),n=x.useRef(),[r,i]=x.useState({isDirty:!1,isValidating:!1,isLoading:Vi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Vi(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Zpe(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,Bv({subject:a._subjects.state,next:o=>{e6(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),x.useEffect(()=>{e.values&&!Pa(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),x.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Qk(r,a),t.current}function Jpe(e){const{name:t,readOnly:n,validate:r,...i}=e,{control:a,formState:{isSubmitting:o}}=hi();return v.jsx(Ho,{name:t,control:a,shouldUnregister:!0,render:({field:{onChange:l,value:s}})=>v.jsx(C.Checkbox,{...i,id:e.id??t.split(".").join("-"),isChecked:!!s,onChange:l,readOnly:n||o,minLength:void 0,maxLength:void 0,ref:void 0}),rules:{validate:r}})}var Qpe=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Ws(e,t){var n=eve(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function eve(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=Qpe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var tve=[".DS_Store","Thumbs.db"];function nve(e){return io(this,void 0,void 0,function(){return ao(this,function(t){return Pd(e)&&rve(e.dataTransfer)?[2,lve(e.dataTransfer,e.type)]:ive(e)?[2,ave(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,ove(e)]:[2,[]]})})}function rve(e){return Pd(e)}function ive(e){return Pd(e)&&Pd(e.target)}function Pd(e){return typeof e=="object"&&e!==null}function ave(e){return Yv(e.target.files).map(function(t){return Ws(t)})}function ove(e){return io(this,void 0,void 0,function(){var t;return ao(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Ws(r)})]}})})}function lve(e,t){return io(this,void 0,void 0,function(){var n,r;return ao(this,function(i){switch(i.label){case 0:return e.items?(n=Yv(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(sve))]):[3,2];case 1:return r=i.sent(),[2,b6(_6(r))];case 2:return[2,b6(Yv(e.files).map(function(a){return Ws(a)}))]}})})}function b6(e){return e.filter(function(t){return tve.indexOf(t.name)===-1})}function Yv(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function sve(e){if(typeof e.webkitGetAsEntry!="function")return x6(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?S6(t):x6(e)}function _6(e){return e.reduce(function(t,n){return jx(jx([],Px(t),!1),Px(Array.isArray(n)?_6(n):[n]),!1)},[])}function x6(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Ws(t);return Promise.resolve(n)}function uve(e){return io(this,void 0,void 0,function(){return ao(this,function(t){return[2,e.isDirectory?S6(e):cve(e)]})})}function S6(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function a(){var o=this;t.readEntries(function(l){return io(o,void 0,void 0,function(){var s,u,c;return ao(this,function(f){switch(f.label){case 0:if(l.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return s=f.sent(),n(s),[3,4];case 3:return u=f.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(l.map(uve)),i.push(c),a(),f.label=6;case 6:return[2]}})})},function(l){r(l)})}a()})}function cve(e){return io(this,void 0,void 0,function(){return ao(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var a=Ws(i,e.fullPath);n(a)},function(i){r(i)})})]})})}var fve=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var l=o.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):i===l})}return!0};function w6(e){return mve(e)||hve(e)||T6(e)||dve()}function dve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
435
435
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mve(e){if(Array.isArray(e))return Kv(e)}function O6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function C6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O6(Object(n),!0).forEach(function(r){A6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zs(e,t){return vve(e)||pve(e,t)||T6(e,t)||gve()}function gve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
436
436
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T6(e,t){if(e){if(typeof e=="string")return Kv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kv(e,t)}}function Kv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function vve(e){if(Array.isArray(e))return e}var yve="file-invalid-type",bve="file-too-large",_ve="file-too-small",xve="too-many-files",Sve=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:yve,message:"File type must be ".concat(n)}},k6=function(t){return{code:bve,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},E6=function(t){return{code:_ve,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},wve={code:xve,message:"Too many files"};function P6(e,t){var n=e.type==="application/x-moz-file"||fve(e,t);return[n,n?null:Sve(t)]}function j6(e,t,n){if(ja(e.size))if(ja(t)&&ja(n)){if(e.size>n)return[!1,k6(n)];if(e.size<t)return[!1,E6(t)]}else{if(ja(t)&&e.size<t)return[!1,E6(t)];if(ja(n)&&e.size>n)return[!1,k6(n)]}return[!0,null]}function ja(e){return e!=null}function Ove(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,l=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(s){var u=P6(s,n),c=zs(u,1),f=c[0],d=j6(s,r,i),h=zs(d,1),g=h[0],p=l?l(s):null;return f&&g&&!p})}function jd(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Md(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function M6(e){e.preventDefault()}function Cve(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ave(e){return e.indexOf("Edge/")!==-1}function Tve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Cve(e)||Ave(e)}function Lr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(l){return!jd(r)&&l&&l.apply(void 0,[r].concat(a)),jd(r)})}}function kve(){return"showOpenFilePicker"in window}function Eve(e){if(ja(e)){var t=Object.entries(e).filter(function(n){var r=zs(n,2),i=r[0],a=r[1],o=!0;return D6(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),(!Array.isArray(a)||!a.every(I6))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(n,r){var i=zs(r,2),a=i[0],o=i[1];return C6(C6({},n),{},A6({},a,o))},{});return[{description:"Files",accept:t}]}return e}function Pve(e){if(ja(e))return Object.entries(e).reduce(function(t,n){var r=zs(n,2),i=r[0],a=r[1];return[].concat(w6(t),[i],w6(a))},[]).filter(function(t){return D6(t)||I6(t)}).join(",")}function jve(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Mve(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function D6(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function I6(e){return/^.*\.[\w]+$/.test(e)}var Dve=["children"],Ive=["open"],$ve=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Lve=["refKey","onChange","onClick"];function Fve(e){return Rve(e)||Bve(e)||$6(e)||Nve()}function Nve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
437
437
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rve(e){if(Array.isArray(e))return Xv(e)}function Zv(e,t){return Vve(e)||zve(e,t)||$6(e,t)||Wve()}function Wve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
438
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $6(e,t){if(e){if(typeof e=="string")return Xv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xv(e,t)}}function Xv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function Vve(e){if(Array.isArray(e))return e}function L6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L6(Object(n),!0).forEach(function(r){Jv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dd(e,t){if(e==null)return{};var n=Uve(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Qv=x.forwardRef(function(e,t){var n=e.children,r=Dd(e,Dve),i=N6(r),a=i.open,o=Dd(i,Ive);return x.useImperativeHandle(t,function(){return{open:a}},[a]),x.createElement(x.Fragment,null,n(ft(ft({},o),{},{open:a})))});Qv.displayName="Dropzone";var F6={disabled:!1,getFilesFromEvent:nve,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Qv.defaultProps=F6,Qv.propTypes={children:m.func,accept:m.objectOf(m.arrayOf(m.string)),multiple:m.bool,preventDropOnDocument:m.bool,noClick:m.bool,noKeyboard:m.bool,noDrag:m.bool,noDragEventsBubbling:m.bool,minSize:m.number,maxSize:m.number,maxFiles:m.number,disabled:m.bool,getFilesFromEvent:m.func,onFileDialogCancel:m.func,onFileDialogOpen:m.func,useFsAccessApi:m.bool,autoFocus:m.bool,onDragEnter:m.func,onDragLeave:m.func,onDragOver:m.func,onDrop:m.func,onDropAccepted:m.func,onDropRejected:m.func,onError:m.func,validator:m.func};var ey={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function N6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ft(ft({},F6),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,l=t.multiple,s=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,p=t.onFileDialogCancel,y=t.onFileDialogOpen,_=t.useFsAccessApi,b=t.autoFocus,S=t.preventDropOnDocument,O=t.noClick,w=t.noKeyboard,A=t.noDrag,T=t.noDragEventsBubbling,k=t.onError,j=t.validator,N=x.useMemo(function(){return Pve(n)},[n]),M=x.useMemo(function(){return Eve(n)},[n]),E=x.useMemo(function(){return typeof y=="function"?y:B6},[y]),I=x.useMemo(function(){return typeof p=="function"?p:B6},[p]),D=x.useRef(null),W=x.useRef(null),X=x.useReducer(Hve,ey),re=Zv(X,2),ne=re[0],ee=re[1],z=ne.isFocused,Z=ne.isFileDialogActive,q=x.useRef(typeof window<"u"&&window.isSecureContext&&_&&kve()),Y=function(){!q.current&&Z&&setTimeout(function(){if(W.current){var oe=W.current.files;oe.length||(ee({type:"closeDialog"}),I())}},300)};x.useEffect(function(){return window.addEventListener("focus",Y,!1),function(){window.removeEventListener("focus",Y,!1)}},[W,Z,I,q]);var G=x.useRef([]),ie=function(oe){D.current&&D.current.contains(oe.target)||(oe.preventDefault(),G.current=[])};x.useEffect(function(){return S&&(document.addEventListener("dragover",M6,!1),document.addEventListener("drop",ie,!1)),function(){S&&(document.removeEventListener("dragover",M6),document.removeEventListener("drop",ie))}},[D,S]),x.useEffect(function(){return!r&&b&&D.current&&D.current.focus(),function(){}},[D,b,r]);var B=x.useCallback(function(U){k?k(U):console.error(U)},[k]),se=x.useCallback(function(U){U.preventDefault(),U.persist(),he(U),G.current=[].concat(Fve(G.current),[U.target]),Md(U)&&Promise.resolve(i(U)).then(function(oe){if(!(jd(U)&&!T)){var Ee=oe.length,Ie=Ee>0&&Ove({files:oe,accept:N,minSize:o,maxSize:a,multiple:l,maxFiles:s,validator:j}),Me=Ee>0&&!Ie;ee({isDragAccept:Ie,isDragReject:Me,isDragActive:!0,type:"setDraggedFiles"}),u&&u(U)}}).catch(function(oe){return B(oe)})},[i,u,B,T,N,o,a,l,s,j]),K=x.useCallback(function(U){U.preventDefault(),U.persist(),he(U);var oe=Md(U);if(oe&&U.dataTransfer)try{U.dataTransfer.dropEffect="copy"}catch{}return oe&&f&&f(U),!1},[f,T]),J=x.useCallback(function(U){U.preventDefault(),U.persist(),he(U);var oe=G.current.filter(function(Ie){return D.current&&D.current.contains(Ie)}),Ee=oe.indexOf(U.target);Ee!==-1&&oe.splice(Ee,1),G.current=oe,!(oe.length>0)&&(ee({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Md(U)&&c&&c(U))},[D,c,T]),te=x.useCallback(function(U,oe){var Ee=[],Ie=[];U.forEach(function(Me){var Ve=P6(Me,N),dt=Zv(Ve,2),$t=dt[0],Ht=dt[1],Xn=j6(Me,o,a),qi=Zv(Xn,2),Ue=qi[0],mt=qi[1],En=j?j(Me):null;if($t&&Ue&&!En)Ee.push(Me);else{var Xt=[Ht,mt];En&&(Xt=Xt.concat(En)),Ie.push({file:Me,errors:Xt.filter(function(pi){return pi})})}}),(!l&&Ee.length>1||l&&s>=1&&Ee.length>s)&&(Ee.forEach(function(Me){Ie.push({file:Me,errors:[wve]})}),Ee.splice(0)),ee({acceptedFiles:Ee,fileRejections:Ie,type:"setFiles"}),d&&d(Ee,Ie,oe),Ie.length>0&&g&&g(Ie,oe),Ee.length>0&&h&&h(Ee,oe)},[ee,l,N,o,a,s,d,h,g,j]),ue=x.useCallback(function(U){U.preventDefault(),U.persist(),he(U),G.current=[],Md(U)&&Promise.resolve(i(U)).then(function(oe){jd(U)&&!T||te(oe,U)}).catch(function(oe){return B(oe)}),ee({type:"reset"})},[i,te,B,T]),$=x.useCallback(function(){if(q.current){ee({type:"openDialog"}),E();var U={multiple:l,types:M};window.showOpenFilePicker(U).then(function(oe){return i(oe)}).then(function(oe){te(oe,null),ee({type:"closeDialog"})}).catch(function(oe){jve(oe)?(I(oe),ee({type:"closeDialog"})):Mve(oe)?(q.current=!1,W.current?(W.current.value=null,W.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(oe)});return}W.current&&(ee({type:"openDialog"}),E(),W.current.value=null,W.current.click())},[ee,E,I,_,te,B,M,l]),xe=x.useCallback(function(U){!D.current||!D.current.isEqualNode(U.target)||(U.key===" "||U.key==="Enter"||U.keyCode===32||U.keyCode===13)&&(U.preventDefault(),$())},[D,$]),Se=x.useCallback(function(){ee({type:"focus"})},[]),be=x.useCallback(function(){ee({type:"blur"})},[]),ge=x.useCallback(function(){O||(Tve()?setTimeout($,0):$())},[O,$]),P=function(oe){return r?null:oe},V=function(oe){return w?null:P(oe)},Q=function(oe){return A?null:P(oe)},he=function(oe){T&&oe.stopPropagation()},me=x.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=U.refKey,Ee=oe===void 0?"ref":oe,Ie=U.role,Me=U.onKeyDown,Ve=U.onFocus,dt=U.onBlur,$t=U.onClick,Ht=U.onDragEnter,Xn=U.onDragOver,qi=U.onDragLeave,Ue=U.onDrop,mt=Dd(U,$ve);return ft(ft(Jv({onKeyDown:V(Lr(Me,xe)),onFocus:V(Lr(Ve,Se)),onBlur:V(Lr(dt,be)),onClick:P(Lr($t,ge)),onDragEnter:Q(Lr(Ht,se)),onDragOver:Q(Lr(Xn,K)),onDragLeave:Q(Lr(qi,J)),onDrop:Q(Lr(Ue,ue)),role:typeof Ie=="string"&&Ie!==""?Ie:"presentation"},Ee,D),!r&&!w?{tabIndex:0}:{}),mt)}},[D,xe,Se,be,ge,se,K,J,ue,w,A,r]),ce=x.useCallback(function(U){U.stopPropagation()},[]),le=x.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=U.refKey,Ee=oe===void 0?"ref":oe,Ie=U.onChange,Me=U.onClick,Ve=Dd(U,Lve),dt=Jv({accept:N,multiple:l,type:"file",style:{display:"none"},onChange:P(Lr(Ie,ue)),onClick:P(Lr(Me,ce)),tabIndex:-1},Ee,W);return ft(ft({},dt),Ve)}},[W,n,l,ue,r]);return ft(ft({},ne),{},{isFocused:z&&!r,getRootProps:me,getInputProps:le,rootRef:D,inputRef:W,open:P($)})}function Hve(e,t){switch(t.type){case"focus":return ft(ft({},e),{},{isFocused:!0});case"blur":return ft(ft({},e),{},{isFocused:!1});case"openDialog":return ft(ft({},ey),{},{isFileDialogActive:!0});case"closeDialog":return ft(ft({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ft(ft({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ft(ft({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ft({},ey);default:return e}}function B6(){}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function R6(e){return typeof e>"u"||e===null}function qve(e){return typeof e=="object"&&e!==null}function Gve(e){return Array.isArray(e)?e:R6(e)?[]:[e]}function Yve(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function Kve(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Zve(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Xve=R6,Jve=qve,Qve=Gve,eye=Kve,tye=Zve,nye=Yve,Dt={isNothing:Xve,isObject:Jve,toArray:Qve,repeat:eye,isNegativeZero:tye,extend:nye};function W6(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
438
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $6(e,t){if(e){if(typeof e=="string")return Xv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xv(e,t)}}function Xv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function Vve(e){if(Array.isArray(e))return e}function L6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L6(Object(n),!0).forEach(function(r){Jv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dd(e,t){if(e==null)return{};var n=Uve(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Qv=x.forwardRef(function(e,t){var n=e.children,r=Dd(e,Dve),i=N6(r),a=i.open,o=Dd(i,Ive);return x.useImperativeHandle(t,function(){return{open:a}},[a]),x.createElement(x.Fragment,null,n(ft(ft({},o),{},{open:a})))});Qv.displayName="Dropzone";var F6={disabled:!1,getFilesFromEvent:nve,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Qv.defaultProps=F6,Qv.propTypes={children:m.func,accept:m.objectOf(m.arrayOf(m.string)),multiple:m.bool,preventDropOnDocument:m.bool,noClick:m.bool,noKeyboard:m.bool,noDrag:m.bool,noDragEventsBubbling:m.bool,minSize:m.number,maxSize:m.number,maxFiles:m.number,disabled:m.bool,getFilesFromEvent:m.func,onFileDialogCancel:m.func,onFileDialogOpen:m.func,useFsAccessApi:m.bool,autoFocus:m.bool,onDragEnter:m.func,onDragLeave:m.func,onDragOver:m.func,onDrop:m.func,onDropAccepted:m.func,onDropRejected:m.func,onError:m.func,validator:m.func};var ey={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function N6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ft(ft({},F6),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,l=t.multiple,s=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,p=t.onFileDialogCancel,y=t.onFileDialogOpen,_=t.useFsAccessApi,b=t.autoFocus,S=t.preventDropOnDocument,O=t.noClick,w=t.noKeyboard,A=t.noDrag,T=t.noDragEventsBubbling,k=t.onError,j=t.validator,N=x.useMemo(function(){return Pve(n)},[n]),M=x.useMemo(function(){return Eve(n)},[n]),E=x.useMemo(function(){return typeof y=="function"?y:B6},[y]),D=x.useMemo(function(){return typeof p=="function"?p:B6},[p]),I=x.useRef(null),W=x.useRef(null),Z=x.useReducer(Hve,ey),ne=Zv(Z,2),re=ne[0],J=ne[1],z=re.isFocused,X=re.isFileDialogActive,H=x.useRef(typeof window<"u"&&window.isSecureContext&&_&&kve()),Y=function(){!H.current&&X&&setTimeout(function(){if(W.current){var oe=W.current.files;oe.length||(J({type:"closeDialog"}),D())}},300)};x.useEffect(function(){return window.addEventListener("focus",Y,!1),function(){window.removeEventListener("focus",Y,!1)}},[W,X,D,H]);var G=x.useRef([]),ie=function(oe){I.current&&I.current.contains(oe.target)||(oe.preventDefault(),G.current=[])};x.useEffect(function(){return S&&(document.addEventListener("dragover",M6,!1),document.addEventListener("drop",ie,!1)),function(){S&&(document.removeEventListener("dragover",M6),document.removeEventListener("drop",ie))}},[I,S]),x.useEffect(function(){return!r&&b&&I.current&&I.current.focus(),function(){}},[I,b,r]);var B=x.useCallback(function(U){k?k(U):console.error(U)},[k]),se=x.useCallback(function(U){U.preventDefault(),U.persist(),he(U),G.current=[].concat(Fve(G.current),[U.target]),Md(U)&&Promise.resolve(i(U)).then(function(oe){if(!(jd(U)&&!T)){var Ee=oe.length,Ie=Ee>0&&Ove({files:oe,accept:N,minSize:o,maxSize:a,multiple:l,maxFiles:s,validator:j}),Me=Ee>0&&!Ie;J({isDragAccept:Ie,isDragReject:Me,isDragActive:!0,type:"setDraggedFiles"}),u&&u(U)}}).catch(function(oe){return B(oe)})},[i,u,B,T,N,o,a,l,s,j]),K=x.useCallback(function(U){U.preventDefault(),U.persist(),he(U);var oe=Md(U);if(oe&&U.dataTransfer)try{U.dataTransfer.dropEffect="copy"}catch{}return oe&&f&&f(U),!1},[f,T]),Q=x.useCallback(function(U){U.preventDefault(),U.persist(),he(U);var oe=G.current.filter(function(Ie){return I.current&&I.current.contains(Ie)}),Ee=oe.indexOf(U.target);Ee!==-1&&oe.splice(Ee,1),G.current=oe,!(oe.length>0)&&(J({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Md(U)&&c&&c(U))},[I,c,T]),te=x.useCallback(function(U,oe){var Ee=[],Ie=[];U.forEach(function(Me){var Ve=P6(Me,N),dt=Zv(Ve,2),$t=dt[0],Ht=dt[1],Xn=j6(Me,o,a),qi=Zv(Xn,2),Ue=qi[0],mt=qi[1],En=j?j(Me):null;if($t&&Ue&&!En)Ee.push(Me);else{var Xt=[Ht,mt];En&&(Xt=Xt.concat(En)),Ie.push({file:Me,errors:Xt.filter(function(pi){return pi})})}}),(!l&&Ee.length>1||l&&s>=1&&Ee.length>s)&&(Ee.forEach(function(Me){Ie.push({file:Me,errors:[wve]})}),Ee.splice(0)),J({acceptedFiles:Ee,fileRejections:Ie,type:"setFiles"}),d&&d(Ee,Ie,oe),Ie.length>0&&g&&g(Ie,oe),Ee.length>0&&h&&h(Ee,oe)},[J,l,N,o,a,s,d,h,g,j]),ue=x.useCallback(function(U){U.preventDefault(),U.persist(),he(U),G.current=[],Md(U)&&Promise.resolve(i(U)).then(function(oe){jd(U)&&!T||te(oe,U)}).catch(function(oe){return B(oe)}),J({type:"reset"})},[i,te,B,T]),$=x.useCallback(function(){if(H.current){J({type:"openDialog"}),E();var U={multiple:l,types:M};window.showOpenFilePicker(U).then(function(oe){return i(oe)}).then(function(oe){te(oe,null),J({type:"closeDialog"})}).catch(function(oe){jve(oe)?(D(oe),J({type:"closeDialog"})):Mve(oe)?(H.current=!1,W.current?(W.current.value=null,W.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(oe)});return}W.current&&(J({type:"openDialog"}),E(),W.current.value=null,W.current.click())},[J,E,D,_,te,B,M,l]),xe=x.useCallback(function(U){!I.current||!I.current.isEqualNode(U.target)||(U.key===" "||U.key==="Enter"||U.keyCode===32||U.keyCode===13)&&(U.preventDefault(),$())},[I,$]),Se=x.useCallback(function(){J({type:"focus"})},[]),be=x.useCallback(function(){J({type:"blur"})},[]),ge=x.useCallback(function(){O||(Tve()?setTimeout($,0):$())},[O,$]),P=function(oe){return r?null:oe},V=function(oe){return w?null:P(oe)},ee=function(oe){return A?null:P(oe)},he=function(oe){T&&oe.stopPropagation()},me=x.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=U.refKey,Ee=oe===void 0?"ref":oe,Ie=U.role,Me=U.onKeyDown,Ve=U.onFocus,dt=U.onBlur,$t=U.onClick,Ht=U.onDragEnter,Xn=U.onDragOver,qi=U.onDragLeave,Ue=U.onDrop,mt=Dd(U,$ve);return ft(ft(Jv({onKeyDown:V(Lr(Me,xe)),onFocus:V(Lr(Ve,Se)),onBlur:V(Lr(dt,be)),onClick:P(Lr($t,ge)),onDragEnter:ee(Lr(Ht,se)),onDragOver:ee(Lr(Xn,K)),onDragLeave:ee(Lr(qi,Q)),onDrop:ee(Lr(Ue,ue)),role:typeof Ie=="string"&&Ie!==""?Ie:"presentation"},Ee,I),!r&&!w?{tabIndex:0}:{}),mt)}},[I,xe,Se,be,ge,se,K,Q,ue,w,A,r]),ce=x.useCallback(function(U){U.stopPropagation()},[]),le=x.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=U.refKey,Ee=oe===void 0?"ref":oe,Ie=U.onChange,Me=U.onClick,Ve=Dd(U,Lve),dt=Jv({accept:N,multiple:l,type:"file",style:{display:"none"},onChange:P(Lr(Ie,ue)),onClick:P(Lr(Me,ce)),tabIndex:-1},Ee,W);return ft(ft({},dt),Ve)}},[W,n,l,ue,r]);return ft(ft({},re),{},{isFocused:z&&!r,getRootProps:me,getInputProps:le,rootRef:I,inputRef:W,open:P($)})}function Hve(e,t){switch(t.type){case"focus":return ft(ft({},e),{},{isFocused:!0});case"blur":return ft(ft({},e),{},{isFocused:!1});case"openDialog":return ft(ft({},ey),{},{isFileDialogActive:!0});case"closeDialog":return ft(ft({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ft(ft({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ft(ft({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ft({},ey);default:return e}}function B6(){}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function R6(e){return typeof e>"u"||e===null}function qve(e){return typeof e=="object"&&e!==null}function Gve(e){return Array.isArray(e)?e:R6(e)?[]:[e]}function Yve(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function Kve(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Zve(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Xve=R6,Jve=qve,Qve=Gve,eye=Kve,tye=Zve,nye=Yve,Dt={isNothing:Xve,isObject:Jve,toArray:Qve,repeat:eye,isNegativeZero:tye,extend:nye};function W6(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
439
439
 
440
440
  `+e.mark.snippet),r+" "+n):r}function Vs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=W6(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Vs.prototype=Object.create(Error.prototype),Vs.prototype.constructor=Vs,Vs.prototype.toString=function(t){return this.name+": "+W6(this,t)};var on=Vs;function ty(e,t,n,r,i){var a="",o="",l=Math.floor(i/2)-1;return r-t>l&&(a=" ... ",t=r-l+a.length),n-r>l&&(o=" ...",n=r+l-o.length),{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function ny(e,t){return Dt.repeat(" ",t-e.length)+e}function rye(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var l="",s,u,c=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+c+3);for(s=1;s<=t.linesBefore&&!(o-s<0);s++)u=ty(e.buffer,r[o-s],i[o-s],e.position-(r[o]-r[o-s]),f),l=Dt.repeat(" ",t.indent)+ny((e.line-s+1).toString(),c)+" | "+u.str+`
441
441
  `+l;for(u=ty(e.buffer,r[o],i[o],e.position,f),l+=Dt.repeat(" ",t.indent)+ny((e.line+1).toString(),c)+" | "+u.str+`
@@ -479,8 +479,8 @@ ${e.value}
479
479
  `,Q_e=De.p`
480
480
  color: var(--pf-c-form__helper-text--m-error--Color);
481
481
  font-size: var(--pf-c-form__helper-text--FontSize);
482
- `;function exe(e){const{t}=yt(),{handleCopy:n,handleDownload:r,handleUpload:i,allowCopy:a,allowDownload:o,allowUpload:l,toggleLanguages:s,setLanguage:u,selectedLanguage:c,errors:f,name:d}=e,h=[];a&&h.push(v.jsx(C.Tooltip,{content:t("Copy"),children:v.jsx(Rd,{id:"copy-button","aria-label":t("Copy to clipboard"),icon:v.jsx(Ce.CopyIcon,{}),type:"button",onClick:()=>n()},"copy-button")},"copy-file")),l&&h.push(v.jsx(C.Tooltip,{content:t("Upload"),children:v.jsx(Rd,{id:"upload-button","aria-label":t("Upload from file"),icon:v.jsx(Ce.UploadIcon,{}),type:"button",onClick:()=>i()},"upload-button")},"upload-file")),o&&h.push(v.jsx(C.Tooltip,{content:t("Download"),children:v.jsx(Rd,{id:"download-button","aria-label":t("Download file"),icon:v.jsx(Ce.DownloadIcon,{}),type:"button",onClick:()=>r()},"download-button")},"download-file"));const g=(s==null?void 0:s.map(p=>v.jsx(Rd,{id:`toggle-${p}`,"aria-label":t("Toggle to {{language}}",{language:p}),isSelected:c===p,isDisabled:!!f[d],text:p,type:"button",onChange:()=>u(p)},p)))||[];return v.jsxs(C.Flex,{justifyContent:{default:"justifyContentSpaceBetween"},children:[v.jsx(C.FlexItem,{children:v.jsx(C.ToggleGroup,{isCompact:!0,children:h})}),v.jsx(C.FlexItem,{align:{default:"alignRight"},children:v.jsx(C.ToggleGroup,{isCompact:!0,children:g})})]})}function txe(e){const{t}=yt(),{allowCopy:n=!0,allowDownload:r=!0,allowUpload:i=!0,defaultExpanded:a,isExpandable:o,isReadOnly:l,isRequired:s,label:u,name:c,toggleLanguages:f,validate:d,...h}=e,{formState:{isSubmitting:g,isValidating:p,errors:y},setError:_,clearErrors:b,getValues:S,control:O,setValue:w}=hi(),[A,T]=x.useState("yaml"),[k,j]=x.useState(!a),N=x.useRef(null),M=bh(),{writeToClipboard:E}=$b(),I=e.id??c.split(".").join("-");x.useEffect(()=>{y[c]||b(c)},[y,c,b]);const D=x.useCallback(Z=>{const q=S(c);if(!(Z!=="json"&&Z!=="yaml"||!q)){if(h_e(q))return Z==="json"?w(c,q):w(c,VE(q));if(d_e(q))return Z==="json"?w(c,q):w(c,VE(JSON.stringify(q)));Z==="json"?w(c,f_e(q)):w(c,q)}},[S,c,w]),W=x.useCallback(Z=>{try{D(Z),T(Z)}catch(q){q instanceof Error?_(c,{message:q.message}):_(c,{message:t("Invalid syntax")})}},[D,c,_,t]),X=x.useCallback(()=>{E(S(c))},[S,c,E]),re=x.useCallback(()=>{N.current&&N.current.click()},[]),ne=x.useCallback(()=>{J_e(c||"codeEditorData",S(c));const q={variant:"success",title:t("File downloaded")};M.addAlert(q)},[M,S,c,t]),ee=x.useCallback(Z=>{const q=Z[0],Y=new FileReader;Y.onload=()=>{const G=Y.result;if(typeof G=="string"){w(c,G);const ie={variant:"success",title:t("File uploaded")};M.addAlert(ie)}},Y.onerror=()=>{const G={variant:"danger",title:t("Failed to upload file"),children:t("Unable to upload")};M.addAlert(G)},Y.readAsText(q)},[w,c,t,M]),z=N6({onDrop:ee,multiple:!1});return v.jsx(Ho,{name:c,control:O,shouldUnregister:!0,render:({field:{name:Z,onChange:q,value:Y},fieldState:{error:G}})=>{var se;const ie=[...new Set((se=G==null?void 0:G.message)==null?void 0:se.split(`
483
- `))],B=Y!=null&&Y!=="";return v.jsx(lu,{...h,label:o?v.jsxs("span",{style:{alignItems:"center"},children:[v.jsx(Ce.AngleRightIcon,{style:{transform:k?"rotate(0deg)":"rotate(90deg)",transition:"transform"},onClick:()=>j(K=>!K),"aria-label":t("Expand or collapse extra variables")}),e.label]}):e.label,id:I,helperTextInvalid:!(d&&p)&&(ie==null?void 0:ie.map(K=>v.jsx(Q_e,{children:K},K))),children:(!o||!k)&&v.jsxs(v.Fragment,{children:[v.jsx(exe,{allowCopy:n,allowDownload:r,allowUpload:i,errors:y,handleCopy:()=>X(),handleDownload:ne,handleUpload:re,name:Z,selectedLanguage:A,setLanguage:W,toggleLanguages:f},"actions-row"),v.jsxs("div",{id:"code-editor-dropzone",...z.getRootProps({disabled:B}),style:{width:"100%",height:"100%"},children:[v.jsx("input",{id:"code-editor-dropzone-input",...z.getInputProps(),ref:N}),v.jsx(X_e,{setError:_,clearErrors:b,id:I,name:Z,language:A,value:Y,onChange:q,isReadOnly:l||g,invalid:!(d&&p)&&(G==null?void 0:G.message)!==void 0})]})]})})},rules:{required:typeof u=="string"&&s===!0?{value:!0,message:`${Nr(u.toLocaleLowerCase())} is required.`}:void 0,validate:e.validate}})}function nxe(e){const{name:t,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:a,placeholderText:o,options:l,footer:s,helperText:u,isDisabled:c,isReadOnly:f,isRequired:d,validate:h,fieldNameToResetOnFieldChange:g}=e,p=cl(e),{control:y,formState:{isSubmitting:_,isValidating:b},resetField:S}=hi(),[O,w]=x.useState(!1),A=x.useCallback(()=>w(!O),[O]),[T]=gt();return v.jsx(Ho,{name:t,control:y,shouldUnregister:!0,render:({field:{onChange:k,value:j},fieldState:{error:N}})=>{j===""&&l.length===1&&d&&k(l[0].value);const M=(D,W)=>{var X;k((X=l.find(re=>re.label===W.toString()))==null?void 0:X.value),g&&S(g),w(!1)},E=N!=null&&N.message?h&&b?T.validating:N==null?void 0:N.message:void 0,I=l.find(D=>D.value===j);return v.jsx(C.FormGroup,{id:`${p??""}-form-group`,fieldId:p,label:n,labelIcon:i?v.jsx(Ua,{title:r,help:i}):void 0,labelInfo:a,helperText:u,helperTextInvalid:E,validated:E?"error":void 0,isRequired:d,"data-cy":`${p??""}-form-group`,children:v.jsx(C.Select,{id:p,label:void 0,placeholderText:o,variant:"single","aria-describedby":p?`${p}-form-group`:void 0,selections:I==null?void 0:I.label,onSelect:M,isOpen:O,onToggle:A,onClear:d?void 0:()=>{k(null),w(!1)},maxHeight:280,validated:E?"error":void 0,isDisabled:c||f||_,hasPlaceholderStyle:!0,footer:s,ouiaId:p,"data-cy":p,children:l.map(D=>{const W=jn(D);return v.jsx(C.SelectOption,{id:W,value:D.label,label:D.label,description:D.description,"data-cy":W,children:D.label},D.label)})})})},rules:{required:typeof n=="string"&&d===!0?{value:!0,message:`${Nr(n.toLocaleLowerCase())} is required.`}:void 0,validate:h}})}function rxe(e){const{name:t,id:n,helperText:r,validate:i,additionalControls:a,formLabel:o,labelHelp:l,labelHelpTitle:s,...u}=e,{control:c,formState:{isSubmitting:f,isValidating:d}}=hi();return v.jsx(Ho,{name:t,control:c,shouldUnregister:!0,render:({field:{onChange:h,value:g},fieldState:{error:p}})=>v.jsx(C.FormGroup,{helperTextInvalid:!(i&&d)&&(p==null?void 0:p.message),fieldId:n,label:o,helperText:r,validated:p!=null&&p.message?"error":void 0,labelInfo:a,labelIcon:l?v.jsx(Ua,{title:s,help:l}):void 0,children:v.jsx(C.Switch,{...u,isChecked:g,onChange:y=>h(y),isDisabled:f})})})}function ixe(e){const{name:t,label:n,isReadOnly:r,isRequired:i,minLength:a,maxLength:o,pattern:l,validate:s}=e,{control:u,formState:{isSubmitting:c}}=hi();return v.jsx(Ho,{name:t,control:u,shouldUnregister:!0,render:({field:{onChange:f,value:d},fieldState:{error:h}})=>v.jsx(Yk,{...e,id:e.id??t,value:d,onChange:f,helperTextInvalid:h==null?void 0:h.message,isReadOnly:r||c,minLength:void 0,maxLength:void 0,"data-cy":e.id??t}),rules:{required:typeof n=="string"&&i===!0?{value:!0,message:`${Nr(n.toLocaleLowerCase())} is required.`}:void 0,minLength:typeof n=="string"&&typeof a=="number"?{value:a,message:`${Nr(n.toLocaleLowerCase())} must be at least ${a} characters.`}:a,maxLength:typeof n=="string"&&typeof o=="number"?{value:o,message:`${Nr(n.toLocaleLowerCase())} cannot be greater than ${o} characters.`}:o,pattern:l,validate:s}})}function axe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:l,button:s,helperText:u,isDisabled:c,isReadOnly:f,isRequired:d,validate:h,minLength:g,maxLength:p,min:y,max:_,pattern:b,selectTitle:S,selectOpen:O,selectValue:w,autoFocus:A}=e,T=cl(e),{control:k,setValue:j,formState:{isSubmitting:N,isValidating:M}}=hi(),[E,I]=x.useState(!1),[D]=gt();return v.jsx(Ho,{name:n,control:k,shouldUnregister:!0,render:({field:{onChange:W,value:X,name:re},fieldState:{error:ne}})=>{const ee=ne!=null&&ne.message?h&&M?D.validating:ne==null?void 0:ne.message:void 0;function z(Z){W(Z.trimStart())}return v.jsx(C.FormGroup,{id:`${T??""}-form-group`,fieldId:T,label:r,helperText:u,helperTextInvalid:ee,validated:ee?"error":void 0,isRequired:d,labelIcon:a?v.jsx(Ua,{title:i,help:a}):void 0,labelInfo:o,"data-cy":`${T??""}-form-group`,children:v.jsxs(C.InputGroup,{children:[v.jsx(C.TextInput,{id:T,placeholder:l,onChange:z,value:X??"","aria-describedby":T?`${T}-form-group`:void 0,validated:ee?"error":void 0,type:t==="password"?E?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:c,autoFocus:A,autoComplete:"off","data-cy":T}),t==="password"&&v.jsx(C.Button,{variant:"control",onClick:()=>I(!E),isDisabled:c||f,children:E?v.jsx(Ce.EyeIcon,{}):v.jsx(Ce.EyeSlashIcon,{})}),S&&v.jsx(C.Button,{ouiaId:`lookup-${re}-button`,variant:"control",onClick:()=>O==null?void 0:O(Z=>{if(w){const q=w(Z);j(re,q,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:c||N,children:v.jsx(Ce.SearchIcon,{})}),s&&s]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${Nr(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Nr(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Nr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${Nr(r.toLocaleLowerCase())} must be less than ${y}.`}:g,max:typeof r=="string"&&(typeof _=="number"||typeof _=="string")?{value:_,message:`${Nr(r.toLocaleLowerCase())} cannot be greater than ${_}.`}:g,pattern:b}})}const yy=Symbol.for("yaml.alias"),oxe=Symbol.for("yaml.document"),Da=Symbol.for("yaml.map"),JE=Symbol.for("yaml.pair"),by=Symbol.for("yaml.scalar"),Ys=Symbol.for("yaml.seq"),Br=Symbol.for("yaml.node.type"),Jo=e=>!!e&&typeof e=="object"&&e[Br]===yy,Wd=e=>!!e&&typeof e=="object"&&e[Br]===oxe,QE=e=>!!e&&typeof e=="object"&&e[Br]===Da,Ut=e=>!!e&&typeof e=="object"&&e[Br]===JE,It=e=>!!e&&typeof e=="object"&&e[Br]===by,_y=e=>!!e&&typeof e=="object"&&e[Br]===Ys;function kn(e){if(e&&typeof e=="object")switch(e[Br]){case Da:case Ys:return!0}return!1}function bn(e){if(e&&typeof e=="object")switch(e[Br]){case yy:case Da:case by:case Ys:return!0}return!1}const lxe=e=>(It(e)||kn(e))&&!!e.anchor,Ia=Symbol("break visit"),sxe=Symbol("skip children"),Ks=Symbol("remove node");function Zs(e,t){const n=uxe(t);Wd(e)?Qo(null,e.contents,n,Object.freeze([e]))===Ks&&(e.contents=null):Qo(null,e,n,Object.freeze([]))}Zs.BREAK=Ia,Zs.SKIP=sxe,Zs.REMOVE=Ks;function Qo(e,t,n,r){const i=cxe(e,t,n,r);if(bn(i)||Ut(i))return fxe(e,r,i),Qo(e,i,n,r);if(typeof i!="symbol"){if(kn(t)){r=Object.freeze(r.concat(t));for(let a=0;a<t.items.length;++a){const o=Qo(a,t.items[a],n,r);if(typeof o=="number")a=o-1;else{if(o===Ia)return Ia;o===Ks&&(t.items.splice(a,1),a-=1)}}}else if(Ut(t)){r=Object.freeze(r.concat(t));const a=Qo("key",t.key,n,r);if(a===Ia)return Ia;a===Ks&&(t.key=null);const o=Qo("value",t.value,n,r);if(o===Ia)return Ia;o===Ks&&(t.value=null)}}return i}function uxe(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function cxe(e,t,n,r){var i,a,o,l,s;if(typeof n=="function")return n(e,t,r);if(QE(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(_y(t))return(a=n.Seq)==null?void 0:a.call(n,e,t,r);if(Ut(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,r);if(It(t))return(l=n.Scalar)==null?void 0:l.call(n,e,t,r);if(Jo(t))return(s=n.Alias)==null?void 0:s.call(n,e,t,r)}function fxe(e,t,n){const r=t[t.length-1];if(kn(r))r.items[e]=n;else if(Ut(r))e==="key"?r.key=n:r.value=n;else if(Wd(r))r.contents=n;else{const i=Jo(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}function eP(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function Xs(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,a=r.length;i<a;++i){const o=r[i],l=Xs(e,r,String(i),o);l===void 0?delete r[i]:l!==o&&(r[i]=l)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const a=r.get(i),o=Xs(e,r,i,a);o===void 0?r.delete(i):o!==a&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const a=Xs(e,r,i,i);a===void 0?r.delete(i):a!==i&&(r.delete(i),r.add(a))}else for(const[i,a]of Object.entries(r)){const o=Xs(e,r,i,a);o===void 0?delete r[i]:o!==a&&(r[i]=o)}return e.call(t,n,r)}function pr(e,t,n){if(Array.isArray(e))return e.map((r,i)=>pr(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!lxe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=a=>{r.res=a,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class xy{constructor(t){Object.defineProperty(this,Br,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!Wd(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=pr(this,"",o);if(typeof i=="function")for(const{count:s,res:u}of o.anchors.values())i(u,s);return typeof a=="function"?Xs(a,{"":l},"",l):l}}class dxe extends xy{constructor(t){super(yy),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Zs(t,{Node:(r,i)=>{if(i===this)return Zs.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:a}=n,o=this.resolve(i);if(!o){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(s)}let l=r.get(o);if(l||(pr(o,null,n),l=r.get(o)),!l||l.res===void 0){const s="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(s)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=zd(i,o,r)),l.count*l.aliasCount>a)){const s="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(s)}return l.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(eP(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${i} `}return i}}function zd(e,t,n){if(Jo(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(kn(t)){let r=0;for(const i of t.items){const a=zd(e,i,n);a>r&&(r=a)}return r}else if(Ut(t)){const r=zd(e,t.key,n),i=zd(e,t.value,n);return Math.max(r,i)}return 1}const tP=e=>!e||typeof e!="function"&&typeof e!="object";class At extends xy{constructor(t){super(by),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:pr(this.value,t,n)}toString(){return String(this.value)}}At.BLOCK_FOLDED="BLOCK_FOLDED",At.BLOCK_LITERAL="BLOCK_LITERAL",At.PLAIN="PLAIN",At.QUOTE_DOUBLE="QUOTE_DOUBLE",At.QUOTE_SINGLE="QUOTE_SINGLE";const hxe="tag:yaml.org,2002:";function mxe(e,t,n){if(t){const r=n.filter(a=>a.tag===t),i=r.find(a=>!a.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function Vd(e,t,n){var f,d,h;if(Wd(e)&&(e=e.contents),bn(e))return e;if(Ut(e)){const g=(d=(f=n.schema[Da]).createNode)==null?void 0:d.call(f,n.schema,null,n);return g.items.push(e),g}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:l}=n;let s;if(r&&e&&typeof e=="object"){if(s=l.get(e),s)return s.anchor||(s.anchor=i(e)),new dxe(s.anchor);s={anchor:null,node:null},l.set(e,s)}t!=null&&t.startsWith("!!")&&(t=hxe+t.slice(2));let u=mxe(e,t,o.tags);if(!u){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const g=new At(e);return s&&(s.node=g),g}u=e instanceof Map?o[Da]:Symbol.iterator in Object(e)?o[Ys]:o[Da]}a&&(a(u),delete n.onTagObj);const c=u!=null&&u.createNode?u.createNode(n.schema,e,n):typeof((h=u==null?void 0:u.nodeClass)==null?void 0:h.from)=="function"?u.nodeClass.from(n.schema,e,n):new At(e);return t?c.tag=t:u.default||(c.tag=u.tag),s&&(s.node=c),c}function nP(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const a=t[i];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const o=[];o[a]=r,r=o}else r=new Map([[a,r]])}return Vd(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const gxe=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Ud extends xy{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>bn(r)||Ut(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(gxe(t))this.add(n);else{const[r,...i]=t,a=this.get(r,!0);if(kn(a))a.addIn(i,n);else if(a===void 0&&this.schema)this.set(r,nP(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(kn(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,a=this.get(r,!0);return i.length===0?!n&&It(a)?a.value:a:kn(a)?a.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ut(n))return!1;const r=n.value;return r==null||t&&It(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return kn(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const a=this.get(r,!0);if(kn(a))a.setIn(i,n);else if(a===void 0&&this.schema)this.set(r,nP(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}Ud.maxFlowStringSingleLineLength=60;const pxe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Js(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const $a=(e,t,n)=>e.endsWith(`
482
+ `;function exe(e){const{t}=yt(),{handleCopy:n,handleDownload:r,handleUpload:i,allowCopy:a,allowDownload:o,allowUpload:l,toggleLanguages:s,setLanguage:u,selectedLanguage:c,errors:f,name:d}=e,h=[];a&&h.push(v.jsx(C.Tooltip,{content:t("Copy"),children:v.jsx(Rd,{id:"copy-button","aria-label":t("Copy to clipboard"),icon:v.jsx(Ce.CopyIcon,{}),type:"button",onClick:()=>n()},"copy-button")},"copy-file")),l&&h.push(v.jsx(C.Tooltip,{content:t("Upload"),children:v.jsx(Rd,{id:"upload-button","aria-label":t("Upload from file"),icon:v.jsx(Ce.UploadIcon,{}),type:"button",onClick:()=>i()},"upload-button")},"upload-file")),o&&h.push(v.jsx(C.Tooltip,{content:t("Download"),children:v.jsx(Rd,{id:"download-button","aria-label":t("Download file"),icon:v.jsx(Ce.DownloadIcon,{}),type:"button",onClick:()=>r()},"download-button")},"download-file"));const g=(s==null?void 0:s.map(p=>v.jsx(Rd,{id:`toggle-${p}`,"aria-label":t("Toggle to {{language}}",{language:p}),isSelected:c===p,isDisabled:!!f[d],text:p,type:"button",onChange:()=>u(p)},p)))||[];return v.jsxs(C.Flex,{justifyContent:{default:"justifyContentSpaceBetween"},children:[v.jsx(C.FlexItem,{children:v.jsx(C.ToggleGroup,{isCompact:!0,children:h})}),v.jsx(C.FlexItem,{align:{default:"alignRight"},children:v.jsx(C.ToggleGroup,{isCompact:!0,children:g})})]})}function txe(e){const{t}=yt(),{allowCopy:n=!0,allowDownload:r=!0,allowUpload:i=!0,defaultExpanded:a,isExpandable:o,isReadOnly:l,isRequired:s,label:u,name:c,toggleLanguages:f,validate:d,...h}=e,{formState:{isSubmitting:g,isValidating:p,errors:y},setError:_,clearErrors:b,getValues:S,control:O,setValue:w}=hi(),[A,T]=x.useState("yaml"),[k,j]=x.useState(!a),N=x.useRef(null),M=bh(),{writeToClipboard:E}=$b(),D=e.id??c.split(".").join("-");x.useEffect(()=>{y[c]||b(c)},[y,c,b]);const I=x.useCallback(X=>{const H=S(c);if(!(X!=="json"&&X!=="yaml"||!H)){if(h_e(H))return X==="json"?w(c,H):w(c,VE(H));if(d_e(H))return X==="json"?w(c,H):w(c,VE(JSON.stringify(H)));X==="json"?w(c,f_e(H)):w(c,H)}},[S,c,w]),W=x.useCallback(X=>{try{I(X),T(X)}catch(H){H instanceof Error?_(c,{message:H.message}):_(c,{message:t("Invalid syntax")})}},[I,c,_,t]),Z=x.useCallback(()=>{E(S(c))},[S,c,E]),ne=x.useCallback(()=>{N.current&&N.current.click()},[]),re=x.useCallback(()=>{J_e(c||"codeEditorData",S(c));const H={variant:"success",title:t("File downloaded")};M.addAlert(H)},[M,S,c,t]),J=x.useCallback(X=>{const H=X[0],Y=new FileReader;Y.onload=()=>{const G=Y.result;if(typeof G=="string"){w(c,G);const ie={variant:"success",title:t("File uploaded")};M.addAlert(ie)}},Y.onerror=()=>{const G={variant:"danger",title:t("Failed to upload file"),children:t("Unable to upload")};M.addAlert(G)},Y.readAsText(H)},[w,c,t,M]),z=N6({onDrop:J,multiple:!1});return v.jsx(Ho,{name:c,control:O,shouldUnregister:!0,render:({field:{name:X,onChange:H,value:Y},fieldState:{error:G}})=>{var se;const ie=[...new Set((se=G==null?void 0:G.message)==null?void 0:se.split(`
483
+ `))],B=Y!=null&&Y!=="";return v.jsx(lu,{...h,label:o?v.jsxs("span",{style:{alignItems:"center"},children:[v.jsx(Ce.AngleRightIcon,{style:{transform:k?"rotate(0deg)":"rotate(90deg)",transition:"transform"},onClick:()=>j(K=>!K),"aria-label":t("Expand or collapse extra variables")}),e.label]}):e.label,id:D,helperTextInvalid:!(d&&p)&&(ie==null?void 0:ie.map(K=>v.jsx(Q_e,{children:K},K))),children:(!o||!k)&&v.jsxs(v.Fragment,{children:[v.jsx(exe,{allowCopy:n,allowDownload:r,allowUpload:i,errors:y,handleCopy:()=>Z(),handleDownload:re,handleUpload:ne,name:X,selectedLanguage:A,setLanguage:W,toggleLanguages:f},"actions-row"),v.jsxs("div",{id:"code-editor-dropzone",...z.getRootProps({disabled:B}),style:{width:"100%",height:"100%"},children:[v.jsx("input",{id:"code-editor-dropzone-input",...z.getInputProps(),ref:N}),v.jsx(X_e,{setError:_,clearErrors:b,id:D,name:X,language:A,value:Y,onChange:H,isReadOnly:l||g,invalid:!(d&&p)&&(G==null?void 0:G.message)!==void 0})]})]})})},rules:{required:typeof u=="string"&&s===!0?{value:!0,message:`${Nr(u.toLocaleLowerCase())} is required.`}:void 0,validate:e.validate}})}function nxe(e){const{name:t,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:a,placeholderText:o,options:l,footer:s,helperText:u,isDisabled:c,isReadOnly:f,isRequired:d,validate:h,fieldNameToResetOnFieldChange:g}=e,p=cl(e),{control:y,formState:{isSubmitting:_,isValidating:b},resetField:S}=hi(),[O,w]=x.useState(!1),A=x.useCallback(()=>w(!O),[O]),[T]=gt();return v.jsx(Ho,{name:t,control:y,shouldUnregister:!0,render:({field:{onChange:k,value:j},fieldState:{error:N}})=>{j===""&&l.length===1&&d&&k(l[0].value);const M=(I,W)=>{var Z;k((Z=l.find(ne=>ne.label===W.toString()))==null?void 0:Z.value),g&&S(g),w(!1)},E=N!=null&&N.message?h&&b?T.validating:N==null?void 0:N.message:void 0,D=l.find(I=>I.value===j);return v.jsx(C.FormGroup,{id:`${p??""}-form-group`,fieldId:p,label:n,labelIcon:i?v.jsx(Ua,{title:r,help:i}):void 0,labelInfo:a,helperText:u,helperTextInvalid:E,validated:E?"error":void 0,isRequired:d,"data-cy":`${p??""}-form-group`,children:v.jsx(C.Select,{id:p,label:void 0,placeholderText:o,variant:"single","aria-describedby":p?`${p}-form-group`:void 0,selections:D==null?void 0:D.label,onSelect:M,isOpen:O,onToggle:A,onClear:d?void 0:()=>{k(null),w(!1)},maxHeight:280,validated:E?"error":void 0,isDisabled:c||f||_,hasPlaceholderStyle:!0,footer:s,ouiaId:p,"data-cy":p,children:l.map(I=>{const W=jn(I);return v.jsx(C.SelectOption,{id:W,value:I.label,label:I.label,description:I.description,"data-cy":W,children:I.label},I.label)})})})},rules:{required:typeof n=="string"&&d===!0?{value:!0,message:`${Nr(n.toLocaleLowerCase())} is required.`}:void 0,validate:h}})}function rxe(e){const{name:t,id:n,helperText:r,validate:i,additionalControls:a,formLabel:o,labelHelp:l,labelHelpTitle:s,...u}=e,{control:c,formState:{isSubmitting:f,isValidating:d}}=hi();return v.jsx(Ho,{name:t,control:c,shouldUnregister:!0,render:({field:{onChange:h,value:g},fieldState:{error:p}})=>v.jsx(C.FormGroup,{helperTextInvalid:!(i&&d)&&(p==null?void 0:p.message),fieldId:n,label:o,helperText:r,validated:p!=null&&p.message?"error":void 0,labelInfo:a,labelIcon:l?v.jsx(Ua,{title:s,help:l}):void 0,children:v.jsx(C.Switch,{...u,isChecked:g,onChange:y=>h(y),isDisabled:f})})})}function ixe(e){const{name:t,label:n,isReadOnly:r,isRequired:i,minLength:a,maxLength:o,pattern:l,validate:s}=e,{control:u,formState:{isSubmitting:c}}=hi();return v.jsx(Ho,{name:t,control:u,shouldUnregister:!0,render:({field:{onChange:f,value:d},fieldState:{error:h}})=>v.jsx(Yk,{...e,id:e.id??t,value:d,onChange:f,helperTextInvalid:h==null?void 0:h.message,isReadOnly:r||c,minLength:void 0,maxLength:void 0,"data-cy":e.id??t}),rules:{required:typeof n=="string"&&i===!0?{value:!0,message:`${Nr(n.toLocaleLowerCase())} is required.`}:void 0,minLength:typeof n=="string"&&typeof a=="number"?{value:a,message:`${Nr(n.toLocaleLowerCase())} must be at least ${a} characters.`}:a,maxLength:typeof n=="string"&&typeof o=="number"?{value:o,message:`${Nr(n.toLocaleLowerCase())} cannot be greater than ${o} characters.`}:o,pattern:l,validate:s}})}function axe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:l,button:s,helperText:u,isDisabled:c,isReadOnly:f,isRequired:d,validate:h,minLength:g,maxLength:p,min:y,max:_,pattern:b,selectTitle:S,selectOpen:O,selectValue:w,autoFocus:A,autoComplete:T}=e,k=cl(e),{control:j,setValue:N,formState:{isSubmitting:M,isValidating:E}}=hi(),[D,I]=x.useState(!1),[W]=gt();return v.jsx(Ho,{name:n,control:j,shouldUnregister:!0,render:({field:{onChange:Z,value:ne,name:re},fieldState:{error:J}})=>{const z=J!=null&&J.message?h&&E?W.validating:J==null?void 0:J.message:void 0;function X(H){Z(H.trimStart())}return v.jsx(C.FormGroup,{id:`${k??""}-form-group`,fieldId:k,label:r,helperText:u,helperTextInvalid:z,validated:z?"error":void 0,isRequired:d,labelIcon:a?v.jsx(Ua,{title:i,help:a}):void 0,labelInfo:o,"data-cy":`${k??""}-form-group`,children:v.jsxs(C.InputGroup,{children:[v.jsx(C.TextInput,{id:k,placeholder:l,onChange:X,value:ne??"","aria-describedby":k?`${k}-form-group`:void 0,validated:z?"error":void 0,type:t==="password"?D?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:c,autoFocus:A,autoComplete:T||"off","data-cy":k}),t==="password"&&v.jsx(C.Button,{variant:"control",onClick:()=>I(!D),isDisabled:c||f,children:D?v.jsx(Ce.EyeIcon,{}):v.jsx(Ce.EyeSlashIcon,{})}),S&&v.jsx(C.Button,{ouiaId:`lookup-${re}-button`,variant:"control",onClick:()=>O==null?void 0:O(H=>{if(w){const Y=w(H);N(re,Y,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:c||M,children:v.jsx(Ce.SearchIcon,{})}),s&&s]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${Nr(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Nr(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Nr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${Nr(r.toLocaleLowerCase())} must be less than ${y}.`}:g,max:typeof r=="string"&&(typeof _=="number"||typeof _=="string")?{value:_,message:`${Nr(r.toLocaleLowerCase())} cannot be greater than ${_}.`}:g,pattern:b}})}const yy=Symbol.for("yaml.alias"),oxe=Symbol.for("yaml.document"),Da=Symbol.for("yaml.map"),JE=Symbol.for("yaml.pair"),by=Symbol.for("yaml.scalar"),Ys=Symbol.for("yaml.seq"),Br=Symbol.for("yaml.node.type"),Jo=e=>!!e&&typeof e=="object"&&e[Br]===yy,Wd=e=>!!e&&typeof e=="object"&&e[Br]===oxe,QE=e=>!!e&&typeof e=="object"&&e[Br]===Da,Ut=e=>!!e&&typeof e=="object"&&e[Br]===JE,It=e=>!!e&&typeof e=="object"&&e[Br]===by,_y=e=>!!e&&typeof e=="object"&&e[Br]===Ys;function kn(e){if(e&&typeof e=="object")switch(e[Br]){case Da:case Ys:return!0}return!1}function bn(e){if(e&&typeof e=="object")switch(e[Br]){case yy:case Da:case by:case Ys:return!0}return!1}const lxe=e=>(It(e)||kn(e))&&!!e.anchor,Ia=Symbol("break visit"),sxe=Symbol("skip children"),Ks=Symbol("remove node");function Zs(e,t){const n=uxe(t);Wd(e)?Qo(null,e.contents,n,Object.freeze([e]))===Ks&&(e.contents=null):Qo(null,e,n,Object.freeze([]))}Zs.BREAK=Ia,Zs.SKIP=sxe,Zs.REMOVE=Ks;function Qo(e,t,n,r){const i=cxe(e,t,n,r);if(bn(i)||Ut(i))return fxe(e,r,i),Qo(e,i,n,r);if(typeof i!="symbol"){if(kn(t)){r=Object.freeze(r.concat(t));for(let a=0;a<t.items.length;++a){const o=Qo(a,t.items[a],n,r);if(typeof o=="number")a=o-1;else{if(o===Ia)return Ia;o===Ks&&(t.items.splice(a,1),a-=1)}}}else if(Ut(t)){r=Object.freeze(r.concat(t));const a=Qo("key",t.key,n,r);if(a===Ia)return Ia;a===Ks&&(t.key=null);const o=Qo("value",t.value,n,r);if(o===Ia)return Ia;o===Ks&&(t.value=null)}}return i}function uxe(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function cxe(e,t,n,r){var i,a,o,l,s;if(typeof n=="function")return n(e,t,r);if(QE(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(_y(t))return(a=n.Seq)==null?void 0:a.call(n,e,t,r);if(Ut(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,r);if(It(t))return(l=n.Scalar)==null?void 0:l.call(n,e,t,r);if(Jo(t))return(s=n.Alias)==null?void 0:s.call(n,e,t,r)}function fxe(e,t,n){const r=t[t.length-1];if(kn(r))r.items[e]=n;else if(Ut(r))e==="key"?r.key=n:r.value=n;else if(Wd(r))r.contents=n;else{const i=Jo(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}function eP(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function Xs(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,a=r.length;i<a;++i){const o=r[i],l=Xs(e,r,String(i),o);l===void 0?delete r[i]:l!==o&&(r[i]=l)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const a=r.get(i),o=Xs(e,r,i,a);o===void 0?r.delete(i):o!==a&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const a=Xs(e,r,i,i);a===void 0?r.delete(i):a!==i&&(r.delete(i),r.add(a))}else for(const[i,a]of Object.entries(r)){const o=Xs(e,r,i,a);o===void 0?delete r[i]:o!==a&&(r[i]=o)}return e.call(t,n,r)}function pr(e,t,n){if(Array.isArray(e))return e.map((r,i)=>pr(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!lxe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=a=>{r.res=a,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class xy{constructor(t){Object.defineProperty(this,Br,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!Wd(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=pr(this,"",o);if(typeof i=="function")for(const{count:s,res:u}of o.anchors.values())i(u,s);return typeof a=="function"?Xs(a,{"":l},"",l):l}}class dxe extends xy{constructor(t){super(yy),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Zs(t,{Node:(r,i)=>{if(i===this)return Zs.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:a}=n,o=this.resolve(i);if(!o){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(s)}let l=r.get(o);if(l||(pr(o,null,n),l=r.get(o)),!l||l.res===void 0){const s="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(s)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=zd(i,o,r)),l.count*l.aliasCount>a)){const s="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(s)}return l.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(eP(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${i} `}return i}}function zd(e,t,n){if(Jo(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(kn(t)){let r=0;for(const i of t.items){const a=zd(e,i,n);a>r&&(r=a)}return r}else if(Ut(t)){const r=zd(e,t.key,n),i=zd(e,t.value,n);return Math.max(r,i)}return 1}const tP=e=>!e||typeof e!="function"&&typeof e!="object";class At extends xy{constructor(t){super(by),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:pr(this.value,t,n)}toString(){return String(this.value)}}At.BLOCK_FOLDED="BLOCK_FOLDED",At.BLOCK_LITERAL="BLOCK_LITERAL",At.PLAIN="PLAIN",At.QUOTE_DOUBLE="QUOTE_DOUBLE",At.QUOTE_SINGLE="QUOTE_SINGLE";const hxe="tag:yaml.org,2002:";function mxe(e,t,n){if(t){const r=n.filter(a=>a.tag===t),i=r.find(a=>!a.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function Vd(e,t,n){var f,d,h;if(Wd(e)&&(e=e.contents),bn(e))return e;if(Ut(e)){const g=(d=(f=n.schema[Da]).createNode)==null?void 0:d.call(f,n.schema,null,n);return g.items.push(e),g}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:l}=n;let s;if(r&&e&&typeof e=="object"){if(s=l.get(e),s)return s.anchor||(s.anchor=i(e)),new dxe(s.anchor);s={anchor:null,node:null},l.set(e,s)}t!=null&&t.startsWith("!!")&&(t=hxe+t.slice(2));let u=mxe(e,t,o.tags);if(!u){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const g=new At(e);return s&&(s.node=g),g}u=e instanceof Map?o[Da]:Symbol.iterator in Object(e)?o[Ys]:o[Da]}a&&(a(u),delete n.onTagObj);const c=u!=null&&u.createNode?u.createNode(n.schema,e,n):typeof((h=u==null?void 0:u.nodeClass)==null?void 0:h.from)=="function"?u.nodeClass.from(n.schema,e,n):new At(e);return t?c.tag=t:u.default||(c.tag=u.tag),s&&(s.node=c),c}function nP(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const a=t[i];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const o=[];o[a]=r,r=o}else r=new Map([[a,r]])}return Vd(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const gxe=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Ud extends xy{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>bn(r)||Ut(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(gxe(t))this.add(n);else{const[r,...i]=t,a=this.get(r,!0);if(kn(a))a.addIn(i,n);else if(a===void 0&&this.schema)this.set(r,nP(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(kn(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,a=this.get(r,!0);return i.length===0?!n&&It(a)?a.value:a:kn(a)?a.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ut(n))return!1;const r=n.value;return r==null||t&&It(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return kn(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const a=this.get(r,!0);if(kn(a))a.setIn(i,n);else if(a===void 0&&this.schema)this.set(r,nP(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}Ud.maxFlowStringSingleLineLength=60;const pxe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Js(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const $a=(e,t,n)=>e.endsWith(`
484
484
  `)?Js(n,t):n.includes(`
485
485
  `)?`
486
486
  `+Js(n,t):(e.endsWith(" ")?"":" ")+n,rP="flow",Sy="block",Hd="quoted";function qd(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:l}={}){if(!i||i<0)return e;const s=Math.max(1+a,1+i-t.length);if(e.length<=s)return e;const u=[],c={};let f=i-t.length;typeof r=="number"&&(r>i-Math.max(2,a)?u.push(0):f=i-r);let d,h,g=!1,p=-1,y=-1,_=-1;n===Sy&&(p=iP(e,p),p!==-1&&(f=p+s));for(let S;S=e[p+=1];){if(n===Hd&&S==="\\"){switch(y=p,e[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}_=p}if(S===`
@@ -548,4 +548,4 @@ ${o}${y}`}else g=`${p}${s}${h.join(" ")}${s}${y}`;return e&&(g+=$a(g,o,u(e)),a&&
548
548
  *
549
549
  * Copyright (c) 2014-2018, Jon Schlinkert.
550
550
  * Released under the MIT License.
551
- */const AP=Vxe;var Uxe=function(e,t,n){if(AP(n)||(n={default:n}),!kP(e))return typeof n.default<"u"?n.default:e;typeof t=="number"&&(t=String(t));const r=Array.isArray(t),i=typeof t=="string",a=n.separator||".",o=n.joinChar||(typeof a=="string"?a:".");if(!i&&!r)return e;if(i&&t in e)return Dy(t,e,n)?e[t]:n.default;let l=r?t:Hxe(t,a,n),s=l.length,u=0;do{let c=l[u];for(typeof c=="number"&&(c=String(c));c&&c.slice(-1)==="\\";)c=TP([c.slice(0,-1),l[++u]||""],o,n);if(c in e){if(!Dy(c,e,n))return n.default;e=e[c]}else{let f=!1,d=u+1;for(;d<s;)if(c=TP([c,l[d++]],o,n),f=c in e){if(!Dy(c,e,n))return n.default;e=e[c],u=d-1;break}if(!f)return n.default}}while(++u<s&&kP(e));return u===s?e:n.default};function TP(e,t,n){return typeof n.join=="function"?n.join(e):e[0]+t+e[1]}function Hxe(e,t,n){return typeof n.split=="function"?n.split(e):e.split(t)}function Dy(e,t,n){return typeof n.isValid=="function"?n.isValid(e,t):!0}function kP(e){return AP(e)||Array.isArray(e)||typeof e=="function"}const Iy=Ae(Uxe);function qxe(){const[e,t]=x.useState(!0);return x.useEffect(()=>()=>{t(!1)},[]),e}function Gxe(){const e=x.useRef({isMounted:!0});return x.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function EP(){const e=qxe(),[t,n]=x.useState(e?window.location:void 0),r=x.useCallback(()=>{n(window.location)},[]);x.useEffect(()=>{if(e)return t||r(),window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[e,t,r]);const i=x.useCallback(o=>{window.history.replaceState(null,"",o),r()},[r]),a=x.useCallback(o=>{window.history.replaceState(null,"",o),r()},[r]);return{location:t,push:i,update:a}}function Yxe(){var i,a;const e=EP(),t=((i=e.location)==null?void 0:i.pathname)||"/",n=x.useMemo(()=>{var o;return new URLSearchParams(((o=e.location)==null?void 0:o.search)??"/")},[(a=e.location)==null?void 0:a.search]),r=x.useCallback(o=>{const l=o.toString();l?e.update("?"+l):e.update(t)},[e,t]);return[n,r]}function PP(e){var O;const{defaultValues:t,disableQueryString:n,ignoreQueryStringKeys:r,filterQueryStringKeys:i}=e,a=Gxe(),[o,l]=Yxe(),[s,u]=x.useState(()=>{if(!n){const w=o.get("page");if(w){const A=Number(w);if(Number.isInteger(A))return A}}return 1}),[c,f]=x.useState(()=>{if(!n){const A=o.get("perPage");if(A){const T=Number(A);if(Number.isInteger(T))return T}}const w=localStorage.getItem("perPage");if(w){const A=Number(w);if(Number.isInteger(A))return A}return 10}),[d,h]=x.useState(()=>{if(!n){const w=o.get("sort");if(w)return w.startsWith("-")?w.slice(1):w}return(t==null?void 0:t.sort)??""}),[g,p]=x.useState(()=>{if(!n){const w=o.get("sort");if(w)return w.startsWith("-")?"desc":"asc"}return(t==null?void 0:t.sortDirection)??"asc"}),[y,_]=x.useState(()=>{const w=(t==null?void 0:t.filterState)??{};for(const A of o.keys()){if(jP.includes(A))continue;const T=o.get(A);if(T){const k=T.split(",");w[A]=k}}return w}),b=x.useCallback(()=>_({}),[_]),S=EP();return x.useEffect(()=>{var A;if(n)return;const w=new URLSearchParams(((A=S.location)==null?void 0:A.search)??"/");w.set("page",s.toString()),w.set("perPage",c.toString()),w.set("sort",g==="asc"?d:`-${d}`);for(const T of o.keys())if(!jP.includes(T)&&!(r!=null&&r.includes(T))){if(i){i.includes(T)&&w.delete(T);continue}w.delete(T)}for(const T in y)w.set(T,y[T].join(","));l(w)},[d,g,l,n,s,c,y,r,i,a,o,(O=S.location)==null?void 0:O.search]),x.useEffect(()=>{localStorage.setItem("perPage",c.toString())},[c]),x.useMemo(()=>({page:s,setPage:u,perPage:c,setPerPage:f,sort:d,setSort:h,sortDirection:g,setSortDirection:p,filterState:y,setFilterState:_,clearAllFilters:b}),[b,y,s,c,d,g])}const jP=["page","perPage","sort"];function Kxe(e){const{items:t,keyFn:n,tableColumns:r,toolbarFilters:i,disableQueryString:a}=e,o=PP({defaultValues:{sort:r&&r.length?r[0].sort:void 0},disableQueryString:a}),{page:l,perPage:s,sort:u,sortDirection:c,filterState:f}=o,d=Iv(t),{setSort:h}=d;x.useEffect(()=>h({id:u,sortFn:(O,w)=>{const A=Iy(O,u),T=Iy(w,u);return Hk(A,T)},direction:c}),[u,c,h]);const g=$v(d.sorted,n),{setFilterFn:p}=g;x.useEffect(()=>{Object.keys(f).length===0?p(void 0):p(O=>{for(const w in f){const A=i==null?void 0:i.find(T=>T.key===w);if(A){const T=Iy(O,A.query);if(typeof T=="string"){const k=f[w];if(k&&k.length!==0&&!k.includes(T))return!1}}}return!0})},[f,p,i]);const y=Is(g.filtered),{setPage:_,setPerPage:b}=y;x.useEffect(()=>_(l),[l,y,_]),x.useEffect(()=>b(s),[s,y,b]);const S=Wk(t,n);return x.useMemo(()=>({itemCount:t?g.filtered.length:void 0,pageItems:t?y.paged:void 0,error:e.error,...o,...S}),[g.filtered.length,t,e.error,y.paged,S,o])}H.BulkSelector=ok,H.BytesCell=ij,H.CapacityCell=uj,H.Collapse=Fs,H.ColumnCardOption=QT,H.ColumnListOption=JT,H.ColumnModalOption=ek,H.ColumnTableOption=Ri,H.CopyCell=Dj,H.DateCell=EM,H.DateTimeCell=sx,H.DialogContext=aj,H.ElapsedTimeCell=jM,H.FormGroupSelect=Ha,H.FormGroupSelectOption=Dpe,H.FormGroupTextArea=Yk,H.FormGroupTextInput=Ipe,H.FrameworkTranslationsProvider=vb,H.Help=Ua,H.LabelColorE=dx,H.LabelsCell=ux,H.MultiSelectDialog=jpe,H.PFColorE=cx,H.PageActionSelection=ot,H.PageActionType=kt,H.PageActions=Va,H.PageAlertToasterContext=yh,H.PageAlertToasterProvider=Sb,H.PageApp=Nxe,H.PageBody=Ob,H.PageChartContainer=ju,H.PageDashboard=sD,H.PageDashboardCard=Mu,H.PageDashboardChart=s0e,H.PageDashboardContext=Xh,H.PageDashboardCount=f0e,H.PageDashboardDonutCard=m0e,H.PageDashboardGettingStarted=d0e,H.PageDetail=ws,H.PageDetails=XT,H.PageDetailsFromColumns=ak,H.PageDialogProvider=Ab,H.PageDonutChart=ZT,H.PageForm=Pxe,H.PageFormCancelButton=uP,H.PageFormCheckbox=Jpe,H.PageFormDataEditor=txe,H.PageFormGrid=Ey,H.PageFormSelect=nxe,H.PageFormSubmitButton=Py,H.PageFormSwitch=rxe,H.PageFormTextArea=ixe,H.PageFormTextInput=axe,H.PageFramework=dP,H.PageHeader=Mxe,H.PageLayout=hP,H.PageMasthead=Dxe,H.PageMastheadToggle=mP,H.PageNavSideBarContext=jy,H.PageNavSideBarProvider=cP,H.PageNavigation=gP,H.PageTab=My,H.PageTable=$s,H.PageTableCards=Fv,H.PageTabs=OP,H.PageTabsOld=Wxe,H.PageToolbar=Rk,H.PageToolbarFilters=Fk,H.RunningIcon=CP,H.Scrollable=ta,H.SelectDialog=Gk,H.SetDialogContext=oj,H.SettingsContext=qa,H.SettingsDialog=kb,H.SettingsProvider=Tb,H.TableColumnCell=Wt,H.TextCell=Hh,H.ToolbarFilterType=$k,H.addNavigationItem=_P,H.addNavigationItemAfter=xP,H.addNavigationItemBefore=SP,H.compareNumbers=qk,H.compareStrings=Ls,H.compareUnknowns=Hk,H.errorToAlertProps=rj,H.findNavigationItemById=yP,H.getPatternflyColor=Au,H.pfDanger=zh,H.pfDisabled=Uh,H.pfInfo=Vh,H.pfLink=MM,H.pfSuccess=Wh,H.pfWarning=fx,H.removeLeadingSlash=Bxe,H.removeNavigationItemById=bP,H.useBreakpoint=un,H.useBulkActionDialog=Uk,H.useBulkConfirmation=Ppe,H.useColumnsWithoutExpandedRow=b0e,H.useColumnsWithoutSort=y0e,H.useDescriptionColumns=rk,H.useExpandedColumns=ik,H.useFiltered=$v,H.useFrameworkTranslations=gt,H.useGetPageUrl=wP,H.useInMemoryView=Kxe,H.useOrientation=YP,H.usePageAlertToaster=bh,H.usePageDialog=yr,H.usePageNavBarClick=fP,H.usePageNavSideBar=eu,H.usePageNavigate=Rxe,H.usePaged=Is,H.useSelectDialog=Mpe,H.useSelected=Dv,H.useSelectedInMemory=Wk,H.useSettings=Ga,H.useSettingsDialog=sj,H.useSorted=Iv,H.useTableItems=Jge,H.useView=PP,H.useVisibleCardColumns=nk,H.useVisibleColumns=v0e,H.useVisibleListColumns=tk,H.useVisibleModalColumns=mv,H.useVisibleTableColumns=hv,H.useWindowSize=zy,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
551
+ */const AP=Vxe;var Uxe=function(e,t,n){if(AP(n)||(n={default:n}),!kP(e))return typeof n.default<"u"?n.default:e;typeof t=="number"&&(t=String(t));const r=Array.isArray(t),i=typeof t=="string",a=n.separator||".",o=n.joinChar||(typeof a=="string"?a:".");if(!i&&!r)return e;if(i&&t in e)return Dy(t,e,n)?e[t]:n.default;let l=r?t:Hxe(t,a,n),s=l.length,u=0;do{let c=l[u];for(typeof c=="number"&&(c=String(c));c&&c.slice(-1)==="\\";)c=TP([c.slice(0,-1),l[++u]||""],o,n);if(c in e){if(!Dy(c,e,n))return n.default;e=e[c]}else{let f=!1,d=u+1;for(;d<s;)if(c=TP([c,l[d++]],o,n),f=c in e){if(!Dy(c,e,n))return n.default;e=e[c],u=d-1;break}if(!f)return n.default}}while(++u<s&&kP(e));return u===s?e:n.default};function TP(e,t,n){return typeof n.join=="function"?n.join(e):e[0]+t+e[1]}function Hxe(e,t,n){return typeof n.split=="function"?n.split(e):e.split(t)}function Dy(e,t,n){return typeof n.isValid=="function"?n.isValid(e,t):!0}function kP(e){return AP(e)||Array.isArray(e)||typeof e=="function"}const Iy=Ae(Uxe);function qxe(){const[e,t]=x.useState(!0);return x.useEffect(()=>()=>{t(!1)},[]),e}function Gxe(){const e=x.useRef({isMounted:!0});return x.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function EP(){const e=qxe(),[t,n]=x.useState(e?window.location:void 0),r=x.useCallback(()=>{n(window.location)},[]);x.useEffect(()=>{if(e)return t||r(),window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[e,t,r]);const i=x.useCallback(o=>{window.history.replaceState(null,"",o),r()},[r]),a=x.useCallback(o=>{window.history.replaceState(null,"",o),r()},[r]);return{location:t,push:i,update:a}}function Yxe(){var i,a;const e=EP(),t=((i=e.location)==null?void 0:i.pathname)||"/",n=x.useMemo(()=>{var o;return new URLSearchParams(((o=e.location)==null?void 0:o.search)??"/")},[(a=e.location)==null?void 0:a.search]),r=x.useCallback(o=>{const l=o.toString();l?e.update("?"+l):e.update(t)},[e,t]);return[n,r]}function PP(e){var O;const{defaultValues:t,disableQueryString:n,ignoreQueryStringKeys:r,filterQueryStringKeys:i}=e,a=Gxe(),[o,l]=Yxe(),[s,u]=x.useState(()=>{if(!n){const w=o.get("page");if(w){const A=Number(w);if(Number.isInteger(A))return A}}return 1}),[c,f]=x.useState(()=>{if(!n){const A=o.get("perPage");if(A){const T=Number(A);if(Number.isInteger(T))return T}}const w=localStorage.getItem("perPage");if(w){const A=Number(w);if(Number.isInteger(A))return A}return 10}),[d,h]=x.useState(()=>{if(!n){const w=o.get("sort");if(w)return w.startsWith("-")?w.slice(1):w}return(t==null?void 0:t.sort)??""}),[g,p]=x.useState(()=>{if(!n){const w=o.get("sort");if(w)return w.startsWith("-")?"desc":"asc"}return(t==null?void 0:t.sortDirection)??"asc"}),[y,_]=x.useState(()=>{const w=(t==null?void 0:t.filterState)??{};for(const A of o.keys()){if(jP.includes(A))continue;const T=o.get(A);if(T){const k=T.split(",");w[A]=k}}return w}),b=x.useCallback(()=>_({}),[_]),S=EP();return x.useEffect(()=>{var A;if(n)return;const w=new URLSearchParams(((A=S.location)==null?void 0:A.search)??"/");w.set("page",s.toString()),w.set("perPage",c.toString()),w.set("sort",g==="asc"?d:`-${d}`);for(const T of o.keys())if(!jP.includes(T)&&!(r!=null&&r.includes(T))){if(i){i.includes(T)&&w.delete(T);continue}w.delete(T)}for(const T in y)w.set(T,y[T].join(","));l(w)},[d,g,l,n,s,c,y,r,i,a,o,(O=S.location)==null?void 0:O.search]),x.useEffect(()=>{localStorage.setItem("perPage",c.toString())},[c]),x.useMemo(()=>({page:s,setPage:u,perPage:c,setPerPage:f,sort:d,setSort:h,sortDirection:g,setSortDirection:p,filterState:y,setFilterState:_,clearAllFilters:b}),[b,y,s,c,d,g])}const jP=["page","perPage","sort"];function Kxe(e){const{items:t,keyFn:n,tableColumns:r,toolbarFilters:i,disableQueryString:a}=e,o=PP({defaultValues:{sort:r&&r.length?r[0].sort:void 0},disableQueryString:a}),{page:l,perPage:s,sort:u,sortDirection:c,filterState:f}=o,d=Iv(t),{setSort:h}=d;x.useEffect(()=>h({id:u,sortFn:(O,w)=>{const A=Iy(O,u),T=Iy(w,u);return Hk(A,T)},direction:c}),[u,c,h]);const g=$v(d.sorted,n),{setFilterFn:p}=g;x.useEffect(()=>{Object.keys(f).length===0?p(void 0):p(O=>{for(const w in f){const A=i==null?void 0:i.find(T=>T.key===w);if(A){const T=Iy(O,A.query);if(typeof T=="string"){const k=f[w];if(k&&k.length!==0&&!k.includes(T))return!1}}}return!0})},[f,p,i]);const y=Is(g.filtered),{setPage:_,setPerPage:b}=y;x.useEffect(()=>_(l),[l,y,_]),x.useEffect(()=>b(s),[s,y,b]);const S=Wk(t,n);return x.useMemo(()=>({itemCount:t?g.filtered.length:void 0,pageItems:t?y.paged:void 0,error:e.error,...o,...S}),[g.filtered.length,t,e.error,y.paged,S,o])}q.BulkSelector=ok,q.BytesCell=ij,q.CapacityCell=uj,q.Collapse=Fs,q.ColumnCardOption=QT,q.ColumnListOption=JT,q.ColumnModalOption=ek,q.ColumnTableOption=Ri,q.CopyCell=Dj,q.DateCell=EM,q.DateTimeCell=sx,q.DialogContext=aj,q.ElapsedTimeCell=jM,q.FormGroupSelect=Ha,q.FormGroupSelectOption=Dpe,q.FormGroupTextArea=Yk,q.FormGroupTextInput=Ipe,q.FrameworkTranslationsProvider=vb,q.Help=Ua,q.LabelColorE=dx,q.LabelsCell=ux,q.MultiSelectDialog=jpe,q.PFColorE=cx,q.PageActionSelection=ot,q.PageActionType=kt,q.PageActions=Va,q.PageAlertToasterContext=yh,q.PageAlertToasterProvider=Sb,q.PageApp=Nxe,q.PageBody=Ob,q.PageChartContainer=ju,q.PageDashboard=sD,q.PageDashboardCard=Mu,q.PageDashboardChart=s0e,q.PageDashboardContext=Xh,q.PageDashboardCount=f0e,q.PageDashboardDonutCard=m0e,q.PageDashboardGettingStarted=d0e,q.PageDetail=ws,q.PageDetails=XT,q.PageDetailsFromColumns=ak,q.PageDialogProvider=Ab,q.PageDonutChart=ZT,q.PageForm=Pxe,q.PageFormCancelButton=uP,q.PageFormCheckbox=Jpe,q.PageFormDataEditor=txe,q.PageFormGrid=Ey,q.PageFormSelect=nxe,q.PageFormSubmitButton=Py,q.PageFormSwitch=rxe,q.PageFormTextArea=ixe,q.PageFormTextInput=axe,q.PageFramework=dP,q.PageHeader=Mxe,q.PageLayout=hP,q.PageMasthead=Dxe,q.PageMastheadToggle=mP,q.PageNavSideBarContext=jy,q.PageNavSideBarProvider=cP,q.PageNavigation=gP,q.PageTab=My,q.PageTable=$s,q.PageTableCards=Fv,q.PageTabs=OP,q.PageTabsOld=Wxe,q.PageToolbar=Rk,q.PageToolbarFilters=Fk,q.RunningIcon=CP,q.Scrollable=ta,q.SelectDialog=Gk,q.SetDialogContext=oj,q.SettingsContext=qa,q.SettingsDialog=kb,q.SettingsProvider=Tb,q.TableColumnCell=Wt,q.TextCell=Hh,q.ToolbarFilterType=$k,q.addNavigationItem=_P,q.addNavigationItemAfter=xP,q.addNavigationItemBefore=SP,q.compareNumbers=qk,q.compareStrings=Ls,q.compareUnknowns=Hk,q.errorToAlertProps=rj,q.findNavigationItemById=yP,q.getPatternflyColor=Au,q.pfDanger=zh,q.pfDisabled=Uh,q.pfInfo=Vh,q.pfLink=MM,q.pfSuccess=Wh,q.pfWarning=fx,q.removeLeadingSlash=Bxe,q.removeNavigationItemById=bP,q.useBreakpoint=un,q.useBulkActionDialog=Uk,q.useBulkConfirmation=Ppe,q.useColumnsWithoutExpandedRow=b0e,q.useColumnsWithoutSort=y0e,q.useDescriptionColumns=rk,q.useExpandedColumns=ik,q.useFiltered=$v,q.useFrameworkTranslations=gt,q.useGetPageUrl=wP,q.useInMemoryView=Kxe,q.useOrientation=YP,q.usePageAlertToaster=bh,q.usePageDialog=yr,q.usePageNavBarClick=fP,q.usePageNavSideBar=eu,q.usePageNavigate=Rxe,q.usePaged=Is,q.useSelectDialog=Mpe,q.useSelected=Dv,q.useSelectedInMemory=Wk,q.useSettings=Ga,q.useSettingsDialog=sj,q.useSorted=Iv,q.useTableItems=Jge,q.useView=PP,q.useVisibleCardColumns=nk,q.useVisibleColumns=v0e,q.useVisibleListColumns=tk,q.useVisibleModalColumns=mv,q.useVisibleTableColumns=hv,q.useWindowSize=zy,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});